/* ============================================================
   Kernel — File Sanitizer — product landing page
   "rebuild, not scan": calm, structural, one accent.
   Light + dark via [data-theme]. Vanilla CSS, no framework.
   Base system shared with throttle/, tuned to LorisLabs house
   palette (#FBFBFD light bg, #0071E3 accent, Newsreader italic
   for the one emphasised phrase).
   ============================================================ */

:root {
  --accent: #0071E3;
  --accent-press: #0063C6;
  --ff: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  --ff-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, monospace;
  --ff-serif: "Newsreader", Georgia, serif;
  --maxw: 1080px;
}

/* ---- light ---- */
[data-theme="light"] {
  --bg: #FBFBFD;
  --bg-2: #F5F5F7;
  --bg-3: #ECECEF;
  --ink: #1D1D1F;
  --ink-2: #5B5C61;
  --ink-3: #75767B;
  --hair: rgba(0,0,0,0.10);
  --hair-2: rgba(0,0,0,0.06);
  --accent: #0071E3;
  --card: #FFFFFF;
  --hero-bg: #0A0A0C;
  --warn: #C26A00;
  --crit: #D8362B;
  --ok: #2C9D5A;
}
/* ---- dark ---- */
[data-theme="dark"] {
  --bg: #0B0B0D;
  --bg-2: #141416;
  --bg-3: #1B1B1E;
  --ink: #F5F5F7;
  --ink-2: #A1A2A8;
  --ink-3: #78797E;
  --hair: rgba(255,255,255,0.12);
  --hair-2: rgba(255,255,255,0.06);
  --accent: #2A92FF;
  --card: #141416;
  --hero-bg: #060607;
  --warn: #FF9F0A;
  --crit: #FF453A;
  --ok: #30D158;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--ff); background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-size: 16px; line-height: 1.5;
}
.mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
em.serif { font-family: var(--ff-serif); font-style: italic; font-weight: 500; color: var(--accent); }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow { font-size: 12px; font-weight: 660; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--ink-2); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: 56px;
  display: flex; align-items: center; gap: 18px;
  padding: 0 28px; border-bottom: 1px solid var(--hair);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
}
.nav .brand { display: flex; align-items: center; gap: 9px; font-weight: 640; font-size: 16px; letter-spacing: -0.015em; }
.nav .brand svg { width: 20px; height: 20px; color: var(--ink); }
.nav .links { display: flex; gap: 22px; margin-left: 14px; }
.nav .links a { font-size: 14px; color: var(--ink-2); transition: color 0.14s; }
.nav .links a:hover { color: var(--ink); }
.nav .sp { flex: 1; }
.nav .price-note { font-size: 13px; color: var(--ink-3); }
@media (max-width: 780px) { .nav .links { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ff); font-size: 15px; font-weight: 590; line-height: 1;
  padding: 12px 20px; border-radius: 11px; cursor: pointer; border: 0;
  background: var(--accent); color: #fff; position: relative;
  transition: transform 0.12s cubic-bezier(.3,.7,.4,1), box-shadow 0.16s, background 0.14s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { background: var(--accent-press); transform: translateY(-1px); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 42%, transparent); }
.btn:active { transform: translateY(0); }
.btn.sm { font-size: 13.5px; padding: 9px 15px; border-radius: 9px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.btn.ghost:hover { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--hair); transform: translateY(-1px); }
.btn .sub { font-size: 11px; font-weight: 500; opacity: 0.8; }
.dl-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 11px; }
.dl-meta .mono { color: var(--ink-2); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner { padding: 88px 28px 0; max-width: var(--maxw); margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.03em;
  font-weight: 680; margin: 18px auto 0; max-width: 19ch; text-wrap: balance;
}
.hero .sub { font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); margin: 20px auto 0; max-width: 58ch; line-height: 1.55; text-wrap: balance; }
.hero .cta { display: flex; gap: 13px; justify-content: center; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.hero .cta-col { display: flex; flex-direction: column; align-items: center; }

/* ---------- product shot frame ---------- */
.shot-stage { position: relative; margin-top: 44px; }
.macwin {
  border-radius: 13px; overflow: hidden; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.22), 0 0 0 0.5px var(--hair);
  background: var(--card); text-align: left;
}
[data-theme="dark"] .macwin { box-shadow: 0 30px 90px rgba(0,0,0,0.6), 0 0 0 0.5px rgba(255,255,255,0.08); }

/* ===========================================================
   PLAN SHEET — hero mock: the app's own window making the
   rebuild/scan argument (no real screenshot available).
   =========================================================== */
.plansheet { --u-bg: var(--card); --u-ink: var(--ink); --u-ink2: var(--ink-2); --u-ink3: var(--ink-3); --u-sep: var(--hair); }
.plansheet .tbar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--u-sep); background: var(--bg-2); }
.plansheet .tl { width: 11px; height: 11px; border-radius: 50%; }
.plansheet .tl.r{background:#FF5F57}.plansheet .tl.y{background:#FEBC2E}.plansheet .tl.g{background:#28C840}
.plansheet .ttl { margin-left: 8px; font-size: 12.5px; color: var(--u-ink2); font-weight: 560; }
.plansheet .body { padding: 18px 20px 20px; }
.plansheet .row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--u-sep); }
.plansheet .row:last-child { border-bottom: none; }
.plansheet .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--accent); flex: none; }
.plansheet .ic svg { width: 17px; height: 17px; }
.plansheet .nm { font-size: 13.5px; font-weight: 600; color: var(--u-ink); }
.plansheet .carries { font-size: 11.5px; color: var(--u-ink3); margin-top: 2px; }
.plansheet .carries s { color: var(--crit); opacity: 0.85; }
.plansheet .verdict { font-size: 11px; font-weight: 700; letter-spacing: 0.02em; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.plansheet .verdict.clean { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.plansheet .verdict.pend { background: var(--bg-3); color: var(--u-ink3); }
.plansheet .foot { display: flex; align-items: center; gap: 10px; padding: 13px 20px; border-top: 1px solid var(--u-sep); background: var(--bg-2); }
.plansheet .foot .m { font-size: 12px; color: var(--u-ink2); }
.plansheet .foot .sp { flex: 1; }
.plansheet .foot .go { font-size: 12.5px; font-weight: 640; color: #fff; background: var(--accent); padding: 7px 14px; border-radius: 8px; }

/* ---------- section ---------- */
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 62ch; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.025em; font-weight: 660; margin: 12px 0 0; text-wrap: balance; }
.section-head p { font-size: 17px; color: var(--ink-2); margin: 14px 0 0; line-height: 1.6; text-wrap: balance; }

/* what files carry — 3 columns */
.carry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair); }
.carry { background: var(--bg); padding: 30px 26px; }
.carry .ico { width: 36px; height: 36px; border-radius: 9px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 16px; }
.carry .ico svg { width: 19px; height: 19px; }
.carry h3 { font-size: 17px; font-weight: 640; letter-spacing: -0.01em; margin: 0 0 9px; }
.carry ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.carry li { font-size: 14px; color: var(--ink-2); line-height: 1.5; padding-left: 14px; position: relative; }
.carry li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--crit); opacity: 0.6; }
@media (max-width: 860px) { .carry-grid { grid-template-columns: 1fr; } }

/* rebuild diagram — 4 boxes, sandbox emphasised */
.diagram { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; align-items: stretch; margin-top: 8px; }
.dbox { border: 1px solid var(--hair); background: var(--bg); padding: 22px 18px; text-align: center; position: relative; }
.dbox + .dbox { border-left: none; }
.dbox:first-child { border-radius: 14px 0 0 14px; }
.dbox:last-child { border-radius: 0 14px 14px 0; }
.dbox .dico { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--ink-2); margin: 0 auto 14px; }
.dbox .dico svg { width: 20px; height: 20px; }
.dbox .dt { font-size: 14px; font-weight: 640; letter-spacing: -0.01em; }
.dbox .dd { font-size: 12px; color: var(--ink-3); margin-top: 5px; line-height: 1.4; }
.dbox.sandbox { background: color-mix(in srgb, var(--accent) 7%, var(--bg)); box-shadow: inset 0 0 0 1.5px var(--accent); z-index: 1; }
.dbox.sandbox .dico { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.dbox.sandbox .dt { color: var(--accent); }
.darrow { display: none; }
@media (max-width: 860px) {
  .diagram { grid-template-columns: 1fr; gap: 10px; }
  .dbox, .dbox:first-child, .dbox:last-child { border-radius: 12px; border-left: 1px solid var(--hair); }
}

/* refusal — before/after */
.refusal { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hair); border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair); }
.rcard { background: var(--bg); padding: 30px 28px; }
.rcard .rk { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.rcard.ask .rk { color: var(--ink-3); }
.rcard.refuse .rk { color: var(--accent); }
.rswatch { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.rswatch .chip { width: 54px; height: 54px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; }
.rswatch .chip.png { background: repeating-conic-gradient(#d9d9de 0% 25%, #eee 0% 50%) 0 0/12px 12px; color: #6E6E73; }
.rswatch .chip.heic { background: var(--bg-3); color: var(--ink-3); border: 1.5px dashed var(--ink-3); }
.rswatch .arrow { color: var(--ink-3); }
.rcard p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin: 0; }
.rcard .verdict-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 620; color: var(--ok); margin-bottom: 12px; }
.rcard .verdict-line svg { width: 16px; height: 16px; }
@media (max-width: 780px) { .refusal { grid-template-columns: 1fr; } }

/* contact sheet — batch mid-run */
.contact-sheet { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; max-width: 620px; margin: 0 auto; }
.tile { aspect-ratio: 1; border-radius: 8px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; position: relative; border: 1px solid var(--hair); }
.tile.done { background: color-mix(in srgb, var(--ok) 12%, var(--bg-2)); }
.tile.done svg { width: 16px; height: 16px; color: var(--ok); }
.tile.run { background: color-mix(in srgb, var(--accent) 10%, var(--bg-2)); }
.tile.run .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.batch-meta { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.batch-meta .bm { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.batch-meta .bm .mono { color: var(--ink); }

/* watch folder card */
.watchcard { display: flex; align-items: center; gap: 18px; max-width: 560px; margin: 0 auto; padding: 22px 24px; border: 1px solid var(--hair); border-radius: 14px; background: var(--bg); }
.watchcard .wico { width: 44px; height: 44px; border-radius: 11px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--accent); flex: none; }
.watchcard .wico svg { width: 22px; height: 22px; }
.watchcard .wtext { flex: 1; }
.watchcard .wtitle { font-size: 15px; font-weight: 620; }
.watchcard .wsub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.toggle { width: 42px; height: 25px; border-radius: 99px; background: var(--ok); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 2.5px; right: 2.5px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }

/* verdicts — 4 tiles */
.verdicts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair); border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair); }
.vtile { background: var(--bg); padding: 26px 20px; text-align: center; }
.vtile .vdot { width: 12px; height: 12px; border-radius: 50%; margin: 0 auto 12px; }
.vtile.ok .vdot { background: var(--ok); }
.vtile.unknown .vdot { background: var(--ink-3); }
.vtile.tampered .vdot { background: var(--crit); }
.vtile.notarch .vdot { background: var(--warn); }
.vtile .vt { font-size: 14px; font-weight: 640; }
.vtile .vd { font-size: 12px; color: var(--ink-3); margin-top: 5px; line-height: 1.4; }
@media (max-width: 860px) { .verdicts { grid-template-columns: repeat(2, 1fr); } }

/* iPhone section */
.iphone-scene { display: grid; grid-template-columns: 300px 1fr; gap: 52px; align-items: center; }
.iphone-scene.reverse { grid-template-columns: 1fr 300px; }
.iphone-scene.reverse .iphone-mock { order: 2; }
.iphone-mock { justify-self: center; width: 220px; border-radius: 34px; background: var(--card); box-shadow: 0 24px 60px rgba(0,0,0,0.22), 0 0 0 8px var(--bg-2), 0 0 0 9px var(--hair); overflow: hidden; }
[data-theme="dark"] .iphone-mock { box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 8px var(--bg-2), 0 0 0 9px rgba(255,255,255,0.08); }
.iphone-mock .inotch { height: 22px; display: flex; justify-content: center; align-items: flex-start; padding-top: 6px; }
.iphone-mock .inotch span { width: 60px; height: 8px; border-radius: 6px; background: var(--ink); opacity: 0.85; }
.iphone-mock .iscreen { padding: 6px 12px 16px; }
.iphone-mock .irow { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px; background: var(--bg-2); margin-bottom: 8px; }
.iphone-mock .irow .iic { width: 28px; height: 28px; border-radius: 7px; background: var(--bg-3); display: flex; align-items: center; justify-content: center; color: var(--accent); flex: none; }
.iphone-mock .irow .iic svg { width: 14px; height: 14px; }
.iphone-mock .irow .itxt { flex: 1; }
.iphone-mock .irow .in { font-size: 10.5px; font-weight: 620; }
.iphone-mock .irow .is { font-size: 8.5px; color: var(--ink-3); }
.iphone-mock .irow .icheck { color: var(--ok); }
.iphone-mock .irow .icheck svg { width: 14px; height: 14px; }
.iphone-scene-copy h3 { font-size: clamp(22px, 2.8vw, 28px); letter-spacing: -0.02em; font-weight: 640; margin: 14px 0 0; text-wrap: balance; }
.iphone-scene-copy p { font-size: 15.5px; color: var(--ink-2); margin: 14px 0 0; line-height: 1.6; }
.iphone-scene-copy .pts { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.iphone-scene-copy .pts li { display: flex; gap: 9px; font-size: 14px; color: var(--ink); align-items: flex-start; }
.iphone-scene-copy .pts svg { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 2px; }
@media (max-width: 820px) {
  .iphone-scene, .iphone-scene.reverse { grid-template-columns: 1fr; gap: 26px; }
  .iphone-scene.reverse .iphone-mock { order: 0; }
}

/* comparison table */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp-table th, .cmp-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--hair); }
.cmp-table th { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.cmp-table td.k { color: var(--ink-2); font-weight: 560; }
.cmp-table td.hi { font-weight: 640; color: var(--accent); }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: 14px; }
.cmp-wrap table { margin: 0; }
.cmp-note { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; text-align: center; }

/* trust line */
.trust { text-align: center; padding: 64px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.trust .lock { width: 30px; height: 30px; color: var(--accent); margin: 0 auto 16px; display: block; }
.trust h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; font-weight: 640; margin: 0; text-wrap: balance; }
.trust p { font-size: 16px; color: var(--ink-2); max-width: 58ch; margin: 14px auto 0; line-height: 1.6; }
.trust .tfacts { display: flex; justify-content: center; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.trust .tfacts span { font-size: 13px; color: var(--ink-3); }
.trust .tfacts .mono { color: var(--ink-2); }

/* pricing */
.pricing-single { max-width: 460px; margin: 0 auto; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--hair)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 18px; padding: 34px; text-align: center; background: var(--bg); }
.pricing-single .pname { font-size: 13px; font-weight: 660; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.pricing-single .price { font-family: var(--ff-mono); font-size: 46px; font-weight: 560; letter-spacing: -0.03em; margin: 12px 0 2px; }
.pricing-single .price .per { font-size: 15px; color: var(--ink-3); font-family: var(--ff); letter-spacing: 0; }
.pricing-single .pfeat { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 11px; text-align: left; }
.pricing-single .pfeat li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink); align-items: flex-start; }
.pricing-single .pfeat svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 2px; }
.pricing-single .pbtn { margin-top: 26px; width: 100%; }

/* footer */
.footer { padding: 44px 0; border-top: 1px solid var(--hair); }
.footer .frow { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .brand { display: flex; align-items: center; gap: 9px; font-weight: 620; }
.footer .brand svg { width: 18px; height: 18px; }
.footer .flinks { display: flex; gap: 20px; }
.footer .flinks a { font-size: 13px; color: var(--ink-3); transition: color 0.14s; }
.footer .flinks a:hover { color: var(--ink-2); }
.footer .sp { flex: 1; }
.footer .copy { font-size: 12.5px; color: var(--ink-3); }

/* theme toggle */
.theme-tgl { display: inline-flex; background: var(--bg-3); border-radius: 8px; padding: 2px; gap: 1px; }
.theme-tgl button { font: inherit; font-size: 12px; font-weight: 540; color: var(--ink-2); border: 0; background: transparent; padding: 5px 10px; border-radius: 6px; cursor: pointer; }
.theme-tgl button[data-on="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.12); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
