/*
 * 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;
  overflow: hidden;
  background: var(--color-zone);
  color: var(--color-on-zone);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.hero::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -200px;
  width: 640px;
  height: 640px;
  border-radius: var(--radius-pill);
  background: radial-gradient(
    closest-side,
    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);
}

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

.hero-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.hero-nav-link {
  color: var(--color-on-zone);
  font-weight: 600;
  text-decoration: none;
}

.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);
}

/* --- 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 tall screenshot: show the top, and let the rest run out of the frame. */
.shot-tall img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

.coming {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  border-left: 3px solid var(--color-accent);
}

.coming li {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3) 0 var(--space-3) var(--space-5);
}

.coming-name {
  font: var(--text-headline);
}

.coming .caption {
  font: var(--text-callout);
}

/* --- 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);
}

/* --- 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);
  }

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

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

.cta-mail a {
  color: inherit;
}
