/* ===================================================================
   Levora design system — extracted from the 2026-05 platform landing
   page so every page shares one set of components (WEB10: reuse
   site components). Tokens are unchanged from the original page.
   Components the brief forbids (pricing grid, comparison table,
   margin chips, stock badges) are intentionally absent.
   =================================================================== */

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased;scroll-padding-top:calc(var(--header-h) + 16px)}
body{font-family:var(--font-sans);background:var(--bg-0);color:var(--text-0);line-height:1.6;overflow-x:hidden;transition:background .3s var(--ease),color .3s var(--ease)}

a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

/* Visible focus on every interactive element (keyboard access) */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}

.skip-link{position:absolute;left:-9999px;top:0;z-index:200;padding:10px 18px;background:var(--accent);color:#fff;font-size:14px;font-weight:600;border-radius:0 0 8px 0}
.skip-link:focus{left:0;text-decoration:none}

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ——— HEADER ——— */
/* -webkit- first: unprefixed backdrop-filter only reached Safari 18, so
   without it every iPhone on iOS 17 or earlier falls back to the flat
   85%-opaque background instead of the blur. */
header{position:fixed;top:0;left:0;right:0;height:var(--header-h);border-bottom:1px solid var(--border);z-index:100;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:rgba(10,10,12,.85);transition:background .3s,border .3s}
[data-theme="light"] header{background:rgba(255,255,255,.88)}
.header-inner{max-width:var(--max-w);margin:0 auto;padding:0 24px;height:100%;display:flex;align-items:center;justify-content:space-between;gap:16px}
.logo{font-family:var(--font-mono);font-weight:700;font-size:18px;color:var(--text-0);letter-spacing:-.5px;display:flex;align-items:center;gap:8px;flex-shrink:0}
.logo:hover{text-decoration:none}
.logo-mark{width:22px;height:22px;border-radius:5px;background:var(--gradient);display:flex;align-items:center;justify-content:center;font-size:12px;color:#fff;font-weight:700}
nav{display:flex;align-items:center;gap:28px}
nav a{font-size:14px;color:var(--text-1);font-weight:500;transition:color .2s}
nav a:hover{color:var(--text-0);text-decoration:none}
.theme-toggle{width:36px;height:36px;border-radius:8px;border:1px solid var(--border);background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-1);font-size:16px;transition:all .2s;flex-shrink:0}
.theme-toggle:hover{border-color:var(--border-h);color:var(--text-0);background:var(--bg-2)}
.nav-cta{padding:6px 16px;border-radius:6px;background:var(--text-0);color:var(--bg-0);font-size:13px;font-weight:600;border:none;cursor:pointer;transition:opacity .2s;white-space:nowrap}
.nav-cta:hover{opacity:.85;text-decoration:none;color:var(--bg-0)}
.lang-switch{display:flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:12px;color:var(--text-2);flex-shrink:0}
.lang-switch a{color:var(--text-2);padding:2px 4px;border-radius:4px}
.lang-switch a[aria-current="page"]{color:var(--text-0);font-weight:600}
.lang-switch a:hover{color:var(--text-0);text-decoration:none}
.lang-sep{opacity:.4}
.menu-btn{display:none;width:36px;height:36px;border:1px solid var(--border);border-radius:8px;background:transparent;cursor:pointer;color:var(--text-1);font-size:18px;align-items:center;justify-content:center;flex-shrink:0}

/* ——— HERO (LP01) ——— */
/* overflow:hidden contains the decorative glow below. Without it the
   600px pseudo-element makes the document wider than a phone viewport
   and the whole page scrolls sideways. */
.hero{padding:140px 24px 80px;text-align:center;position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);width:min(600px,100%);height:400px;background:radial-gradient(ellipse,var(--accent-glow) 0%,transparent 70%);pointer-events:none}
.hero-badge{display:inline-flex;align-items:center;gap:7px;padding:4px 14px;border-radius:20px;border:1px solid var(--border);font-size:12px;font-weight:500;color:var(--text-1);margin-bottom:24px;font-family:var(--font-mono)}
.hero-badge i{width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}
.hero h1{font-size:clamp(34px,5.2vw,60px);font-weight:700;line-height:1.08;letter-spacing:-2px;margin-bottom:20px;max-width:800px;margin-left:auto;margin-right:auto}
.hero h1 em{font-style:normal;background:var(--gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hero-sub{font-size:18px;color:var(--text-1);max-width:620px;margin:0 auto 36px;line-height:1.6}
.hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.btn-primary{padding:11px 26px;border-radius:8px;background:var(--text-0);color:var(--bg-0);font-size:14px;font-weight:600;border:none;cursor:pointer;transition:all .2s;display:inline-flex;align-items:center;gap:8px;text-decoration:none}
.btn-primary:hover{opacity:.85;text-decoration:none;color:var(--bg-0)}
.btn-secondary{padding:11px 26px;border-radius:8px;background:transparent;color:var(--text-0);font-size:14px;font-weight:500;border:1px solid var(--border);cursor:pointer;transition:all .2s;display:inline-flex;align-items:center;gap:8px;text-decoration:none}
.btn-secondary:hover{border-color:var(--border-h);background:var(--bg-2);text-decoration:none;color:var(--text-0)}

/* ——— SECTIONS ——— */
section{padding:80px 24px}
.section-inner{max-width:var(--max-w);margin:0 auto}
.section-label{font-family:var(--font-mono);font-size:12px;font-weight:500;color:var(--accent);text-transform:uppercase;letter-spacing:1.5px;margin-bottom:12px}
.section-title{font-size:clamp(26px,3.4vw,38px);font-weight:700;letter-spacing:-1px;margin-bottom:12px;line-height:1.15}
.section-desc{font-size:16px;color:var(--text-1);max-width:620px;margin-bottom:48px;line-height:1.6}
.alt-section{background:var(--bg-1);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}

/* ——— PAIN POINTS (LP02) ——— */
.pain-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--border);border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--border)}
.pain-card{background:var(--bg-1);padding:26px 22px;display:flex;flex-direction:column;gap:12px}
.pain-card svg{color:var(--text-2);flex-shrink:0}
.pain-card p{font-size:14px;color:var(--text-1);line-height:1.5}

/* ——— STEPS (LP03) ——— */
.how-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;background:var(--border);border-radius:var(--radius-lg);overflow:hidden}
.how-card{background:var(--bg-1);padding:30px 26px}
.how-num{font-family:var(--font-mono);font-size:11px;color:var(--accent);font-weight:600;margin-bottom:12px}
.how-card h3{font-size:16px;font-weight:600;margin-bottom:8px}
.how-card p{font-size:14px;color:var(--text-1);line-height:1.55}

/* ——— CAPABILITY CARDS (LP05) ——— */
.cap-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--border);border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--border)}
.cap-card{background:var(--bg-1);padding:30px 26px;display:flex;flex-direction:column;gap:12px;transition:background .2s}
.cap-card:hover{background:var(--bg-2)}
.cap-icon{width:34px;height:34px;border-radius:8px;background:var(--accent-dim);color:var(--accent);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.cap-card h3{font-size:16px;font-weight:600}
.cap-card p{font-size:14px;color:var(--text-1);line-height:1.55}

/* ——— BENEFITS (LP06) ——— */
.benefit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--border);border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--border);list-style:none}
.benefit-grid li{background:var(--bg-1);padding:24px 22px;font-size:15px;font-weight:500;color:var(--text-0);display:flex;align-items:flex-start;gap:10px;line-height:1.45}
.benefit-grid li::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--accent);flex-shrink:0;margin-top:9px}

/* ——— OVERVIEW SPLIT (LP04) ——— */
.split{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.split-body p{font-size:15px;color:var(--text-1);line-height:1.65;margin-bottom:14px}
.split-body p:last-child{margin-bottom:0}

/* ——— EXAMPLE PANEL (LP07) ——— */
.example-panel{max-width:700px;background:var(--bg-1);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden}
.example-row{display:grid;grid-template-columns:140px 1fr;gap:16px;padding:16px 20px;border-bottom:1px solid var(--border);font-size:14px}
.example-row:last-child{border-bottom:none}
.example-key{font-family:var(--font-mono);font-size:11px;color:var(--text-2);text-transform:uppercase;letter-spacing:.5px;font-weight:600;padding-top:3px}
.example-val{color:var(--text-0);line-height:1.55}
.example-val.quoted{color:var(--text-1);font-style:italic}
.example-val ul{list-style:none;display:flex;flex-direction:column;gap:5px}
.example-val li{display:flex;gap:8px;align-items:flex-start}
.example-val li::before{content:"";width:4px;height:4px;border-radius:50%;background:var(--text-2);flex-shrink:0;margin-top:8px}
.status-chip{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:11px;font-weight:600;padding:3px 10px;border-radius:4px;background:var(--yellow-dim);color:var(--yellow)}
.example-caption{font-size:14px;color:var(--text-2);margin-top:18px;max-width:640px;line-height:1.6}

/* ——— PRODUCT VIEW MOCKUP (LP01 visual) ——— */
.mockup-wrap{margin:56px auto 0;max-width:940px}
.mockup-window{border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;background:var(--bg-1);box-shadow:0 24px 80px -12px rgba(0,0,0,.35);text-align:left}
[data-theme="light"] .mockup-window{box-shadow:0 24px 80px -12px rgba(0,0,0,.12)}
.mockup-titlebar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:var(--bg-2);border-bottom:1px solid var(--border)}
.mockup-titlebar>*{min-width:0}
.mockup-dots{display:flex;gap:6px}
.mockup-dots i{width:10px;height:10px;border-radius:50%}
.mockup-dots i:nth-child(1){background:#f87171}
.mockup-dots i:nth-child(2){background:#fbbf24}
.mockup-dots i:nth-child(3){background:#34d399}
.mockup-url{font-family:var(--font-mono);font-size:11px;color:var(--text-2);background:var(--bg-0);padding:3px 16px;border-radius:4px;border:1px solid var(--border)}
.mockup-tag{font-family:var(--font-mono);font-size:10px;color:var(--text-2);letter-spacing:.5px;text-transform:uppercase;white-space:nowrap}
.mockup-body{display:flex;min-height:400px}
.mockup-sidebar{width:48px;background:var(--bg-0);border-right:1px solid var(--border);display:flex;flex-direction:column;align-items:center;padding:10px 0;gap:3px}
.sb-logo{width:28px;height:28px;border-radius:6px;background:var(--gradient);display:flex;align-items:center;justify-content:center;font-family:var(--font-mono);font-size:12px;font-weight:700;color:#fff;margin-bottom:10px}
.sb-item{width:32px;height:32px;border-radius:6px;display:flex;align-items:center;justify-content:center;color:var(--text-2)}
.sb-item.active{background:var(--accent-dim);color:var(--accent)}
.mockup-main{flex:1;display:flex;flex-direction:column;min-width:0}
.mockup-topbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid var(--border)}
.topbar-title{font-size:13px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.topbar-badge{font-family:var(--font-mono);font-size:10px;padding:2px 8px;border-radius:10px;background:var(--yellow-dim);color:var(--yellow);white-space:nowrap}
.topbar-case{font-family:var(--font-mono);font-size:10px;color:var(--text-2);padding:2px 8px;border-radius:10px;border:1px solid var(--border);white-space:nowrap}
.mockup-content{display:flex;flex:1}
.mockup-panel-left{flex:1;padding:12px;display:flex;flex-direction:column;gap:10px;border-right:1px solid var(--border);min-width:0}
.mockup-panel-right{width:252px;padding:12px;display:flex;flex-direction:column;gap:10px;flex-shrink:0}
.m-card{background:var(--bg-0);border:1px solid var(--border);border-radius:8px;padding:12px;font-size:12px}
.m-card-label{font-family:var(--font-mono);font-size:10px;color:var(--text-2);text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px;font-weight:600}
.m-input-card{border-left:3px solid var(--accent)}
.m-input-text{color:var(--text-0);line-height:1.5;margin-bottom:6px}
.m-input-source{font-size:10px;color:var(--text-2);font-family:var(--font-mono)}
.m-fields{display:flex;flex-direction:column;gap:5px}
.m-field{display:flex;align-items:center;gap:8px;padding:6px 8px;background:var(--bg-1);border:1px solid var(--border);border-radius:4px;font-size:11px}
/* min-width:0 lets these shrink below their text width; without it a
   nowrap flex item forces the whole mockup wider than a phone viewport. */
.m-field-label{color:var(--text-2);min-width:64px;font-weight:500;flex-shrink:0}
.m-field-val{color:var(--text-0);font-weight:500;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m-field-val.empty{color:var(--text-2);font-style:italic;font-weight:400}
.m-edit{font-family:var(--font-mono);font-size:9px;color:var(--accent);flex-shrink:0;text-transform:uppercase;letter-spacing:.5px}
.m-flag{display:flex;gap:7px;align-items:flex-start;font-size:11px;color:var(--text-1);line-height:1.45;padding:6px 0;border-bottom:1px solid var(--border)}
.m-flag:last-child{border-bottom:none;padding-bottom:0}
.m-flag i{width:5px;height:5px;border-radius:50%;background:var(--yellow);flex-shrink:0;margin-top:6px}
.m-case{display:flex;flex-direction:column;gap:8px}
.m-case-row{display:flex;justify-content:space-between;align-items:baseline;font-size:11px;gap:10px}
.m-case-row dt{color:var(--text-2)}
.m-case-row dt{flex-shrink:0}
.m-case-row dd{color:var(--text-0);font-weight:500;text-align:right;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-timeline{display:flex;flex-direction:column;gap:9px;font-size:10px;font-family:var(--font-mono);list-style:none}
.m-tl{display:flex;gap:8px;align-items:center;color:var(--text-2)}
.m-tl i{width:6px;height:6px;border-radius:50%;background:var(--border-h);flex-shrink:0}
.m-tl.done i{background:var(--green)}
.m-tl.current{color:var(--text-0)}
.m-tl.current i{background:var(--yellow)}

/* ——— DEMO FORM (LP08) ——— */
.demo-section{padding:96px 24px}
.demo-inner{max-width:var(--max-w);margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start}
.demo-copy h2{font-size:clamp(26px,3.4vw,38px);font-weight:700;letter-spacing:-1px;margin-bottom:16px;line-height:1.15}
.demo-copy h2 em{font-style:normal;background:var(--gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.demo-copy p{font-size:16px;color:var(--text-1);line-height:1.65;margin-bottom:24px}
.demo-contact{font-size:14px;color:var(--text-2);line-height:1.8}
.demo-card{background:var(--bg-1);border:1px solid var(--border);border-radius:var(--radius-lg);padding:32px}
.demo-card h3{font-size:17px;font-weight:600;margin-bottom:8px}
.form-intro{font-size:14px;color:var(--text-1);margin-bottom:24px;line-height:1.55}
.field{margin-bottom:18px}
.field label{display:block;font-size:13px;font-weight:600;color:var(--text-0);margin-bottom:6px}
.field .opt{font-weight:400;color:var(--text-2);font-size:12px;margin-left:4px}
.field input,.field select,.field textarea{width:100%;padding:10px 12px;border-radius:6px;border:1px solid var(--border);background:var(--bg-0);color:var(--text-0);font-size:14px;font-family:var(--font-sans);transition:border-color .2s}
.field textarea{resize:vertical;min-height:88px}
.field input:hover,.field select:hover,.field textarea:hover{border-color:var(--border-h)}
.field input[aria-invalid="true"],.field select[aria-invalid="true"],.field textarea[aria-invalid="true"]{border-color:var(--red)}
.field-error{font-size:12px;color:var(--red);margin-top:6px;font-weight:500}
.form-submit{width:100%;padding:12px;border-radius:8px;background:var(--text-0);color:var(--bg-0);font-size:14px;font-weight:600;border:none;cursor:pointer;transition:opacity .2s;font-family:var(--font-sans)}
.form-submit:hover:not(:disabled){opacity:.85}
.form-submit:disabled{opacity:.55;cursor:not-allowed}
.form-note{font-size:12px;color:var(--text-2);margin-top:14px;line-height:1.5}
.form-status{margin-top:18px;padding:14px 16px;border-radius:8px;font-size:14px;line-height:1.55}
.form-status.success{background:var(--green-dim);color:var(--green);border:1px solid var(--green)}
.form-status.error{background:var(--red-dim);color:var(--red);border:1px solid var(--red)}
.form-status:empty{display:none}

/* ——— LEGAL / PROSE PAGES ——— */
.prose-page{padding:120px 24px 80px;max-width:760px;margin:0 auto}
.prose-page h1{font-size:clamp(28px,4vw,42px);font-weight:700;letter-spacing:-1.5px;margin-bottom:12px;line-height:1.15}
.prose-meta{font-family:var(--font-mono);font-size:12px;color:var(--text-2);margin-bottom:40px}
.prose-page h2{font-size:20px;font-weight:600;margin:40px 0 12px;letter-spacing:-.4px}
.prose-page h3{font-size:16px;font-weight:600;margin:24px 0 8px}
.prose-page p{font-size:15px;color:var(--text-1);line-height:1.7;margin-bottom:14px}
.prose-page ul,.prose-page ol{margin:0 0 16px 22px}
.prose-page li{font-size:15px;color:var(--text-1);line-height:1.7;margin-bottom:7px}
.prose-page strong{color:var(--text-0);font-weight:600}
.prose-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;font-size:14px;margin-bottom:20px}
.prose-table th{background:var(--bg-2);padding:10px 14px;text-align:left;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:var(--text-2);border-bottom:1px solid var(--border)}
.prose-table td{padding:10px 14px;border-bottom:1px solid var(--border);color:var(--text-1);vertical-align:top}
.prose-table tr:last-child td{border-bottom:none}
/* The legal pages use ROW headers (<th scope="row">) for the identity table
   instead of a header row, so the label column needs a width, loses the
   all-caps treatment meant for column headings, and needs the last-row border
   suppressed on the th as well as the td. */
.prose-table th[scope="row"]{width:38%;text-transform:none;letter-spacing:0;font-size:13px;vertical-align:top}
.prose-table tr:last-child th{border-bottom:none}
/* A deliberately quiet note marking statutory details that are still
   outstanding. Deleted along with the em-dashes it explains. */
.pending-note{border-left:2px solid var(--border-h);padding:2px 0 2px 14px;color:var(--text-2)}
.back-link{display:inline-flex;align-items:center;gap:7px;font-size:14px;color:var(--text-2);margin-bottom:28px}
.back-link:hover{color:var(--text-0);text-decoration:none}
/* .hero-actions is centred for the hero. Inside a prose page (the 404) the
   surrounding text is left-aligned, so the buttons follow it. */
.prose-page .hero-actions{justify-content:flex-start;margin-top:32px}

/* ——— FOOTER (LP09) ——— */
footer{border-top:1px solid var(--border);padding:48px 24px 40px;background:var(--bg-1)}
.footer-inner{max-width:var(--max-w);margin:0 auto}
.footer-top{display:flex;justify-content:space-between;gap:48px;flex-wrap:wrap;margin-bottom:32px}
.footer-brand{max-width:320px}
.footer-brand .logo{margin-bottom:12px}
.footer-brand p{font-size:13px;color:var(--text-2);line-height:1.6}
.footer-cols{display:flex;gap:64px;flex-wrap:wrap}
.footer-col h2{font-family:var(--font-mono);font-size:11px;font-weight:600;color:var(--text-2);text-transform:uppercase;letter-spacing:1px;margin-bottom:14px}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:9px}
.footer-col a{font-size:13px;color:var(--text-1)}
.footer-col a:hover{color:var(--text-0)}
.footer-bottom{border-top:1px solid var(--border);padding-top:24px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.footer-bottom.bare{border-top:none;padding-top:0}
.footer-copy{font-size:12px;color:var(--text-2);font-family:var(--font-mono)}

/* ——— RESPONSIVE ——— */
@media(max-width:980px){
  .pain-grid{grid-template-columns:repeat(2,1fr)}
  .how-grid{grid-template-columns:repeat(2,1fr)}
  .benefit-grid{grid-template-columns:repeat(2,1fr)}
  .cap-grid{grid-template-columns:1fr}
  .split{grid-template-columns:1fr;gap:40px}
  .demo-inner{grid-template-columns:1fr;gap:44px}
}
@media(max-width:768px){
  nav a:not(.nav-cta){display:none}
  nav{gap:10px}
  .lang-switch{display:none}
  .menu-btn{display:flex}
  nav.open{position:absolute;top:var(--header-h);left:0;right:0;background:var(--bg-1);border-bottom:1px solid var(--border);flex-direction:column;align-items:stretch;gap:0;padding:8px 24px 16px}
  nav.open a:not(.nav-cta){display:block;padding:12px 0;border-bottom:1px solid var(--border);font-size:15px}
  nav.open .lang-switch{display:flex;padding:14px 0 4px}
  .hero{padding:116px 20px 64px}
  section{padding:64px 20px}
  .demo-section{padding:64px 20px}
  .mockup-panel-right{display:none}
  .mockup-sidebar{width:40px}
  .mockup-body{min-height:300px}
  .example-row{grid-template-columns:1fr;gap:6px}
  .footer-cols{gap:36px}
  .footer-bottom{flex-direction:column;align-items:flex-start}
  .demo-card{padding:24px 20px}
  .prose-page{padding:104px 20px 64px}
}
@media(max-width:520px){
  .pain-grid{grid-template-columns:1fr}
  .how-grid{grid-template-columns:1fr}
  .benefit-grid{grid-template-columns:1fr}
  .mockup-sidebar{display:none}
  /* The fake URL chip is decoration; the "demo data" label is not, so
     that one stays at every width. */
  .mockup-url{display:none}
  .mockup-wrap{margin-top:40px}
  .hero-actions{flex-direction:column}
  .hero-actions a{width:100%;justify-content:center}
  .prose-table{font-size:13px}
  .prose-table th[scope="row"]{width:44%}
  .prose-table th,.prose-table td{padding:8px 10px}
}

/* ——— WEB04 · PACING ON A PHONE ———
   Measured at a 390px viewport before this block: the hero alone ran
   1.46 screens, and the product example — the first thing that shows
   what Levora actually does — sat 6.4 screens down. Desktop spacing had
   simply been carried down to a phone.

   The vertical rhythm is tightened rather than the content cut: 116/64
   on the hero and 64/64 on each of the eight sections is generous at
   1440px and wasteful at 390px. Nothing here changes above 520px.      */
@media(max-width:520px){
  .hero{padding:88px 20px 44px}        /* header is 56px; 88 still clears it */
  section{padding:48px 20px}
  .demo-section{padding:48px 20px}
  .hero-badge{margin-bottom:18px}
  .hero h1{margin-bottom:16px;letter-spacing:-1.2px}
  .hero-sub{font-size:16px;margin-bottom:26px}
  .mockup-wrap{margin-top:28px}
  .section-title{margin-bottom:10px}
}

/* ——— MOTION ———
   The reveal is scoped to .js, which the inline head script adds. Without
   JavaScript (or before it runs) every section renders at full opacity
   rather than staying invisible. */
@media(prefers-reduced-motion:no-preference){
  .js .fade-in{opacity:0;transform:translateY(16px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
  .js .fade-in.visible{opacity:1;transform:translateY(0)}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important}
}
@media print{
  header,footer,.demo-section,.theme-toggle,.skip-link{display:none}
  body{background:#fff;color:#000}
}

/* ─────────────────────────────────────────────────────────────────────
   PRICING (AID-A919)

   These components did not exist: WEB06 forbade a pricing grid, so the
   stylesheet never carried one. The owner has since overruled that —
   prices go on the site, in full. Everything here uses the theme tokens,
   so it works in light as well as dark.

   The billing switch is hidden without JavaScript (.js is set by the
   head script) and the table renders monthly prices from the markup, so
   the no-JS path shows a complete, correct price list rather than a
   dead control.
   ───────────────────────────────────────────────────────────────────── */
.pricing-head{max-width:680px;margin:0 auto;text-align:center}

.pricing-switch-wrap{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:32px}
.pricing-switch{display:none}
.js .pricing-switch{display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:999px;padding:4px;background:var(--bg-1)}
.pricing-seg{appearance:none;border:0;background:transparent;color:var(--text-1);font-family:inherit;font-size:13px;font-weight:500;padding:9px 22px;border-radius:999px;cursor:pointer;white-space:nowrap;transition:color .15s var(--ease),background .15s var(--ease)}
.pricing-seg:hover{color:var(--text-0)}
.pricing-seg[aria-pressed="true"]{background:var(--accent);color:var(--bg-0)}
.pricing-seg[aria-pressed="true"]:hover{color:var(--bg-0)}
.pricing-save{font-family:var(--font-mono);font-size:10px;letter-spacing:.05em;color:var(--green);border:1px solid var(--green);background:var(--green-dim);border-radius:999px;padding:3px 9px;margin-left:8px}
.pricing-seg[aria-pressed="true"] .pricing-save{color:var(--bg-0);border-color:var(--bg-0);background:transparent}
.pricing-note{font-size:13px;color:var(--text-1)}

.price-scroll{margin-top:28px;border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden}
.price-table{border-collapse:collapse;width:100%}
.price-table th,.price-table td{vertical-align:middle;border-bottom:1px solid var(--border);padding:13px 18px}
.price-table tbody tr:hover td,.price-table tbody tr:hover th{background:var(--bg-1)}
.price-table tbody tr:last-child td,.price-table tbody tr:last-child th{border-bottom:none}
.price-rowlab{text-align:left;font-size:14px;font-weight:400;color:var(--text-0)}
.price-rowlab span{display:block;font-size:12px;color:var(--text-1);margin-top:3px}
.price-cell{text-align:center}
.price-colhead{padding:24px 18px;border-bottom:1px solid var(--border);vertical-align:bottom;text-align:center}
.price-hl{background:var(--accent-glow);border-left:1px solid var(--accent);border-right:1px solid var(--accent)}
.price-group th{background:var(--bg-1);font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--text-1);padding:11px 18px;font-weight:500;text-align:left}
.price-plan{font-size:14px;font-weight:600;color:var(--text-0);margin-bottom:10px}
.price-amt{display:block;font-size:28px;font-weight:600;color:var(--text-0);letter-spacing:-.02em}
.price-per{display:block;font-size:12px;color:var(--text-1);margin-top:4px;margin-bottom:16px;min-height:32px;line-height:1.4}
.price-tag{font-family:var(--font-mono);font-size:10px;letter-spacing:.05em;color:var(--bg-0);background:var(--accent);border-radius:4px;padding:2px 6px;font-weight:500;white-space:nowrap}
/* The column is ~185px wide, so the plan name and the tag cannot share
   a line. The tag sits under the name rather than wrapping into it. */
.price-plan .price-tag{display:block;width:-moz-fit-content;width:fit-content;margin:6px auto 0}
.price-y{color:var(--green);font-size:16px}
.price-n{color:var(--text-2);font-size:16px}
.price-v{color:var(--text-0);font-size:13px;font-weight:500}
.price-soon{display:inline-block;font-family:var(--font-mono);font-size:10px;letter-spacing:.05em;color:var(--yellow);border:1px solid var(--yellow);background:var(--yellow-dim);border-radius:4px;padding:2px 7px;white-space:nowrap}

.price-cards{display:flex;flex-wrap:wrap;gap:16px;margin-top:28px}
.price-card{flex:1 1 280px;min-width:0;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-1);padding:20px;text-align:center}
.price-card h3{margin:0 0 7px;font-size:13px;font-weight:600;color:var(--text-0)}
.price-card p{margin:0;font-size:13px;line-height:1.6;color:var(--text-1)}
.price-foot{margin:26px auto 0;max-width:820px;text-align:center;font-size:12px;line-height:1.6;color:var(--text-1)}

/* The table cannot shrink below the point where the figures collide, so
   below that it scrolls inside its own box. Page-level horizontal
   overflow stays at zero, which is verified at 360px. */
@media (max-width:860px){
  .price-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .price-table{min-width:840px}
}

/* ───────────────────────────────────────────────────────────────────
   WEB04 · Pricing on a phone.
   The comparison table keeps the desktop to itself. Below 861px it is
   swapped for a one-plan-at-a-time view that needs no sideways scroll.
   Both are present in the DOM; only one is ever displayed, and the
   table is hidden only once the script has successfully built its
   replacement (html.has-price-m).
   ─────────────────────────────────────────────────────────────────── */

.price-m { display: none; }

@media (max-width: 860px) {
  .has-price-m .price-scroll { display: none; }
  .has-price-m .price-m { display: block; margin-top: 24px; }
}

/* Plan selector: four chips, two per row, so every plan name is legible
   without truncation at 320px. */
.price-m-sel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.price-m-tab {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  padding: 11px 10px;
  min-height: 44px;                 /* comfortable touch target */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-1);
  color: var(--text-1);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}

.price-m-tab:hover { border-color: var(--border-h); color: var(--text-0); }

.price-m-tab[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text-0);
  font-weight: 600;
}

.price-m-tab .price-tag { display: block; margin: 5px auto 0; width: fit-content; }

/* Selected plan: price and call to action. */
.price-m-card {
  margin-top: 16px;
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
  text-align: center;
}

.price-m-name {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-0);
}

.price-m-card .price-per { min-height: 0; margin-bottom: 18px; }
.price-m-card .price-cta { display: inline-flex; width: 100%; justify-content: center; }

.price-m-incl {
  margin: 26px 0 0;
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-2);
}

.price-m-feats {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.price-m-group {
  margin: 0;
  background: var(--bg-1);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-1);
  padding: 11px 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.price-m-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.price-m-feats > :last-child { border-bottom: none; }

.price-m-lab {
  font-size: 14px;
  color: var(--text-0);
  line-height: 1.45;
  min-width: 0;
}

.price-m-lab span {
  display: block;
  font-size: 12px;
  color: var(--text-1);
  margin-top: 3px;
}

.price-m-val {
  flex: 0 0 auto;
  text-align: right;
  padding-top: 1px;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .price-m-tab { transition: none; }
}

@media (max-width: 360px) {
  .price-m-sel { grid-template-columns: 1fr; }
}

/* ——— WEB05 · TOUCH DEVICES (iOS and Android) ———
   Keyed on the input device rather than the width, because the two
   problems below follow the finger, not the viewport: an iPhone in
   landscape is 932px wide and still auto-zooms.                        */
@media (hover:none) and (pointer:coarse){

  /* iOS Safari zooms the whole page in whenever a focused input has a
     font-size below 16px, and does not zoom back out afterwards. At
     14px every tap on the demo form left the visitor stranded on a
     zoomed, horizontally scrolling page. 16px is the documented
     threshold, not a preference. */
  .field input,.field select,.field textarea{font-size:16px}

  /* 36px is under both minimum tap targets - Apple asks 44x44, Android
     Material 48x48 - and the menu button is the only way to reach the
     navigation on a phone. */
  .menu-btn,.theme-toggle{width:44px;height:44px}
  .lang-switch a{padding:10px 8px}
}

/* ——— WEB05 · VERY NARROW PHONES ———
   Measured: at a 280px screen (Galaxy Z Fold cover) the header nav ran
   72px past the viewport, and at 320px (iPhone SE 1st gen, budget
   Android, or any phone with Larger Text turned on) 32px — far enough
   that the menu button, the only way to reach the navigation, was
   clipped at or past the edge. Raising the touch targets to 44px makes
   that worse, not better, so the row has to give something up.

   The theme toggle goes rather than the CTA or the menu: it is a
   convenience, and the page still honours the device's own dark/light
   preference without it. Commercial CTA and navigation both stay.      */
@media (max-width:379px){
  header .theme-toggle{display:none}
  .nav-cta{padding:6px 10px;font-size:12px}
  nav{gap:8px}
  .header-inner{padding-left:14px;padding-right:14px}
}
