/* ---- landing page ---- *//* Layered on style.css: same tokens, same terminal, no new palette. */

.lp{max-width:var(--maxw); margin:0 auto; padding:0 20px 96px;}

/* --- top bar --- */
.lp-top{border-bottom:1px solid var(--line); background:var(--surface); position:sticky; top:0; z-index:20;}
.lp-top-in{max-width:var(--maxw); margin:0 auto; padding:12px 20px; display:flex; align-items:center; gap:16px;}
.lp-top .wordmark{font-size:1.05rem;}
.lp-top nav{margin-left:auto; display:flex; align-items:center; gap:8px;}
.lp-top nav a{font-family:var(--mono); font-size:.78rem; letter-spacing:.04em; color:var(--muted); text-decoration:none; padding:7px 10px; border-radius:var(--r);}
.lp-top nav a:hover{color:var(--ink);}
.lp-top nav a.cta{border:1px solid var(--accent); color:var(--accent-ink);}
.lp-top nav a.cta:hover{background:var(--accent); color:#14100a;}
@media (max-width:620px){ .lp-top nav a.hide-sm{display:none;} }

/* --- hero --- */
/* One column, deliberately. Side by side, the terminal got roughly 530px —
   under the ~600px that 80-column output needs — so it carried a horizontal
   scrollbar on top of its vertical one. Two scrollbars on the product's best
   asset. Full width fits the output outright and neither bar appears. */
.lp-hero{display:grid; grid-template-columns:minmax(0,1fr); gap:34px; align-items:start; padding:48px 0 8px;}
@media (max-width:940px){ .lp-hero{gap:28px; padding-top:32px;} }

.lp-h1{font-family:var(--mono); font-size:clamp(1.7rem,3.6vw,2.6rem); line-height:1.12; letter-spacing:-.02em; margin:8px 0 16px; text-wrap:balance;}
.lp-h1 em{font-style:normal; color:var(--accent-ink);}
.lp-sub{color:var(--muted); font-size:1.03rem; max-width:56ch; margin:0 0 24px;}
.lp-sub strong{color:var(--ink); font-weight:600;}

.lp-cta{display:flex; gap:10px; flex-wrap:wrap; align-items:center;}
.lp-cta .btn{padding:11px 20px; font-size:.9rem;}
.lp-micro{font-size:.8rem; color:var(--muted); margin:14px 0 0; display:flex; gap:14px; flex-wrap:wrap;}
.lp-micro span{display:inline-flex; align-items:center; gap:6px;}
.lp-micro span::before{content:""; width:5px; height:5px; border-radius:50%; background:var(--ok); flex:none;}

/* the hero terminal is shorter than the in-app one — it is a demo, not a workspace */
.lp-hero .term{height:400px;}
@media (max-width:940px){ .lp-hero .term{height:300px;} }
.lp-termcap{font-size:.78rem; color:var(--muted); margin:10px 0 0;}
.lp-termcap code{background:var(--surface2); padding:1px 5px; border-radius:3px; font-size:.92em;}

/* --- generic section --- */
.lp-sec{padding:56px 0 0; scroll-margin-top:70px;}
.lp-sec > h2{font-size:1.4rem; margin:0 0 6px;}
.lp-sec > .lede{margin-bottom:22px;}
.lp-rule{border:0; border-top:1px solid var(--line); margin:56px 0 0;}

/* --- card grids --- */
.lp-grid{display:grid; gap:14px;}
.lp-grid.c3{grid-template-columns:repeat(3,1fr);}
.lp-grid.c2{grid-template-columns:repeat(2,1fr);}
.lp-grid.c6{grid-template-columns:repeat(3,1fr);}
@media (max-width:860px){ .lp-grid.c3,.lp-grid.c6{grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .lp-grid.c3,.lp-grid.c2,.lp-grid.c6{grid-template-columns:1fr;} }
.lp-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:18px;}
.lp-card h3{font-size:.98rem; margin:0 0 6px;}
.lp-card p{margin:0; color:var(--muted); font-size:.9rem;}
.lp-card .kbd{font-family:var(--mono); font-size:.72rem; color:var(--muted); display:block; margin-top:10px;}

/* --- pricing --- */
.lp-price{display:grid; grid-template-columns:repeat(2,1fr); gap:14px; align-items:stretch;}
@media (max-width:700px){ .lp-price{grid-template-columns:1fr;} }
.lp-tier{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:22px; display:flex; flex-direction:column;}
.lp-tier.feature{border-color:var(--accent);}
.lp-tier h3{font-size:1.05rem; margin:0 0 2px;}
.lp-tier .amt{font-family:var(--mono); font-size:2rem; letter-spacing:-.02em; margin:10px 0 2px;}
.lp-tier .amt small{font-size:.8rem; color:var(--muted); letter-spacing:0; font-weight:400;}
/* The reference price. Muted and smaller so the price being charged is still
   the one the eye lands on — a struck-through number rendered at full weight
   reads as the price for the half-second before the strike registers. */
.was{color:var(--muted); font-weight:400; text-decoration-thickness:.08em;}
.lp-tier .amt .was{font-size:1.15rem;}
/* .btn is inline-flex, which throws away the whitespace-only text nodes either
   side of the <s> — without these margins the button reads "·€17.90€7.90". */
.btn .was{font-size:.9em; opacity:.75; margin:0 .4em 0 .3em;}
.lp-promo{font-size:.82rem; color:var(--muted); margin:2px 0 0; line-height:1.45;}
.lp-promo b{color:var(--ink);}
.lp-tier ul{list-style:none; padding:0; margin:16px 0 20px; display:grid; gap:8px;}
.lp-tier li{font-size:.9rem; color:var(--muted); padding-left:20px; position:relative;}
.lp-tier li::before{content:"→"; position:absolute; left:0; color:var(--accent); font-family:var(--mono);}
.lp-tier .btn{margin-top:auto;}
.lp-taxnote{font-size:.8rem; color:var(--muted); margin:14px 0 0;}

/* --- sample question --- */
.lp-q{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:20px;}
.lp-q .stem{margin:0 0 12px;}
.lp-q pre{background:var(--term-bg); color:var(--term-ink); font-size:.76rem; line-height:1.5; padding:12px 14px; border-radius:var(--r); overflow-x:auto; margin:0 0 16px;}
.lp-opts{display:grid; gap:8px;}
.lp-opt{text-align:left; width:100%; background:var(--bg); border:1px solid var(--line); border-radius:var(--r); padding:11px 14px; color:var(--ink); font-size:.9rem; line-height:1.45; display:flex; gap:10px;}
.lp-opt:hover:not(:disabled){border-color:var(--accent);}
.lp-opt .ltr{font-family:var(--mono); color:var(--muted); flex:none;}
.lp-opt.right{border-color:var(--ok); background:var(--ok-soft);}
.lp-opt.right .ltr{color:var(--ok);}
.lp-opt.wrong{border-color:var(--crit); background:var(--crit-soft);}
.lp-opt.wrong .ltr{color:var(--crit);}
.lp-why{margin:16px 0 0; padding:14px 16px; border-left:3px solid var(--accent); background:var(--surface2); border-radius:0 var(--r) var(--r) 0; font-size:.9rem; line-height:1.6;}
.lp-why b{display:block; margin-bottom:4px;}
.lp-why code{font-size:.86em;}

/* The line above each sample that says which tier it came from. Two questions
   next to each other only prove anything if it is obvious which is which. */
.lp-qtag{font-size:.88rem; color:var(--muted); line-height:1.55; margin:26px 0 10px;}
.lp-qtag .lvl{display:inline-block; font-family:var(--mono); font-size:.68rem; letter-spacing:.08em;
  text-transform:uppercase; padding:3px 8px; border-radius:999px; border:1px solid; margin-right:8px;
  vertical-align:1px;}
.lp-qtag .lvl.free{color:var(--ok); border-color:var(--ok); background:var(--ok-soft);}
.lp-qtag .lvl.paid{color:var(--accent-ink); border-color:var(--accent); background:var(--accent-soft);}

/* --- difficulty heatmap --- */
.lp-heat{overflow-x:auto;}
.lp-heat table{border-collapse:separate; border-spacing:4px; width:100%; min-width:560px;}
.lp-heat th{text-align:left; font-weight:600; font-size:.85rem; padding:6px 10px;}
/* Column headings align at the top so the labels sit on one line regardless of
   how many lines each blurb wraps to; row headings centre against their row. */
.lp-heat thead th{vertical-align:top;}
.lp-heat thead th span{display:block; font-family:var(--mono); font-size:.72rem; letter-spacing:.06em;
  text-transform:uppercase; color:var(--muted);}
.lp-heat thead th small{display:block; font-weight:400; font-size:.76rem; color:var(--muted);
  margin-top:4px; max-width:22ch; line-height:1.35;}
.lp-heat tbody th{white-space:nowrap; vertical-align:middle;}
.lp-heat td{text-align:center; padding:10px 8px; border-radius:var(--r); border:1px solid var(--line);
  background:var(--surface);}
.lp-heat td b{font-family:var(--mono); font-size:1.15rem; font-weight:600; display:block;}
.lp-heat td small{display:block; font-size:.66rem; color:var(--muted); margin-top:2px;
  font-family:var(--mono); letter-spacing:.02em;}
/* Five buckets, tinted with the accent so density reads at a glance without
   inventing a second palette. h0 is an empty cell and stays flat. */
.lp-heat td.h0{color:var(--muted); background:var(--bg);}
.lp-heat td.h1{background:color-mix(in srgb, var(--accent-soft) 40%, var(--surface));}
.lp-heat td.h2{background:color-mix(in srgb, var(--accent-soft) 65%, var(--surface));}
.lp-heat td.h3{background:color-mix(in srgb, var(--accent-soft) 85%, var(--surface)); border-color:var(--accent-soft);}
.lp-heat td.h4{background:var(--accent-soft); border-color:var(--accent); }
.lp-heat td.tot{background:none; border-color:transparent; color:var(--muted);}
.lp-heat td.tot b{font-size:1rem;}
.lp-heat tfoot td{background:none; border-color:transparent; color:var(--muted);
  font-family:var(--mono); font-size:.9rem;}
.lp-heat tfoot th{color:var(--muted); font-weight:400;}
.lp-heatnote{font-size:.88rem; color:var(--muted); margin:14px 0 0; max-width:70ch; line-height:1.6;}

/* The free-vs-paid difference, stated where the buying decision is made. */
.lp-levelup{font-size:.92rem; color:var(--muted); line-height:1.65; max-width:78ch;
  margin:0 0 22px; padding:14px 16px; border-left:3px solid var(--accent);
  background:var(--surface2); border-radius:0 var(--r) var(--r) 0;}
.lp-levelup b{color:var(--ink);}

/* --- /q/ question pages ---
   Rendered inside the legal shell, so these only need to style what the
   question itself adds. The correct option is marked in the markup rather than
   revealed on click: these pages are for a reader who arrived from a search
   result wanting the answer, not for someone drilling. */
.qp-code{background:var(--term-bg); color:var(--term-ink); font-size:.78rem; line-height:1.55;
  padding:14px 16px; border-radius:var(--r); overflow-x:auto; margin:0 0 20px;
  white-space:pre; font-family:var(--mono);}
.qp-opts{list-style:none; padding:0; margin:0 0 8px; display:grid; gap:8px;}
.qp-opt{display:flex; gap:10px; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r); padding:11px 14px; font-size:.92rem; line-height:1.5;}
.qp-opt .ltr{font-family:var(--mono); color:var(--muted); flex:none;}
.qp-opt.right{border-color:var(--ok); background:var(--ok-soft);}
.qp-opt.right .ltr{color:var(--ok); font-weight:700;}
.qp-answer{border-left:3px solid var(--ok); background:var(--surface2); padding:12px 16px;
  border-radius:0 var(--r) var(--r) 0; margin:0 0 8px;}
.qp-more,.qp-index{list-style:none; padding:0; margin:0; display:grid; gap:8px;}
.qp-index li{display:flex; align-items:baseline; gap:10px; justify-content:space-between;
  border-bottom:1px solid var(--line); padding-bottom:8px;}
.qp-more li{padding-left:18px; position:relative;}
.qp-more li::before{content:"→"; position:absolute; left:0; color:var(--accent); font-family:var(--mono);}

/* --- author --- */
.lp-author{display:flex; gap:18px; align-items:flex-start; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:20px;}
.lp-author .mark{font-family:var(--mono); font-size:1.5rem; color:var(--accent); border:1px solid var(--line); border-radius:var(--r); width:56px; height:56px; display:grid; place-items:center; flex:none;}
.lp-author p{margin:0 0 8px; color:var(--muted); font-size:.92rem;}
.lp-author p:last-child{margin-bottom:0;}

/* --- faq --- */
.lp-faq details{border-bottom:1px solid var(--line); padding:14px 0;}
.lp-faq details:first-of-type{border-top:1px solid var(--line);}
.lp-faq summary{cursor:pointer; font-weight:600; font-size:.95rem; list-style:none; display:flex; align-items:center; gap:10px;}
.lp-faq summary::-webkit-details-marker{display:none;}
.lp-faq summary::before{content:"+"; font-family:var(--mono); color:var(--accent); flex:none;}
.lp-faq details[open] summary::before{content:"−";}
.lp-faq p{margin:10px 0 0 22px; color:var(--muted); font-size:.9rem; line-height:1.6; max-width:72ch;}

/* --- closing band --- */
.lp-band{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:32px; text-align:center; margin-top:56px;}
.lp-band h2{margin:0 0 8px;}
.lp-band p{color:var(--muted); margin:0 0 20px;}
.lp-band .lp-cta{justify-content:center;}

/* --- legal pages --- */
.legal{max-width:76ch; margin:0 auto; padding:40px 20px 96px;}
.legal h1{font-family:var(--mono); font-size:1.7rem; letter-spacing:-.02em; margin:6px 0 8px;}
.legal .updated{color:var(--muted); font-size:.85rem; margin:0 0 32px;}
.legal h2{font-size:1.05rem; margin:36px 0 10px;}
.legal h3{font-size:.95rem; margin:22px 0 6px;}
.legal p, .legal li{color:var(--muted); line-height:1.7;}
.legal p{margin:0 0 12px;}
.legal ul, .legal ol{margin:0 0 12px; padding-left:22px;}
.legal li{margin:0 0 6px;}
.legal a{color:var(--accent-ink);}
.legal strong{color:var(--ink);}
.legal .ident{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:18px 20px; margin:0 0 8px;}
.legal .ident dl{margin:0; display:grid; grid-template-columns:auto 1fr; gap:6px 18px;}
.legal .ident dt{font-family:var(--mono); font-size:.78rem; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); align-self:baseline;}
.legal .ident dd{margin:0; color:var(--ink); font-size:.92rem;}
@media (max-width:520px){ .legal .ident dl{grid-template-columns:1fr; gap:2px 0;} .legal .ident dd{margin-bottom:10px;} }
.legal .callout{border-left:3px solid var(--accent); background:var(--surface2); border-radius:0 var(--r) var(--r) 0; padding:14px 16px; margin:0 0 16px;}
.legal .callout p:last-child{margin-bottom:0;}
.legal .backlink{font-family:var(--mono); font-size:.78rem; color:var(--muted); text-decoration:none;}
.legal .backlink:hover{color:var(--ink);}

/* --- footer --- */
.lp-foot{border-top:1px solid var(--line); margin-top:64px; padding:24px 0 0; display:flex; gap:16px; flex-wrap:wrap; align-items:center; font-size:.82rem; color:var(--muted);}
.lp-foot a{color:var(--muted); text-decoration:none;}
.lp-foot a:hover{color:var(--ink); text-decoration:underline;}
.lp-foot .sp{margin-left:auto;}
@media (max-width:600px){ .lp-foot .sp{margin-left:0; width:100%;} }


/* --- contact section layout. The form itself is styled in style.css, because
   /app loads that and never loads this file. --- */
.lp-contact{border-top:1px solid var(--line); margin-top:56px; padding:48px 0 8px;}
.lp-contact-in{max-width:680px;}
.lp-contact h2{margin-bottom:8px;}

/* --- field notes page --- */
.fn-toc{margin:22px 0 34px; padding:16px 18px; background:var(--surface2);
  border:1px solid var(--line); border-radius:var(--r);}
.fn-toc ul{margin:0; padding-left:18px; columns:2; column-gap:28px;}
@media (max-width:640px){ .fn-toc ul{columns:1;} }
.fn-toc li{margin:4px 0; break-inside:avoid;}
.fn-note{margin:0 0 38px; scroll-margin-top:24px;}
.fn-note h2{margin-bottom:6px;}
/* The anchor is the point of the page — it should look like a heading and
   behave like a link you can copy. */
.fn-anchor{color:inherit; text-decoration:none;}
.fn-anchor:hover{color:var(--accent-ink);}
.fn-anchor:hover::after{content:" #"; color:var(--accent); font-weight:400;}
.fn-lead{color:var(--muted); margin:0 0 12px; max-width:70ch;}
.fn-tablewrap{overflow-x:auto;}
.fn-cta{margin-top:40px; padding:18px 20px; border:1px solid var(--accent);
  border-left-width:3px; border-radius:var(--r); background:var(--accent-soft);}
.fn-cta p{margin:0; max-width:70ch;}
.lead-p{font-size:1.02rem; line-height:1.65; color:var(--muted); max-width:70ch;}
