:root {
  color-scheme: light;
  --ink: #12131a;
  --muted: #5f6470;
  --paper: #f5f7fb;
  --white: #ffffff;
  --line: #c7ccd6;
  --blue: #3267f4;
  --aqua: #1ec8c5;
  --lime: #b8f05f;
  --red: #ff5b4d;
  --purple: #7456ed;
  --yellow: #ffd65a;
  --navy: #070d4d;
  --header-height: 70px;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.5; letter-spacing: 0; }
body.nav-open, body.settings-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { letter-spacing: 0; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 12px; top: 12px; z-index: 100; width: 1px; height: 1px; overflow: hidden; padding: 0; border: 0; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { width: auto; height: auto; overflow: visible; padding: 10px 14px; border: 2px solid var(--ink); clip: auto; background: var(--white); }

.site-header { position: relative; z-index: 40; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 4vw; border-bottom: 1px solid var(--ink); background: var(--white); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-icon { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--navy); border-radius: 6px; }
.brand-name { font-size: 16px; font-weight: 900; }
.site-nav { display: flex; align-items: center; height: 100%; }
.site-nav > a { height: 100%; display: grid; place-items: center; min-width: 94px; padding: 0 18px; border-left: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.site-nav > a:hover, .site-nav > a:focus-visible { background: var(--lime); }
.settings-button { width: 54px; height: 100%; display: grid; place-items: center; padding: 0; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--blue); color: var(--white); cursor: pointer; }
.settings-button span { font-size: 23px; line-height: 1; }
.settings-button:hover, .settings-button:focus-visible { background: var(--purple); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 6px 0; background: var(--ink); }

.hero { position: relative; min-height: 790px; display: grid; grid-template-columns: minmax(340px, 0.74fr) minmax(620px, 1.26fr); align-items: center; gap: 5vw; padding: 74px 5vw 92px; overflow: hidden; border-bottom: 1px solid var(--ink); background: var(--white); }
.hero::before { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 42%; background: var(--aqua); }
.hero-copy { position: relative; z-index: 2; align-self: center; max-width: 590px; }
.hero-brand { width: 104px; height: 104px; margin-bottom: 24px; border: 2px solid var(--navy); border-radius: 8px; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 15px; color: var(--blue); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.kicker span { width: 31px; height: 23px; display: grid; place-items: center; background: var(--blue); color: var(--white); }
.hero h1 { margin: 0; font-size: 72px; line-height: 0.97; font-weight: 950; }
.hero-copy > p:not(.kicker) { max-width: 550px; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.hero-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; padding-bottom: 4px; border-bottom: 2px solid var(--blue); font-size: 13px; font-weight: 850; }

.crush-console { position: relative; z-index: 2; width: min(680px, 100%); justify-self: end; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); box-shadow: 14px 14px 0 var(--navy); }
.console-topbar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--ink); background: var(--white); }
.console-topbar strong { font-size: 14px; }
.console-topbar span { color: var(--blue); font-size: 11px; font-weight: 800; }
.score-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 14px; gap: 8px; background: var(--blue); }
.score-strip p { min-height: 70px; display: grid; place-items: center; align-content: center; margin: 0; border: 1px solid rgba(255,255,255,0.75); border-radius: 4px; color: var(--white); }
.score-strip strong, .score-strip span { display: block; }
.score-strip strong { font-size: 22px; }
.score-strip span { font-size: 9px; font-weight: 800; text-transform: uppercase; }
.progress-track { height: 16px; padding: 5px 14px 5px; background: var(--blue); }
.progress-track::before { content: ""; position: absolute; }
.progress-track span { display: block; width: 56%; height: 6px; border-radius: 3px; background: var(--white); transition: width 220ms ease; }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px; }
.photo-tile { position: relative; aspect-ratio: 1.35; min-width: 0; overflow: hidden; border: 3px solid var(--ink); border-radius: 6px; cursor: pointer; transition: transform 140ms ease, opacity 180ms ease; }
button.photo-tile:hover, button.photo-tile:focus-visible { transform: translateY(-3px); }
.photo-tile.is-selected { border-color: var(--blue); box-shadow: 0 0 0 4px var(--yellow); }
.photo-tile.is-cleared { opacity: 0.18; cursor: default; }
.photo-tile > span { position: absolute; z-index: 3; left: 7px; bottom: 5px; padding: 2px 5px; background: var(--white); color: var(--ink); font-size: 8px; font-weight: 850; }
.scene-sky { background: #75b9ff; }
.scene-sky::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -35%; height: 70%; border-radius: 50% 50% 0 0; background: var(--white); }
.scene-sky::after { content: ""; position: absolute; right: 14%; top: 15%; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); }
.scene-city { background: var(--purple); }
.scene-city::before { content: ""; position: absolute; left: 15%; bottom: 0; width: 16%; height: 58%; background: var(--navy); box-shadow: 34px -18px 0 var(--blue), 68px 8px 0 var(--aqua), 102px -27px 0 var(--red); }
.scene-city::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18%; height: 2px; background: var(--white); }
.scene-leaf { background: var(--lime); }
.scene-leaf::before { content: ""; position: absolute; left: 25%; top: 12%; width: 52%; height: 72%; border: 3px solid var(--ink); border-radius: 70% 12% 70% 12%; background: var(--aqua); transform: rotate(-16deg); }
.scene-leaf::after { content: ""; position: absolute; left: 49%; top: 21%; width: 3px; height: 60%; background: var(--ink); transform: rotate(27deg); }
.scene-wave { background: var(--aqua); }
.scene-wave::before { content: ""; position: absolute; left: -10%; right: 28%; bottom: 4%; height: 78%; border: 12px solid var(--white); border-left: 0; border-bottom: 0; border-radius: 50%; transform: rotate(20deg); }
.scene-wave::after { content: ""; position: absolute; right: 9%; top: 10%; width: 28%; height: 72%; background: var(--blue); transform: skew(-12deg); }
.tile-keeper { display: grid; place-items: center; align-content: center; background: var(--yellow); cursor: default; }
.tile-keeper > span { position: static; padding: 0; background: transparent; color: var(--ink); font-size: 28px; }
.tile-keeper strong { font-size: 10px; text-transform: uppercase; }
.board-message { min-height: 48px; display: flex; align-items: center; margin: 0; padding: 10px 18px; border-top: 1px solid var(--ink); background: var(--white); color: var(--muted); font-size: 11px; }

.scan-line { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ink); background: var(--lime); }
.scan-line p { min-height: 92px; display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 20px; margin: 0; padding: 18px 4vw; border-right: 1px solid var(--ink); }
.scan-line p:last-child { border-right: 0; }
.scan-line strong { font-size: 13px; }
.scan-line span { color: #454b40; font-size: 12px; }

.flow-section { display: grid; grid-template-columns: minmax(300px, 0.72fr) minmax(540px, 1.28fr); gap: 8vw; padding: 110px 7vw 120px; background: var(--paper); border-bottom: 1px solid var(--ink); }
.section-heading { align-self: start; position: sticky; top: 32px; }
.section-heading h2, .workspace-heading h2, .privacy-band h2, .policy-section h2 { margin: 0; font-size: 52px; line-height: 1.04; font-weight: 930; }
.flow-steps { margin: 0; padding: 0; border-top: 2px solid var(--ink); list-style: none; }
.flow-steps li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 27px 0; border-bottom: 1px solid var(--ink); }
.flow-steps li > span { color: var(--blue); font-size: 11px; font-weight: 900; }
.flow-steps h3 { margin: 0; font-size: 23px; }
.flow-steps p { margin: 7px 0 0; color: var(--muted); }

.workspace-section { padding: 100px 5vw 120px; background: var(--navy); color: var(--white); }
.workspace-heading { max-width: 900px; margin-bottom: 42px; }
.workspace-heading .kicker { color: var(--aqua); }
.workspace-heading .kicker span { background: var(--aqua); color: var(--navy); }
.workspace { width: min(1220px, 100%); margin: 0 auto; border: 2px solid var(--white); border-radius: 6px; overflow: hidden; background: var(--white); color: var(--ink); }
.workspace-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 2px solid var(--ink); }
.workspace-tabs button { min-height: 64px; border: 0; border-right: 1px solid var(--ink); background: #e8ecf4; color: var(--ink); font-size: 14px; font-weight: 900; cursor: pointer; }
.workspace-tabs button:last-child { border-right: 0; }
.workspace-tabs button[aria-selected="true"] { background: var(--aqua); }
.workspace-tabs button:hover, .workspace-tabs button:focus-visible { box-shadow: inset 0 -7px 0 var(--blue); }
.workspace-panel { min-height: 500px; }
.crush-panel, .storage-panel { display: grid; grid-template-columns: 0.86fr 1.14fr; }
.panel-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 56px; border-right: 2px solid var(--ink); }
.panel-label { margin: 0; color: var(--blue); font-size: 10px; font-weight: 900; }
.panel-copy h3 { margin: 14px 0 0; font-size: 39px; line-height: 1.06; }
.panel-copy > p:not(.panel-label) { margin: 20px 0 0; color: var(--muted); }
.result-columns { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.result-columns > div { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 12px; align-content: center; padding: 38px; border-right: 1px solid var(--ink); }
.result-columns > div:last-child { border-right: 0; }
.result-columns span { color: var(--muted); font-size: 12px; font-weight: 800; }
.result-columns strong { justify-self: end; color: var(--blue); font-size: 28px; }
.mini-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border: 2px solid var(--ink); border-radius: 4px; }
.storage-meter { display: grid; align-content: center; padding: 50px; background: var(--lime); }
.meter-header { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.meter-header span { font-size: 12px; }
.meter-header strong { font-size: 29px; }
.meter-segments { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 30px 0; }
.meter-segments i { height: 70px; border: 2px solid var(--ink); background: var(--white); }
.meter-segments i:nth-child(-n+3) { background: var(--blue); }
.storage-meter > p { display: flex; justify-content: space-between; margin: 0; padding: 15px 0; border-top: 1px solid var(--ink); }
.storage-meter small { margin-top: 20px; color: #414a37; }
.clean-button { min-height: 48px; margin-top: 28px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 4px; background: var(--blue); color: var(--white); font-weight: 850; cursor: pointer; }
.clean-button:hover, .clean-button:focus-visible { background: var(--purple); }
.more-panel { display: grid; grid-template-columns: repeat(2, 1fr); }
.more-panel article { min-height: 250px; padding: 42px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); }
.more-panel article:nth-child(even) { border-right: 0; }
.more-panel article:nth-child(n+3) { border-bottom: 0; }
.more-panel article:nth-child(1) { background: var(--aqua); }
.more-panel article:nth-child(4) { background: var(--yellow); }
.module-code { color: var(--blue); font-size: 10px; font-weight: 900; }
.more-panel h3 { margin: 40px 0 0; font-size: 25px; }
.more-panel p { max-width: 440px; margin: 10px 0 0; color: #454955; }

.privacy-band { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; padding: 100px 7vw; border-bottom: 1px solid var(--ink); background: var(--aqua); }
.privacy-facts { border-top: 2px solid var(--ink); }
.privacy-facts p { display: grid; grid-template-columns: 155px 1fr; gap: 20px; margin: 0; padding: 22px 0; border-bottom: 1px solid var(--ink); }
.privacy-facts strong { font-size: 13px; }
.privacy-facts span { color: #244b50; }
.policy-section { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; padding: 96px 7vw; background: var(--white); border-bottom: 1px solid var(--ink); }
.policy-links { border-top: 2px solid var(--ink); }
.policy-links a { min-height: 74px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ink); font-weight: 850; }
.policy-links strong { color: var(--blue); font-size: 20px; }

.site-footer { min-height: 108px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 22px 4vw; background: var(--paper); }
.site-footer p { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }
.site-footer nav { display: flex; justify-content: flex-end; gap: 20px; font-size: 12px; font-weight: 750; }
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

.settings-layer { position: fixed; inset: 0; z-index: 80; }
.settings-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(7, 13, 77, 0.74); cursor: default; }
.settings-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 92vw); display: flex; flex-direction: column; padding: 34px; background: var(--white); border-left: 2px solid var(--ink); }
.settings-drawer header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 30px; border-bottom: 2px solid var(--ink); }
.settings-drawer header span { color: var(--blue); font-size: 9px; font-weight: 900; }
.settings-drawer h2 { margin: 7px 0 0; font-size: 42px; }
.settings-drawer header button { width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 4px; background: var(--white); font-size: 25px; cursor: pointer; }
.settings-drawer nav { display: grid; margin-top: 32px; }
.settings-drawer nav a { min-height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ink); font-weight: 850; }
.settings-drawer nav strong { color: var(--blue); font-size: 10px; }
.settings-drawer > p { margin-top: auto; color: var(--muted); font-size: 13px; }
.settings-drawer > p a { color: var(--blue); text-decoration: underline; }

.document-main { min-height: calc(100vh - var(--header-height)); }
.document-hero { display: grid; grid-template-columns: 170px minmax(0, 850px); gap: 6vw; padding: 76px 7vw 62px; border-bottom: 1px solid var(--ink); background: var(--lime); }
.document-index { padding-top: 10px; border-top: 5px solid var(--blue); }
.document-index span { font-size: 10px; font-weight: 900; }
.document-index p { margin: 5px 0 0; color: #4a5142; font-size: 11px; }
.document-hero h1 { margin: 0; font-size: 62px; line-height: 1; }
.document-meta { margin: 18px 0 0; font-size: 13px; font-weight: 700; }
.document-layout { display: grid; grid-template-columns: 220px minmax(0, 790px); gap: 7vw; padding: 68px 7vw 110px; }
.document-toc { position: sticky; top: 28px; align-self: start; padding-top: 10px; border-top: 5px solid var(--blue); }
.document-toc > p { margin: 0 0 10px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.document-toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 12px; }
.document-toc a:hover, .document-toc a:focus-visible { color: var(--blue); }
.document-content section { scroll-margin-top: 24px; }
.document-content section + section { margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--line); }
.document-content h2 { margin: 0 0 17px; font-size: 29px; line-height: 1.2; }
.document-content h3 { margin: 25px 0 8px; font-size: 18px; }
.document-content p, .document-content li { color: #454a55; }
.document-content ul { padding-left: 20px; }
.document-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.policy-note { padding: 19px 20px; border-left: 6px solid var(--blue); background: #e6edff; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 0.7fr 1.3fr; gap: 3vw; padding-inline: 4vw; }
  .hero h1 { font-size: 59px; }
  .crush-console { box-shadow: 9px 9px 0 var(--navy); }
  .scan-line p { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 760px) {
  :root { --header-height: 64px; }
  .site-header { padding: 0 16px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; height: calc(100svh - var(--header-height)); align-content: start; background: var(--white); }
  .site-nav.is-open { display: grid; }
  .site-nav > a { min-height: 58px; width: 100%; justify-content: start; border: 0; border-bottom: 1px solid var(--line); }
  .settings-button { width: 100%; height: 58px; justify-content: start; padding-left: 18px; border: 0; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 42px; padding: 52px 18px 72px; }
  .hero::before { width: 9px; }
  .hero h1 { font-size: 48px; overflow-wrap: break-word; }
  .hero-copy > p:not(.kicker) { font-size: 17px; }
  .crush-console { justify-self: stretch; width: 100%; box-shadow: 7px 7px 0 var(--navy); }
  .score-strip { padding: 8px; gap: 5px; }
  .score-strip p { min-height: 61px; }
  .score-strip strong { font-size: 18px; }
  .tile-grid { gap: 7px; padding: 12px; }
  .photo-tile { aspect-ratio: 1; border-width: 2px; }
  .scene-city::before { box-shadow: 20px -12px 0 var(--blue), 40px 5px 0 var(--aqua), 60px -17px 0 var(--red); }
  .scan-line { grid-template-columns: 1fr; }
  .scan-line p { min-height: 72px; grid-template-columns: 105px 1fr; border-right: 0; border-bottom: 1px solid var(--ink); }
  .flow-section { grid-template-columns: 1fr; gap: 40px; padding: 74px 20px 82px; }
  .section-heading { position: static; }
  .section-heading h2, .workspace-heading h2, .privacy-band h2, .policy-section h2 { font-size: 39px; }
  .workspace-section { padding: 74px 0 82px; }
  .workspace-heading { padding: 0 20px; }
  .workspace { border-left: 0; border-right: 0; border-radius: 0; }
  .workspace-tabs button { min-height: 58px; }
  .workspace-panel { min-height: 620px; }
  .crush-panel, .storage-panel { grid-template-columns: 1fr; }
  .panel-copy { padding: 40px 20px; border-right: 0; border-bottom: 2px solid var(--ink); }
  .panel-copy h3 { font-size: 33px; }
  .result-columns > div { padding: 20px 12px; }
  .storage-meter { padding: 38px 20px; }
  .more-panel { grid-template-columns: 1fr; }
  .more-panel article { min-height: 205px; border-right: 0; border-bottom: 1px solid var(--ink) !important; }
  .more-panel article:last-child { border-bottom: 0 !important; }
  .more-panel h3 { margin-top: 25px; }
  .privacy-band, .policy-section { grid-template-columns: 1fr; padding: 76px 20px; }
  .privacy-facts p { grid-template-columns: 120px 1fr; }
  .site-footer { grid-template-columns: 1fr; justify-items: start; }
  .site-footer p { text-align: left; }
  .site-footer nav { justify-content: flex-start; flex-wrap: wrap; }
  .document-hero { grid-template-columns: 1fr; padding: 54px 20px 46px; }
  .document-hero h1 { font-size: 45px; overflow-wrap: break-word; }
  .document-layout { grid-template-columns: 1fr; padding: 52px 20px 80px; }
  .document-toc { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-tile, .progress-track span { transition: none; }
}
