/* FontPrint web — mirrors the mobile app theme (lib/core/theme). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/caveat-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/caveat-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #1C2333;
  --ink-soft: #3B4258;
  --ink-muted: #6B7086;
  --paper: #FBF7EF;
  --paper-deep: #F1E8D8;
  --paper-line: #E3D6BE;
  --coral: #FF5B3C;
  --coral-deep: #C2341A;
  --coral-wash: #FFF1EC;
  --white: #FFFDF8;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;

  --radius-card: 28px;
  --radius-pill: 999px;
  --gutter: 20px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--coral-deep); text-underline-offset: 3px; }
a:hover { color: var(--coral); }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 247, 239, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--paper-line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand img { width: 118px; height: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 91, 60, .7); }
.btn-primary:hover { background: #F24A2B; color: #fff; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { color: var(--paper); background: #252D40; }
.btn-ghost { border-color: var(--paper-line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { color: var(--ink); }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: .75; letter-spacing: .02em; }
.btn .btn-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }

.nav .btn { min-height: 42px; padding: 0 18px; font-size: 14px; color: var(--paper); }

/* ---------- Hero ---------- */

.hero { padding: 56px 0 72px; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--paper-deep);
  border: 1px solid var(--paper-line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--coral); }

.hand-underline { position: relative; white-space: nowrap; }
.hand-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.08em;
  height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 4 Q100 15 197 4' fill='none' stroke='%23FF5B3C' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.hero p.lead {
  margin: 24px 0 32px;
  max-width: 34em;
  font-size: 19px;
  color: var(--ink-soft);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-note { margin-top: 14px; font-size: 14px; color: var(--ink-muted); }

/* Hero visual: a paper card with handwriting */
.hero-art { position: relative; min-height: 460px; }

.paper-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-card);
  box-shadow: 0 30px 60px -30px rgba(28, 35, 51, .35);
}

.paper-card.sheet {
  inset: 0 40px 40px 0;
  padding: 34px 32px;
  transform: rotate(-2.5deg);
  background-image: repeating-linear-gradient(to bottom, transparent 0 43px, var(--paper-line) 43px 44px);
  background-position: 0 70px;
}
.sheet .label { font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.sheet .alphabet {
  margin-top: 26px;
  font: 600 50px/44px var(--font-hand);
  color: var(--ink);
  letter-spacing: .06em;
  word-break: break-all;
}
.sheet .alphabet span { color: var(--coral); }

.paper-card.story {
  right: 0;
  bottom: 0;
  width: 220px;
  height: 300px;
  padding: 22px;
  border: 0;
  transform: rotate(4deg);
  background: linear-gradient(150deg, #2B233A 0%, var(--coral) 120%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.story .story-top { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; opacity: .9; }
.story .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--paper); border: 2px solid #fff; }
.story .story-text { font: 700 40px/1 var(--font-hand); transform: rotate(-4deg); }
.story .bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.story .bar::after { content: ""; display: block; width: 62%; height: 100%; background: #fff; }

/* ---------- Sections ---------- */

section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.015em; }
.section-head h2 em { color: var(--coral); }
.section-head p { margin: 14px 0 0; color: var(--ink-soft); font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }

.card {
  background: var(--paper-deep);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-card);
  padding: 28px;
}
.step { position: relative; }
.step .num {
  font: 700 54px/1 var(--font-hand);
  color: var(--coral);
  display: block;
  margin-bottom: 18px;
}
.step h3 { font-size: 24px; font-weight: 600; line-height: 1.2; }
.step p { margin: 10px 0 0; color: var(--ink-soft); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { display: flex; gap: 18px; align-items: flex-start; background: var(--white); }
.feature .icon {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--coral-wash);
  color: var(--coral);
}
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 21px; font-weight: 600; line-height: 1.25; }
.feature p { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; }

.band {
  background: var(--ink);
  color: var(--paper);
  border-radius: 36px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
}
.band h2 { color: var(--paper); font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 600; }
.band h2 em { color: var(--coral); }
.band p { margin: 14px 0 0; color: #C9CCD6; font-size: 17px; }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.band li { display: flex; gap: 12px; align-items: flex-start; color: var(--paper); }
.band li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px; margin-top: 2px;
  border-radius: 50%;
  background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(36px, 5vw, 58px); font-weight: 600; line-height: 1.05; }
.final-cta .hand { display: block; font: 700 1.1em/1 var(--font-hand); color: var(--coral); margin-top: 6px; }
.final-cta .cta-row { justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--paper-line); padding: 40px 0 48px; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer img { width: 104px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 500; }
.footer-links a:hover { color: var(--ink); }
.copyright { width: 100%; color: var(--ink-muted); font-size: 13px; margin: 0; }

/* ---------- Legal pages ---------- */

.legal { padding: 48px 0 24px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5.4vw, 52px); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; }
.legal .meta { margin: 14px 0 0; color: var(--ink-muted); font-size: 14px; }
.legal .summary {
  margin: 32px 0 8px;
  background: var(--paper-deep);
  border: 1px solid var(--paper-line);
  border-radius: 22px;
  padding: 22px 26px;
}
.legal .summary h2 { font-size: 20px; margin: 0 0 8px; }
.legal .summary ul { margin: 0; padding-left: 20px; }
.legal h2 { font-size: 26px; font-weight: 600; margin: 44px 0 12px; line-height: 1.2; scroll-margin-top: 90px; }
.legal h3 { font-family: var(--font-body); font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal li { margin: 6px 0; }
.legal strong { color: var(--ink); }
.legal .toc { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.legal .toc a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--paper-line);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.legal .toc a:hover { color: var(--ink); border-color: var(--ink-muted); }

.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--paper-line); border-radius: 18px; background: var(--white); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--paper-line); color: var(--ink-soft); }
.legal th { color: var(--ink); font-weight: 600; background: var(--paper-deep); }
.legal tr:last-child td { border-bottom: 0; }

/* Opened inside the mobile app (?app=1): content only. */
.in-app .site-header,
.in-app .site-footer,
.in-app .toc { display: none; }
.in-app .legal { padding-top: 24px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { min-height: 400px; max-width: 460px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; padding: 36px 28px; border-radius: 28px; }
  section { padding: 64px 0; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding-top: 32px; }
  .hero p.lead { font-size: 17px; }
  .hero-art { min-height: 340px; }
  .paper-card.sheet { inset: 0 28px 48px 0; padding: 26px 22px; }
  .sheet .alphabet { font-size: 40px; line-height: 44px; }
  .paper-card.story { width: 160px; height: 220px; padding: 16px; }
  .story .story-text { font-size: 30px; }
  .cta-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Placeholder that must be filled in before publishing. */
.todo { background: #FFE58A; color: var(--ink); padding: 0 4px; border-radius: 4px; }
