/* --------------------------------------------------------------------------
   Proaktivregnskab — hand-written CSS, no framework, no external requests.

   Palette sampled from the client's own mockups rather than inferred:
   v1 gave #1A352F, v2 gives #16342D — a difference you cannot see, so the
   colour work stands. Neutrals are WARM (#F7F4F1), not cool grey. That warmth
   is load-bearing: green on cool grey reads clinical; green on warm cream reads
   considered, which is the point when the client's objection to the reference
   sites was that they looked like "billig reklame".

   Type: serif headings over sans body. System fonts only — a Danish business
   site pulling webfonts from a US CDN sends visitor IPs abroad on every page
   load, which is a GDPR question nobody wants on an accountant's website.
   -------------------------------------------------------------------------- */

:root {
  --ink:        #1f2926;
  --ink-soft:   #5b6763;
  --line:       #e3e0dc;
  --bg:         #ffffff;
  --bg-alt:     #f7f4f1;
  --card:       #fdfdfd;
  --accent:     #1a352f;
  --accent-ink: #ffffff;
  --accent-bg:  #e9efec;
  --focus:      #b8860b;
  /* Placeholder grey. Dark enough to pass AA on the cream background — these
     notes are the agenda for the client meeting, so they must be readable. */
  --ph:         #6b6760;

  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap:   74rem;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.005em;
}
h2 { font-size: 1.9rem; margin: 0 0 1rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }

a { color: var(--accent); }
a:focus-visible, .btn:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.75rem 1rem; z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.icon { width: 1.5rem; height: 1.5rem; display: block; }

/* Placeholder styling — deliberately visible. Every one of these is an item to
   point at in the client meeting, not a bug. */
.ph-title, .ph-body, .ph-inline { color: var(--ph); }
.ph-title {
  display: block; font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem;
}
.ph-body { display: block; font-size: 0.85rem; line-height: 1.5; }
.ph-inline {
  font-size: 0.8rem; font-style: italic; margin: 0.75rem 0 0;
}

/* Wordmark ---------------------------------------------------------------- */

.brand { text-decoration: none; color: var(--accent); margin-right: auto; }
.wm-top {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem; line-height: 1;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.wm-bottom {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase;
  margin-top: 0.35rem;
}
.wm-bottom::before, .wm-bottom::after {
  content: ""; height: 1px; flex: 1; background: currentColor; opacity: 0.5;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 5;
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.75rem 2.5rem;
  padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.nav {
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem;
  list-style: none; margin: 0; padding: 0;
  font-size: 0.95rem;
}
/* Padded at every width, not just mobile: bare nav text is a 20px target, under
   the 24px minimum, and WCAG's size rule is not device-specific. Costs ~10px of
   header height and removes the whole question. */
.nav a {
  color: var(--ink-soft); text-decoration: none;
  display: inline-block; padding: 0.6rem 0;
}
.nav a:hover { color: var(--accent); text-decoration: underline; }

/* Sections ---------------------------------------------------------------- */

.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 0.75rem; }
.section-lead {
  text-align: center; max-width: 64ch; margin: 0 auto 2.5rem;
  color: var(--ink-soft);
}
.section-actions { margin-top: 2rem; text-align: center; }

.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); }
.prose > h2 + p, .prose > h3 + p { color: var(--ink); }

/* Column layouts ---------------------------------------------------------- */

.cols { display: grid; gap: 2.5rem; align-items: start; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-ruled > .col + .col { border-left: 1px solid var(--line); padding-left: 2.5rem; }

/* Tick lists — an ordinary bullet list in the content file, rendered as ticks.
   Keeps content files plain prose the owner can edit without markup. */
.ticklist ul { list-style: none; margin: 0; padding: 0; }
.ticklist ul li {
  position: relative; padding-left: 2rem; margin-bottom: 0.85rem;
  font-size: 0.95rem; color: var(--ink);
}
.ticklist ul li::before {
  content: ""; position: absolute; left: 0; top: 0.28em;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 1.5px solid var(--accent);
  background:
    linear-gradient(45deg, transparent 44%, var(--accent) 44%, var(--accent) 56%, transparent 56%) no-repeat 0.28rem 0.16rem / 0.42rem 0.12rem,
    linear-gradient(-45deg, transparent 44%, var(--accent) 44%, var(--accent) 56%, transparent 56%) no-repeat 0.42rem 0.06rem / 0.42rem 0.12rem;
  transform: rotate(0deg);
}
.note-box {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.section-alt .note-box { background: #efeae5; }

/* Hero -------------------------------------------------------------------- */

.hero { background: var(--bg-alt); padding: 3.5rem 0 2rem; }
.hero-inner {
  display: grid; gap: 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
}
.hero-text h2 { font-size: 2.6rem; max-width: 15ch; letter-spacing: -0.015em; }
.hero-text p { color: var(--ink-soft); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero-media {
  aspect-ratio: 4 / 3;
  display: block; width: 100%; height: auto;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-ticks { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-ticks ul {
  display: flex; flex-wrap: wrap; gap: 0.5rem 3rem;
}
.hero-ticks ul li { margin-bottom: 0; color: var(--ink-soft); }

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.75rem 1.5rem;
  border: 0; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: 1rem;
  font-family: inherit; cursor: pointer;
}
.btn:hover { filter: brightness(1.35); }
.btn-quiet {
  background: transparent; color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.btn-quiet:hover { background: var(--accent-bg); filter: none; }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn-onband { background: var(--bg); color: var(--accent); }
.btn-onband:hover { filter: brightness(0.94); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
.header-cta { flex-shrink: 0; }

/* Benefits ---------------------------------------------------------------- */

.benefits {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.benefit { display: flex; gap: 1rem; align-items: flex-start; }
.benefit-icon {
  flex-shrink: 0; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--line); color: var(--accent);
}
.benefit p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* Pain + About ------------------------------------------------------------ */

.col-quote { position: relative; }
.col-quote .deco {
  display: block; color: var(--ink-soft); opacity: 0.55; margin-bottom: 1.5rem;
}
.col-quote .deco .icon { width: 4.5rem; height: 4.5rem; }
.col-quote p { color: var(--ink-soft); font-size: 0.9rem; }
.col-quote p:last-child {
  font-family: var(--font-serif); font-size: 1.2rem;
  color: var(--ink); margin-top: 1.25rem;
}
.col-quote strong { font-weight: 400; }
.about-cols h3 { font-family: var(--font-serif); font-size: 1.05rem; margin: 1.5rem 0 1rem; }

/* Steps ------------------------------------------------------------------- */

.steps {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; gap: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.step { text-align: center; position: relative; }
/* Dotted connector between the numbered circles, per the mockup. Drawn from each
   step except the last, so removing a step from steps.txt cannot leave a line
   dangling into empty space. */
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 1.25rem; left: calc(50% + 2rem);
  width: calc(100% - 4rem); height: 0;
  border-top: 1px dashed var(--line);
}
.step-number {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 0.95rem;
}
.step p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* Packages ---------------------------------------------------------------- */

.packages {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.package {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  background: var(--card);
}
.package-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.package-badge {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.25rem 0.75rem; border-radius: 100px; white-space: nowrap;
}
.package-name { text-align: center; font-size: 1.3rem; margin-bottom: 0.5rem; }
.package-price {
  text-align: center; margin: 0 0 1rem;
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--accent);
}
.package-desc { margin: 0 0 1.25rem; color: var(--ink-soft); font-size: 0.85rem; }
.package-features {
  list-style: none; margin: 0 0 1.75rem; padding: 0;
  font-size: 0.85rem; flex: 1;
}
.package-features li {
  display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.6rem;
}
.package-features .icon { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.15em; color: var(--accent); }
.package .btn { align-self: stretch; text-align: center; margin-top: auto; }
/* The "doesn't fit a package?" card — a card in v2, not a footnote. */
.package-plain { background: var(--bg-alt); border-style: solid; justify-content: center; }
.package-plain h3 { font-size: 1.2rem; text-align: center; }
.package-plain p { font-size: 0.85rem; text-align: center; }

/* Add-ons ----------------------------------------------------------------- */

.addons-layout {
  display: grid; gap: 3rem;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 2fr);
  align-items: start;
}
.addons {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.75rem 2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.addon { display: flex; gap: 0.75rem; align-items: flex-start; }
.addon-icon { flex-shrink: 0; color: var(--accent); }
.addon .icon { width: 1.35rem; height: 1.35rem; }
.addon h3 { font-size: 0.9rem; font-family: var(--font-sans); font-weight: 700; }
.addon p { margin: 0; color: var(--ink-soft); font-size: 0.8rem; line-height: 1.5; }
.addons-note { margin-top: 2rem; margin-left: auto; max-width: 22rem; }
.addons-note ul li { font-size: 0.85rem; margin-bottom: 0.6rem; }

/* Software ---------------------------------------------------------------- */

.software-cols { align-items: center; }
.logos {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center;
}
.logo-name {
  display: inline-block;
  font-family: var(--font-serif); font-size: 1.35rem; color: var(--accent);
  padding: 0.4rem 0;
}
a.logo-name { text-decoration: underline; text-underline-offset: 0.2em; }
a.logo-name:hover { color: var(--ink); }

/* Lead magnet ------------------------------------------------------------- */

.checklist-cols { align-items: start; }
.checklist-items ul { columns: 2; column-gap: 2rem; }
.checklist-items ul li { break-inside: avoid; font-size: 0.9rem; }
.lead-form { display: grid; gap: 1rem; }
.lead-form label {
  display: grid; gap: 0.35rem;
  font-size: 0.85rem; color: var(--ink-soft);
}
.lead-form input {
  font: inherit; font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink);
}
.lead-form input:disabled { background: #f4f2ef; cursor: not-allowed; }

/* FAQ --------------------------------------------------------------------- */

.faq {
  margin: 2.5rem 0 0;
  display: grid; gap: 0 2.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 1rem 0;
  font-size: 0.95rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--accent); font-size: 1.3rem; flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 1.25rem; color: var(--ink-soft); font-size: 0.9rem; }

/* Closing band ------------------------------------------------------------ */

.band { background: var(--accent); color: #dfe6e3; padding: 3rem 0; }
.band-inner {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  align-items: center;
}
.band h2 { color: #ffffff; font-size: 1.5rem; margin: 0; }
.band p { margin: 0 0 0.5rem; font-size: 0.9rem; color: #dfe6e3; }
.band-head { display: flex; gap: 1rem; align-items: center; }
.band-icon { flex-shrink: 0; color: #ffffff; opacity: 0.9; }
.band-icon .icon { width: 2.5rem; height: 2.5rem; }
.band-cta { text-align: center; }
.band-cta p { margin-top: 0.85rem; font-size: 0.78rem; max-width: 18rem; }

/* Footer — light in v2, not the dark green of v1 ---------------------------- */

.site-footer {
  background: var(--bg); border-top: 1px solid var(--line);
  padding: 2.5rem 0; font-size: 0.85rem; color: var(--ink-soft);
}
.footer-inner {
  display: grid; gap: 2rem;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
}
.site-footer p { margin: 0 0 0.35rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; display: inline-block; padding: 0.2rem 0; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink); font-weight: 700; margin-bottom: 0.6rem;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-brand .wm-top { font-size: 1.15rem; }

/* Legal page ------------------------------------------------------------- */

.legal { max-width: 68ch; }
.legal h3 { font-size: 1.15rem; margin: 2.5rem 0 0.75rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; color: var(--ink-soft); }
.controller {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.5rem;
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.controller dt {
  font-weight: 700; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft); align-self: center;
}
/* Standalone links (not inline in a sentence), so the 24px minimum applies —
   and these are the links someone exercising a data-subject right would tap. */
.controller dd { margin: 0; }
.controller dd a { display: inline-block; padding: 0.25rem 0; }
.legal-updated {
  margin-top: 3rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--ink-soft);
}

/* Missing-content marker — visible on purpose, so a broken content file is
   obvious to the owner rather than silently blank. */
.content-missing {
  background: #fff4e5; border-left: 4px solid #d98324;
  padding: 0.75rem 1rem; font-weight: 600; color: #7a4a12;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 68rem) {
  .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .addons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .addons-layout { grid-template-columns: 1fr; gap: 2rem; }
  .addons-note { margin-left: 0; max-width: none; }
  .band-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .band-cta { text-align: left; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 60rem) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-text h2 { max-width: none; }
  .hero-media { max-width: 32rem; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; gap: 2rem; }
  .cols-ruled > .col + .col { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .faq { grid-template-columns: 1fr; }

  /* Below this the header wraps to two rows. Sticking that to the top costs a
     sixth of a tablet screen on every scroll, so it scrolls away instead. */
  .site-header { position: static; }

  /* Roomier still with a thumb, and the extra header height costs nothing now
     that the header scrolls away. */
  .nav { gap: 0 1.5rem; }
  .nav a { padding: 0.75rem 0; }
}

@media (max-width: 40rem) {
  .header-cta { display: none; }
  .hero { padding: 2.5rem 0 1.5rem; }
  .hero-text h2 { font-size: 2rem; }
  .section { padding: 3rem 0; }
  h2 { font-size: 1.6rem; }
  .packages, .addons { grid-template-columns: 1fr; }
  .checklist-items ul { columns: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-ticks ul { gap: 0.6rem 1.5rem; }
}
