/* The landing page at /, and the sign-in, 403, 404 and 500 pages. Loaded only there, after
   nimbu.css, whose tokens it uses. Landing sizes follow docs/brand/reference/landing-page.dc.html,
   which sizes boxes without padding (content-box): here widths include it, so they are the
   reference's plus its padding. */

.lp {
  --lp-tile: color-mix(in srgb, var(--line) 45%, var(--paper));
  font-size: 17px;
  line-height: 1.55;
}
.lp h1, .lp h2, .lp h3 { margin: 0; text-wrap: balance; }
.lp h3 { letter-spacing: normal; }
.lp p { margin: 0; text-wrap: pretty; }
.lp ul, .lp ol { margin: 0; }
.lp .btn { padding: 13.5px 18.5px; border-width: 1.5px; font-size: 17px; line-height: 1.55; }
.lp .eyebrow { margin: 0; line-height: inherit; }
@media (prefers-reduced-motion: no-preference) {
  :root:has(.lp) { scroll-behavior: smooth; }
}

.lp-wrap { max-width: calc(1200px + 2 * var(--space-6)); margin: 0 auto; padding-inline: var(--space-6); }
.lp-section { display: flex; flex-direction: column; gap: var(--space-12); padding-block: var(--space-24); }
.lp-section > h2, .lp-intro { max-width: 640px; }
.lp-intro { display: flex; flex-direction: column; gap: var(--space-3); }
.lp h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; }
.lp-band { border-block: 1px solid var(--line); background: var(--paper); }
.lp-sub { color: var(--ink-muted); font-size: 19px; }
.lp-label { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.lp-muted-sm { color: var(--ink-subtle); font-size: 13px; }

/* Header */
.lp-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: 20px; }
.lp-logo, .lp-nav a, .lp-footer a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.lp-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.lp-nav a { text-decoration: none; }
.lp-nav-link:hover, .lp-footer a:hover, .lp-privacy a:hover { color: var(--ink); }
.lp-pill { padding: 12px 20px; border-radius: var(--radius-pill); background: var(--leaf-deep); color: var(--lemon); font-weight: 600; }
.lp-pill:hover { background: var(--ink); }

/* Hero */
.lp-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px; align-items: center; padding-block: 40px var(--space-24); }
.lp-hero-copy { display: flex; flex-direction: column; gap: var(--space-6); align-items: flex-start; }
.lp-badge { padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--paper); color: var(--ink-muted); font-size: 14px; font-weight: 500; }
.lp h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; }
.lp-lead { max-width: 520px; color: var(--ink-muted); font-size: 20px; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.lp .lp-btn-lg { padding: 14.5px 26.5px; }

.lp-panel { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; min-height: 680px; padding: 40px var(--space-6); overflow: hidden; border-radius: var(--radius-lg); background: var(--lemon); }
.lp-panel-mark { position: absolute; right: -150px; bottom: -160px; max-width: none; opacity: 0.16; fill: none; stroke: var(--leaf-deep); }
.lp-phone { position: relative; width: min(304px, 100%); padding: var(--space-3); border-radius: 40px; background: var(--ink); box-shadow: 0 30px 60px color-mix(in srgb, var(--ink) 25%, transparent); }
.lp-screen { display: flex; flex-direction: column; gap: 18px; padding: 22px 20px; border-radius: 30px; background: var(--paper); }
.lp-shop { display: flex; align-items: center; gap: var(--space-3); }
.lp-shop-logo { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--lp-tile); color: var(--ink-subtle); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; }
.lp-shop-name { display: flex; flex-direction: column; line-height: 1.3; }
.lp-shop-title { font-size: 16px; font-weight: 600; }
.lp-progress { display: flex; flex-direction: column; gap: 10px; }
.lp-count { display: flex; align-items: baseline; justify-content: space-between; }
.lp-count-num { font: 700 34px/1 var(--font-display); }
.lp-count-num span { color: var(--ink-subtle); font-size: 18px; font-weight: 600; }
.lp-stamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.lp-stamp { aspect-ratio: 1; border: 2px dashed color-mix(in srgb, var(--ink-subtle) 50%, var(--paper)); border-radius: var(--radius-pill); }
.lp-stamp-on { border: 2px solid var(--leaf-deep); background: var(--lemon); }
.lp-next { color: var(--ink-muted); font-size: 14px; }
.lp-qr-box { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-4); border-radius: var(--space-4); background: var(--lp-tile); }
.lp-qr { fill: var(--ink); }
.lp-qr .lp-qr-gap { fill: var(--lp-tile); }
.lp-qr-note { color: var(--ink-subtle); font-size: 12px; }
.lp-wallet { padding: 11px; border-radius: var(--radius-sm); background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; text-align: center; }
.lp-bubble { position: relative; display: flex; flex-direction: column; gap: 4px; width: 232px; padding: 14px var(--space-4); border-radius: 18px 18px 18px 4px; background: var(--paper); box-shadow: 0 12px 30px color-mix(in srgb, var(--ink) 18%, transparent); }
.lp-bubble-from { color: var(--leaf); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.lp-bubble-text { font-size: 14px; line-height: 1.45; }

/* How it works */
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--space-6); padding: 0; list-style: none; }
.lp-step { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.lp-step-num { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 2px solid var(--leaf-deep); border-radius: var(--radius-pill); background: var(--lemon); font: 700 20px/1 var(--font-display); }
.lp-step h3 { margin-top: var(--space-2); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.lp-step p, .lp-why p { color: var(--ink-muted); }

/* Cafes and salons */
.lp-verticals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: var(--space-6); }
.lp-vertical { display: flex; flex-direction: column; gap: 20px; padding: 40px; border-radius: 28px; }
.lp-vertical-cafe { background: var(--lemon); color: var(--ink); }
.lp-vertical-salon { background: var(--leaf-deep); color: var(--surface); }
.lp-vertical-salon .lp-label, .lp-pilot .lp-label { color: var(--lemon); }
.lp-vertical-title { font: 700 34px/1.1 var(--font-display); letter-spacing: -0.02em; }
.lp-vertical ul { display: flex; flex-direction: column; gap: 10px; padding: 20px 0 0; border-top: 1.5px solid var(--leaf-deep); list-style: none; }
.lp-vertical-salon ul { border-top-color: color-mix(in srgb, var(--mist) 30%, var(--leaf-deep)); }

/* Why owners pick Nimbuu */
.lp-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: var(--space-8); }
.lp-why > div { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 3px solid var(--leaf-deep); }
.lp-why h3, .lp-plan h3 { font-size: 22px; font-weight: 600; }

/* Pricing */
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--space-6); }
.lp-plan { display: flex; flex-direction: column; gap: 20px; padding: var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
.lp-plan-pick { border: 3px solid var(--leaf-deep); box-shadow: 0 16px 40px color-mix(in srgb, var(--ink) 10%, transparent); }
.lp-plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.lp-chip { padding: 4px var(--space-3); border-radius: var(--radius-pill); background: var(--lemon); font-size: 13px; font-weight: 600; }
.lp-price { display: flex; align-items: baseline; gap: 6px; color: var(--ink-subtle); }
.lp-amount { color: var(--ink); font: 700 48px/1 var(--font-display); }
.lp-plan ul { display: flex; flex-direction: column; flex-grow: 1; gap: var(--space-2); padding: 0 0 0 20px; color: var(--ink-muted); }
.lp-note { color: var(--ink-subtle); font-size: 15px; }

/* Free pilot */
.lp-pilot { background: var(--leaf-deep); color: var(--surface); }
.lp-pilot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 56px; align-items: center; }
.lp-pilot-copy { display: flex; flex-direction: column; gap: 20px; }
.lp-pilot h2 { font-size: clamp(36px, 4.5vw, 60px); line-height: 1.02; }
.lp-pilot .lp-sub { max-width: 480px; color: var(--mist); }
.lp-form-box { scroll-margin-top: var(--space-6); padding: 36px; border-radius: 28px; background: var(--paper); color: var(--ink); }
.lp-form { display: flex; flex-direction: column; gap: 18px; }
.lp-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--space-4); align-items: start; }
#pilot .field { gap: 6px; margin: 0; }
#pilot .field input:not([type=radio]) { padding-block: 13px; background-color: var(--surface); line-height: 1.55; }
#pilot .prefix { background-color: var(--surface); }
#pilot .field ::placeholder { color: var(--ink-subtle); opacity: 1; }
#pilot .seg:has([aria-invalid=true]) { box-shadow: 0 0 0 1.5px var(--danger); }
.lp .lp-submit { margin-top: 6px; padding: 14.5px 22.5px; }
.lp-privacy { color: var(--ink-subtle); font-size: 13px; }
.lp-privacy a { padding-block: 15px; } /* a 44 px tap target inside a line of small text */
.lp-hp { position: absolute; left: -9999px; }
.lp-thanks { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-block: var(--space-6); }
.lp-thanks circle { fill: var(--lemon); stroke: var(--leaf-deep); }
.lp-thanks path { fill: none; stroke: var(--leaf-deep); }
.lp-thanks h3 { font-size: 30px; letter-spacing: -0.02em; }
.lp-thanks p { color: var(--ink-muted); }

/* Footer */
.lp-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: 27px; color: var(--ink-subtle); font-size: 14px; }
.lp-wordmark { color: var(--ink); font: 700 22px/1.55 var(--font-display); letter-spacing: -0.02em; }
.lp-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-6); }
.lp-footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lp-consent-open { appearance: none; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth .lp-consent-open { margin-top: var(--space-6); color: var(--ink-subtle); font-size: 14px; }

/* The analytics banner (landing/_consent.html): a card floating 16 px above the foot of the
   screen. While it shows, the page keeps --consent-room (the card and its gap) clear under it:
   scroll padding so a focused field is never behind it, body padding so the footer scrolls clear. */
:root { --consent-room: 190px; }
@media (max-width: 359px) { :root { --consent-room: 220px; } } /* three lines of text from here */
@media (min-width: 768px) { :root { --consent-room: 120px; } }
html:has(#consent:not([hidden])) { scroll-padding-bottom: var(--consent-room); }
html:has(#consent:not([hidden])) body { padding-bottom: var(--consent-room); }
.lp-consent { position: fixed; inset: auto var(--space-4) var(--space-4); z-index: 10; display: flex; align-items: center; gap: var(--space-3) var(--space-6); max-width: 720px; margin-inline: auto; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); box-shadow: 0 8px 32px var(--shadow); color: var(--ink); font-size: 15px; }
.lp-consent[hidden] { display: none; }
.lp-consent p { flex: 1; margin: 0; }
.lp-consent a { display: inline-flex; align-items: center; min-height: 44px; color: var(--leaf-deep); text-underline-offset: 3px; }
.lp-consent-actions { display: flex; flex: none; gap: var(--space-3); }
@media (max-width: 767px) { /* text above two equal buttons */
  .lp-consent { flex-direction: column; align-items: stretch; }
  .lp-consent-actions .btn { flex: 1 1 0; padding-inline: var(--space-3); }
}

/* Turnstile's box in the pilot form, above the button. */
.lp-turnstile { margin: 0 0 var(--space-4); }

/* The privacy policy: one column of plain text, readable from 360 px. */
.lp-legal { max-width: calc(720px + 2 * var(--space-6)); padding-block: var(--space-12) var(--space-24); }
.lp-legal h1 { font-size: clamp(36px, 6vw, 52px); line-height: 1.1; }
.lp-legal h2 { margin-top: var(--space-12); font-size: 26px; line-height: 1.2; }
.lp-legal h3 { margin-top: var(--space-6); font-size: 19px; }
.lp-legal p, .lp-legal ul { margin-top: var(--space-4); }
.lp-legal ul { padding-left: 1.25em; }
.lp-legal li + li { margin-top: var(--space-2); }
.lp-legal a { padding-block: 12px; color: var(--leaf-deep); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; } /* 44 px to tap, inside a line of text */

/* System pages: 404 and 500. The code is lemon with a dark outline drawn under the fill (so half shows). */
.sys { position: relative; overflow: hidden; padding-block: var(--space-24); }
.sys-mark { position: absolute; top: 40px; right: -80px; opacity: 0.16; fill: none; stroke: var(--leaf-deep); }
.sys-copy { position: relative; display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.lp .sys-code { color: var(--lemon); font: 700 120px/0.9 var(--font-display); letter-spacing: -0.02em; -webkit-text-stroke: 6px var(--leaf-deep); paint-order: stroke fill; }
.lp .sys h1 { font-size: 44px; line-height: 1.1; }
/* The pilot form's error summary: first in the form, a link to each field. */
.lp-errors { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 2px var(--space-3); padding: var(--space-4); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--danger) 9%, var(--paper)); color: var(--danger); }
.lp-errors svg { grid-row: 1 / span 2; margin-top: 4px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.lp-errors > :not(svg) { grid-column: 2; }
.lp .lp-errors-title { color: var(--ink); font: 600 17px/1.5 var(--font-sans); }
.lp-errors ul { padding-left: 18px; font-size: 15px; }
.lp-errors a { display: inline-flex; align-items: center; min-height: 44px; color: var(--danger); }

@media (max-width: 767px) { /* the five header links need about 730 px: phones keep Log in */
  .lp-nav .lp-nav-link:not(.lp-login) { display: none; }
  .lp-header, .lp-nav { gap: var(--space-3); }
  .lp-logo img { width: auto; height: 24px; } /* 116 px wide: one row at 360 px */
  .lp-pill { padding-inline: var(--space-4); }
  .sys { padding-block: var(--space-12); }
  .sys-mark { display: none; }
  .lp .sys-code { font-size: 96px; -webkit-text-stroke-width: 5px; }
  .lp .sys h1 { font-size: 34px; }
  .sys .btn { width: 100%; }
}

/* Sign-in pages and 403: one column, the logo on top. Sign up adds a lemon panel from 900 px. */
.auth { width: 100%; max-width: 460px; margin: 0 auto; padding: var(--space-8) 20px var(--space-12); }
.auth-logo { display: block; margin: 0 0 var(--space-8); }
.auth-home { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 var(--space-6); }
.auth-home .auth-logo { margin: 0; }
.auth h1 { margin: 0 0 var(--space-2); font-size: 34px; line-height: 1.12; }
.auth-body form { display: flex; flex-direction: column; gap: 18px; margin: 0 0 var(--space-6); }
.auth-body .field { margin: 0; }
.auth-body .spread .link { font-size: 14px; }
.auth-staff { gap: var(--space-3); font-size: 15px; }
.auth-staff svg { flex: none; color: var(--leaf); }
.auth-links { margin: 0; color: var(--ink-muted); text-align: center; }
.auth-panel { display: none; }
@media (min-width: 900px) {
  .auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
  .auth-split .auth { display: flex; flex-direction: column; align-items: flex-start; max-width: none; margin: 0; padding: 40px 48px; }
  .auth-split .auth-body { width: 100%; max-width: 420px; margin: auto; padding-block: 40px; }
  .auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-8); padding: 64px 56px; background: var(--lemon); }
}
.auth-sample { width: 100%; max-width: 380px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: 0 16px 40px color-mix(in srgb, var(--ink) 10%, transparent); }
.auth-sample-head { display: flex; align-items: center; gap: var(--space-3); padding: 18px 20px; background: var(--lemon); font: 700 18px var(--font-display); }
.auth-sample-head .logo-tile { background: var(--paper); }
.auth-sample-body { display: flex; flex-direction: column; gap: var(--space-3); padding: 20px; }
.auth-sample-body p { margin: 0; }
.auth-sample .num { font-size: 30px; }
.auth-sample .num span { color: var(--ink-subtle); font-size: 16px; }
.auth-sample .bar > i { width: 64%; }
.auth-qr { --lp-tile: var(--paper); display: flex; justify-content: center; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--space-4); background: var(--paper); }
.auth-points { display: flex; flex-direction: column; gap: var(--space-3); width: 100%; max-width: 380px; margin: 0; padding: 0; font-weight: 500; list-style: none; }
.auth-points li { display: flex; align-items: center; gap: var(--space-3); }
