/* Rompus website. Tokens mirror Theme.swift in the app: canvas, cream, navy, marigold, forest. */
:root {
  --canvas: #E9E3D5;
  --grid: rgba(28, 43, 72, 0.045);
  --cream: #FFF6E3;
  --ink: #1C2B48;
  --muted: #3B465F;
  --faint: #7A849A;
  --marigold: #F0A81C;
  --forest: #1E5540;
  --brick: #D4472C;
  --periwinkle: #6C8CD5;
  --shadow: rgba(28, 43, 72, 0.18);
  --stitch: rgba(28, 43, 72, 0.35);
  --on-forest: #FFF6E3;
  --display: 'Lilita One', 'Arial Rounded MT Bold', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --max: 1100px;
  --text: 65ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #141C2E;
    --grid: rgba(255, 246, 227, 0.05);
    --cream: #1C2B48;
    --ink: #FFF6E3;
    --muted: #C3CAD9;
    --faint: #8A94AA;
    --shadow: rgba(0, 0, 0, 0.55);
    --stitch: rgba(255, 246, 227, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--canvas);
  background-image: repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 4px),
                    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 4px);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--forest); text-decoration: underline; text-decoration-color: var(--marigold); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
@media (prefers-color-scheme: dark) { a { color: var(--marigold); } }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 760px; }

/* Type */
h1, h2, h3, .display { font-family: var(--display); font-weight: 400; letter-spacing: 0; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 64px); }
h2 { font-size: clamp(30px, 4.5vw, 42px); margin-bottom: 14px; }
h3 { font-size: 24px; margin-bottom: 6px; }
p { max-width: var(--text); }
.lede { font-size: 20px; color: var(--muted); max-width: 36em; }
.eyebrow { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* Header */
header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 2px solid var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.wm { display: inline-flex; align-items: baseline; font-family: var(--display); font-size: 26px; line-height: 1; white-space: nowrap; color: var(--ink); }
.wm .sun { display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--marigold); margin-inline: 0.06em; }
.wm.big { font-size: clamp(56px, 11vw, 112px); }
.wm.big .sun { outline: 3px dashed var(--marigold); outline-offset: 5px; margin-inline: 0.14em; }
nav ul { list-style: none; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--muted); font-size: 15px; text-decoration: none; }
nav a:hover { color: var(--ink); }
@media (max-width: 640px) { nav ul { gap: 14px; flex-wrap: nowrap; } nav li.hide { display: none; } header .wm { font-size: 22px; } }

/* Buttons: 56 pt primary, fully rounded, stitched inset */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 28px; font-weight: 700; font-size: 18px; text-decoration: none; position: relative; transition: transform .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: var(--on-forest); box-shadow: 0 2px 0 rgba(0,0,0,0.35); }
.btn-primary::after { content: ""; position: absolute; inset: 6px; border-radius: 22px; border: 1.5px dashed rgba(255,246,227,0.55); pointer-events: none; }
.btn-primary:hover { background: #246549; }
.btn-ghost { background: var(--cream); color: var(--ink); box-shadow: 0 2px 0 var(--shadow); }
.btn-ghost:hover { background: color-mix(in srgb, var(--cream) 92%, var(--marigold)); }
.btn.disabled { opacity: 0.6; pointer-events: none; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Cards */
.card { background: var(--cream); border-radius: 22px; box-shadow: 0 2px 0 var(--shadow); padding: 26px; min-width: 0; }
.card.stitched { position: relative; }
.card.stitched::after { content: ""; position: absolute; inset: 10px; border-radius: 14px; border: 1.5px dashed var(--stitch); pointer-events: none; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Sections */
section { padding-block: 72px; }
section.tight { padding-block: 40px; }
.hero { padding-block: 72px 48px; }
.hero .wm.big { margin-bottom: 18px; }
.hero h1 { margin-bottom: 16px; max-width: 14em; }
.hero .lede { margin-bottom: 30px; }

/* Phones */
.screens { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 56px; }
.phone { width: 230px; max-width: 100%; aspect-ratio: 1320 / 2868; border-radius: 30px; overflow: hidden; background: var(--ink); box-shadow: 0 2px 0 var(--shadow); border: 3px solid var(--ink); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-cap { text-align: center; font-size: 14px; color: var(--muted); margin-top: 8px; }
figure { margin: 0; width: 230px; max-width: 100%; }
@media (max-width: 640px) {
  .screens { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: -24px; padding-inline: 24px; }
  figure { flex: 0 0 68vw; scroll-snap-align: center; }
  .phone { width: 100%; }
}

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; left: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--marigold); color: #1C2B48; font-family: var(--display); font-size: 22px; display: grid; place-items: center; }

/* Badge rows */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--cream); box-shadow: 0 2px 0 var(--shadow); font-weight: 600; font-size: 15px; }
.pill i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }

/* Plans */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.plan h3 { margin-bottom: 4px; }
.plan .price { font-family: var(--display); font-size: 30px; margin: 10px 0 14px; }
.plan ul { list-style: none; display: grid; gap: 8px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--marigold); }
.plan.family { outline: 3px solid var(--marigold); outline-offset: -3px; }

/* Forest band */
.band { background: var(--forest); color: var(--on-forest); border-radius: 26px; padding: 40px 32px; box-shadow: 0 2px 0 rgba(0,0,0,0.35); position: relative; }
.band::after { content: ""; position: absolute; inset: 12px; border-radius: 16px; border: 2px dashed rgba(255,246,227,0.4); pointer-events: none; }
.band h2, .band p { color: var(--on-forest); }
.band .muted { color: rgba(255,246,227,0.8); }
.band a { color: var(--on-forest); text-decoration-color: var(--marigold); }

/* Name tape */
.tape { display: inline-block; padding: 8px 22px 6px; background: #FFF6E3; color: #1C2B48; border-radius: 6px; outline: 2px dashed #1C2B48; outline-offset: -6px; box-shadow: 0 3px 0 rgba(0,0,0,0.2); transform: rotate(-2deg); font-family: var(--display); font-size: 28px; letter-spacing: 0.02em; }

/* Prose pages */
main.prose { padding-block: 56px 100px; }
main.prose h1 { margin-bottom: 10px; }
main.prose .updated { color: var(--faint); font-size: 15px; margin-bottom: 36px; }
main.prose h2 { font-size: 28px; margin: 40px 0 12px; }
main.prose h3 { font-size: 20px; margin: 24px 0 8px; font-family: var(--body); font-weight: 700; }
main.prose p, main.prose li { color: var(--muted); max-width: var(--text); }
main.prose p + p { margin-top: 12px; }
main.prose ul { margin: 10px 0 10px 22px; display: grid; gap: 6px; }
main.prose .callout { background: var(--cream); border-radius: 18px; padding: 18px 22px; box-shadow: 0 2px 0 var(--shadow); margin: 20px 0; }
main.prose .callout p { color: var(--ink); }
details { background: var(--cream); border-radius: 18px; box-shadow: 0 2px 0 var(--shadow); padding: 16px 22px; margin-bottom: 12px; }
details summary { cursor: pointer; font-weight: 700; font-size: 18px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-family: var(--display); font-size: 24px; color: var(--marigold); }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; }

/* Footer */
footer { border-top: 2px solid var(--shadow); padding-block: 28px 48px; font-size: 15px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.footer-row nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-row a { color: var(--muted); text-decoration: none; }
.footer-row a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--periwinkle); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
