/* =====================================================================
   The front door: the landing (index.html), the public pages with its
   chrome (features.html, proof.html) and the sign-up gateway
   (start.html). Builds on the tokens in styles.css.

   Editorial and type-led: big confident display lines, generous section
   rhythm (about 100px on desktop), flat surfaces, centred statements that
   alternate with text beside a real product frame. Glass only on the
   sticky top bar. Celo yellow only for the one filled action, the cursive
   "lokal", and the arrows of secondary links. One orchestrated moment:
   the live converter in the hero.
   ===================================================================== */

.lp { --lp-pad: clamp(56px, 7.5vw, 96px); --lp-w: 1180px; scroll-padding-top: 76px; }
/* the app pages reserve room for their fixed app bar below 1100px; the front door's bar is sticky, in the flow */
html.lp body { padding-top: 0; }
.lp main { padding-top: 0; margin-left: 0; }
.lp .toast { top: 76px; left: 50%; }
.lp .wrap { max-width: var(--lp-w); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--celo); color: var(--on-celo); font-weight: 500; }
.skip:focus { top: 12px; }

/* ---------- the slim top bar (glass: blur 20px, saturate 180%) ---------- */
.lp-bar { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line);
  background: rgba(6, 17, 12, .72); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.lp-bar-in { max-width: var(--lp-w); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: 20px; }
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; margin-right: auto; }
.lp-brand img { width: 30px; height: 30px; }
.lp-links { display: flex; gap: 4px; }
.lp-links a { padding: 8px 12px; border-radius: var(--r-pill); color: var(--text-2); font-size: 14.5px; font-weight: 500; transition: color .2s var(--calm), background-color .2s var(--calm); }
.lp-links a:hover { color: var(--text); background: var(--surface-2); }
.lp-cta { display: flex; align-items: center; gap: 6px; }
.lp-signin { padding: 8px 12px; color: var(--text); font-size: 14.5px; font-weight: 500; border-radius: var(--r-pill); white-space: nowrap; }
.lp-signin:hover { background: var(--surface-2); }
.lp-bar .btn-primary { padding: 10px 16px; }
@media (max-width: 900px) { .lp-links { display: none; } }
@media (max-width: 380px) { .lp-bar-in { gap: 8px; } .lp-brand span { display: none; } }

/* ---------- type ---------- */
.lp-eyebrow { display: block; margin-bottom: 18px; font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.lp-display { font-size: clamp(46px, 7.4vw, 108px); font-weight: 300; line-height: .98; letter-spacing: -0.045em; text-wrap: balance; }
.lp-display em, .lp-h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.02em; color: var(--celo); padding-right: .02em; }
/* the italic face has taller ascenders: keep its line as tight as the others */
.lp-display em { line-height: 0; }
.lp-h2 { font-size: clamp(34px, 4.8vw, 64px); font-weight: 300; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.lp-h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.3; }
.lp-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 46ch; letter-spacing: 0; }
.lp-body { font-size: 16.5px; line-height: 1.6; color: var(--text-2); }
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.lp-actions .text-link { font-size: 16px; }

/* ---------- sections ---------- */
.lp-sec { padding: var(--lp-pad) 0; border-top: 1px solid var(--line); }
.lp-sec.band { background: var(--bg-raise); }
.lp-center { text-align: center; }
.lp-center .lp-h2, .lp-center .lp-lead { margin-left: auto; margin-right: auto; }
.lp-center .lp-h2 { max-width: 18ch; }
.lp-center .lp-lead { margin-top: 22px; }
.lp-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.lp-split.flip > :first-child { order: 2; }

/* ---------- hero ---------- */
.lp-hero { position: relative; padding: clamp(48px, 8vw, 112px) 0 var(--lp-pad); overflow: hidden; }
.lp-hero::before { content: ""; position: absolute; inset: -30% -10% auto 30%; height: 820px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 150, 88, .20), transparent 70%); }
.lp-hero .lp-split { position: relative; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.lp-hero .lp-lead { margin-top: 26px; }
.lp-hero .lp-actions { margin-top: 34px; }

/* ---------- product frames (a real screen or a live component, on a dark plate) ---------- */
.frame { position: relative; border-radius: 22px; background: var(--frame); border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); font: 500 12.5px/1.2 var(--sans); color: var(--text-3); }
.frame-bar .url { font: 400 12.5px/1.2 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-bar .live-dot { width: 8px; height: 8px; margin: 0 2px 0 0; }
.frame-bar span:last-child { margin-left: auto; flex: none; }
.frame img { display: block; width: 100%; height: auto; }
.frame-cap { margin-top: 12px; font-size: 13px; color: var(--text-3); }

/* ---------- the signature: the live converter ---------- */
.conv-body { padding: 22px 22px 18px; }
.conv-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--text-3); font-weight: 500; }
.conv-in { display: flex; align-items: center; gap: 4px; margin: 6px 0 6px; padding: 2px 0 10px; border-bottom: 1px solid var(--line-strong); }
.conv-in:focus-within { border-bottom-color: var(--celo); }
.conv-in .cur { font: 300 clamp(40px, 5vw, 60px)/1 var(--sans); color: var(--text-3); letter-spacing: -0.04em; }
.conv-in input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: none; color: var(--text); caret-color: var(--celo);
  font: 300 clamp(40px, 5vw, 60px)/1.1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; padding: 0; }
.conv-in .token { flex: none; }
.conv-hint { min-height: 1.5em; font-size: 13px; color: var(--text-3); }
.conv-hint.err { color: var(--warn); }
.conv-rows { list-style: none; margin: 10px 0 0; padding: 0; }
.conv-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.conv-rows li:first-child { border-top: 0; }
.conv-rows .cur-flag { width: 24px; height: 16px; border-radius: 4px; }
.conv-where { display: grid; line-height: 1.25; min-width: 0; }
.conv-where b { font-weight: 500; font-size: 15px; }
.conv-where span { font-size: 12.5px; color: var(--text-3); }
.conv-amt { position: relative; overflow: hidden; text-align: right; font: 400 clamp(20px, 2.2vw, 26px)/1.25 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.conv-amt .v { display: inline-block; }
.conv-amt.is-off { color: var(--text-3); }
.conv-amt.is-over .v { color: var(--text-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.conv-amt .v.tick { animation: conv-tick var(--t-calm) var(--calm); }
@keyframes conv-tick { from { opacity: 0; transform: translateY(45%); } to { opacity: 1; transform: none; } }
.conv-rows li.enter { animation: conv-enter .5s var(--calm) both; }
@keyframes conv-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.conv-foot { padding: 12px 22px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.conv-note { font-size: 12px; color: var(--warn); grid-column: 2 / -1; }

/* ---------- how it works: three steps, one line each (a real sequence, so numbered) ---------- */
.lp-steps { list-style: none; margin: 34px 0 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.lp-steps li { counter-increment: s; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.lp-steps li::before { content: counter(s); font: 300 32px/1 var(--sans); color: var(--text-3); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.lp-card-plate { display: grid; place-items: center; padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 44px); }
.lp-card-plate .ntag-stage { width: 100%; margin: 0; }
.lp-card-plate .ntag-card { margin: 0 auto; }

/* ---------- countries: a compact rate board ---------- */
.lp-countries { list-style: none; margin: 48px 0 0; padding: 0; text-align: left; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.lp-countries li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: 4px 12px; padding: 22px 20px 20px; border-bottom: 1px solid var(--line); }
.lp-countries li + li { border-left: 1px solid var(--line); }
.lp-countries .cur-flag { width: 30px; height: 20px; border-radius: 4px; align-self: center; }
.lp-countries .c-name { font-size: clamp(20px, 2vw, 26px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.15; }
.lp-countries .c-cur { grid-column: 1 / -1; color: var(--text-3); font-size: 13.5px; }
.lp-countries .c-rate { grid-column: 1 / -1; margin-top: 14px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.lp-countries .c-rate small { display: block; font-size: 12.5px; color: var(--text-3); letter-spacing: 0; font-weight: 400; }
.lp-also { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; margin-top: 24px; font-size: 15px; color: var(--text-2); }

/* ---------- everything Lokal does: the index (features.html) ---------- */
.lp-page { border-top: 0; padding-top: clamp(40px, 6vw, 72px); }
.lp-index-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 18px 64px; align-items: end; }
.lp-index-head .lp-lead { font-size: 17px; }
.lp-subhead { margin-top: 56px; font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.lp-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin-top: 56px; }
/* not built yet: one small list at the bottom, no labels */
.lp-soon { margin-top: 48px; }
.lp-soon .lp-subhead { margin-top: 0; }
.lp-soon ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.lp-soon li { padding: 14px 0; font-size: 14px; color: var(--text-3); line-height: 1.5; }
.lp-soon li b { display: block; color: var(--text-2); font-weight: 500; font-size: 15px; }
.lp-group h3 { font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.lp-group ul { list-style: none; margin: 0; padding: 0; }
.lp-group li { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.lp-group li b { font-weight: 500; font-size: 15.5px; letter-spacing: -0.005em; }
.lp-group li p { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.lp-group .meta { display: flex; margin-top: 2px; }
.lp-group .meta .text-link { font-size: 13.5px; }

/* ---------- why it's safe ---------- */
.lp-contracts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 920px; margin: 36px auto 0; text-align: left; }
.lp-contract { display: grid; gap: 6px; padding: 18px 20px; border-radius: 16px; background: var(--frame); border: 1px solid var(--line); }
.lp-contract b { font-weight: 500; }
.lp-contract .mono { font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.lp-contract:hover { border-color: var(--line-strong); }

/* ---------- proof ---------- */
.lp-payouts { max-width: 920px; margin: 36px auto 0; padding: 26px; border-radius: 20px; border: 1px dashed var(--line-strong); text-align: left; }
.lp-payouts.has-rows { border-style: solid; }
.lp-payouts h3 { margin-bottom: 6px; }
.lp-payouts ul { list-style: none; margin: 12px 0 0; padding: 0; }
.lp-payouts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.lp-also .text-link + .text-link { margin-left: 12px; }

/* ---------- the last word and four questions ---------- */
.lp-final { padding: calc(var(--lp-pad) * 1.1) 0; }
.lp-final .lp-split { align-items: start; }
.lp-final .lp-actions { margin-top: 30px; }
.lp-final.lp-center .lp-actions { justify-content: center; }
.lp-faq { text-align: left; border-top: 1px solid var(--line-strong); }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 2px; font-size: 18px; font-weight: 400; letter-spacing: -0.01em; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 300; color: var(--text-3); transition: transform .3s var(--calm); }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq .a { padding: 0 2px 22px; color: var(--text-2); font-size: 16px; line-height: 1.65; max-width: 62ch; }
.lp-faq .a a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

/* ---------- landing footer ---------- */
.lp-foot { border-top: 1px solid var(--line); padding: 44px 0 36px; color: var(--text-3); font-size: 14px; }
.lp-foot-in { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; }
.lp-foot .lp-brand { margin: 0 0 10px; color: var(--text); }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.lp-foot nav a, .lp-foot .linklike { color: var(--text-2); font-size: 14px; }
.lp-foot nav a:hover { color: var(--text); }
.lp-foot-base { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }

/* ---------- reveal on scroll (calm: transform + opacity, no bounce) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-calm) var(--calm), transform var(--t-calm) var(--calm); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-list > * { opacity: 0; transform: translateY(10px); transition: opacity var(--t-calm) var(--calm), transform var(--t-calm) var(--calm); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal-list.in > * { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .lp-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .lp-group { margin-bottom: 36px; }
  .lp-countries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-countries li:nth-child(3) { border-left: 0; }
}
@media (max-width: 900px) {
  .lp-split, .lp-hero .lp-split, .lp-index-head { grid-template-columns: minmax(0, 1fr); }
  .lp-split.flip > :first-child { order: 0; }
}
@media (max-width: 640px) {
  .lp { --lp-pad: 64px; }
  .lp-hero { padding-top: 36px; }
  .lp-hero .lp-lead { margin-top: 18px; }
  .lp-hero .lp-actions { margin-top: 26px; }
  .lp-contracts, .lp-index, .lp-soon ul { grid-template-columns: minmax(0, 1fr); }
  .lp-countries li { padding: 18px 14px 16px; gap: 4px 10px; }
  .lp-countries li:nth-child(odd) { padding-left: 0; }
  .lp-countries .c-name { font-size: 20px; }
  .lp-countries .c-rate { font-size: 21px; margin-top: 10px; }
  .conv-body { padding: 18px 16px 14px; }
  .conv-foot { padding: 12px 16px 14px; }
  .lp-payouts { padding: 20px 18px; }
  .lp-faq summary { font-size: 17px; }
}

/* ---------- preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  /* cross-fades only: nothing moves */
  .js .reveal, .js .reveal-list > * { transform: none; transition: opacity .3s linear; transition-delay: 0s; }
  .conv-amt .v.tick { animation: conv-fade .3s linear; }
  .conv-rows li.enter { animation: conv-fade .3s linear both; }
  .lp-faq summary::after, .lp-links a { transition: none; }
}
@keyframes conv-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-transparency: reduce) {
  .lp-bar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .frame, .lp-contract { border-color: var(--line-strong); }
  .lp-payouts { border-style: solid; }
}

/* =====================================================================
   The sign-up gateway (start.html): one calm column, a progress line,
   one step open at a time.
   ===================================================================== */
.lp main.gw-main { padding: clamp(32px, 6vw, 64px) 0 var(--lp-pad); }
.gw { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); }
.gw-progress { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: g; }
.gw-progress li { counter-increment: g; display: grid; gap: 8px; font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.gw-progress li::before { content: ""; height: 3px; border-radius: 3px; background: var(--line-strong); transition: background-color var(--t-calm) var(--calm); }
.gw-progress li[data-state="done"]::before { background: var(--mint); }
.gw-progress li[data-state="current"]::before { background: var(--celo); }
.gw-progress li[data-state="current"] { color: var(--text); }
.gw-progress li[data-state="done"] { color: var(--text-2); }
.gw-step { animation: gw-in var(--t-calm) var(--calm); }
@keyframes gw-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gw-count { font-size: 13px; color: var(--text-3); font-weight: 500; }
.gw-title { margin-top: 10px; font-size: clamp(34px, 5.4vw, 52px); font-weight: 300; line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.gw-title em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--celo); letter-spacing: -0.02em; }
.gw-lead { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.gw-body { margin-top: 30px; display: grid; gap: 18px; }
.gw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 4px; }
.gw-who { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bg-raise); border: 1px solid var(--line); }
.gw-who .mono { font-size: 13.5px; color: var(--text); }
.gw-who small { display: block; color: var(--text-3); font-size: 12.5px; }
.gw-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--text-2); font-size: 15px; }
.gw-facts li { display: flex; gap: 10px; }
.gw-facts svg.i { color: var(--mint); margin-top: 4px; flex: none; }
.gw-preview { display: grid; place-items: center; padding: 22px; border-radius: 20px; background: var(--frame); border: 1px solid var(--line); }
.gw-preview .ntag-stage { margin: 0; width: 100%; }
.gw-preview .ntag-card { margin: 0 auto; --nt-card-w: 380px; }
.gw-welcome .ntag-stage { margin: 8px 0 0; }
.gw-next { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.gw-next li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.gw-next li p { font-size: 14px; color: var(--text-3); }
.gw-skip { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.gw-foot { border-top: 1px solid var(--line); padding: 22px 0 30px; font-size: 13px; color: var(--text-3); }
.gw-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 22px; }
.gw-foot a, .gw-foot .linklike { color: var(--text-2); font-size: 13px; }
@media (max-width: 640px) {
  .gw-progress { margin-bottom: 28px; }
  .gw-progress li span { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .gw-step { animation: conv-fade .3s linear; }
  .gw-progress li::before { transition: none; }
}
