/* Landing (/): text column + phone mockup. Prefix .ld-
   The two halves of the text column are query containers, because their width swings from ~360 px (phone)
   to ~760 px (wide desktop) independently of the viewport. */

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

.ld-stage {
  container: stage / inline-size;
  display: grid; gap: clamp(36px, 6vw, 56px);
  width: 100%; max-width: 1320px; margin-inline: auto; padding: 20px var(--gutter) 44px;
  grid-template-areas: "hero" "phone" "rest";
}
.ld-hero { grid-area: hero; container: hero / inline-size; }
.ld-phone { grid-area: phone; }
.ld-rest { grid-area: rest; container: rest / inline-size; display: grid; gap: clamp(44px, 5.2vw, 76px); min-width: 0; }

@media (min-width: 900px) {
  .ld-stage {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "hero phone" "rest phone"; grid-template-rows: auto 1fr;
    column-gap: clamp(24px, 4vw, 72px); row-gap: clamp(44px, 5.2vw, 76px); padding: 24px clamp(24px, 4vw, 64px) 64px;
  }
  .ld-phone { position: sticky; top: 24px; align-self: start; }
}

.ld-stage :focus-visible { outline-color: var(--olive-strong); }
.ld-stage h1, .ld-stage h2, .ld-stage h3, .ld-stage p, .ld-stage ul, .ld-stage ol, .ld-stage figure { margin: 0; }
.ld-stage ul, .ld-stage ol { padding: 0; list-style: none; }

/* ---------------------------------------------------------------- shared */
.ld-eyebrow { display: flex; align-items: center; gap: 10px; font: 800 var(--fs-xs)/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.ld-eyebrow--inv { color: color-mix(in srgb, var(--surface) 78%, transparent); }
.ld-h2 { font: 800 clamp(1.7rem, 4.6cqi, 2.5rem)/1.05 var(--font-display); letter-spacing: -0.028em; text-wrap: balance; }
.ld-h2--inv { color: var(--surface); }
.ld-section__head { display: grid; gap: 8px; margin-bottom: 24px; }
.ld-section__sub { color: var(--ink-2); font-size: var(--fs-base); line-height: 1.5; max-width: 52ch; }

@keyframes ld-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ld-rise { animation: ld-rise 0.65s var(--ease) both; animation-delay: var(--d, 0ms); }
.ld-hero > .ld-rise:nth-child(3) { --d: 60ms; }
.ld-hero > .ld-rise:nth-child(4) { --d: 120ms; }
.ld-hero > .ld-rise:nth-child(5) { --d: 200ms; }
.ld-hero > .ld-rise:nth-child(6) { --d: 280ms; }

/* ------------------------------------------------------------------ hero */
.ld-hero { position: relative; display: grid; gap: 18px; justify-items: start; align-content: start; padding-top: 4px; overflow-x: clip; }
.ld-hero > :not(.ld-loop) { position: relative; z-index: 1; }
.ld-loop {
  position: absolute; z-index: 0; pointer-events: none; top: 8%; right: -16%; width: min(118%, 940px); height: auto; opacity: 0.17;
  -webkit-mask-image: linear-gradient(100deg, transparent 12%, #000 52%); mask-image: linear-gradient(100deg, transparent 12%, #000 52%);
}
.ld-loop path { vector-effect: non-scaling-stroke; }
.ld-hero__top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: clamp(14px, 3.6vw, 40px); }
.ld-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.ld-logo__text { display: grid; line-height: 1; }
.ld-logo__name { font: 800 32px/1 var(--font-display); letter-spacing: -0.02em; color: var(--logo); }
.ld-logo__sub { font: 700 13px/1.2 var(--font-body); color: var(--ink-2); margin-top: 3px; letter-spacing: 0.02em; }
.ld-tag {
  font: 800 var(--fs-2xs)/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 11px; border-radius: var(--r-pill);
  background: var(--ochre-soft); color: var(--ochre-strong); border: 1px solid color-mix(in srgb, var(--ochre-strong) 38%, transparent); white-space: nowrap;
}
.ld-waymark { flex: none; width: 24px; height: 14px; border-radius: 2px; background: linear-gradient(var(--gr-white) 50%, var(--gr-red) 50%); box-shadow: 0 0 0 1px var(--line-strong); }
.ld-title { margin-bottom: 10px; max-width: 13.5em; font: 800 clamp(2.2rem, 7.6cqi, 4.35rem)/1.01 var(--font-display); letter-spacing: -0.034em; text-wrap: balance; }
.ld-nb { white-space: nowrap; }
.ld-title__hl { position: relative; display: inline-block; color: var(--olive); white-space: nowrap; }
.ld-title__wave { position: absolute; left: 0; bottom: -0.16em; width: 100%; height: 0.2em; overflow: visible; }
.ld-lede { max-width: 50ch; font-size: var(--fs-md); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.ld-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); gap: 12px; max-width: 29rem; margin-top: 6px; }

/* ----------------------------------------------------------------- facts */
.ld-facts-wrap { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
.ld-facts { display: grid; grid-template-columns: repeat(6, 1fr); }
.ld-fact { grid-column: span 2; display: grid; align-content: start; gap: 8px; padding: 16px 12px 16px 14px; }
.ld-fact:nth-child(1), .ld-fact:nth-child(3) { grid-column: span 3; }
.ld-fact:nth-child(1) { order: 1; padding-left: 0; }
.ld-fact:nth-child(3) { order: 2; border-left: 1px solid var(--line); }
.ld-fact:nth-child(2) { order: 3; padding-left: 0; border-top: 1px solid var(--line); }
.ld-fact:nth-child(4), .ld-fact:nth-child(5) { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ld-fact:nth-child(4) { order: 4; }
.ld-fact:nth-child(5) { order: 5; }
.ld-fact__value { display: flex; align-items: baseline; gap: 5px; font: 700 clamp(2.5rem, 9cqi, 3.9rem)/0.88 var(--font-data); letter-spacing: -0.005em; color: var(--ink); }
.ld-fact__value small { font-size: 0.4em; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2); text-transform: uppercase; }
.ld-fact__label { font: 800 var(--fs-2xs)/1.25 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); text-wrap: balance; }
.ld-facts__note { margin: 0; padding: 10px 0 12px; border-top: 1px solid var(--line); font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
@container rest (min-width: 580px) {
  .ld-facts { grid-template-columns: repeat(5, 1fr); }
  .ld-fact:nth-child(n) { grid-column: auto; order: 0; border: 0; padding-left: 18px; }
  .ld-fact:first-child { padding-left: 0; }
  .ld-fact:nth-child(n + 2) { border-left: 1px solid var(--line); }
  .ld-fact__value { font-size: clamp(2.6rem, 6.6cqi, 3.6rem); }
}

/* -------------------------------------------------------------- features */
.ld-tiles { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.ld-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 20px 22px; background: var(--surface); }
.ld-tile[data-tone="olive"] { --tone: var(--olive); --tone-ink: var(--on-accent); }
.ld-tile[data-tone="med"] { --tone: var(--med); --tone-ink: var(--on-accent); }
.ld-tile[data-tone="earth"] { --tone: var(--earth); --tone-ink: var(--on-accent); }
.ld-tile[data-tone="ochre"] { --tone: var(--ochre); --tone-ink: var(--on-ochre); }
.ld-tile__top { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ld-tile__icon { width: 48px; height: 48px; border-radius: 16px 16px 16px 4px; display: grid; place-items: center; background: var(--tone); color: var(--tone-ink); }
.ld-tile__icon svg { width: 24px; height: 24px; }
.ld-tile__no { font: 600 2rem/1 var(--font-data); color: var(--ink-3); }
.ld-tile__title { font: 700 var(--fs-md)/1.2 var(--font-display); letter-spacing: -0.012em; text-wrap: balance; }
.ld-tile__text { font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
@container rest (max-width: 519px) {
  .ld-tile { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 6px; align-content: start; justify-items: start; }
  .ld-tile__top { grid-row: 1 / span 2; width: auto; margin: 0; align-self: start; }
  .ld-tile__no { display: none; }
  .ld-tile__title, .ld-tile__text { grid-column: 2; }
}
@container rest (min-width: 520px) {
  .ld-tiles { grid-template-columns: repeat(2, 1fr); }
  .ld-tile { padding: 24px 24px 26px; }
}

/* -------------------------------------------------------------------- QR */
.ld-qr {
  display: grid; grid-template-columns: 1fr; justify-items: center; gap: 24px; text-align: center; padding: 28px 22px; border-radius: var(--r-xl);
  background-color: var(--med);
  background-image: repeating-radial-gradient(circle at 104% -8%, transparent 0 20px, color-mix(in srgb, var(--surface) 9%, transparent) 20px 21.5px);
  color: var(--surface); box-shadow: var(--shadow-2);
}
.ld-qr__code { display: grid; justify-items: center; gap: 12px; }
.ld-qr__img { width: 148px; height: 148px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); }
.ld-qr__code figcaption { text-align: center; max-width: 22ch; font: 800 var(--fs-sm)/1.3 var(--font-body); letter-spacing: 0.01em; color: var(--surface); text-wrap: balance; }
.ld-qr__copy { display: grid; gap: 10px; justify-items: center; }
.ld-qr__text { max-width: 44ch; font-size: var(--fs-base); line-height: 1.6; color: color-mix(in srgb, var(--surface) 90%, transparent); text-wrap: pretty; }
.ld-qr__url { margin-top: 4px; padding: 5px 12px; border-radius: var(--r-pill); border: 1px dashed color-mix(in srgb, var(--surface) 50%, transparent); font: 600 1.15rem/1.2 var(--font-data); letter-spacing: 0.03em; color: var(--surface); overflow-wrap: anywhere; }
@container rest (min-width: 560px) {
  .ld-qr { grid-template-columns: auto 1fr; justify-items: start; gap: 36px; text-align: left; padding: 32px 36px; }
  .ld-qr__copy { justify-items: start; }
}
:root { --qr-ink: #1d2329; }

/* ----------------------------------------------------------------- share */
.ld-share { display: grid; gap: 16px; }
.ld-share__row { display: flex; flex-wrap: wrap; gap: 10px; }
.ld-share__row .btn { min-height: 46px; }
.ld-share__links { display: flex; flex-wrap: wrap; gap: 8px; }
.ld-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px 0 12px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 800 var(--fs-sm)/1 var(--font-body); text-decoration: none;
}
.ld-chip svg { width: 18px; height: 18px; flex: none; }
.ld-chip:hover { border-color: var(--ink); }
.ld-share__status { min-height: 1.4em; font: 700 var(--fs-sm)/1.4 var(--font-body); color: var(--olive-strong); }

/* ---------------------------------------------------------------- footer */
.ld-foot { max-width: 1320px; margin-inline: auto; padding: 0 var(--gutter); }
@media (min-width: 900px) { .ld-foot { padding-inline: clamp(24px, 4vw, 64px); } }
.ld-foot .foot { padding-top: 1.5rem; }
