/* Post Ready — lykhin.com/post-ready
   Palette from the app icon (docs/TECH-DESIGN.md §15.13 D42): ink, paper, accent red. */

/* Self-hosted: the same SIL OFL 1.1 faces the app bundles (licences in fonts/OFL-*.txt).
   No request to a font CDN, so the site makes no third-party calls at all. */
@font-face { font-family: "Inter"; src: url("/post-ready/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/post-ready/fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Syne"; src: url("/post-ready/fonts/Syne-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Syne"; src: url("/post-ready/fonts/Syne-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/post-ready/fonts/Poppins-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("/post-ready/fonts/Oswald-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/post-ready/fonts/PlayfairDisplay-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/post-ready/fonts/Lora-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/post-ready/fonts/CormorantGaramond-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/post-ready/fonts/Nunito-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/post-ready/fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/post-ready/fonts/JetBrainsMono-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #141318;
  --ink-2: #1c1b22;
  --ink-3: #26252e;
  --line: rgba(245, 243, 238, .09);
  --paper: #f5f3ee;
  --muted: #a9a6b4;
  --dim: #74717f;
  --accent: #ff5c4a;
  --accent-deep: #e83e2b;
  --radius: 22px;
  --wrap: 1160px;
  --display: "Syne", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--ink); }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(20, 19, 24, .72);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px/1 var(--display); letter-spacing: .01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--paper); }
.nav-links .pill { color: var(--ink); background: var(--paper); padding: 8px 16px; border-radius: 999px; font-weight: 600; }
.nav-links .pill:hover { color: var(--ink); background: #fff; }
@media (max-width: 720px) { .nav-links a:not(.pill) { display: none; } }

/* ---------- type ---------- */
.eyebrow {
  display: inline-block; font: 700 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
h1, h2, h3 { margin: 0; }
h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; }
h2, h3 { font-family: var(--body); font-weight: 700; letter-spacing: -.028em; }
h1 { font-size: clamp(36px, 4.3vw, 60px); line-height: 1.06; overflow-wrap: break-word; }
h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.08; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34em; margin: 26px 0 0; }
.accent { color: var(--accent); }

/* ---------- buttons ---------- */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 38px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 15px 24px; border-radius: 14px; font-weight: 600; font-size: 16px; line-height: 1;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #1a0806; }
.btn-primary:hover { background: #ff7262; }
.btn-ghost { border: 1px solid var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: rgba(245, 243, 238, .3); }
.btn small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-bottom: 4px; }
.btn .two { display: flex; flex-direction: column; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(70px, 10vw, 140px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 760px; height: 760px; right: -180px; top: -160px;
  background: radial-gradient(closest-side, rgba(232, 62, 43, .28), transparent 70%);
  pointer-events: none;
}
.hero .wrap > * { min-width: 0; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: var(--dim); font-size: 14px; }
.facts span::before { content: "●"; color: var(--accent); font-size: 8px; vertical-align: 3px; margin-right: 8px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* the fanned carousel */
.stack { position: relative; height: clamp(420px, 46vw, 560px); }
.stack .slide { position: absolute; width: min(330px, 62%); left: 50%; top: 50%; }
.stack .s1 { transform: translate(-92%, -50%) rotate(-11deg); opacity: .55; filter: saturate(.7); }
.stack .s2 { transform: translate(-22%, -54%) rotate(8deg); opacity: .78; }
.stack .s3 { transform: translate(-56%, -48%) rotate(-2deg); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255,255,255,.06); }
@media (prefers-reduced-motion: no-preference) {
  .stack .s3 { animation: float 7s ease-in-out infinite; }
  .stack .s2 { animation: float2 8s ease-in-out infinite; }
}
@keyframes float { 50% { transform: translate(-56%, -51%) rotate(-1deg); } }
@media (max-width: 600px) {
  .stack .slide { width: 54%; }
  .stack .s1 { transform: translate(-82%, -50%) rotate(-10deg); }
  .stack .s2 { transform: translate(-26%, -53%) rotate(8deg); }
}
@keyframes float2 { 50% { transform: translate(-21%, -56%) rotate(9deg); } }
.dots { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; gap: 7px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.dots i:first-child { background: var(--paper); }

/* ---------- a slide: 4:5 photo + burned-in overlay ---------- */
.slide { container-type: inline-size; position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #0f0f12; }
.slide svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide .over {
  position: absolute; font-weight: 700; left: 8%; right: 8%; color: #fff; line-height: 1.04; letter-spacing: -.005em;
  font-size: 10.5cqw; text-wrap: balance;
}
.slide .top { top: 9%; } .slide .bottom { bottom: 9%; } .slide .mid { top: 50%; transform: translateY(-50%); }
.slide .center { text-align: center; }
.slide .tag { position: absolute; top: 5%; right: 5%; font: 600 3.4cqw/1 var(--body); color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.35); padding: 6px 9px; border-radius: 999px; letter-spacing: .04em; }

/* the four legibility presets, approximating LegibilityPreset.style */
.lg-soft .over { text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.lg-soft::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.lg-soft .over { z-index: 1; }
.lg-punch .over { -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; text-shadow: 0 2px 4px rgba(0,0,0,.6); }
.lg-clean .over span { background: rgba(0,0,0,.45); padding: .12em .5em; border-radius: .28em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- sections ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; }
.band { background: var(--ink-2); border-block: 1px solid var(--line); }
.head { max-width: 680px; margin-bottom: 56px; }
.head p { color: var(--muted); font-size: 18px; margin: 18px 0 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font: 700 14px/1 "JetBrains Mono", ui-monospace, monospace; color: var(--accent); display: block; margin-bottom: 64px; }
.step p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
.step .glyph { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; color: var(--paper); opacity: .9; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step::before { margin-bottom: 28px; } }

/* feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(72px, 10vw, 120px); }
.split.flip > :first-child { order: 2; }
.split p { color: var(--muted); font-size: 18px; margin: 18px 0 0; }
.split ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.split li { padding-left: 28px; position: relative; color: var(--paper); }
.split li::before { content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 2px; background: var(--accent); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* type specimen */
.specimen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.face { background: var(--ink-3); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 14px; min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; }
.face b { font-size: 40px; line-height: 1.1; font-weight: 700; }
.face span { font-size: 12px; color: var(--dim); letter-spacing: .02em; margin-top: 14px; }

/* legibility row */
.legi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.legi .slide .over { font-size: 9.5cqw; }
.legi figure { margin: 0; }
.legi figcaption { font-size: 13px; color: var(--dim); margin-top: 8px; }
.legi figcaption b { color: var(--paper); font-weight: 600; margin-right: 6px; }

/* export strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.strip .slide { border-radius: 10px; }
.strip .slide .over { font-size: 11cqw; }
.strip figure { margin: 0; }
.strip .num { display: block; margin-top: 8px; font: 500 12px/1 "JetBrains Mono", ui-monospace, monospace; color: var(--dim); }
.meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.meta span { font: 500 13px/1 "JetBrains Mono", ui-monospace, monospace; color: var(--muted); border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; }

/* claude card */
.ai { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
  background: linear-gradient(135deg, #221d24, #1a1920 60%); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 60px); }
.ai p { color: var(--muted); font-size: 18px; margin: 18px 0 0; }
.consent { background: rgba(28, 27, 34, .92); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 22px; text-align: center; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); max-width: 340px; justify-self: center; }
.consent strong { display: block; font-size: 17px; margin-bottom: 8px; }
.consent p { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0 0 18px; }
.consent .row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin: 0 -22px -22px; }
.consent .row span { padding: 13px 8px; font-size: 14px; color: #6aa8ff; }
.consent .row span + span { border-left: 1px solid var(--line); font-weight: 600; }
@media (max-width: 860px) { .ai { grid-template-columns: 1fr; } }

/* privacy pledges */
.pledges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pledge { border-top: 2px solid var(--accent); padding-top: 18px; }
.pledge h3 { font-size: 19px; }
.pledge p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
@media (max-width: 860px) { .pledges { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pledges { grid-template-columns: 1fr; } .specimen { grid-template-columns: 1fr 1fr; } }

/* faq */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font: 400 26px/1 var(--body); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 14px 0 0; max-width: 46em; }

/* final call */
.final { text-align: center; }
.final img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 30px; box-shadow: 0 20px 50px -10px rgba(232,62,43,.35); }
.final .cta { justify-content: center; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: var(--paper); }

/* ---------- document pages (privacy, support) ---------- */
.doc { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 120px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(38px, 5.4vw, 60px); }
.doc .date { color: var(--dim); font-size: 15px; margin-top: 16px; }
.doc .summary { margin: 40px 0 8px; padding: 26px 28px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line); font-size: 18px; }
.doc .summary p { margin: 0; }
.doc h2 { font-size: 24px; font-weight: 700; margin: 52px 0 0; letter-spacing: 0; }
.doc p, .doc li { color: #cfcdd6; }
.doc h2 + p { margin-top: 12px; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.contact { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 26px 28px; border-radius: 18px; background: linear-gradient(135deg, #2a1c1d, #1c1b22); border: 1px solid var(--line); }
.contact p { margin: 4px 0 0; color: var(--muted); }
.contact strong { font-size: 19px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.doc .btn-primary { color: #1a0806; text-decoration: none; }
