:root {
  color-scheme: light;
  --navy: #152e4b;
  --navy-light: #294563;
  --ink: #172b40;
  --accent: #a9cdff;
  --paper: #f7f2e4;
  --paper-deep: #efe8d4;
  --grid-ink: rgb(26 102 201 / .07);
  --grid-light: rgb(188 215 223 / .08);
  --rule: #d8cdb3;
  --secondary: #465661;
  --blue: #1a66c9;
  --selection: #e3edfb;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.52 var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; }
figure, p, h1, h2 { margin: 0; }
.wrap { width: min(91%, 86rem); margin-inline: auto; }
header, .hero, footer { background-color: var(--navy); color: #f6f9fd; }
.hero, footer { background-image: linear-gradient(90deg, var(--grid-light) 1px, transparent 1px), linear-gradient(var(--grid-light) 1px, transparent 1px); background-size: 1.5rem 1.5rem; }
body { background-image: linear-gradient(90deg, var(--grid-ink) 1px, transparent 1px), linear-gradient(var(--grid-ink) 1px, transparent 1px); background-size: 1.5rem 1.5rem; }
header { border-bottom: 1px solid #41566d; }
.masthead, nav, .brand, .footer-inner { display: flex; align-items: center; }
.masthead { justify-content: space-between; min-height: 4.75rem; gap: 1rem; }
.brand { gap: .75rem; font-size: 1.17rem; font-weight: 650; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 2rem; height: 2rem; object-fit: contain; }
nav { gap: clamp(1rem, 2.8vw, 2.7rem); }
nav a, footer a { text-underline-offset: .25em; }
nav a { font-size: .94rem; font-weight: 500; text-decoration: none; }
nav a:hover, .brand:hover { color: var(--accent); }
.repo { border-left: 1px solid #617184; padding-left: clamp(1rem, 2.5vw, 2.1rem); }
a:focus-visible, summary:focus-visible { outline: 3px solid #1973c3; outline-offset: 4px; }
header a:focus-visible, .hero a:focus-visible, footer a:focus-visible { outline-color: var(--accent); }
.skip-link, .sr-only:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; width: auto; height: auto; margin: .5rem; z-index: 10; padding: .5rem 1rem; clip-path: none; background: var(--accent); color: var(--ink); }

.hero { overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: .91fr 1.09fr; align-items: center; gap: clamp(1.8rem, 4.6vw, 5rem); padding-block: clamp(3.25rem, 6vw, 6.2rem); }
.pitch { min-width: 0; container-type: inline-size; }
.eyebrow, .proof-number, .switch-label, .screen-label, .requirements, .step-code, .footer-inner { font-family: var(--sans); }
.eyebrow, .proof-number, .screen-label, .switch-label, .step-code { font-weight: 600; }
.eyebrow, .proof-number, .screen-label { font-size: .76rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .11em; }
.hero-kicker, .section-kicker { display: flex; gap: .62rem; align-items: center; font-weight: 600; }
.hero-kicker { color: var(--accent); }
.hero-kicker span, .section-kicker span { width: 1.55rem; height: 3px; background: currentColor; }
h1, h2 { font-family: var(--sans); font-weight: 700; }
h1 { margin-block: 1.45rem 1.6rem; font-size: clamp(2.8rem, 4.8vw, 5rem); letter-spacing: -.035em; line-height: 1.08; }
h1 em, h2 em { font-weight: 700; font-style: normal; }
h1 em { color: var(--accent); white-space: nowrap; }
.lede { max-width: 30rem; color: #d8e2e9; font-size: clamp(1.07rem, 1.25vw, 1.25rem); line-height: 1.57; }
.download { display: inline-flex; align-items: center; gap: .72rem; margin-top: 2rem; text-decoration: none; font-weight: 650; padding: .95rem 1.4rem; border-radius: 3px; color: #172c39; background: var(--accent); box-shadow: 0 2px 0 #0c2136; }
.download:hover { background: #cfe3ff; }
.win-icon { width: 1rem; height: 1rem; background: conic-gradient(from 90deg at 45% 45%, currentColor 0 360deg); mask: linear-gradient(90deg,#000 43%,transparent 43% 55%,#000 55%) intersect, linear-gradient(#000 43%,transparent 43% 55%,#000 55%); }
.requirements { margin-top: .8rem; font-size: .78rem; color: #c0ceda; }
.requirements span { margin: 0 .12rem; }
.issue-preview { min-width: 0; }
.proof-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: .65rem; color: #dce6ed; }
.proof-heading .eyebrow { font-weight: 600; }
.proof-number { color: #becdd9; letter-spacing: .07em; }
.drawing-board { --mesh: rgb(188 215 223 / .1); position: relative; display: grid; place-items: center; padding: 2.45rem 12.5% 2.7rem; background-color: #284968; background-image: linear-gradient(90deg, var(--mesh) 1px, transparent 1px),linear-gradient(var(--mesh) 1px, transparent 1px),linear-gradient(120deg, #284968 12%,#305373 75%,#284969); background-size: 1.18rem 1.18rem, 1.18rem 1.18rem, 100% 100%; border: 1px solid #5a7187; }
.cross { position: absolute; height: .7rem; width: .7rem; }
.cross::before, .cross::after { content: ""; position: absolute; background: #b4c5cd; }
.cross::before { width: 100%; height: 1px; top: 50%; }
.cross::after { height: 100%; width: 1px; left: 50%; }
.tl { left: .6rem; top: .6rem; } .tr { right: .6rem; top: .6rem; }
.bl { left: .6rem; bottom: .6rem; } .br { right: .6rem; bottom: .6rem; }
.paper-stack { width: 100%; position: relative; transform: rotate(-3.5deg); }
.paper-stack::before, .paper-stack::after { content: ""; position: absolute; inset: 0; background: #e9edf3; box-shadow: 0 4px 10px #09223d4d; border: 1px solid #c3cbd6; }
.paper-stack::before { transform: translate(.35rem,.29rem) rotate(6.8deg); }
.paper-stack::after { transform: translate(.22rem,.32rem) rotate(3.1deg); background: #f7f9fc; }
.paper-stack a { position: relative; z-index: 1; display: block; box-shadow: 0 4px 13px #10294042; cursor: zoom-in; }
.paper-stack img { width: 100%; height: auto; }
.recipient-switch { display: flex; align-items: center; gap: .8rem; padding-top: .85rem; }
.switch-label { font-size: .8rem; white-space: nowrap; color: #d3dfe9; }
.choices { display: flex; flex-wrap: wrap; gap: .4rem; }
.choice { text-decoration: none; font-size: .85rem; line-height: 1.25; font-weight: 550; padding: .48rem .67rem; border: 1px solid #718397; border-radius: 2px; }
.choice:hover { border-color: var(--accent); }
.choice[aria-current="true"] { color: var(--navy); border-color: var(--accent); background: var(--accent); }

.walkthrough, .faq-layout { display: grid; grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); gap: clamp(2rem, 6vw, 6.7rem); }
.walkthrough { align-items: center; padding-block: clamp(3.5rem, 6.8vw, 6.5rem); }
.section-kicker { color: #4b6178; }
h2 { margin-top: 1rem; font-size: clamp(2.3rem, 3.3vw, 3.5rem); line-height: 1.1; letter-spacing: -.03em; }
h2 em { color: var(--blue); }
.walk-desc { margin-top: 1.1rem; color: var(--secondary); max-width: 22rem; }
.steps { margin-top: 1.65rem; border-top: 1px solid var(--rule); }
.step { display: flex; align-items: baseline; gap: .9rem; border-bottom: 1px solid var(--rule); padding: .77rem .65rem; color: var(--ink); text-decoration: none; }
.step-code { font-size: .76rem; color: #556577; }
.step strong, .step span span { display: block; }
.step strong { font-weight: 650; }
.step span span { font-size: .9rem; color: var(--secondary); }
.step:hover { background: rgb(255 252 242 / .7); }
.step[aria-current="step"] { background: var(--selection); box-shadow: inset 3px 0 #1a66c9; }
.app-preview { position: relative; min-width: 0; margin: 0; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, rgb(255 255 255 / .92), rgb(255 255 255 / .8)); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); border: 1px solid rgb(255 255 255 / .9); box-shadow: 0 0 0 1px rgb(21 46 75 / .08), 0 2px 6px rgb(21 46 75 / .06), 0 24px 60px -12px rgb(21 46 75 / .28), inset 0 1px 0 rgb(255 255 255 / .95); }
.walkthrough { position: relative; isolation: isolate; }
.walkthrough::before { content: ""; position: absolute; z-index: -1; right: -4%; top: 12%; width: 62%; height: 76%; border-radius: 50%; background: radial-gradient(closest-side, rgb(26 102 201 / .22), rgb(169 205 255 / .18) 55%, transparent); filter: blur(30px); pointer-events: none; }
.app-toolbar::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: 20px 0 #febc2e, 40px 0 #28c840; margin-right: 44px; }
.app-toolbar { border-bottom: 1px solid rgb(21 46 75 / .07); background: rgb(255 255 255 / .35); }
.app-toolbar .screen-label { margin-right: auto; }
.app-toolbar, .app-caption { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.app-toolbar { padding: .7rem 1rem; }
.screen-label { font-weight: bold; color: #2f4459; }
.app-shot { display: grid; margin: .95rem .95rem 0; aspect-ratio: 1.48; align-items: center; background: #101820; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 0 rgb(255 255 255 / .6), 0 6px 18px rgb(16 24 32 / .22); cursor: zoom-in; }
.app-shot img { width: 100%; height: 100%; object-fit: contain; max-height: 100%; min-height: 0; }
.app-caption { padding: .7rem 1rem .78rem; font-size: .86rem; color: #31455a; }
.app-toolbar a { font-size: .85rem; white-space: nowrap; text-underline-offset: .22em; font-weight: 600; }
.faq { background-color: var(--paper-deep); background-image: linear-gradient(90deg, var(--grid-ink) 1px, transparent 1px), linear-gradient(var(--grid-ink) 1px, transparent 1px); background-size: 1.5rem 1.5rem; border-top: 1px solid var(--rule); }
.faq-layout { padding-block: clamp(3.5rem, 6.5vw, 6rem); }
.questions { border-top: 1px solid #b9ab8c; }
details { border-bottom: 1px solid #cdbf9f; }
summary { position: relative; display: block; padding: 1.05rem 2.25rem 1.05rem 0; cursor: pointer; font-size: 1.08rem; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after, summary::before { content: ""; position: absolute; top: 50%; right: .25rem; width: .8rem; height: 1px; background: var(--ink); }
summary::before { transform: rotate(90deg); }
details[open] summary::before { transform: none; }
details p { max-width: 41rem; padding: 0 1.5rem 1.2rem 0; color: var(--secondary); }
details a { text-underline-offset: .2em; }
details code { font: 600 1em var(--sans); overflow-wrap: anywhere; }
.footer-inner { justify-content: space-between; min-height: 5rem; font-size: .85rem; color: #dde4e9; gap: 1rem; }
.footer-slash { color: var(--accent); margin-inline: .5rem; }
.footer-inner a:hover { color: var(--accent); }

@media (min-width: 100rem) {
  .hero-layout { padding-block: 6.5rem; }
}
@media (max-width: 62rem) {
  .hero-layout { gap: 2rem; grid-template-columns: .88fr 1.12fr; }
  .recipient-switch { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .walkthrough, .faq-layout { gap: 2rem; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
}
@media (max-width: 47rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .masthead { min-height: 3.75rem; }
  nav { gap: .95rem; }
  nav a { font-size: .84rem; }
  .repo { padding-left: .85rem; }
  .hero-layout, .walkthrough, .faq-layout { grid-template-columns: 1fr; }
  .hero-layout { gap: 2.35rem; padding-block: 2.75rem 2.35rem; }
  h1 { font-size: clamp(3.5rem, 10.8vw, 5.5rem); margin-block: 1rem 1.15rem; }
  .lede { max-width: 34rem; }
  .download { margin-top: 1.4rem; }
  .drawing-board { padding: 9% 12% 10%; }
  .recipient-switch { flex-flow: row wrap; align-items: center; column-gap: .65rem; row-gap: .42rem; }
  .walkthrough { padding-block: 3.35rem; gap: 1.2rem; }
  h2 { font-size: clamp(3rem, 8.5vw, 4.4rem); margin-top: .7rem; }
  .walk-intro h2 br, .faq h2 br { display: none; }
  .walk-intro h2 br::after, .faq h2 br::after { content: " "; }
  .walk-desc { max-width: 30rem; }
  .steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; margin-top: 1.2rem; border: 0; }
  .step { align-items: center; gap: .55rem; padding: .65rem .55rem; border: 1px solid var(--rule); }
  .step strong { font-size: .9rem; }
  .step span span { display: none; }
  .faq-layout { padding-block: 3.2rem; gap: 1.55rem; }
  .app-toolbar, .app-caption { padding-inline: .65rem; }
  .app-shot { margin-inline: .55rem; }
  .app-caption { font-size: .8rem; }
  .footer-inner { min-height: 4.5rem; }
}
@media (max-width: 31rem) {
  .masthead { gap: .4rem; }
  .brand { font-size: 1.04rem; gap: .58rem; }
  nav { gap: .72rem; }
  .repo { border: 0; padding: 0; }
  .recipient-switch { flex-direction: column; align-items: flex-start; }
  .choice { padding: .5rem .68rem; }
}
@media (max-width: 22rem) {
  .wrap { width: calc(100% - 1.6rem); }
  .masthead nav { gap: .52rem; }
  nav a { font-size: .78rem; }
  .brand { gap: .4rem; }
  .requirements { font-size: .75rem; }
}
@supports (font-size: 1cqw) {
  h1 { font-size: clamp(2.35rem, 14.65cqw, 6.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Full-size screenshot viewer */
.viewer-open { overflow: hidden; }
.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #f6f9fd; }
.viewer[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.viewer::backdrop { background: rgb(10 24 42 / .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.viewer-frame { margin: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 4.5rem 0 2rem; min-width: 0; }
.viewer-image { max-width: 100%; max-height: calc(100vh - 10rem); border-radius: 10px; box-shadow: 0 24px 70px rgb(0 0 0 / .45); background: #101820; }
.viewer-caption { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .9rem; font-size: .95rem; text-align: center; }
.viewer-caption span { color: #c6d4e2; }
.viewer-caption em { font-style: normal; color: var(--accent); font-weight: 600; }
.viewer button { display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .25); background: rgb(255 255 255 / .1); color: #fff; cursor: pointer; border-radius: 50%; font: 400 2rem/1 var(--sans); }
.viewer button:hover { background: rgb(255 255 255 / .22); }
.viewer button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.viewer-nav { width: 3.2rem; height: 3.2rem; margin: 0 clamp(.5rem, 2vw, 1.5rem); padding-bottom: .2rem; }
.viewer-close { position: fixed; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; font-size: 1.8rem; z-index: 1; }
@media (max-width: 640px) {
  .viewer[open] { grid-template-columns: minmax(0, 1fr); }
  .viewer-nav { position: fixed; bottom: 1.2rem; width: 2.8rem; height: 2.8rem; }
  .viewer-prev { left: 1rem; } .viewer-next { right: 1rem; }
  .viewer-frame { padding: 4rem .75rem 5rem; }
}
