/* ===========================================================
   Reward Study - reward.study
   Single self-hosted stylesheet. No external fonts, no CDNs.
   Palette sampled from the mascot artwork.
   =========================================================== */

:root {
  /* brand */
  --brand:        #3E767B;
  --brand-deep:   #1D5259;
  --brand-ink:    #144049;
  --cream:        #FBF6EA;
  --cream-2:      #F3EAD6;
  --tan:          #C9B27F;

  /* light mode surface + text */
  --bg:           #FFFFFF;
  --surface:      #FBF6EA;
  --surface-2:    #F3EAD6;
  --ink:          #12292C;
  --ink-2:        #4A6165;
  --line:         rgba(18, 41, 44, 0.14);
  --shadow:       0 1px 2px rgba(18, 41, 44, .05), 0 8px 24px rgba(18, 41, 44, .07);
  --shadow-lg:    0 2px 4px rgba(18, 41, 44, .06), 0 18px 48px rgba(18, 41, 44, .11);

  --radius:       18px;
  --radius-sm:    12px;
  --radius-lg:    28px;
  --maxw:         1080px;
  --gap:          clamp(2.5rem, 6vw, 5.5rem);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand:      #74BCC1;
    --brand-deep: #9BD5D9;
    --brand-ink:  #BFE4E7;
    --bg:         #0D1E21;
    --surface:    #142B2F;
    --surface-2:  #1C383D;
    --ink:        #EFE8D8;
    --ink-2:      #AEC1C3;
    --line:       rgba(239, 232, 216, 0.16);
    --shadow:     0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg:  0 2px 4px rgba(0,0,0,.45), 0 18px 48px rgba(0,0,0,.45);
  }
}

/* --------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); }
p  { margin: 0 0 1.1em; max-width: 62ch; }
ul, ol { max-width: 62ch; padding-left: 1.3em; }
li { margin-bottom: .45em; }
strong { font-weight: 650; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.15rem, 5vw, 2rem); }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand-deep); color: #fff;
  padding: .75rem 1.15rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 99;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem;
  min-height: 64px; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 680; letter-spacing: -.015em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.site-nav { display: flex; gap: clamp(.8rem, 2.5vw, 1.6rem); flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 550; white-space: nowrap; }
/* on narrow phones the 2 in-page anchors are dropped so the bar stays 1 row */
@media (max-width: 520px) {
  .brand { font-size: .98rem; }
  .brand img { width: 30px; height: 30px; }
  .site-nav a.is-anchor { display: none; }
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 5px; }

/* --------------------------------------------------------- hero */
.hero {
  background:
    radial-gradient(120% 90% at 82% 8%, var(--surface-2) 0%, transparent 62%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { display: grid; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 800px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } }
.hero-mascot { width: min(320px, 72vw); margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(18,41,44,.18)); }
.hero h1 { margin-bottom: .4em; }
.hero .tagline { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 620; color: var(--brand-ink); margin-bottom: .8em; }
.hero p { color: var(--ink-2); font-size: 1.08em; }
.eyebrow-lg {
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-ink); margin: 0 0 .9rem;
}

/* the 2 claims that close the biggest objections in this category */
.trust-strip {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; gap: .5rem; max-width: 46ch;
}
.trust-strip li {
  position: relative; padding-left: 1.7rem; margin: 0;
  font-size: .97rem; color: var(--ink-2); line-height: 1.5;
}
.trust-strip li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .74rem; height: .38rem;
  border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}
.trust-strip strong { color: var(--ink); font-weight: 660; }

/* --------------------------------------------------------- buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.4rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 640; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; transition: transform .12s ease, background-color .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-deep); color: #FFFFFF; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--bg); }
.btn-ghost:hover { border-color: var(--brand); }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: var(--brand); color: #06181B; }
  .btn-primary:hover { background: var(--brand-deep); }
}

/* App Store badge placeholder. Swap for Apple's official badge before launch. */
.appstore-badge {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .7rem 1.35rem .75rem; border-radius: 12px;
  background: #111; color: #fff; text-decoration: none; line-height: 1.15;
  border: 1px solid #111;
}
.appstore-badge:hover { background: #000; }
.appstore-badge .sm { display: block; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; opacity: .82; }
.appstore-badge .lg { display: block; font-size: 1.16rem; font-weight: 600; letter-spacing: -.01em; }
.appstore-badge svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
@media (prefers-color-scheme: dark) {
  .appstore-badge { background: #EFE8D8; color: #0D1E21; border-color: #EFE8D8; }
  .appstore-badge:hover { background: #fff; }
}
/* Official Apple "Download on the App Store" badge.
   Apple forbids recreating or altering the artwork, so this is their SVG,
   self-hosted to keep the zero-third-party-request rule. Minimum onscreen
   height is 40px; clear space must be at least a quarter of the badge height. */
.appstore-official { display: inline-block; line-height: 0; }
.appstore-official img { display: block; height: 54px; width: auto; }
@media (max-width: 420px) { .appstore-official img { height: 46px; } }
.appstore-official:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 10px; }
.store-link { font-weight: 600; }

.badge-note { font-size: .88rem; color: var(--ink-2); margin: .55rem 0 0; }

/* --------------------------------------------------------- sections */
section { padding-block: var(--gap); }
section + section { border-top: 1px solid var(--line); }
.section-alt { background: var(--surface); }
.lede { font-size: 1.1em; color: var(--ink-2); max-width: 54ch; }

.feature { display: grid; gap: clamp(1.6rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature.reverse .feature-media { order: -1; }
}
.feature + .feature { margin-top: clamp(2.5rem, 5vw, 4rem); }
.feature-media { display: flex; justify-content: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand-ink); margin-bottom: .7rem;
}

/* phone frame */
.shot {
  border-radius: 26px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); background: var(--bg);
  width: min(242px, 58vw);
}
.shot-pair { display: flex; gap: 1rem; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.shot-pair .shot { width: min(216px, 42vw); }
.shot-pair .shot:nth-child(2) { margin-top: 2rem; }
.shot-tablet { border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); width: min(420px, 88vw); }

/* --------------------------------------------------------- pricing */
.price-grid { display: grid; gap: 1.15rem; margin-top: 2.2rem; }
@media (min-width: 760px) {
  /* the middle card is the one being sold, so it gets more room than the others */
  .price-grid { grid-template-columns: 1fr 1.16fr 1fr; align-items: stretch; }
}
.price-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.price-card.is-feature { border-color: var(--brand); border-width: 2px; }
@media (min-width: 760px) {
  .price-card.is-feature {
    margin-block: -1.7rem;               /* taller than its neighbours */
    padding: 2.3rem 1.9rem 2.1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative; z-index: 1;
  }
  .price-card.is-feature h3 { font-size: 1.5rem; }
  .price-card.is-feature .amount { font-size: 2.5rem; }
  .price-card.is-feature .terms { font-size: .95rem; }
  .price-card.is-feature li { font-size: 1.04rem; }
}
.price-card h3 { margin-bottom: .15em; }
.price-card .amount { font-size: 2.15rem; font-weight: 700; letter-spacing: -.03em; color: var(--brand-ink); margin: .1em 0 .05em; }
.price-card .terms { font-size: .9rem; color: var(--ink-2); margin-bottom: 1rem; }
.price-card ul { list-style: none; padding: 0; margin: 0; }
.price-card li { position: relative; padding-left: 1.55rem; font-size: .98rem; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: .72rem; height: .38rem;
  border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}
.pill {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; background: var(--surface-2); color: var(--brand-ink);
  padding: .28rem .62rem; border-radius: 999px; margin-bottom: .8rem;
}
.price-note { margin-top: 1.6rem; color: var(--ink-2); font-size: .95rem; }

/* --------------------------------------------------------- privacy strip */
.trust { background: var(--brand-deep); color: #FFFFFF; }
.trust h2, .trust a { color: #FFFFFF; }
.trust p { color: rgba(255,255,255,.9); }
.trust-list { display: grid; gap: 1.1rem 2rem; margin-top: 1.6rem; padding: 0; list-style: none; max-width: none; }
@media (min-width: 700px) { .trust-list { grid-template-columns: repeat(2, 1fr); } }
.trust-list li { padding-left: 1.6rem; position: relative; color: rgba(255,255,255,.92); }
.trust-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .36rem;
  border-left: 2.5px solid var(--tan); border-bottom: 2.5px solid var(--tan); transform: rotate(-45deg);
}
/* the ghost button sits on the teal panel, so it needs its own colours */
.trust .btn-ghost {
  background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.55);
}
.trust .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  .trust { background: var(--surface-2); }
  .trust h2 { color: var(--ink); }
  .trust p, .trust-list li { color: var(--ink-2); }
  .trust .btn-ghost { color: var(--ink); border-color: var(--line); }
  .trust .btn-ghost:hover { background: rgba(239,232,216,.08); border-color: var(--brand); }
}

/* --------------------------------------------------------- FAQ / prose */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.faq { margin-top: 2rem; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; margin-bottom: .8rem; background: var(--bg);
}
.faq details[open] { background: var(--surface); }
.faq summary { font-weight: 640; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-weight: 400; color: var(--brand); font-size: 1.35rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > *:not(summary) { margin-top: .85rem; }
.faq p:last-child { margin-bottom: 0; }

.callout {
  border-left: 4px solid var(--brand); background: var(--surface);
  padding: 1.1rem 1.3rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.8rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* the objection block: given real weight, because it is the one that loses sales */
.callout-wide {
  margin: 0; padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.4rem, 4vw, 2.4rem);
  border-left-width: 5px; max-width: 72ch;
}
.callout-h { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: .7em; }
.callout-wide p { color: var(--ink-2); }

/* full-width band for the co-parenting story */
.band { background: var(--surface-2); }
.band h2 { max-width: 20ch; }
.band p { color: var(--ink-2); max-width: 62ch; font-size: 1.05em; }
.band .eyebrow { margin-bottom: .8rem; }
.band-note {
  margin-top: 1.6rem; font-size: .93rem; color: var(--ink-2);
  padding-top: 1rem; border-top: 1px solid var(--line); max-width: 46ch;
}
@media (prefers-color-scheme: dark) { .band { background: var(--surface); } }
.draft-banner {
  background: var(--surface-2); border: 1px dashed var(--brand);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 2.2rem;
}
.draft-banner p { margin: 0; font-size: .97rem; }
.meta { color: var(--ink-2); font-size: .93rem; }

.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; margin: 1.8rem 0; box-shadow: var(--shadow);
}
.contact-card p:last-child { margin-bottom: 0; }
.contact-card .email { font-size: 1.15rem; font-weight: 640; }

/* --------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line); background: var(--surface);
  padding-block: 3rem 2.25rem;
}
.site-footer .wrap { display: block; }

/* top row: brand block on the left, link column on the right, sharing a baseline */
.footer-top { display: grid; gap: 2rem; }
@media (min-width: 720px) {
  .footer-top { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: start; }
}
.footer-brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-weight: 660; letter-spacing: -.015em; color: var(--ink);
  text-decoration: none; margin-bottom: .9rem;
}
.footer-brand img { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.footer-brand:hover span { text-decoration: underline; text-underline-offset: 4px; }

.footer-links { display: grid; gap: .55rem; padding: 0; margin: 0; list-style: none; align-content: start; }
.footer-links li { margin: 0; }
@media (min-width: 720px) { .footer-links { justify-items: end; } }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.footer-links a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a[aria-current="page"] { color: var(--brand-ink); font-weight: 620; }

.colophon { color: var(--ink-2); font-size: .89rem; line-height: 1.6; margin: 0 0 .45rem; max-width: 46ch; }
.colophon:last-child { margin-bottom: 0; }
.colophon a { color: var(--ink-2); }
.colophon a:hover { color: var(--brand-ink); }

/* bottom bar: legal line, separated by a hairline */
.footer-bottom {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .6rem 2rem; align-items: baseline;
  justify-content: space-between;
}
.footer-bottom .colophon { font-size: .84rem; max-width: none; margin: 0; }

.lang-nav ul { display: flex; flex-wrap: wrap; gap: .45rem 1rem; padding: 0; margin: 0; list-style: none; }
.lang-nav a, .lang-nav span { font-size: .84rem; color: var(--ink-2); text-decoration: none; }
.lang-nav a:hover { color: var(--brand-ink); text-decoration: underline; }
.lang-nav [aria-current="true"] { color: var(--brand-ink); font-weight: 640; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
