/*
 * The public site (landing, story, privacy, terms, contact) in Good Porcelain,
 * the same look as the app. Every color has one job; the stickers do the jokes.
 */
:root {
  --room: #DCF1EE;
  --room-tile: #CDE9E5;
  --porcelain: #FCFEFD;
  --porcelain-sunk: #EAF4F2;
  --grout: #C5DEDA;
  --grout-strong: #5E8B85;
  --ink: #3A2418;
  --ink-muted: #6B5446;
  --on-ink: #FCFEFD;
  --bowl: #7CCFC8;
  --bowl-soft: #C9ECE8;
  --bowl-ink: #17615C;
  --gold: #F2B533;
  --gold-soft: #FCEBC0;
  --gold-ink: #7A4D00;
  --blush: #FF8D9B;
  --blush-soft: #FFE0E4;
  --blush-ink: #A3243A;
  --gut-calm: #BFE8E3;
  --gut-grumbly: #F4D79A;
  --gut-stormy: #6E4A3C;
  --glaze: 0 10px 28px rgba(23, 97, 92, 0.16);
  --raised: 0 4px 0 rgba(58, 36, 24, 0.9);
  --display: "Caprasimo", Georgia, serif;
  --text: "Figtree", system-ui, -apple-system, sans-serif;
  --gutter: 16px;
  --wide: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--room);
  color: var(--ink);
  font: 500 18px/1.55 var(--text);
}
img { max-width: 100%; display: block; }
a { color: var(--bowl-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--porcelain); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* Bathroom tile, as on the app's Home wallpaper. */
.tiled {
  background-color: var(--bowl);
  background-image:
    linear-gradient(rgba(252, 254, 253, 0.22) 2px, transparent 2px),
    linear-gradient(90deg, rgba(252, 254, 253, 0.22) 2px, transparent 2px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

/* Header */
.top { position: relative; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 26px; line-height: 1; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 2px var(--ink); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; padding: 10px 12px; border-radius: 999px; }
.nav a:not(.btn):hover { background: rgba(252, 254, 253, 0.5); }
.brand, .nav a { white-space: nowrap; }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }
@media (max-width: 420px) {
  .brand { font-size: 21px; gap: 8px; }
  .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .nav { gap: 2px; }
  .nav a:not(.btn) { padding: 8px; font-size: 15px; }
  .nav .btn-sm { padding: 0 12px; font-size: 14px; min-height: 38px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink);
  font: 800 16px/1 var(--text); text-decoration: none; cursor: pointer;
  transition: transform 120ms ease;
}
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--ink); color: var(--on-ink); box-shadow: var(--raised); }
.btn-primary:hover { color: var(--on-ink); }
.btn-quiet { background: var(--porcelain); color: var(--ink); }
.btn-quiet:hover { color: var(--ink); background: var(--porcelain-sunk); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badges a { display: block; border-radius: 9px; }
.badges img { height: 48px; width: auto; display: block; }

/* Stickers: big, tilted, slapped over edges, never boxed. */
.sticker { position: absolute; width: var(--s, 96px); height: var(--s, 96px); transform: rotate(var(--r, -6deg)); filter: drop-shadow(0 6px 10px rgba(23, 97, 92, 0.22)); pointer-events: none; }

/* Hero */
.hero { padding-bottom: 72px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; padding-top: 24px; }
@media (min-width: 920px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; padding-top: 40px; } }
.hero h1 { font-size: clamp(44px, 8vw, 80px); color: var(--ink); }
.hero .lede { margin-top: 20px; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; max-width: 34ch; font-weight: 600; }
.hero .badges { margin-top: 28px; }
.hero .web { margin-top: 16px; font-size: 16px; font-weight: 600; }
.hero .web a { color: var(--ink); }
.facts { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: rgba(252, 254, 253, 0.55); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 700; }

/* A note card, as in the app */
.scene { position: relative; max-width: 460px; margin: 0 auto; width: 100%; padding: 28px 0 8px; }
.card { position: relative; background: var(--porcelain); border-radius: 26px; box-shadow: var(--glaze); padding: 22px; }
.card + .card { margin-top: 14px; }
.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ink-muted); font-weight: 600; }
.tag { background: var(--bowl-soft); color: var(--bowl-ink); border-radius: 8px; padding: 3px 9px; font-weight: 700; font-size: 14px; }
.waiting { background: var(--blush-soft); color: var(--blush-ink); border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: 13px; }
.note { margin-top: 12px; font-size: 19px; line-height: 28px; font-weight: 500; }
.actions { margin-top: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 14px; background: var(--porcelain-sunk); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--on-ink); }
.reply { margin-left: 28px; background: var(--porcelain); }
.reply .note { font-size: 17px; line-height: 25px; margin-top: 8px; }
.nugget { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-soft); color: var(--gold-ink); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 14px; }
.nugget i { width: 14px; height: 12px; border-radius: 50% 50% 46% 46%; background: var(--gold); box-shadow: 0 0 0 1.5px var(--ink); display: inline-block; }

/* Sections */
.band { padding: 80px 0; }
.band.porcelain { background: var(--porcelain); }
.kicker { font-weight: 800; font-size: 15px; color: var(--bowl-ink); margin-bottom: 12px; }
.band h2 { font-size: clamp(34px, 5vw, 52px); max-width: 18ch; }
.band .intro { margin-top: 16px; font-size: 20px; max-width: 40ch; color: var(--ink); }

.steps { margin-top: 44px; display: grid; gap: 28px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { position: relative; background: var(--porcelain); border-radius: 26px; box-shadow: var(--glaze); padding: 28px 24px 26px; }
.step .n { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--bowl-ink); }
.step h3 { margin-top: 12px; font-size: 26px; }
.step p { margin-top: 10px; color: var(--ink-muted); font-size: 17px; }
.step .sticker { --s: 84px; top: -26px; right: -8px; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.checks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; }
.checks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--bowl-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2317615C' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* The week of gut weather */
.week { background: var(--porcelain); border-radius: 26px; box-shadow: var(--glaze); padding: 24px; position: relative; }
.week h3 { font-size: 24px; }
.days { margin-top: 18px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day { display: grid; gap: 6px; justify-items: center; font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.day b { width: 100%; max-width: 48px; aspect-ratio: 1; border-radius: 50%; display: block; }
.day .calm { background: var(--gut-calm); }
.day .grumbly { background: var(--gut-grumbly); }
.day .stormy { background: var(--gut-stormy); }
.day .today { background: var(--porcelain); box-shadow: inset 0 0 0 3px var(--ink); }
.legend { margin-top: 16px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.todo { margin-top: 20px; border-top: 2px solid var(--porcelain-sunk); padding-top: 14px; display: grid; gap: 10px; }
.todo div { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 16px; }

.shelf { margin-top: 44px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
@media (min-width: 720px) { .shelf { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .shelf { grid-template-columns: repeat(6, 1fr); } }
.shelf figure { margin: 0; text-align: center; }
.shelf img { width: 100%; max-width: 140px; margin: 0 auto; transform: rotate(var(--r, -4deg)); filter: drop-shadow(0 6px 10px rgba(23, 97, 92, 0.2)); }
.shelf figcaption { margin-top: 10px; }
.shelf strong { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.15; }
.shelf span { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-muted); }
.money { margin-top: 32px; font-weight: 700; }

.safety { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 760px) { .safety { grid-template-columns: repeat(2, 1fr); } }
.safety div { background: var(--room); border-radius: 22px; padding: 22px; }
.safety h3 { font-size: 22px; }
.safety p { margin-top: 8px; font-size: 17px; color: var(--ink-muted); }

.founder { position: relative; background: var(--porcelain); border-radius: 36px; box-shadow: var(--glaze); padding: 40px 28px; max-width: 760px; margin: 0 auto; }
@media (min-width: 720px) { .founder { padding: 52px 56px; } }
.founder blockquote { margin: 16px 0 0; font-size: clamp(21px, 2.6vw, 26px); line-height: 1.45; font-weight: 600; }
.founder .sticker { --s: 110px; top: -44px; right: -10px; --r: 8deg; }
.founder .more { margin-top: 22px; display: inline-block; font-weight: 800; }

.cta { text-align: center; padding: 88px 0 96px; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(40px, 7vw, 68px); max-width: none; }
.cta p { margin: 16px auto 0; font-size: 20px; font-weight: 600; max-width: 32ch; }
.cta .badges { justify-content: center; margin-top: 28px; }
.cta .web { margin-top: 16px; font-size: 16px; }
.cta .web a { color: var(--ink); }

/* Footer */
.foot { background: var(--ink); color: var(--on-ink); padding: 48px 0 56px; font-size: 16px; }
.foot a { color: var(--on-ink); }
.foot .cols { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot .cols { grid-template-columns: 1.4fr 1fr; } }
.foot .brand { color: var(--on-ink); }
.foot .links { display: grid; grid-template-columns: repeat(3, max-content); gap: 12px 24px; align-content: start; font-weight: 700; }
.foot .care { margin-top: 14px; opacity: 0.85; max-width: 46ch; }
.foot .fine { margin-top: 28px; opacity: 0.7; font-size: 14px; }

/* Long reads: story, privacy, terms, contact */
.page { padding: 24px 0 88px; }
.sheet { position: relative; background: var(--porcelain); border-radius: 36px; box-shadow: var(--glaze); padding: 36px 22px 44px; max-width: 780px; margin: 0 auto; }
@media (min-width: 720px) { .sheet { padding: 52px 64px 60px; } }
.sheet h1 { font-size: clamp(36px, 6vw, 54px); }
.sheet .updated { margin-top: 10px; color: var(--ink-muted); font-size: 15px; font-weight: 600; }
.sheet .lede { margin-top: 18px; font-size: 20px; font-weight: 600; }
.sheet h2 { font-size: 28px; margin-top: 40px; }
.sheet h3 { font-family: var(--text); font-weight: 800; font-size: 18px; margin-top: 24px; }
.sheet p, .sheet li { font-size: 17px; line-height: 1.6; }
.sheet p { margin-top: 12px; }
.sheet ul { margin: 12px 0 0; padding-left: 22px; }
.sheet li + li { margin-top: 6px; }
.sheet .sticker { --s: 104px; top: -38px; right: -6px; --r: 9deg; }
.sheet .box { margin-top: 20px; background: var(--room); border-radius: 18px; padding: 16px 18px; font-weight: 600; }

/* Forms */
.form { margin-top: 28px; display: grid; gap: 18px; }
.form label { display: block; font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; font: 500 17px/1.4 var(--text); color: var(--ink);
  background: var(--porcelain); border: 2px solid var(--grout-strong); border-radius: 14px; padding: 12px 14px;
}
.form textarea { min-height: 160px; resize: vertical; }
.form .hint { font-size: 14px; color: var(--ink-muted); margin-top: 6px; }
.form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form [hidden] { display: none !important; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { padding: 0; font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--grout-strong);
  background: var(--porcelain); color: var(--ink); font: 800 16px/1 var(--text); cursor: pointer;
}
.choice[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.flash { margin: 0 auto 20px; max-width: 780px; border-radius: 18px; padding: 14px 18px; font-weight: 700; }
.flash.success { background: var(--bowl-soft); color: var(--bowl-ink); }
.flash.error { background: var(--blush-soft); color: var(--blush-ink); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
