/* ===== LK Software — shared stylesheet (house + product sub-pages) =====
   House palette: warm greige neutrals + petrol-teal accent (unisex). Product
   sub-pages may override --accent to their signature (FastSheet emerald).
   Contrast tuned to WCAG AA (both themes). ===== */
:root {
  --ground: #F3F0E9;
  --surface: #FBFAF6;
  --surface-2: #E8E4DB;
  --ink: #1B1D19;
  --ink-soft: #3F433B;
  --muted: #66685D;              /* 4.98:1 on ground — AA */
  --hair: #E1DDD2;
  --hair-strong: #CFC9BB;
  --accent: #0F6E72;             /* petrol teal — house */
  --accent-strong: #0B585C;
  --accent-ink: #ffffff;
  --accent-wash: #DBE8E7;
  --amber: #8A5510;              /* warm secondary — 5.03:1 on amber-wash */
  --amber-wash: #F4E6CD;
  --warn: #8A5510;
  --warn-wash: #F4E6CD;
  --fs: #0f766e;                 /* FastSheet emerald-teal */
  --fs-wash: #E1EEEA;
  --pr: #0F6E72;                 /* PinRail petrol */
  --pr-wash: #DBE8E7;
  --grid-line: rgba(15,110,114,.08);
  --shadow: 0 1px 2px rgba(38,34,26,.06), 0 12px 32px -12px rgba(38,34,26,.18);
  --shadow-lift: 0 2px 4px rgba(38,34,26,.07), 0 28px 60px -20px rgba(38,34,26,.32);
  --radius: 14px;
  --maxw: 1120px;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #121311; --surface: #191B18; --surface-2: #20231F; --ink: #EEF0EA; --ink-soft: #CDD1C8;
    --muted: #898D82; --hair: #262924; --hair-strong: #353A33; --accent: #4AC5CA; --accent-strong: #6BD4D8;
    --accent-ink: #04211f; --accent-wash: #0E2D2E; --amber: #E8A33D; --amber-wash: #2E2210;
    --warn: #E8A33D; --warn-wash: #2E2210; --fs: #2dd4bf; --fs-wash: #123029; --pr: #4AC5CA; --pr-wash: #0E2D2E;
    --grid-line: rgba(74,197,202,.10);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 34px -14px rgba(0,0,0,.62);
    --shadow-lift: 0 2px 6px rgba(0,0,0,.5), 0 30px 64px -22px rgba(0,0,0,.76);
  }
}
:root[data-theme="light"]{--ground:#F3F0E9;--surface:#FBFAF6;--surface-2:#E8E4DB;--ink:#1B1D19;--ink-soft:#3F433B;--muted:#66685D;--hair:#E1DDD2;--hair-strong:#CFC9BB;--accent:#0F6E72;--accent-strong:#0B585C;--accent-ink:#fff;--accent-wash:#DBE8E7;--amber:#8A5510;--amber-wash:#F4E6CD;--warn:#8A5510;--warn-wash:#F4E6CD;--fs:#0f766e;--fs-wash:#E1EEEA;--pr:#0F6E72;--pr-wash:#DBE8E7;--grid-line:rgba(15,110,114,.08);--shadow:0 1px 2px rgba(38,34,26,.06),0 12px 32px -12px rgba(38,34,26,.18);--shadow-lift:0 2px 4px rgba(38,34,26,.07),0 28px 60px -20px rgba(38,34,26,.32);}
:root[data-theme="dark"]{--ground:#121311;--surface:#191B18;--surface-2:#20231F;--ink:#EEF0EA;--ink-soft:#CDD1C8;--muted:#898D82;--hair:#262924;--hair-strong:#353A33;--accent:#4AC5CA;--accent-strong:#6BD4D8;--accent-ink:#04211f;--accent-wash:#0E2D2E;--amber:#E8A33D;--amber-wash:#2E2210;--warn:#E8A33D;--warn-wash:#2E2210;--fs:#2dd4bf;--fs-wash:#123029;--pr:#4AC5CA;--pr-wash:#0E2D2E;--grid-line:rgba(74,197,202,.10);--shadow:0 1px 2px rgba(0,0,0,.4),0 14px 34px -14px rgba(0,0,0,.62);--shadow-lift:0 2px 6px rgba(0,0,0,.5),0 30px 64px -22px rgba(0,0,0,.76);}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; background:var(--ground); color:var(--ink); font-family:var(--sans); font-size:17px; line-height:1.6; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; overflow-x:hidden; }
.wrap { max-width:var(--maxw); margin:0 auto; padding:0 24px; }
a { color:inherit; }
h1,h2,h3 { text-wrap:balance; margin:0; letter-spacing:-.022em; line-height:1.1; }
p { margin:0; }
.mono { font-family:var(--mono); font-variant-numeric:tabular-nums; }
.eyebrow { font-family:var(--mono); font-size:12.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); font-weight:600; }

/* nav */
header.nav { position:sticky; top:0; z-index:20; background:color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter:blur(10px); border-bottom:1px solid var(--hair); }
.nav-in { display:flex; align-items:center; justify-content:space-between; height:64px; }
.brand { display:flex; align-items:center; gap:11px; font-weight:700; letter-spacing:-.02em; font-size:18px; text-decoration:none; color:var(--ink); }
.brand .glyph { width:28px; height:28px; border-radius:8px; display:grid; place-items:center; background:var(--accent); color:var(--accent-ink); box-shadow:inset 0 0 0 1px rgba(255,255,255,.14); }
.brand .glyph svg { width:17px; height:17px; }
.nav-links { display:flex; align-items:center; gap:26px; font-size:14.5px; }
.nav-links a { text-decoration:none; color:var(--ink-soft); transition:color .15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color:var(--accent); }
.nav-links a:focus-visible, .brand:focus-visible { outline:2px solid var(--accent); outline-offset:3px; border-radius:5px; }

/* buttons */
.btn { display:inline-flex; align-items:center; gap:9px; font-family:var(--sans); font-weight:600; font-size:16px; border-radius:11px; padding:14px 22px; cursor:pointer; border:1px solid transparent; text-decoration:none; transition:transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn svg { width:18px; height:18px; flex:none; }
.btn-primary { background:var(--accent); color:var(--accent-ink); box-shadow:var(--shadow); }
.btn-primary:hover { transform:translateY(-1px); box-shadow:var(--shadow-lift); background:var(--accent-strong); }
.btn-primary:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.btn-ghost { background:transparent; color:var(--ink); border-color:var(--hair-strong); padding:12px 18px; }
.btn-ghost:hover { border-color:var(--accent); color:var(--accent); }
.btn-ghost:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.btn .sub { font-family:var(--mono); font-size:12.5px; opacity:.82; font-weight:500; }

/* hero */
.hero { position:relative; overflow:hidden; border-bottom:1px solid var(--hair); }
.hero::before { content:""; position:absolute; inset:0; pointer-events:none; background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px); background-size:36px 36px; mask-image:radial-gradient(120% 90% at 72% 0%, #000 28%, transparent 76%); }
.hero-in { padding:82px 0 74px; position:relative; }
.hero-split { display:grid; grid-template-columns:1.02fr .98fr; gap:54px; align-items:center; }
.h-badge { display:inline-flex; align-items:center; gap:8px; font-family:var(--mono); font-size:12.5px; letter-spacing:.04em; color:var(--ink-soft); background:var(--surface); border:1px solid var(--hair); padding:6px 13px; border-radius:999px; margin-bottom:24px; }
.h-badge .dot { width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 3px var(--accent-wash); }
h1.hero-h { font-size:clamp(38px,5.6vw,60px); font-weight:800; max-width:16ch; }
h1.hero-h .u { color:var(--accent); }
.hero-sub { margin-top:22px; font-size:clamp(17px,2vw,20px); color:var(--ink-soft); max-width:52ch; }
.hero-actions { margin-top:30px; display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.trust-row { margin-top:28px; display:flex; gap:20px; flex-wrap:wrap; font-size:14px; color:var(--muted); }
.trust-row .t { display:inline-flex; align-items:center; gap:7px; }
.trust-row svg { width:15px; height:15px; color:var(--accent); flex:none; }

/* sections */
section { padding:76px 0; border-bottom:1px solid var(--hair); }
.sec-head { max-width:40ch; margin-bottom:40px; }
.sec-head.center { margin-left:auto; margin-right:auto; text-align:center; }
.sec-head h2 { font-size:clamp(26px,3.6vw,36px); font-weight:800; }
.sec-head p { margin-top:14px; color:var(--ink-soft); font-size:18px; }

/* product cards (house) */
.products { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.prod { position:relative; display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--hair-strong); border-radius:18px; padding:30px; box-shadow:var(--shadow); overflow:hidden; }
.prod::before { content:""; position:absolute; inset:0 0 auto 0; height:3px; background:var(--sig, var(--accent)); }
.prod.fs { --sig:var(--fs); --sig-wash:var(--fs-wash); }
.prod.pr { --sig:var(--pr); --sig-wash:var(--pr-wash); }
.prod-top { display:flex; align-items:center; gap:13px; margin-bottom:16px; }
.prod-ico { width:46px; height:46px; border-radius:12px; display:grid; place-items:center; background:var(--sig-wash); color:var(--sig); flex:none; }
.prod-ico svg { width:24px; height:24px; }
.prod-name { font-size:22px; font-weight:800; letter-spacing:-.02em; }
.prod-tag { font-family:var(--mono); font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--sig); font-weight:600; margin-top:2px; }
.prod h3 { font-size:19px; font-weight:700; letter-spacing:-.015em; margin-bottom:8px; }
.prod p.lede { color:var(--ink-soft); font-size:15.5px; }
.prod .feats { list-style:none; padding:0; margin:18px 0 0; display:flex; flex-direction:column; gap:9px; font-size:14.5px; color:var(--ink-soft); }
.prod .feats li { display:flex; align-items:flex-start; gap:9px; }
.prod .feats svg { width:16px; height:16px; color:var(--sig); flex:none; margin-top:2px; }
.prod .spacer { flex:1; min-height:18px; }
.prod .cta-row { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.prod .cta-row .btn-primary { background:var(--sig); }
.prod .price { font-family:var(--mono); font-size:14px; color:var(--muted); }
.prod .price b { color:var(--ink); font-size:16px; font-weight:700; }
.prod .note { margin-top:14px; font-size:12.5px; color:var(--muted); line-height:1.5; }
.prod .card-link { display:inline-flex; align-items:center; gap:6px; margin-top:16px; font-weight:600; font-size:14.5px; color:var(--sig); text-decoration:none; }
.prod .card-link:hover { gap:9px; }
.prod .card-link:focus-visible { outline:2px solid var(--sig); outline-offset:3px; border-radius:5px; }
.prod .card-link svg { width:15px; height:15px; transition:transform .15s ease; }
.badge-soon { display:inline-flex; align-items:center; gap:6px; font-family:var(--mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--amber); background:var(--amber-wash); border:1px solid color-mix(in srgb, var(--amber) 30%, transparent); border-radius:999px; padding:4px 10px; font-weight:600; }
.badge-soon svg { width:13px; height:13px; }

/* values (house) */
.values { background:var(--surface); }
.vgrid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.val .vico { width:38px; height:38px; border-radius:10px; display:grid; place-items:center; background:var(--accent-wash); color:var(--accent); margin-bottom:14px; }
.val .vico svg { width:20px; height:20px; }
.val h3 { font-size:16px; font-weight:700; margin-bottom:7px; }
.val p { color:var(--ink-soft); font-size:14.5px; }

/* feature grid (sub-pages) */
.feat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.feat { background:var(--surface); border:1px solid var(--hair); border-radius:var(--radius); padding:26px; }
.feat .fico { width:40px; height:40px; border-radius:10px; display:grid; place-items:center; background:var(--accent-wash); color:var(--accent); margin-bottom:14px; }
.feat .fico svg { width:21px; height:21px; }
.feat h3 { font-size:17px; font-weight:700; margin-bottom:8px; letter-spacing:-.01em; }
.feat p { color:var(--ink-soft); font-size:15px; }

/* problem/contrast (fastsheet) */
.contrast { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.card { background:var(--surface); border:1px solid var(--hair); border-radius:var(--radius); padding:26px; }
.card .lbl { font-family:var(--mono); font-size:12px; letter-spacing:.12em; text-transform:uppercase; margin-bottom:12px; }
.card.pain { border-color:color-mix(in srgb, var(--warn) 30%, var(--hair)); background:var(--warn-wash); }
.card.pain .lbl { color:var(--warn); }
.card.win { border-color:color-mix(in srgb, var(--accent) 34%, var(--hair)); }
.card.win .lbl { color:var(--accent); }
.card h3 { font-size:21px; font-weight:700; margin-bottom:8px; letter-spacing:-.015em; }
.card p { color:var(--ink-soft); font-size:15.5px; }
.card .big { font-family:var(--mono); font-size:30px; font-weight:700; letter-spacing:-.02em; margin:4px 0 10px; }

/* app mock (fastsheet hero) */
.app { background:var(--surface); border:1px solid var(--hair-strong); border-radius:var(--radius); box-shadow:var(--shadow-lift); overflow:hidden; }
.app-title { display:flex; align-items:center; gap:8px; padding:11px 14px; border-bottom:1px solid var(--hair); background:var(--surface-2); }
.app-title .d { width:11px; height:11px; border-radius:50%; background:var(--hair-strong); }
.app-file { margin-left:8px; font-family:var(--mono); font-size:12.5px; color:var(--ink-soft); display:flex; gap:10px; flex-wrap:wrap; }
.app-file .tag { color:var(--muted); }
.app-stat { display:flex; border-bottom:1px solid var(--hair); background:var(--surface); }
.app-stat .cell { flex:1; padding:11px 14px; border-right:1px solid var(--hair); }
.app-stat .cell:last-child { border-right:0; }
.app-stat .k { font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.app-stat .v { font-family:var(--mono); font-size:17px; font-weight:600; margin-top:3px; letter-spacing:-.01em; }
.app-stat .v.accent { color:var(--accent); }
.grid { font-family:var(--mono); font-size:12.5px; }
.grid .r { display:grid; grid-template-columns:44px 1.4fr 1fr 1fr 1.1fr; border-bottom:1px solid var(--hair); }
.grid .r > div { padding:8px 12px; border-right:1px solid var(--hair); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.grid .r > div:last-child { border-right:0; }
.grid .r.head > div { background:var(--surface-2); color:var(--muted); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; }
.grid .r .idx { color:var(--muted); text-align:right; }
.grid .r .colsel { background:var(--accent-wash); color:var(--ink); }
.grid .r.head .colsel { color:var(--accent); }
.app-foot { display:flex; justify-content:space-between; align-items:center; padding:9px 14px; font-family:var(--mono); font-size:11.5px; color:var(--muted); background:var(--surface-2); border-top:1px solid var(--hair); }
.app-foot .load { color:var(--accent); font-weight:600; }

/* stats */
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.stat { background:var(--surface); border:1px solid var(--hair); border-radius:var(--radius); padding:24px; }
.stat .n { font-family:var(--mono); font-size:30px; font-weight:700; letter-spacing:-.02em; }
.stat .n .unit { font-size:15px; color:var(--muted); font-weight:500; }
.stat .d { margin-top:6px; color:var(--muted); font-size:14px; }

/* steps */
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; counter-reset:step; }
.step { background:var(--surface); border:1px solid var(--hair); border-radius:var(--radius); padding:26px; }
.step .num { counter-increment:step; font-family:var(--mono); font-size:13px; color:var(--accent); font-weight:700; }
.step .num::before { content:counter(step, decimal-leading-zero); }
.step h3 { font-size:18px; font-weight:700; margin:12px 0 8px; letter-spacing:-.01em; }
.step p { color:var(--ink-soft); font-size:15px; }

/* download / get block */
.getbox { max-width:560px; margin:0 auto; background:var(--surface); border:1px solid var(--hair-strong); border-radius:18px; padding:34px; text-align:center; box-shadow:var(--shadow); }
.getbox .kicker { font-family:var(--mono); font-size:12.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); }
.getbox .price-lg { display:flex; align-items:baseline; justify-content:center; gap:10px; margin:14px 0 4px; }
.getbox .price-lg .now { font-family:var(--mono); font-size:52px; font-weight:800; letter-spacing:-.03em; }
.getbox .price-lg .per { color:var(--muted); font-size:15px; }
.getbox .oneoff { color:var(--ink-soft); font-size:15px; }
.getbox .btn { margin-top:22px; width:100%; justify-content:center; font-size:17px; padding:16px; }
.getbox .guarantee { margin-top:18px; display:flex; flex-direction:column; gap:8px; font-size:13.5px; color:var(--muted); }
.getbox .guarantee .g { display:inline-flex; align-items:center; gap:8px; justify-content:center; }
.getbox .guarantee svg { width:15px; height:15px; color:var(--accent); flex:none; }
.getbox .note { margin-top:16px; font-size:12.5px; color:var(--muted); line-height:1.5; }

/* faq */
.faq { display:grid; grid-template-columns:1fr 1fr; gap:16px 40px; }
.qa h3 { font-size:16.5px; font-weight:700; margin-bottom:6px; }
.qa p { color:var(--ink-soft); font-size:15px; }

/* footer */
footer { padding:44px 0 60px; color:var(--muted); font-size:13.5px; }
.foot-in { display:flex; justify-content:space-between; gap:22px; flex-wrap:wrap; align-items:center; }
.foot-links { display:flex; gap:22px; flex-wrap:wrap; }
.foot-links a { color:var(--muted); text-decoration:none; }
.foot-links a:hover, .foot-links a:focus-visible { color:var(--accent); }
a.support { color:var(--accent); text-decoration:none; cursor:pointer; transition:opacity .15s ease; }
a.support:hover { text-decoration:underline; opacity:.82; }
a.support:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }

.reveal { opacity:0; transform:translateY(14px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }

@media (max-width:860px){
  .hero-split { grid-template-columns:1fr; gap:40px; }
  .feat-grid, .steps { grid-template-columns:1fr; }
  .stats { grid-template-columns:1fr 1fr; }
  .faq, .contrast { grid-template-columns:1fr; }
}
@media (max-width:820px){
  .products, .vgrid { grid-template-columns:1fr; }
  .vgrid { grid-template-columns:1fr 1fr; }
  .nav-links { gap:18px; }
  .hero-in { padding:56px 0 52px; }
}
@media (max-width:520px){ .vgrid { grid-template-columns:1fr; } .stats { grid-template-columns:1fr; } }
@media (max-width:400px){ .nav-links { gap:13px; font-size:13.5px; } }
@media (prefers-reduced-motion:reduce){ .reveal{opacity:1;transform:none;transition:none;} .btn,.prod .card-link{transition:none;} html{scroll-behavior:auto;} }
