/* Site v2 (home and /partners), from the Paper page "Site v2 — home + partners (onboarding style)".
   Same language as the app's onboarding: dark stage sections, paper sections, Newsreader display, ABC Diatype text,
   one blue-ink accent, real provider marks. */
@font-face {font-family: "ABC Diatype"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/abc-diatype-regular.woff2") format("woff2");}
@font-face {font-family: "ABC Diatype"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/abc-diatype-medium.woff2") format("woff2");}
@font-face {font-family: "Fragment Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fragment-mono.woff2") format("woff2");}

:root {
  --paper: #FAFAF8; --white: #FFFFFF; --ink: #11100E; --body: #4A4741; --muted: #6F6B64; --rule: rgb(17 16 14 / 12%);
  --night: #0B0A09; --night-card: rgb(28 27 24 / 82%); --night-rule: rgb(250 250 248 / 10%);
  --on-dark: #FAFAF8; --on-dark-2: #D9D5CC; --on-dark-3: #A8A39A; --accent: #016081;
  --sans: "ABC Diatype", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: 128px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 6px; font: 500 16px var(--sans);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: rgb(250 250 248 / 28%); color: var(--on-dark); background: transparent; }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

/* Stage (dark) */
.stage { background: var(--night) url("assets/hero-stage.webp") center bottom / cover no-repeat; color: var(--on-dark); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 24px 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; text-decoration: none; }
.brand small { color: var(--on-dark-3); font-weight: 400; font-size: 14px; padding-left: 6px; }
.nav-links { display: flex; gap: 36px; font-size: 14px; color: var(--on-dark-2); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--on-dark); }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--on-dark-2); }
.nav-end a:not(.btn) { text-decoration: none; }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 72px 24px 0; }
.hero h1 { font-size: 88px; line-height: 92px; letter-spacing: -0.03em; max-width: 1120px; }
.hero .sub { font-size: 18px; line-height: 28px; color: var(--on-dark-2); max-width: 600px; margin-top: 22px; }
.hero .ctas { display: flex; gap: 12px; margin-top: 32px; }
.hero .fine { font-size: 14px; color: var(--on-dark-3); margin-top: 18px; }
/* The hero card follows the cursor (script in the page): --rx/--ry lean it, --sx moves the highlight, --ty and the
   extra --rx tip it back on scroll. 18deg is its resting tilt toward the floor. */
.card3d { --rx: 0deg; --ry: 0deg; --ty: 0px; --sx: 50%; position: relative; width: 420px; max-width: 78vw; margin-top: 44px;
  transform: perspective(1200px) translateY(var(--ty)) rotateX(calc(18deg + var(--rx))) rotateY(var(--ry));
  transform-origin: 50% 100%; transform-style: preserve-3d; will-change: transform; }
.card-face { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgb(0 0 0 / 45%)); }
.card3d::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1000 / 622; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / 16%) 49%, rgb(255 255 255 / 4%) 55%, transparent 64%) var(--sx) 0 / 260% 100% no-repeat;
  -webkit-mask: url("assets/card-front.webp") center / 100% 100% no-repeat; mask: url("assets/card-front.webp") center / 100% 100% no-repeat; }
.card-refl { position: absolute; left: 0; top: 100%; width: 100%; height: auto; transform: scaleY(-1); opacity: .22; filter: blur(1.5px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 38%); mask-image: linear-gradient(to top, #000 0%, transparent 38%); }
.home-hero { min-height: 900px; }

/* Paper sections */
.section { padding: 120px var(--pad) 0; }
.section:last-of-type { padding-bottom: 120px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.head h2, .faq h2 { font-size: 56px; line-height: 60px; letter-spacing: -0.02em; }
.head p { color: var(--muted); max-width: 420px; text-align: right; }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.cols > * { padding: 32px 28px 0; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 16px; }
.cols > *:first-child { padding-left: 0; border-left: none; }
.cols > *:last-child { padding-right: 0; }
.logo { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.logo svg { width: 26px; height: 26px; }
.provider b { font-weight: 500; font-size: 18px; }
.rate { font: 40px/44px var(--serif); }
.provider p, .reward p { color: var(--body); font-size: 15px; line-height: 22px; }
.reward .pts { font: 13px var(--mono); color: var(--accent); }
.reward h3 { font-size: 30px; line-height: 34px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: var(--white); border: 1px solid rgb(17 16 14 / 10%); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.step .num { font: 56px/56px var(--serif); color: var(--accent); }
.step b { font-weight: 500; font-size: 18px; }
.step p { color: var(--body); font-size: 15px; line-height: 23px; }

/* Dark panel (calculator, partner economics) */
.panel { display: flex; justify-content: space-between; align-items: center; gap: 48px; background: var(--ink); color: var(--on-dark); border-radius: 12px; padding: 56px 64px; }
.panel h2 { font-size: 44px; line-height: 48px; max-width: 520px; }
.panel .kicker { font: 12px var(--mono); letter-spacing: 0.12em; color: var(--on-dark-3); margin-bottom: 16px; }
.panel .note { color: var(--on-dark-3); font-size: 15px; line-height: 23px; margin-top: 16px; }
.panel .big { font: 96px/96px var(--serif); letter-spacing: -0.02em; text-align: right; }
.panel .big + small { display: block; text-align: right; color: var(--on-dark-3); font-size: 15px; margin-top: 6px; }
.slider { margin-top: 22px; width: 520px; max-width: 100%; }
.slider-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--on-dark-3); margin-bottom: 10px; }
.slider-row output { color: var(--on-dark); }
.slider input { --p: 43%; width: 100%; -webkit-appearance: none; appearance: none; height: 24px; margin: 0; background: none; cursor: pointer; }
.slider input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--on-dark) var(--p), rgb(250 250 248 / 18%) var(--p)); }
.slider input::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--on-dark) var(--p), rgb(250 250 248 / 18%) var(--p)); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--on-dark); margin-top: -8px; }
.slider input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--on-dark); border: none; }

/* FAQ and lists */
.faq { display: grid; grid-template-columns: 360px 1fr; gap: 80px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--muted); font-size: 20px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > div { padding: 0 0 24px; color: var(--body); line-height: 1.6; max-width: 640px; }
.faq-list details > div p + p { margin-top: 12px; }
.numbered { border-top: 1px solid var(--ink); }
.numbered li { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); font-size: 18px; line-height: 26px; }
.numbered li span { width: 28px; flex-shrink: 0; font: 13px/26px var(--mono); color: var(--accent); }
ol.numbered { list-style: none; margin: 0; padding: 0; }
.prompt { margin-top: 12px; padding: 16px 18px; border-radius: 6px; background: #EFEDE8; font: 14px/22px var(--mono); color: var(--ink); overflow-wrap: break-word; user-select: all; }
.copy { margin-top: 12px; }

/* Partner strip */
.strip { display: inline-flex; align-items: center; gap: 28px; margin-top: 88px; padding: 14px 24px; border-radius: 12px; background: rgb(17 16 14 / 78%); border: 1px solid var(--night-rule); }
.strip > span { font-size: 14px; color: var(--on-dark-2); }
.strip .who { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; }
.strip .logo { width: 36px; height: 36px; border-radius: 9px; }
.strip .slot { width: 36px; height: 36px; border-radius: 9px; border: 1px dashed rgb(250 250 248 / 40%); display: inline-flex; align-items: center; justify-content: center; color: var(--on-dark-3); }
.strip .yours { color: var(--on-dark-2); font-weight: 400; }
.partners-hero { padding-bottom: 110px; }

/* Closing */
.close { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 120px 24px 48px; text-align: center; background-position: center 70%; }
.close h2 { font-size: 64px; line-height: 68px; letter-spacing: -0.025em; }
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; padding-top: 56px; font-size: 13px; color: var(--on-dark-3); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-dark); }

@media (max-width: 900px) {
  :root { --pad: 20px; }
  .nav { grid-template-columns: auto auto; padding: 18px 20px; }
  .nav-links { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 48px; line-height: 52px; }
  .hero .sub { font-size: 16px; line-height: 25px; }
  .hero .ctas { flex-direction: column; width: 100%; max-width: 320px; }
  .hero .ctas .btn { justify-content: center; }
  .home-hero { min-height: 0; padding-bottom: 48px; }
  .section { padding-top: 72px; }
  .head { flex-direction: column; align-items: flex-start; }
  .head p { text-align: left; }
  .head h2, .faq h2 { font-size: 40px; line-height: 44px; }
  .cols { grid-template-columns: 1fr 1fr; }
  .cols > * { padding: 24px 16px 24px 0; border-left: none; border-bottom: 1px solid var(--rule); }
  .cols > *:nth-child(even) { padding: 24px 0 24px 16px; border-left: 1px solid var(--rule); }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .panel { flex-direction: column; align-items: flex-start; padding: 36px 24px; gap: 24px; }
  .panel h2 { font-size: 32px; line-height: 36px; }
  .panel .big { font-size: 64px; line-height: 64px; text-align: left; }
  .panel .big + small { text-align: left; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .strip { flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 56px; }
  .close h2 { font-size: 40px; line-height: 44px; }
}
