/*
 * The landing page. Builds on app.css (the same card, list and døgnlinje the
 * doctor sees) and adds only what a public page needs. Tokens only, like
 * app.css - see docs/visuell-profil.md.
 */

body.landing {
  background: var(--color-bg);
}

.band-inner,
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* --- hero: the zone, full width ----------------------------------------- */

.hero {
  position: relative;
  background: var(--color-zone);
  color: var(--color-on-zone);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* The glow in the corner. Drawn inside the hero rather than clipped by it, so
   the menu sheet can hang below the hero's edge. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 320px at calc(100% - 120px) 80px,
    color-mix(in srgb, var(--color-zone-glow) 60%, transparent),
    transparent
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-top: max(var(--space-4), env(safe-area-inset-top));
  padding-bottom: var(--space-7);
}

/* --- the menu: links on wide screens, a sheet behind "Meny" on phones ---- */

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--size-tap);
  margin-bottom: var(--space-7);
}

.site-nav-links {
  display: none;
  list-style: none;
  margin: 0 auto 0 var(--space-5);
  padding: 0;
  gap: var(--space-1);
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  color: var(--color-on-zone-muted);
  font: var(--text-callout);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-link:hover,
.site-nav-link[aria-current="page"] {
  color: var(--color-on-zone);
  background: color-mix(in srgb, var(--color-on-zone) 12%, transparent);
}

.site-nav-login {
  display: none;
}

.site-nav-menu summary {
  list-style: none;
}

.site-nav-menu summary::-webkit-details-marker {
  display: none;
}

.site-nav-sheet {
  position: absolute;
  z-index: 10;
  top: calc(100% + var(--space-2));
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--color-text) 24%, transparent);
}

.site-nav-sheet a {
  display: flex;
  align-items: center;
  min-height: var(--size-tap);
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font: var(--text-headline);
  text-decoration: none;
}

.site-nav-sheet a[aria-current="page"] {
  background: var(--color-surface-sunken);
}

.site-nav-menu[open] summary {
  background: color-mix(in srgb, var(--color-on-zone) 14%, transparent);
}

.hero-grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.hero-copy .pill {
  margin-bottom: var(--space-4);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 9vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 11ch;
  margin-bottom: var(--space-5);
}

.hero-lead {
  font: var(--text-body);
  font-size: 19px;
  line-height: 28px;
  color: var(--color-on-zone-muted);
  max-width: 34em;
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-actions .button {
  width: auto;
}

/* The light button on dark green - the CTA wherever the background is the zone. */
.button.cta-light {
  width: auto;
  background: var(--color-on-zone);
  color: var(--color-zone);
  padding: 0 var(--space-6);
}

.button.cta-light:active {
  background: var(--color-on-zone-muted);
}

/* --- the phone: real components inside a frame -------------------------- */

.phone {
  justify-self: center;
  width: min(100%, 340px);
  padding: 10px;
  border-radius: 48px;
  background: var(--color-nav);
  border: 1px solid color-mix(in srgb, var(--color-on-zone) 18%, transparent);
}

.phone-screen {
  border-radius: 38px;
  background: var(--color-bg);
  color: var(--color-text);
  padding: var(--space-6) var(--space-3) var(--space-3);
  overflow: hidden;
}

.phone-greeting {
  font: var(--text-title);
  margin: 0 var(--space-2) var(--space-4);
}

.phone .next {
  margin-bottom: var(--space-3);
}

.phone .next-time {
  font-size: 36px;
  line-height: 40px;
}

.phone-list {
  margin-bottom: 0;
}

/* --- bands: one topic each ---------------------------------------------- */

.band {
  padding: var(--space-7) 0;
}

.band + .band {
  border-top: 1px solid var(--color-border);
}

.band-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin-bottom: var(--space-4);
}

.band-lead {
  color: var(--color-text-muted);
  max-width: 36em;
  margin-bottom: var(--space-4);
}

.split {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

/* A swap is a sequence, so it is shown as one: times down the left. */
.steps {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.steps li {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.step-time {
  font: var(--text-caption);
  font-variant-numeric: tabular-nums;
  color: var(--color-brand-text);
}

.step-title {
  font: var(--text-title);
}

.step-text {
  color: var(--color-text-muted);
}

/* Password against BankID: two rows, ours filled. */
.compare {
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.compare-row {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.compare-row dt {
  font: var(--text-caption);
  color: var(--color-text-muted);
}

.compare-row dd {
  margin: var(--space-1) 0 0;
  font: var(--text-title);
  color: var(--color-text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.compare-row.ours {
  background: var(--color-brand);
  border-color: var(--color-brand);
}

.compare-row.ours dt {
  color: var(--color-on-brand-muted);
}

.compare-row.ours dd {
  color: var(--color-on-brand);
  text-decoration: none;
}

.facts {
  display: grid;
  gap: var(--space-5) var(--space-6);
  margin-top: var(--space-5);
}

.fact-title {
  font: var(--text-headline);
  margin-bottom: var(--space-1);
}

.fact-text {
  color: var(--color-text-muted);
}

/* --- a topic page's green top: lower than the front page's hero ---------- */

.hero-topic .hero-inner {
  padding-bottom: var(--space-7);
}

.hero-topic .site-nav {
  margin-bottom: var(--space-6);
}

.topic-eyebrow {
  font: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.topic-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: var(--space-4);
  hyphens: auto;
  overflow-wrap: break-word;
}

.hero-topic .hero-lead {
  margin-bottom: 0;
}

.more-row {
  margin-top: var(--space-5);
}

/* "Les mer": a link with an arrow, on the front page and the cards. */
.more {
  font: var(--text-headline);
  color: var(--color-brand-text);
}

a.more,
.topic .more {
  text-decoration: none;
}

.more::after {
  content: " →";
}

/* The front page's way into each topic page: whole cards are links. */
.topics {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.topic {
  display: grid;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--motion-fast) var(--motion-ease);
}

.topic:hover {
  border-color: var(--color-brand);
}

.topic-name {
  font: var(--text-title);
}

.topic-text {
  color: var(--color-text-muted);
}

.topic .more {
  align-self: end;
  margin-top: var(--space-2);
}

/* The letters of § 3a, as a list a leader can check against. */
.rules {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: grid;
  gap: var(--space-2);
  max-width: 36em;
}

.rules li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.rule-letter {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  color: var(--color-on-brand);
  font: var(--text-headline);
}

/* The doctor's year in numbers, the way the history page shows it. */
.yearstats {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.yearstats-year {
  font: var(--text-title);
  margin-bottom: var(--space-4);
}

.yearstats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.yearstats-grid div {
  display: grid;
}

.yearstats-number {
  font: var(--text-numeral);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* --- screenshots of the product ------------------------------------------ */

.shot {
  min-width: 0;
  margin: var(--space-5) 0 0;
}

.shot a {
  display: block;
}

.shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--color-text) 12%, transparent);
}

.shot figcaption {
  margin-top: var(--space-2);
}

/* A screen of the product drawn with the app's own styles (no screenshot), so
   it follows light and dark mode like the rest of the page. */
.demo {
  min-width: 0;
  margin: var(--space-5) 0 0;
}

.demo-frame {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--color-text) 12%, transparent);
}

.demo-title {
  font: var(--text-title);
  margin: 0 0 var(--space-3);
}

.demo-list {
  margin: 0;
}

.demo-list .button {
  pointer-events: none;
}

/* Badges wrap as a row with even gaps; the app's left margin indents a wrapped line. */
.demo .comp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.demo .comp-badges .pill.comp {
  margin-left: 0;
}

.demo figcaption {
  margin-top: var(--space-2);
}

/* --- prices ------------------------------------------------------------- */

.calc {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.calc-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.calc-row input {
  flex: 1;
  accent-color: var(--color-brand);
  min-height: var(--size-tap);
}

.calc-doctors {
  min-width: 3ch;
  text-align: right;
  font: var(--text-title);
  font-variant-numeric: tabular-nums;
}

.calc-month {
  font: var(--text-body);
}

.calc-amount {
  font: var(--text-numeral);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* --- the ask ------------------------------------------------------------ */

.cta-band {
  margin: var(--space-6) var(--space-4) 0;
  padding: var(--space-7) 0;
  border-radius: var(--radius-xl);
  background: var(--color-zone);
  color: var(--color-on-zone);
}

.cta-band .band-inner {
  padding: 0 var(--space-5);
}

.cta-band .band-lead {
  color: var(--color-on-zone-muted);
}

.cta-mail {
  margin-top: var(--space-3);
  color: var(--color-on-zone-muted);
}

.site-footer {
  padding: var(--space-6) 0 max(var(--space-6), env(safe-area-inset-bottom));
}

.site-footer .brand {
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.footer-grid {
  display: grid;
  gap: var(--space-5);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  font: var(--text-callout);
}

/* --- wide screens ------------------------------------------------------- */

@media (min-width: 860px) {
  .cta-band .band-inner {
    padding: 0 var(--space-7);
  }

  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .phone {
    justify-self: end;
  }

  .split {
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-7);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-four {
    grid-template-columns: repeat(2, 1fr);
  }

  .facts,
  .topics {
    grid-template-columns: 1fr 1fr;
  }

  /* An odd number of topics: the last one fills the row instead of leaving a hole. */
  .topics > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-end;
  }

  .cta-band {
    max-width: 1048px;
    margin-left: auto;
    margin-right: auto;
  }
}

.cta-mail a {
  color: inherit;
}

/* Room for all the menu links: from here the sheet is not needed. */
@media (min-width: 1000px) {
  .steps-four {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* The whole menu needs about 1100px next to the wordmark (measured at 1160px,
   18.11.2026). Narrower, it folds into «Meny». */
@media (min-width: 1160px) {
  .site-nav-links {
    display: flex;
    margin-left: var(--space-4);
    gap: 0;
  }

  .site-nav-link {
    padding: 0 var(--space-2);
  }

  .site-nav-login {
    display: inline-flex;
    flex: none;
    white-space: nowrap;
  }

  .site-nav-menu {
    display: none;
  }
}

/* The phone on the landing page: fixed values that the app sets per shift
   (no style attributes, docs/beslutninger/0023). */
.daytrack-bar .demo-evening {
  left: 91.67%;
  width: 8.33%;
}

.daytrack-bar .demo-morning {
  left: 0%;
  width: 33.33%;
}

.shift-stripe.is-dag {
  --shift-colour: var(--shift-dag);
}

.shift-stripe.is-kveld {
  --shift-colour: var(--shift-kveld);
}
