/* ============================================================================
   landing.css — the homepage.

   This page has to out-build Tier 3, because it IS the portfolio. A prospect
   deciding whether to spend $2,497 will judge the work by this page before
   they ever open a demo. Everything Tier 3 sells appears here, plus the WebGL
   hero that no tier includes.

   Requires tokens.css + bundle-clean.css.
   ========================================================================== */

/* ============================================================================
   HERO — WebGL field over a CSS gradient
   The gradient is not a placeholder, it is the guaranteed floor: it paints
   before any script runs, and it is what remains if WebGL is unavailable, the
   context is lost, or reduced-motion is set.
   ========================================================================== */
.lhero{
  position:relative;min-height:100svh;display:flex;align-items:center;
  overflow:hidden;isolation:isolate;
  background:
    radial-gradient(120% 90% at 15% 10%, color-mix(in srgb,var(--accent) 26%,transparent) 0%, transparent 55%),
    radial-gradient(100% 80% at 85% 30%, color-mix(in srgb,var(--alt,var(--accent)) 22%,transparent) 0%, transparent 60%),
    linear-gradient(165deg, var(--brand-800) 0%, var(--bg) 65%);
}
#heroCanvas{
  position:absolute;inset:0;width:100%;height:100%;z-index:0;
  opacity:0;transition:opacity 1.4s var(--ease-out);pointer-events:none;
}
#heroCanvas.is-live{opacity:1}

/* Light theme: the shader pulls --brand-900/--brand-700, which stay dark in
   light mode by design (the ramp is a brand primitive, not a semantic token).
   At full opacity that puts dark ink on a dark field. Dimmed to a wash, the
   same field reads as a warm tint over paper and the ink clears AA again.
   The gradient floor is remapped to paper for the no-WebGL case. */
html[data-theme="light"] #heroCanvas.is-live{opacity:.22}
html[data-theme="light"] .lhero{
  background:
    radial-gradient(120% 90% at 15% 10%, color-mix(in srgb,var(--accent) 16%,transparent) 0%, transparent 55%),
    radial-gradient(100% 80% at 85% 30%, color-mix(in srgb,var(--alt,var(--accent)) 12%,transparent) 0%, transparent 60%),
    linear-gradient(165deg, var(--paper-elev-2) 0%, var(--bg) 65%);
}
@media (prefers-color-scheme: light){
  html:not([data-theme]) #heroCanvas.is-live{opacity:.22}
  html:not([data-theme]) .lhero{
    background:
      radial-gradient(120% 90% at 15% 10%, color-mix(in srgb,var(--accent) 16%,transparent) 0%, transparent 55%),
      radial-gradient(100% 80% at 85% 30%, color-mix(in srgb,var(--alt,var(--accent)) 12%,transparent) 0%, transparent 60%),
      linear-gradient(165deg, var(--paper-elev-2) 0%, var(--bg) 65%);
  }
}

/* Grain. One inline SVG turbulence, no image request — kills the banding that
   large soft gradients show on 8-bit displays. */
.lhero::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.lhero-inner{position:relative;z-index:2;width:100%;padding-block:clamp(120px,16vh,180px) clamp(60px,9vh,110px)}
.lhero h1{
  font-size:clamp(2.8rem, 1rem + 7.4vw, 7rem);line-height:.94;max-width:15ch;
  margin-bottom:26px;
}
.lhero h1 em{font-style:normal;color:var(--accent)}

/* Headline line reveal — the homepage demos the Tier 2 "animated headline
   typography" feature on itself. Same fail-visible contract as .lreveal: the
   animation only exists under html.has-motion, so a script failure or
   reduced-motion leaves the headline plainly visible. */
.lhero h1 .hl{display:block;overflow:hidden}
.lhero h1 .hl>span,.lhero h1 .hl>em{display:block}
html.has-motion .lhero h1 .hl>span,
html.has-motion .lhero h1 .hl>em{
  transform:translateY(110%);
  animation:hl-up .8s var(--ease-out) forwards;
}
html.has-motion .lhero h1 .hl:nth-child(2)>*{animation-delay:.09s}
html.has-motion .lhero h1 .hl:nth-child(3)>*{animation-delay:.18s}
@keyframes hl-up{to{transform:translateY(0)}}
@media (prefers-reduced-motion:reduce){
  html.has-motion .lhero h1 .hl>span,
  html.has-motion .lhero h1 .hl>em{transform:none;animation:none}
}
.lhero .sub{color:var(--fg-muted);font-size:clamp(1.08rem,1.5vw,1.36rem);max-width:54ch;margin-bottom:38px}

/* Price strip under the headline — the offer, before any scrolling. */
.lprice{display:flex;flex-wrap:wrap;gap:10px 26px;margin-bottom:12px;font-size:.95rem}
.lprice b{font-family:var(--font-display);font-size:1.15rem;color:var(--accent);font-weight:600}
.lprice span{display:inline-flex;align-items:baseline;gap:8px;color:var(--fg-muted)}
.lprice i{font-style:normal}

/* Says the quiet part out loud. Without this line the three prices still invite
   the "so waiting costs more?" reading, because that is the only pattern a
   left-to-right row of rising numbers suggests. */
.lprice-note{
  margin-bottom:38px;max-width:56ch;
  font-size:.88rem;line-height:1.55;color:var(--fg-muted);
}
.lprice span + span{padding-left:26px;border-left:1px solid var(--border-soft)}
@media (max-width:640px){ .lprice span + span{padding-left:0;border-left:0} }

.lhero-ctas{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.lhero-note{margin-top:26px;font-size:.86rem;color:var(--fg-muted);opacity:.85}

.lscroll-cue{
  position:absolute;bottom:26px;left:50%;translate:-50% 0;z-index:2;
  display:flex;flex-direction:column;align-items:center;gap:8px;
  font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--fg-muted);
}
.lscroll-cue i{
  width:1px;height:38px;background:linear-gradient(var(--accent),transparent);
  animation:cue 2.4s ease-in-out infinite;transform-origin:top;
}
@keyframes cue{ 0%,100%{transform:scaleY(.35);opacity:.4} 50%{transform:scaleY(1);opacity:1} }
@media (prefers-reduced-motion:reduce){ .lscroll-cue i{animation:none} }

/* ============================================================================
   TIER CARDS — the three demos
   ========================================================================== */
.ltiers{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:clamp(16px,2vw,24px)}
.ltier{
  position:relative;display:flex;flex-direction:column;
  border-radius:var(--radius-lg);overflow:hidden;
  background:var(--bg-elev);border:1px solid var(--border-soft);
  transition:transform .4s var(--ease-out),border-color .3s,box-shadow .4s;
}
.ltier:hover{transform:translateY(-6px);border-color:var(--accent);box-shadow:var(--shadow-lg)}
.ltier-shot{aspect-ratio:16/11;overflow:hidden;background:var(--bg-elev-2);position:relative}
.ltier-shot img{width:100%;height:100%;object-fit:cover;object-position:top center;transition:transform .7s var(--ease-out)}
.ltier:hover .ltier-shot img{transform:scale(1.045)}
.ltier-badge{
  position:absolute;top:12px;left:12px;z-index:2;padding:5px 12px;border-radius:100px;
  background:rgba(0,0,0,.66);backdrop-filter:blur(8px);color:#fff;
  font-size:.66rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
}
.ltier-body{padding:clamp(20px,2.4vw,28px);display:flex;flex-direction:column;gap:10px;flex:1}
.ltier-body h3{font-size:var(--text-xl)}
.ltier-price{font-family:var(--font-display);font-size:2rem;color:var(--accent);font-weight:600;line-height:1}
.ltier-meta{font-size:.85rem;color:var(--fg-muted)}
.ltier-body p{color:var(--fg-muted);font-size:.95rem;flex:1}
.ltier-link{
  display:inline-flex;align-items:center;gap:8px;margin-top:6px;
  color:var(--accent);font-weight:600;font-size:.94rem;
}
.ltier-link svg{transition:transform var(--transition-interactive)}
.ltier:hover .ltier-link svg{transform:translateX(4px)}

/* Flagship (Immersive) card — quietly senior to the other three: an accent
   border it does not need to earn on hover, and a badge in full accent. No
   ribbons, no gradient text — the tier sells itself or it does not. */
.ltier--flagship{border-color:color-mix(in srgb,var(--accent) 45%,var(--border-soft))}
.ltier--flagship .ltier-badge{background:var(--accent);color:var(--accent-ink)}
.ltier--flagship:hover{box-shadow:0 18px 60px color-mix(in srgb,var(--accent) 22%,transparent)}
/* The flagship spans the row as a wide cinematic card — the layout itself
   says "different class", instead of a fourth identical box wrapping awkwardly. */
.ltier--flagship{grid-column:1/-1;display:grid;grid-template-columns:1.45fr 1fr}
.ltier--flagship .ltier-shot{aspect-ratio:auto;height:100%;min-height:320px}
@media (max-width:760px){
  .ltier--flagship{grid-template-columns:1fr}
  .ltier--flagship .ltier-shot{aspect-ratio:16/11;height:auto;min-height:0}
}

/* ============================================================================
   PROOF — "same engine, three businesses"
   ========================================================================== */
.lproof{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:clamp(18px,2.4vw,30px)}
/* No side-stripe borders — a coloured border-left on a card is the most
   recognisable template tell there is, on a page arguing we don't do templates.
   The accent moves into a small square marker ahead of the heading instead. */
.lproof-item{
  padding:clamp(20px,2.4vw,30px);background:var(--surface-subtle);
  border:1px solid var(--border-soft);border-radius:var(--radius-lg);
  transition:border-color .3s,transform .4s var(--ease-out);
}
.lproof-item:hover{border-color:var(--border-accent);transform:translateY(-3px)}
.lproof-item h4{font-size:1.02rem;margin-bottom:8px}
.lproof-item h4::before{
  content:"";display:inline-block;width:9px;height:9px;margin-right:10px;
  background:var(--accent);border-radius:1px;
}
.lproof-item p{color:var(--fg-muted);font-size:.93rem}

/* ============================================================================
   STEPS
   ========================================================================== */
.lsteps{counter-reset:ls;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:clamp(22px,3vw,40px)}
.lstep{position:relative;padding-top:52px}
.lstep::before{
  counter-increment:ls;content:counter(ls,decimal-leading-zero);
  position:absolute;top:0;left:0;font-family:var(--font-display);
  font-size:2.3rem;font-weight:var(--display-weight,600);color:var(--accent);opacity:.42;line-height:1;
}
.lstep h4{font-size:1.05rem;margin-bottom:8px}
.lstep p{color:var(--fg-muted);font-size:.94rem}

/* ============================================================================
   COMPARISON TABLE
   A real table, not a grid of divs — this is tabular data, and screen readers
   get row/column association for free from <th scope>.
   ========================================================================== */
.lcompare-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.lcompare{width:100%;border-collapse:collapse;min-width:720px} /* four tier columns */

.lcompare thead th{
  padding:22px 16px 20px;text-align:center;vertical-align:bottom;
  border-bottom:1px solid var(--border-soft);position:relative;
}
.lcompare thead th:first-child{width:38%;min-width:220px}
.lcompare thead th.is-popular{background:color-mix(in srgb,var(--accent) 7%,transparent)}
.lc-name{display:block;font-family:var(--font-display);font-size:1.15rem;font-weight:600}
.lc-price{display:block;font-family:var(--font-display);font-size:1.9rem;color:var(--accent);line-height:1.15;margin-top:4px}
.lc-flag{
  display:inline-block;margin-top:8px;padding:3px 10px;border-radius:100px;
  background:var(--accent);color:var(--accent-ink);
  font-size:.6rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
}

.lcompare tbody th{
  text-align:left;font-weight:400;font-family:var(--font-body);
  color:var(--fg-muted);font-size:.95rem;padding:13px 16px 13px 0;
}
.lcompare tbody td{text-align:center;padding:13px 16px;font-size:.92rem}
.lcompare tbody tr{border-bottom:1px solid var(--border-soft)}
.lcompare tbody tr:hover{background:var(--surface-subtle)}
.lcompare td.is-popular,.lcompare tbody tr td:nth-child(3){background:color-mix(in srgb,var(--accent) 4%,transparent)}
.lc-yes{color:var(--accent)}
.lc-yes svg{display:inline-block;vertical-align:-3px}
.lc-no{color:var(--fg-muted);opacity:.4}
.lc-val{color:var(--fg);font-weight:500}

.lcompare tfoot td{padding:22px 12px 0;text-align:center}
.lc-cta{width:100%;padding:12px 18px;font-size:.92rem}

.lcompare-note{
  margin-top:clamp(20px,3vw,30px);color:var(--fg-muted);
  font-size:.93rem;max-width:70ch;
}

/* ============================================================================
   CARE PLAN
   ========================================================================== */
.lcare{
  display:grid;grid-template-columns:1fr auto;gap:clamp(28px,5vw,72px);align-items:center;
  padding:clamp(26px,4vw,48px);border-radius:var(--radius-lg);
  background:var(--bg-elev);border:1px solid var(--border-soft);
}
@media (max-width:760px){ .lcare{grid-template-columns:1fr} }
.lcare-body h2{font-size:var(--text-2xl);margin-bottom:14px}
.lcare-body p{color:var(--fg-muted);max-width:56ch;margin-bottom:22px}
.lcare-price{text-align:center;min-width:200px}
.lcare-amount{
  font-family:var(--font-display);font-size:clamp(2.6rem,2rem + 2vw,3.8rem);
  color:var(--accent);font-weight:600;line-height:1;
}
.lcare-amount span{font-size:.32em;color:var(--fg-muted);font-family:var(--font-body);font-weight:400}
.lcare-price p{color:var(--fg-muted);font-size:.85rem;margin-top:14px;max-width:26ch;margin-inline:auto}

/* ============================================================================
   HONEST BOX — the "what this is not" panel
   Included on purpose. Naming the limits up front disqualifies bad-fit leads
   before they cost an hour, and it buys credibility for every other claim.
   ========================================================================== */
.lhonest{
  border:1px dashed var(--border-soft);border-radius:var(--radius-lg);
  padding:clamp(24px,3vw,38px);background:var(--surface-subtle);max-width:760px;
}
.lhonest h3{font-size:var(--text-xl);margin-bottom:14px}
.lhonest ul{display:flex;flex-direction:column;gap:11px}
.lhonest li{display:flex;gap:12px;color:var(--fg-muted);font-size:.97rem}
.lhonest li::before{content:"—";color:var(--accent);flex:none}

/* ============================================================================
   BIG CTA
   ========================================================================== */
.lcta{position:relative;overflow:hidden;text-align:center;background:var(--bg-elev-2);border-block:1px solid var(--border-soft)}
.lcta .wrap{padding-block:clamp(70px,9vw,130px);position:relative;z-index:2}
.lcta h2{font-size:var(--text-3xl);max-width:18ch;margin:0 auto 18px}
.lcta p{color:var(--fg-muted);max-width:50ch;margin:0 auto 32px}

/* ============================================================================
   FOOTER BRAND BLOCK
   The tagline lives here rather than in the hero. The hero already carries the
   headline, the sub, the price strip and two CTAs — adding a brand line there
   would compete with the offer. In the footer it reads as a sign-off and, for
   anyone who wondered about the name, quietly explains it.
   ========================================================================== */
.lfoot-brand{
  display:flex;flex-direction:column;gap:14px;
  padding-bottom:clamp(30px,4vw,46px);margin-bottom:clamp(26px,3vw,38px);
  border-bottom:1px solid var(--border-soft);
}
.lfoot-tagline{
  font-family:var(--font-display);
  font-size:clamp(1.15rem, 1rem + 1.1vw, 1.7rem);
  font-weight:var(--display-weight,600);
  letter-spacing:var(--display-tracking,-0.02em);
  line-height:1.3;color:var(--fg-muted);max-width:24ch;margin:0;
}
/* The first sentence is the hook and takes the accent; the second explains it
   and steps back. Split into spans by JS rather than styled with ::first-line —
   that pseudo-element targets whatever line the text happens to wrap to, which
   moves with viewport width and would colour half a sentence. */
/* --accent-bright, not --accent. The clamp above drops this to ~20px on a
   phone, below the 24px "large text" threshold, so it has to clear the full
   4.5:1 rather than 3.0:1. Plain --accent measures 4.38 against the footer —
   fine at desktop size, a failure at mobile size. --accent-bright is 5.52 and
   passes at every width. */
.lfoot-tagline .t-lead{color:var(--accent-bright);display:block}

/* Business identity line. Small and quiet — it is a disclosure, not a claim —
   but present, because a service business taking payment should say who it
   legally is and under what licence. */
.lfoot-legalinfo{
  margin-top:16px;font-size:.76rem;color:var(--fg-muted);opacity:.72;line-height:1.6;
}

/* ============================================================================
   SHARED
   ========================================================================== */
.lsection{padding-block:clamp(76px,9vw,140px)}
.lsection-head{max-width:720px;margin-bottom:clamp(38px,5vw,70px)}
.lsection-head h2{font-size:var(--text-3xl);margin-bottom:16px}
.lsection-head p{color:var(--fg-muted);font-size:var(--text-lg)}

/* Reveal — same fail-visible contract as the client template: the hidden state
   only applies once JS has proven it is running. */
html.has-motion .lreveal{opacity:0;transform:translateY(26px)}
html.has-motion .lreveal.in{opacity:1;transform:none;transition:opacity .85s var(--ease-out),transform .85s var(--ease-out)}
@media (prefers-reduced-motion:reduce){ html.has-motion .lreveal{opacity:1!important;transform:none!important} }
