:root {
  color-scheme: light;
  --ink: #15324e;
  --ink-light: #40576b;
  --muted: #637b8f;
  --sky: #13a3e2;
  --sky-deep: #087cac;
  --sky-wash: #e7f7ff;
  --sky-pale: #f3fbff;
  --line: #dcecf4;
  --paper: #ffffff;
  --shadow: 0 12px 28px rgba(23, 88, 131, 0.075);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { height: 100%; background: #eaf7ff; scroll-behavior: auto; }
body { margin: 0; min-height: 100%; overflow-x: hidden; color: var(--ink); background: #eaf7ff; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--sky-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.app-frame { max-width: 600px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--paper); position: relative; box-shadow: 0 0 55px rgba(12, 81, 123, .08); }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(211,233,245,.8); display: flex; align-items: center; justify-content: space-between; min-height: 66px; padding: 11px 22px; padding-top: max(11px, env(safe-area-inset-top)); gap: 12px; }
.wordmark { border: 0; background: none; padding: 10px 0; font-weight: 850; color: var(--ink); letter-spacing: -.06em; font-size: 22px; white-space: nowrap; }
.brand-period { color: var(--sky); }
.topbar-link { border: 0; background: var(--sky-wash); border-radius: 100px; color: #145980; font-size: 12px; font-weight: 740; padding: 11px 14px; white-space: nowrap; }
.screen { min-height: calc(100dvh - 145px); padding: 0 0 calc(115px + env(safe-area-inset-bottom)); outline: none; }
.page { padding: 23px 22px 38px; animation: gentle-in .18s ease both; }
@keyframes gentle-in { from { opacity: .6; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.back-btn { background: transparent; border: 0; padding: 10px 4px 10px 0; color: var(--sky-deep); font-size: 14px; font-weight: 730; }
.page-eyebrow { color: var(--sky-deep); text-transform: uppercase; letter-spacing: .095em; font-size: 11px; font-weight: 800; margin: 0 0 13px; }
h1,h2,h3,h4,p { margin-top: 0; }
h1, .editorial { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; letter-spacing: -.035em; }
h1 { font-size: clamp(34px, 8vw, 42px); line-height: 1.15; margin-bottom: 18px; }
h2 { font-size: 24px; line-height: 1.23; letter-spacing: -.045em; margin-bottom: 12px; }
h3 { font-size: 17px; line-height: 1.3; margin-bottom: 6px; letter-spacing: -.025em; }
p { line-height: 1.65; }
.lead { color: #37516a; font-size: 16px; line-height: 1.72; }
.support { color: var(--muted); font-size: 14px; line-height: 1.65; }
.smallprint { font-size: 12px; color: var(--muted); line-height: 1.6; }
.section-label { font-weight: 800; color: var(--ink); font-size: 17px; margin: 0 0 13px; letter-spacing: -.02em; }
.section-gap { margin-top: 33px; }
.pill { background: var(--sky-wash); border: 1px solid #d4edf9; border-radius: 100px; padding: 8px 12px; color: #175b7f; font-size: 12px; font-weight: 720; display: inline-flex; align-items: center; }
.hero { background: var(--sky-wash); padding: 23px 22px 29px; border-radius: 27px; }
.hero-logo-wrap { display: flex; align-items: center; justify-content: center; height: 143px; margin: 0 auto 10px; }
.hero-logo { width: min(310px, 94%); max-height: 143px; object-fit: contain; }
.hero h1 { font-size: clamp(33px, 8.5vw, 40px); margin-bottom: 14px; }
.hero .lead { font-size: 15.5px; margin-bottom: 20px; color: #264b64; }
.hero .page-eyebrow { margin-bottom: 10px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 15px; min-height: 51px; padding: 14px 19px; font-size: 14px; font-weight: 800; border: 1px solid transparent; text-decoration: none; line-height: 1.25; text-align: center; transition: transform .14s ease, background-color .14s ease; }
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--sky-deep); color: #fff; }
.btn-primary:hover { background: #07638d; }
.btn-secondary { background: #fff; color: #155b80; border-color: #c9e6f5; }
.btn-soft { background: var(--sky-wash); color: #155b80; }
.btn-text { border-color: transparent; background: transparent; color: var(--sky-deep); padding-left: 3px; padding-right: 3px; }
.btn-wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.hero .btn { flex: 1 1 150px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 7px 16px; border-top: 1px solid #c8e9f8; margin-top: 21px; padding-top: 16px; color: #225976; font-size: 12px; line-height: 1.5; font-weight: 720; }
.hero-note span { display: inline-flex; align-items: center; }
.story-preview { border: 1px solid var(--line); padding: 24px 23px; border-radius: 23px; }
.story-quote { font-family: Georgia, serif; font-size: 24px; line-height: 1.35; letter-spacing: -.02em; margin-bottom: 11px; color: #1a4769; }
.story-preview .support { margin-bottom: 17px; }
.topic-shortcuts { display: grid; grid-template-columns: 1fr; gap: 10px; }
.shortcut { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 19px; padding: 17px 18px; color: var(--ink); }
.shortcut:hover { border-color: #a7d6ea; background: #fafdff; }
.shortcut small { display: block; color: var(--sky-deep); font-size: 11px; font-weight: 730; margin-bottom: 7px; }
.shortcut strong { display: block; font-size: 17px; letter-spacing: -.02em; margin-bottom: 4px; }
.shortcut span { display: block; font-size: 13px; color: var(--muted); line-height: 1.55; }
.screen-heading { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(32px, 8vw, 41px); line-height: 1.16; margin-bottom: 12px; }
.search-label { display: block; color: var(--ink); font-weight: 760; font-size: 13px; margin: 24px 0 9px; }
.search-input { width: 100%; min-height: 52px; background: #fff; padding: 14px 17px; border-radius: 15px; border: 1px solid #b7dced; color: var(--ink); outline-offset: 2px; font-size: 16px; }
.search-input::placeholder, textarea::placeholder, input::placeholder { color: #8296a5; }
.filter-row { display: flex; flex-wrap: nowrap; gap: 7px; margin: 16px -22px 0; padding: 1px 22px 14px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter { flex-shrink: 0; border: 1px solid #d5e7f0; border-radius: 100px; background: #fff; padding: 11px 15px; color: #52718a; font-size: 12px; font-weight: 730; }
.filter[aria-pressed="true"] { border-color: #147fae; color: #fff; background: var(--sky-deep); }
.count-line { color: var(--muted); font-size: 13px; margin: 0 0 15px; }
.unit-block { border: 1px solid var(--line); background: white; border-radius: 19px; margin: 0 0 11px; overflow: hidden; }
.unit-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 18px 17px; background: #fff; color: var(--ink); border: 0; text-align: left; }
.unit-toggle:hover { background: #fbfeff; }
.unit-toggle strong { display: block; font-size: 15px; line-height: 1.35; letter-spacing: -.025em; }
.unit-toggle small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 6px; }
.toggle-word { flex-shrink: 0; color: var(--sky-deep); font-size: 12px; font-weight: 740; }
.topic-list { border-top: 1px solid var(--line); }
.topic-item { border-bottom: 1px solid #e9f2f6; }
.topic-item:last-child { border-bottom: none; }
.topic-link { width: 100%; padding: 16px 17px; border: 0; background: #fff; text-align: left; display: block; color: var(--ink); }
.topic-link:hover { background: var(--sky-pale); }
.topic-link strong { display: block; font-size: 14px; line-height: 1.4; margin-bottom: 4px; }
.topic-link span { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.empty { background: var(--sky-pale); border: 1px solid var(--line); padding: 25px; border-radius: 20px; margin-top: 16px; }
.empty p { font-size: 14px; color: var(--ink-light); }
.topic-hero { background: var(--sky-wash); padding: 26px 23px; margin: 0 -22px 25px; border-radius: 0 0 26px 26px; }
.topic-hero h1 { font-size: clamp(32px, 8.5vw, 42px); }
.topic-hero .lead { margin-bottom: 0; }
.topic-detail .section-label { margin-bottom: 14px; }
.question-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.question-list li { border-radius: 15px; background: #f6fbff; border: 1px solid #e3f2f9; padding: 16px; font-size: 14px; line-height: 1.55; }
.detail-price { margin: 22px 0 19px; border: 1px solid var(--line); border-radius: 19px; padding: 18px; }
.detail-price strong { font-size: 18px; letter-spacing: -.035em; display: block; margin-bottom: 7px; }
.detail-price span { font-size: 13px; line-height: 1.6; color: var(--ink-light); }
.detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.detail-actions .btn-primary { grid-column: 1/-1; }
.reading-intro { border: 1px solid #d5eefb; border-radius: 23px; padding: 26px 21px; background: var(--sky-pale); margin: 22px 0; }
.reading-intro p { font-family: Georgia, serif; font-size: 22px; line-height: 1.55; margin: 0; }
.story-card { width: 100%; text-align: left; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 21px; margin-bottom: 11px; color: var(--ink); }
.story-card:hover { background: var(--sky-pale); }
.story-card span { display: block; color: var(--sky-deep); font-size: 11px; font-weight: 760; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.story-card strong { display: block; font-family: Georgia, serif; font-weight: 500; font-size: 24px; line-height: 1.3; margin-bottom: 7px; }
.story-card p { color: var(--muted); font-size: 13px; line-height: 1.58; margin: 0; }
.story-body { font-family: Georgia, 'Times New Roman', serif; font-size: 18px; line-height: 1.84; color: #29455e; }
.story-body p { line-height: inherit; margin-bottom: 23px; }
.story-body .story-opening { font-size: 21px; color: #153e5b; }
.reading-end { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.step-card { border: 1px solid var(--line); border-radius: 18px; padding: 21px 19px; margin-bottom: 11px; }
.step-card h3 { color: var(--ink); font-size: 17px; margin-bottom: 9px; }
.step-card p { font-size: 14px; color: var(--ink-light); margin: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 740; font-size: 14px; line-height: 1.5; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { font-size: 14px; line-height: 1.7; color: var(--ink-light); margin: -3px 0 18px; }
.install-panel { background: var(--sky-wash); border-radius: 22px; padding: 23px; }
.install-panel h3 { margin-bottom: 10px; }
.install-panel p { color: #3f5970; font-size: 14px; line-height: 1.65; }
.install-panel .btn { margin-top: 4px; }
.saved-row { border-bottom: 1px solid var(--line); padding: 18px 0; }
.saved-row strong { display: block; font-size: 16px; margin-bottom: 5px; }
.saved-row p { color: var(--muted); font-size: 13px; margin-bottom: 13px; }
.saved-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.saved-actions .btn { min-height: 43px; font-size: 12px; padding: 10px 14px; }
.booking-summary { background: var(--sky-wash); padding: 20px; border-radius: 18px; margin-bottom: 24px; }
.booking-summary strong { font-size: 18px; display: block; line-height: 1.4; }
.booking-summary p { font-size: 13px; color: var(--ink-light); margin: 9px 0 0; line-height: 1.55; }
.form-label { display: block; font-size: 13px; font-weight: 750; margin: 0 0 8px; }
.form-label span { color: var(--muted); font-weight: 500; }
.field { display: block; width: 100%; min-height: 52px; padding: 14px 15px; border-radius: 14px; background: #fff; border: 1px solid #cbdfe9; color: var(--ink); font-size: 16px; margin-bottom: 17px; }
textarea.field { min-height: 105px; resize: vertical; line-height: 1.6; }
.form-group { margin-bottom: 0; }
.form-hint { margin: -7px 0 17px; font-size: 12px; color: var(--muted); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 9px 0 22px; cursor: pointer; }
.consent input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--sky-deep); margin: 1px 0 0; }
.consent span { font-size: 12.5px; line-height: 1.55; color: var(--ink-light); }
.form-status { padding: 15px; border-radius: 14px; margin: 14px 0; font-size: 14px; line-height: 1.6; background: var(--sky-wash); color: #174d6b; }
.form-status.error { background: #fff4ee; color: #734523; }
.form-status.success { background: #eaf9f4; color: #215c49; }
.form-status button { display: block; margin-top: 14px; }
.form-actions { display: grid; gap: 10px; }
.form-actions .btn { width: 100%; }
.privacy-copy p { color: var(--ink-light); font-size: 14px; margin-bottom: 18px; }
.info-separator { height: 1px; background: var(--line); margin: 27px 0; }
.inline-link { border: 0; color: var(--sky-deep); background: transparent; padding: 5px 0; font-size: 13px; font-weight: 720; text-align: left; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 600px; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.985); box-shadow: 0 -6px 24px rgba(13,76,112,.06); border-top: 1px solid var(--line); padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); min-height: calc(66px + env(safe-area-inset-bottom)); }
.tab { position: relative; min-height: 47px; padding: 12px 4px; background: transparent; border: 0; border-radius: 12px; font-size: 12.5px; font-weight: 680; color: #75899b; letter-spacing: -.01em; }
.tab[aria-current="page"] { background: var(--sky-wash); color: #13668c; font-weight: 850; }
.toast { position: fixed; left: 50%; transform: translate(-50%, 20px); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 60; background: #153c58; color: white; padding: 13px 18px; max-width: min(370px, calc(100% - 32px)); text-align: center; border-radius: 14px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.45; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.shown { opacity: 1; transform: translate(-50%, 0); }
.loading-shell { padding: 30px 23px; color: var(--muted); }
.noscript { padding: 16px; }
@media (max-width: 350px) {
  .page { padding-left: 17px; padding-right: 17px; }
  .topbar { padding-left: 17px; padding-right: 17px; }
  .wordmark { font-size: 20px; }
  .hero { padding: 17px 17px 22px; }
  .hero-logo-wrap { height: 115px; }
  .hero-logo { max-height: 115px; }
  .hero h1 { font-size: 30px; }
  .topic-hero { margin-left: -17px; margin-right: -17px; }
  .filter-row { margin-left: -17px; margin-right: -17px; padding-left: 17px; padding-right: 17px; }
}
@media (min-width: 600px) {
  .app-frame { border-left: 1px solid #dceef5; border-right: 1px solid #dceef5; }
  .page { padding-left: 34px; padding-right: 34px; }
  .hero-logo-wrap { height: 160px; }
  .hero-logo { max-height: 160px; }
  .topic-hero { margin-left: -34px; margin-right: -34px; padding-left: 34px; padding-right: 34px; }
  .filter-row { margin-left: -34px; margin-right: -34px; padding-left: 34px; padding-right: 34px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
