/* Chapter Owl — public site. Coral warmth on soft white; ink serif headlines. */

@font-face {
  font-family: 'Source Serif 4';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('fonts/source-serif-4-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-weight: 600;
  font-style: italic;
  font-display: swap;
  src: url('fonts/source-serif-4-latin-600-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/inter-latin-700-normal.woff2') format('woff2');
}

:root {
  --ink: #16233C;
  --coral: #F1543F;
  --coral-deep: #E2432E;
  --blush: #FDECE8;
  --blush-deep: #FBD9D2;
  --page: #FFF9F7;
  --card: #FFFFFF;
  --hairline: #F3E6E2;
  --lavender: #8B7BD8;
  --lilac: #EFEBFB;
  --slate: #5A6B80;
  --good: #2FA45D;
  --amber: #F5A623;
  --violet: #8B5CF6;
  --display: 'Source Serif 4', Georgia, serif;
  --ui: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.65;
}
a { color: var(--coral-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
/* Page gutter. NOTE: rules that share an element with .wrap (.nav-inner,
   .legal, …) must use padding-block — the `padding` shorthand resets this
   and pins content to the screen edge. */
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex; align-items: center; gap: 22px;
  padding-block: 14px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 600; font-size: 28px;
  color: var(--ink); letter-spacing: -0.015em;
}
.brand:hover { text-decoration: none; }
.brand .brand-word em { font-style: normal; color: var(--coral); }
.brand-tile {
  width: 46px; height: 46px; flex: none; border-radius: 13px;
  background: linear-gradient(170deg, #F57D6C, #E2513F);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 14px rgba(242,106,92,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.brand.small { font-size: 21px; gap: 9px; }
.brand.small .brand-tile { width: 34px; height: 34px; border-radius: 10px; }
.brand.small .brand-tile svg { width: 20px; height: 18px; }
@media (max-width: 640px) { .brand { font-size: 26px; } .brand-tile { width: 44px; height: 44px; } }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--slate); font-weight: 600; font-size: 14.5px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ---------- buttons & badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ui); font-weight: 600; font-size: 15.5px;
  border-radius: 12px; padding: 14px 26px; border: 1.5px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--coral); color: #fff !important; box-shadow: 0 6px 18px rgba(242,106,92,0.3); }
.btn-primary:hover { background: var(--coral-deep); }
.btn-secondary { background: var(--card); color: var(--ink) !important; border-color: #E3D9D4; }
.btn-secondary:hover { border-color: var(--slate); }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blush); color: var(--coral-deep);
  font-size: 13.5px; font-weight: 600; border-radius: 99px; padding: 7px 16px;
}

/* ---------- hero ---------- */
.hero { padding: 64px 0 56px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(38px, 5.6vw, 58px);
  line-height: 1.08; letter-spacing: -0.02em;
  margin: 18px 0 0; text-wrap: balance;
}
h1 em { color: var(--coral); }
.hero-sub { color: var(--slate); font-size: 18px; max-width: 46ch; margin: 18px 0 26px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* the product panel (pure CSS mock of the app) */
.panel {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(31,39,51,0.10);
  padding: 20px; font-size: 14px;
}
.panel-book { display: flex; gap: 16px; }
.cover {
  width: 96px; height: 138px; flex: none; border-radius: 8px;
  background: linear-gradient(165deg, #FFC168 0%, #F5A623 28%, #F1543F 62%, #A8324B 100%);
  color: #FFF6E8; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; text-align: center;
  font-family: var(--display); font-size: 13px; padding: 10px; gap: 5px;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 18px rgba(226,67,46,0.32), inset 0 1px 0 rgba(255,255,255,0.25);
}
.cover::before {
  /* a simple mountain skyline under the ember-colored sky */
  content: ""; position: absolute; left: -6px; right: -6px; bottom: -6px; height: 46px;
  background: #1F2733;
  clip-path: polygon(0% 100%, 0% 55%, 18% 30%, 34% 48%, 50% 12%, 68% 42%, 84% 22%, 100% 45%, 100% 100%);
  opacity: 0.9;
}
.cover .spark {
  position: relative; z-index: 1; width: 26px; height: 26px; margin-bottom: 2px;
}
.cover-title { position: relative; z-index: 1; font-weight: 600; line-height: 1.15; }
.cover small { position: relative; z-index: 1; font-size: 9px; letter-spacing: 0.12em; opacity: 0.9; font-family: var(--ui); }
.panel-book h3 { margin: 2px 0 2px; font-size: 16.5px; font-family: var(--display); }
.panel-book .author { color: var(--slate); margin: 0 0 8px; }
.genre { display: inline-block; background: var(--lilac); color: var(--lavender); font-weight: 600; font-size: 12px; border-radius: 99px; padding: 3px 10px; }
.age { margin-top: 10px; }
.age .num { font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--lavender); line-height: 1; }
.age .lbl { font-size: 12px; color: var(--slate); }
.cat-list { margin-top: 14px; border-top: 1px solid var(--hairline); padding-top: 6px; }
.cat-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #F8F1ED; }
.cat-row:last-child { border-bottom: none; }
.cat-dot { width: 26px; height: 26px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }
.cat-row .n { flex: 1; font-weight: 600; }
.cat-row .l { color: var(--slate); }
.fit-banner {
  margin-top: 14px; background: var(--blush); border-radius: 12px;
  padding: 12px 14px; display: flex; align-items: center; gap: 10px;
}
.fit-banner .check { width: 28px; height: 28px; border-radius: 99px; background: var(--good); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.fit-banner b { color: var(--good); display: block; font-size: 14px; }
.fit-banner small { color: var(--slate); }
.panel-note { text-align: center; color: var(--slate); font-size: 11.5px; margin-top: 10px; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--coral); margin: 0 0 8px;
}
h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 3.8vw, 38px); letter-spacing: -0.015em;
  margin: 0 0 10px; text-wrap: balance;
}
.lede { color: var(--slate); font-size: 17px; max-width: 62ch; margin: 0 0 34px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 24px 22px;
}
.feature .ico {
  width: 48px; height: 48px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 21px; margin-bottom: 14px;
}
.feature h3 { font-family: var(--display); font-size: 18.5px; margin: 0 0 6px; }
.feature p { color: var(--slate); margin: 0; font-size: 14.5px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 24px 22px; }
.step .n {
  width: 34px; height: 34px; border-radius: 99px; background: var(--blush);
  color: var(--coral-deep); font-weight: 700; display: flex; align-items: center;
  justify-content: center; margin-bottom: 12px;
}
.step h3 { font-family: var(--display); font-size: 18px; margin: 0 0 6px; }
.step p { color: var(--slate); margin: 0; font-size: 14.5px; }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.principle { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 18px; }
.principle .tick { color: var(--good); font-weight: 700; flex: none; }
.principle p { margin: 0; font-size: 14.5px; }
.principle b { display: block; }
.principle small { color: var(--slate); }

.faq details {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 10px;
}
.faq summary { font-weight: 600; cursor: pointer; font-size: 15.5px; }
.faq summary::marker { color: var(--coral); }
.faq p { color: var(--slate); margin: 10px 0 0; font-size: 14.5px; }

.cta-band {
  background: var(--blush); border-radius: 22px; text-align: center;
  padding: 52px 26px; margin: 20px 0 0;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--slate); margin: 0 0 24px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--hairline); margin-top: 64px; padding: 40px 0 48px; color: var(--slate); font-size: 14px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--slate); font-weight: 600; }
.copyright { margin-top: 24px; font-size: 13px; }

/* ---------- legal pages ---------- */
.legal { padding-block: 48px 20px; }
.legal h1 { font-size: clamp(30px, 4.5vw, 42px); margin-bottom: 6px; }
.legal .updated { color: var(--slate); font-size: 14px; margin-bottom: 30px; }
.legal h2 { font-size: 22px; margin: 34px 0 8px; }
.legal p, .legal li { color: #39434D; font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.legal .box {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 18px 20px; margin: 18px 0;
}

/* ---------- phone mock (illustrative screens embedded in marketing sections) ---------- */
.phone {
  width: 100%; max-width: 300px; margin: 0 auto;
}
.phone-screen {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(31,39,51,0.10);
  padding: 16px 15px 18px; overflow: hidden;
}
.phone-title { font-family: var(--display); font-weight: 600; font-size: 13.5px; color: var(--ink); margin: 0 0 2px; }
.phone-sub { color: var(--slate); font-size: 10.5px; margin: 0 0 12px; }
.verdict-card {
  border-radius: 14px; padding: 12px; display: flex; gap: 9px; align-items: flex-start;
  margin-bottom: 12px;
}
.verdict-card .v-icon {
  width: 26px; height: 26px; border-radius: 99px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.verdict-card svg { width: 13px; height: 13px; }
.verdict-card h4 { font-family: var(--display); font-weight: 600; font-size: 14px; margin: 0 0 2px; }
.verdict-card p { font-size: 10.5px; color: var(--slate); margin: 0; line-height: 1.4; }
.fit-table { border-top: 1px solid var(--hairline); padding-top: 4px; }
.fit-table .fr {
  display: flex; align-items: center; gap: 7px; padding: 6px 0; border-bottom: 1px solid #F8F1ED;
  font-size: 11px;
}
.fit-table .fr.over { background: #FEF3E2; border-radius: 8px; padding: 6px 5px; border-bottom: none; }
.fit-table .fr .fi {
  width: 19px; height: 19px; border-radius: 6px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.fit-table .fr .fi svg { width: 10px; height: 10px; }
.fit-table .fr .fn { flex: 1; font-weight: 600; color: var(--ink); }
.fit-table .fr .fv { width: 48px; text-align: right; font-weight: 600; }
.fit-table .fr .fl { width: 48px; text-align: right; color: var(--slate); }
.fit-table .fh { display: flex; font-size: 8.5px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: 6px; }
.fit-table .fh span:first-child { flex: 1; }
.fit-table .fh span:nth-child(2), .fit-table .fh span:nth-child(3) { width: 48px; text-align: right; }

/* ---------- content-overview snippet rows ---------- */
.content-rows .cr {
  display: flex; align-items: center; gap: 9px; padding: 7px 0;
  border-bottom: 1px solid #F8F1ED; font-size: 11.5px;
}
.content-rows .cr:last-child { border-bottom: none; }
.content-rows .cr .ci {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.content-rows .cr .ci svg { width: 11px; height: 11px; }
.content-rows .cr .cn { flex: 1; font-weight: 600; color: var(--ink); }
.content-rows .cr .cl { font-weight: 600; }
.content-rows .cr .cv { color: var(--slate); font-size: 15px; margin-left: 1px; }
.content-rows .cr .pill {
  background: var(--blush); color: var(--slate); font-size: 9px; font-weight: 600;
  border-radius: 99px; padding: 3px 8px;
}

/* ---------- search snippet ---------- */
.search-snippet-field {
  display: flex; align-items: center; gap: 8px;
  background: var(--page); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 9px 12px; margin-bottom: 12px; font-size: 12px; color: var(--ink);
}
.search-snippet-field svg { flex: none; width: 13px; height: 13px; }
.search-results .rr {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid #F8F1ED; font-size: 11.5px;
}
.search-results .rr:last-child { border-bottom: none; }
.search-results .rr .rc {
  width: 26px; height: 37px; flex: none; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.search-results .rr .rt { flex: 1; min-width: 0; }
.search-results .rr .rt .n { font-weight: 600; color: var(--ink); display: block; }
.search-results .rr .rt .a { color: var(--slate); font-size: 10px; }
.search-results .rr .age {
  font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--lavender);
  flex: none;
}
