/* PageBreak — shared styles.
   Palette is the iOS app's own (PBColor.paper / .ink / .sage / .accent) so the
   site and the product read as one thing. Type follows the app's logic too:
   sans for interface voice, serif reserved for reading moments, mono for labels. */

:root {
  --paper:      #faf7ed;
  --paper-deep: #f2efe2;
  --paper-sink: #ebe8db;
  --ink:        #22251f;
  --ink-soft:   #5b6058;
  --ink-faint:  #868b81;
  --sage:       #5f7350;   /* fill weight — white sits on this */
  --accent:     #5f7350;   /* foreground weight */
  --card:       #fffdf8;
  --line:       #ddd8c8;
  --line-soft:  #e8e3d5;
  --shadow:     rgba(34, 37, 31, 0.10);
  --wash:       #eff2e4;   /* a sage-leaning ground, for the section that earns emphasis */
  --phone-cast: #c9d7b9;   /* the offset block behind the phone */

  /* One hue per step in the method, carried through chip, tags and icon tile.
     All desaturated to sit beside the sage rather than compete with it. */
  --s1: #5f7350;  --s1-bg: #e4ead9;
  --s2: #4a6d7c;  --s2-bg: #dde8ec;
  --s3: #a2674c;  --s3-bg: #f2e3d9;
  --s4: #3d6b5c;  --s4-bg: #dcebe4;

  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure: 36rem;
  --shell: 70rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #191b18;
    --paper-deep: #141613;
    --paper-sink: #101210;
    --ink:        #ecebe2;
    --ink-soft:   #9ba095;
    --ink-faint:  #7b8076;
    --accent:     #a1bc8a;   /* plain sage as text on this ground is only ~3.4:1 */
    --card:       #23261f;
    --line:       #343830;
    --line-soft:  #2b2e28;
    --shadow:     rgba(0, 0, 0, 0.45);
    --wash:       #1d211a;
    --phone-cast: #33402a;
    --s1: #a1bc8a;  --s1-bg: #2a3324;
    --s2: #8fb3c2;  --s2-bg: #1f2c33;
    --s3: #d19a7c;  --s3-bg: #33241c;
    --s4: #7fb9a4;  --s4-bg: #1c2f28;
  }
}
:root[data-theme="dark"] {
  --paper: #191b18; --paper-deep: #141613; --paper-sink: #101210;
  --ink: #ecebe2; --ink-soft: #9ba095; --ink-faint: #7b8076;
  --accent: #a1bc8a; --card: #23261f; --line: #343830; --line-soft: #2b2e28;
  --shadow: rgba(0,0,0,0.45); --wash: #1d211a; --phone-cast: #33402a;
  --s1: #a1bc8a; --s1-bg: #2a3324;
  --s2: #8fb3c2; --s2-bg: #1f2c33;
  --s3: #d19a7c; --s3-bg: #33241c;
  --s4: #7fb9a4; --s4-bg: #1c2f28;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

.wrap { width: min(var(--shell), 100% - 48px); margin-inline: auto; }
@media (max-width: 560px) { .wrap { width: calc(100% - 32px); } }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.028em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 5.6vw, 4.6rem); line-height: 1.07; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.12; }
h3 { font-size: 1.5rem; line-height: 1.22; letter-spacing: -0.02em; }
p { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 0.68rem/1.25 var(--mono);
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lede { max-width: var(--measure); color: var(--ink-soft); font-size: 1.16rem; line-height: 1.62; }
.micro { font: 500 0.66rem/1.6 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-faint); }

/* ---- header ---- */

.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--sage);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.22rem; letter-spacing: -0.04em; color: #fff; }
.brand-mark {
  width: 24px; height: 30px; border-radius: 3px; flex: none;
  background: linear-gradient(140deg, #ecdad6, #d6b8b1);
  box-shadow: inset 3px 0 0 rgba(0,0,0,0.18);
}
.site-head nav { display: flex; align-items: center; gap: 30px; font-size: 0.93rem; font-weight: 500; }
.site-head nav a:not(.btn) { color: rgba(255, 255, 255, 0.82); }
.site-head nav a:not(.btn):hover { color: #fff; }
.site-head a:focus-visible { outline-color: #fff; }
.site-head .btn-primary { background: #fff; color: var(--sage); }
.site-head .btn-primary:hover { background: var(--paper); }
@media (max-width: 800px) { .site-head nav a:not(.btn) { display: none; } }

/* ---- buttons ---- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px;
  font: 600 1rem/1 var(--sans); cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: #506245; }
.btn-ghost { border-color: var(--line); color: var(--accent); }
.btn-ghost:hover { border-color: var(--accent); background: var(--s1-bg); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
@media (max-width: 420px) { .btn { width: 100%; } .btn-row { display: grid; } }

/* ---- sections ---- */

section { border-top: 1px solid var(--line-soft); }
.pad { padding-block: clamp(76px, 10vw, 128px); }
.section-head { display: grid; gap: 16px; justify-items: start; margin-bottom: 56px; }
.section-head.center { justify-items: center; text-align: center; margin-inline: auto; }
.section-head.center .lede { margin-inline: auto; }

/* ---- hero ---- */

.hero { border-top: 0; }
.hero .wrap {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(40px, 5vw, 72px);
  align-items: center; padding-block: clamp(56px, 7vw, 100px);
}
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-copy h1 { max-width: 15ch; }
.hero-copy .lede { font-size: 1.24rem; color: #3f4740; }
:root[data-theme="dark"] .hero-copy .lede { color: var(--ink-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-copy .lede { color: var(--ink-soft); } }
.hero-copy .lede strong { color: var(--ink); font-weight: 600; }

/* step pills — the whole model in one line, before the headline */
.steps { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.pill {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px;
  background: var(--paper); color: var(--ink-soft);
  font: 500 0.62rem/1.15 var(--mono); letter-spacing: 0.07em; white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.pill + .pill { margin-left: 22px; }
.pill + .pill::after { content: ""; position: absolute; right: 100%; width: 22px; height: 1px; background: var(--line); }

/* ---- phone: the intercept moment, which is the actual hook ---- */

.stage { display: grid; place-items: center; position: relative; padding-bottom: 44px; }
.phone {
  /* Held at a real handset ratio (~1:2). Letting the screen size itself to its
     content made this read as a tablet. */
  width: 282px; height: 560px; max-width: 100%; padding: 11px;
  border: 3px solid var(--ink); border-radius: 44px; background: #16180f;
  box-shadow: 13px 13px 0 var(--phone-cast);
  transform: rotate(2.5deg);
}
.screen {
  position: relative; height: 100%; border-radius: 32px; overflow: hidden;
  background: #faf7ed; color: #22251f; padding: 52px 20px 22px; text-align: center;
  display: grid; gap: 16px; justify-items: center; align-content: center;
}
.notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 100px; height: 22px; border-radius: 99px; background: #16180f; }
.ring {
  width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#5f7350 0 62%, #e0dccd 62% 100%);
  position: relative;
}
.ring::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #faf7ed; }
.ring span { position: relative; z-index: 1; font: 600 1.6rem/1 var(--mono); letter-spacing: -0.05em; color: #5f7350; }
.screen-book { font: 600 0.82rem/1.3 var(--sans); }
.screen-quote { font: 400 0.84rem/1.6 var(--serif); color: #5b6058; max-width: 21ch; }
.screen-btns { display: grid; gap: 7px; width: 100%; }
.screen-btn { border-radius: 11px; padding: 11px; background: #5f7350; color: #fff; font: 600 0.72rem/1 var(--sans); }
.screen-btn.alt { background: transparent; border: 1px solid #ddd8c8; color: #5b6058; }

/* the trigger card — what made the phone look like that */
.trigger {
  /* Overlaps the phone's bottom-left corner only — never its controls. */
  position: absolute; z-index: 2; left: -22px; bottom: 0; width: 262px; max-width: 86%;
  border: 1px solid var(--line); border-radius: 16px; padding: 15px 17px;
  background: var(--card); box-shadow: 0 12px 28px var(--shadow);
}
.trigger strong { display: block; font: 500 0.62rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--s3); }
.trigger p { margin-top: 8px; font-size: 0.9rem; line-height: 1.42; }
@media (max-width: 900px) { .stage { padding-bottom: 0; } .trigger { position: static; margin: 20px auto 0; width: 300px; } .phone { transform: none; } }

/* ---- method: full-width rows, one hue each ---- */

#method { background: var(--wash); }

.step-row {
  display: grid; grid-template-columns: 62px 1fr 170px; gap: 36px;
  padding-block: 40px; align-items: start;
}
.step-row + .step-row { border-top: 1px solid var(--line-soft); }
.chip {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
  background: var(--s-bg); color: var(--s); font: 600 1.16rem/1 var(--mono); letter-spacing: -0.05em;
}
.step-body { display: grid; gap: 14px; max-width: 42rem; }
.step-body .eyebrow { color: var(--s); }
.step-body p { color: var(--ink-soft); font-size: 1.04rem; line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
  border-radius: 999px; padding: 7px 11px; background: var(--s-bg); color: var(--ink);
  font: 500 0.62rem/1.2 var(--mono); letter-spacing: 0.05em; text-transform: uppercase;
}
.step-art { display: grid; place-items: center; width: 160px; height: 134px; border-radius: 20px; background: var(--s-bg); align-self: center; }
.step-art svg { width: 76px; height: 76px; stroke: var(--s); fill: none; stroke-width: 2.4; }
@media (max-width: 860px) {
  .step-row { grid-template-columns: 48px 1fr; gap: 20px; padding-block: 32px; }
  .step-art { display: none; }
  .chip { width: 44px; height: 44px; border-radius: 13px; font-size: 1rem; }
}

/* ---- privacy table ---- */

.boundary { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.boundary th, .boundary td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.boundary thead th { font: 500 0.66rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.boundary td:last-child { white-space: nowrap; font-weight: 600; font-size: 0.92rem; }
.stays { color: var(--accent); }
.leaves { color: var(--ink-faint); }
.table-scroll { overflow-x: auto; }

/* ---- pricing ---- */

/* Tonal rhythm: paper → paper → wash → deep → paper → deep → sink, so the eye
   gets a break and the two sections that carry the argument sit forward. */
.tone-wash { background: var(--wash); }
.tone-deep { background: var(--paper-deep); }
.pricing { background: var(--paper-deep); }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 22px; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 22px; padding: 34px; background: var(--card);
}
.price-card.featured { border-color: var(--accent); background: var(--s1-bg); }
.ribbon {
  position: absolute; top: -13px; left: 28px; border-radius: 999px; padding: 6px 11px;
  background: var(--ink); color: var(--paper); font: 500 0.6rem/1.2 var(--mono); letter-spacing: 0.06em;
}
.plan { font: 500 0.66rem/1.25 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.price { margin: 16px 0 12px; font-size: 2.9rem; line-height: 1.12; letter-spacing: -0.035em; font-weight: 600; }
.price small { font: 500 0.78rem/1.2 var(--mono); letter-spacing: 0; color: var(--ink-faint); }
.price-card > p { color: var(--ink-soft); font-size: 0.98rem; }
.price-card ul { margin: 24px 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 12px; }
.price-card li { display: flex; gap: 11px; font-size: 0.97rem; line-height: 1.5; color: var(--ink-soft); }
.price-card li::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.price-card .btn { margin-top: auto; }

/* ---- faq ---- */

.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; padding: 21px 0; font-weight: 600; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 22px; color: var(--ink-soft); max-width: var(--measure); font-size: 0.99rem; }

/* ---- final + footer ---- */

/* Closing band: the boldest, most saturated moment on the page — full sage,
   same fill the app's own primary buttons use — so the ask to download lands
   as the most "branded" beat right before the quieter footer. */
#get { background: var(--sage); }
#get .eyebrow { color: rgba(255, 255, 255, 0.82); }
#get h2 { color: #fff; }
#get .lede { color: rgba(255, 255, 255, 0.82); }
#get .micro { color: rgba(255, 255, 255, 0.62); }
#get .btn-primary { background: #fff; color: var(--sage); }
#get .btn-primary:hover { background: var(--paper); }

.final .wrap { display: grid; justify-items: center; text-align: center; gap: 22px; }
.site-foot { border-top: 1px solid var(--line); background: var(--paper-sink); padding-block: 72px 30px; }
.foot-big { margin: 0 0 60px; font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 1.06; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px 28px; font: 500 0.66rem/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.foot-links a { color: var(--ink-soft); }
.foot-links a:hover { color: var(--accent); }
.copyright { color: var(--ink-faint); font: 400 0.66rem/1.5 var(--mono); }

/* ---- prose pages ---- */

.prose { max-width: 42rem; padding-block: clamp(52px, 7vw, 84px); }
.prose h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 10px; }
.prose > p, .prose > ul, .prose > h2, .prose > .callout { margin-top: 26px; }
.prose h2 { margin-top: 50px; font-size: 1.5rem; }
.prose ul { padding-left: 22px; display: grid; gap: 9px; color: var(--ink-soft); }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.updated { font: 400 0.7rem/1.5 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.callout { background: var(--card); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; padding: 20px 22px; }
.callout p { color: var(--ink); }

/* ---- reveal ---- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
