/* Laboryn public site.
   Design system is taken from the application frontend (static_v3/styles.css):
   same tokens, same logo mark, same button and focus treatment, so the public
   pages and the signed-in product read as one product rather than two sites.
   Long-form pages use a 16px base (the app shell uses 15px) because these
   pages carry policy prose rather than dense UI. */
:root{
  color-scheme:dark;
  --bg:#0f0f10;
  --surface:#171718;
  --surface-2:#1d1d1f;
  --surface-3:#242427;
  --line:#2d2d30;
  --line-soft:#242426;
  --ink:#f4f4f2;
  --muted:#aaa9a5;
  --muted-2:#74736f;
  --accent:#d8d4ff;
  --accent-strong:#8f83ff;
  --danger:#ff858c;
  --warning:#e8bf72;
  --success:#79d7a8;
  --brand:#6FD6C4;
  --radius:16px;
  --maxw:1080px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font:16px/1.6 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%}
:focus-visible{outline:2px solid var(--accent-strong);outline-offset:2px;border-radius:6px}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 1.25rem}
.skip{position:absolute;left:-999px}
.skip:focus{left:1rem;top:.6rem;position:fixed;background:var(--surface-3);padding:.5rem .8rem;border-radius:8px;z-index:99}

/* Header — mirrors the app's brand row */
header.site{position:sticky;top:0;z-index:20;background:rgba(15,15,16,.86);backdrop-filter:blur(8px);border-bottom:1px solid var(--line-soft)}
/* `.nav` shares its element with `.wrap`, so it must restate the gutter:
   a bare `padding:.8rem 0` here would override `.wrap`'s and leave the brand
   hanging 20px left of every heading below it. */
.nav{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem 1rem;padding:.8rem 1.25rem}
.brand{display:flex;align-items:center;gap:.65rem;font-weight:800;color:var(--ink);letter-spacing:-.01em}
.brand:hover{text-decoration:none}

.nav .spacer{flex:1}
.nav a.navlink{display:inline-flex;align-items:center;min-height:40px;color:var(--muted);font-size:.92rem;font-weight:620;white-space:nowrap}
.nav a.navlink:hover{color:var(--ink);text-decoration:none}
.nav a.navlink[aria-current="page"]{color:var(--ink)}

/* Buttons — identical treatment to the app shell */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:11px;
  padding:.7rem 1.15rem;font-weight:730;font-size:.92rem;border:1px solid var(--line);
  background:#1c1c1e;color:var(--ink);transition:background .15s,border-color .15s,transform .1s}
.btn:hover{background:#232326;border-color:#3a3a3e;text-decoration:none}
.btn:active{transform:translateY(1px)}
.btn.primary{background:#f2f0ea;border-color:#f2f0ea;color:#151516}
.btn.primary:hover{background:#fff;border-color:#fff}

.soft-badge{display:inline-flex;align-items:center;border:1px solid var(--line);background:#18181a;color:#b9b8b4;
  border-radius:999px;padding:.32rem .62rem;font-size:.72rem;font-weight:700;letter-spacing:.02em}
.cta-row{margin-top:1.5rem;display:flex;flex-wrap:wrap;gap:.6rem}

/* Typography — app letter-spacing, marketing scale */
h1{font-size:clamp(1.95rem,4.4vw,3rem);line-height:1.1;letter-spacing:-.045em;margin:.5rem 0 1rem}
h2{font-size:clamp(1.35rem,2.5vw,1.8rem);line-height:1.15;letter-spacing:-.04em;margin:2.6rem 0 1rem}
h3{font-size:1.02rem;letter-spacing:-.015em;margin:1.4rem 0 .45rem}
p{color:#e7e6e2;margin:0 0 1rem}
.lead{font-size:1.12rem;color:var(--muted);max-width:54ch}
.muted{color:var(--muted)}
.emphasis{color:var(--ink)}
.contact-email{font-size:1.15rem}
section.hero{padding:3.4rem 0 1.6rem}

/* Cards and grids */
.grid{display:grid;gap:1rem}
@media(min-width:720px){.grid.cols-2{grid-template-columns:1fr 1fr}.grid.cols-3{grid-template-columns:repeat(3,1fr)}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.25rem}
.card h3{margin-top:0}
.card p{color:var(--muted);margin:.3rem 0 0}

.notice{border:1px solid rgba(232,191,114,.28);background:rgba(232,191,114,.06);color:#e9dcc0;
  border-radius:12px;padding:.9rem 1rem;margin:1.4rem 0;font-size:.92rem}
.notice.info{border-color:rgba(143,131,255,.28);background:rgba(143,131,255,.06);color:#e6e3ff}
.notice p{color:inherit}
.notice :last-child{margin-bottom:0}

/* Tables scroll inside their own container: no page-level horizontal overflow */
.table-scroll{overflow-x:auto;margin:1rem 0;border-radius:12px;-webkit-overflow-scrolling:touch}
table{border-collapse:collapse;width:100%;min-width:640px;font-size:.9rem}
th,td{border:1px solid var(--line);padding:.62rem .78rem;text-align:left;white-space:nowrap}
th{background:var(--surface-2);font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
td.off{color:var(--muted-2)}

/* Plan cards */
.price-row{display:flex;flex-wrap:wrap;gap:1rem;margin:1.4rem 0}
.price{flex:1 1 220px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.25rem}
.price.current{border-color:var(--accent-strong);box-shadow:0 0 0 3px rgba(143,131,255,.10)}
.price .amt{font-size:1.85rem;font-weight:800;letter-spacing:-.03em}
.price .per{color:var(--muted);font-size:.85rem;font-weight:600}
.price .plan-name{font-weight:730;color:var(--muted);margin:.2rem 0 .6rem}
.price ul{margin:.8rem 0 0;padding-left:1.1rem;color:var(--muted);font-size:.9rem}
.price li{margin:.28rem 0}
.price-foot{margin-top:.9rem}

/* Policy prose */
.legal{max-width:70ch}
.legal h2{margin-top:2.2rem}
.legal p,.legal li{color:#dedcd7}
.legal ul{padding-left:1.2rem}
.legal li{margin:.35rem 0}
code{background:var(--surface-2);border:1px solid var(--line);border-radius:5px;padding:.1rem .35rem;font-size:.88em;
  word-break:break-word}

footer.site{border-top:1px solid var(--line-soft);margin-top:4rem;padding:2rem 0 2.6rem;color:var(--muted);font-size:.88rem}
footer.site .cols{display:flex;flex-wrap:wrap;gap:1.4rem 2rem;justify-content:space-between}
footer.site .footer-brand{color:var(--ink)}
footer.site .disclaimer{margin-top:.6rem}
footer.site a{color:var(--muted)}
footer.site a:hover{color:var(--ink)}
.footer-links{margin-top:1.2rem;display:flex;flex-wrap:wrap;gap:.35rem .75rem}
.footer-links a{display:inline-flex;align-items:center;min-height:36px}

@media(max-width:680px){
  .wrap{padding:0 1rem}
  .nav{gap:.4rem .85rem;padding:.7rem 1rem}
  /* Two rows, not three: brand and the sign-in CTA share the first row, the
     links wrap onto the second. Left to source order the CTA is pushed onto a
     row of its own and the sticky header eats a fifth of a 375px screen. */
  .nav .brand{order:0}
  .nav .btn{order:1;margin-left:auto}
  .nav .spacer{order:2;flex-basis:100%;height:0}
  .nav a.navlink{order:3;font-size:.86rem;min-height:38px}
  section.hero{padding:2.4rem 0 1.2rem}
  .lead{font-size:1.05rem}
  h2{margin:2.1rem 0 .9rem}
}
/* The Laboryn mark. One SVG, coloured by the surface it sits on. */
.logo-mark{display:block;width:30px;height:30px;color:var(--brand)}
