/* ZoiZoi site: shared styles.
   Palette comes from the kitchen: fridge enamel, bottle-green ink, butter, a tile blue.
   Light = morning kitchen. Dark = the kitchen at night with the stove light on. */

:root {
  --enamel: #edf1ec;      /* page: fridge-door enamel */
  --tile: #f9fbf7;        /* raised surfaces */
  --ink: #15302a;         /* bottle green, used as "black" */
  --muted: #4a6059;
  --line: #c7d3ca;
  --butter: #f4c534;
  --butter-ink: #2b2405;  /* text on butter */
  --blue: #1c5a9e;        /* links */
  --no: #b02a40;          /* "never" marks */
  --yes: #1d6b4a;
  --screen: #12332d;      /* the kitchen screen's own background */
  --screen-ink: #eaf3ec;
  --pet: #e3b46c;
  --pet-dark: #b47a36;
  --pet-light: #f6e4c3;
  --shadow: 0 1px 0 rgba(21, 48, 42, .08), 0 14px 30px -18px rgba(21, 48, 42, .45);
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --wrap: 70rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --enamel: #0e1a17;
    --tile: #15251f;
    --ink: #e4ece5;
    --muted: #9fb4ab;
    --line: #2b4038;
    --blue: #8fbdf2;
    --no: #f2909d;
    --yes: #7fd0a6;
    --screen: #0a2520;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 30px -18px rgba(0, 0, 0, .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--enamel);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 6px var(--ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); font-weight: 650; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: 0; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { padding-left: 1.2em; max-width: 62ch; }
li { margin-bottom: .4em; }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; color: var(--muted); }
.small { font-size: .92rem; color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--butter); color: var(--butter-ink); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font: 700 1.5rem/1 var(--display); color: var(--ink); text-decoration: none; margin-right: auto; }
.brand svg { width: 2rem; height: 2rem; flex: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.1rem; }
.site-nav a { color: var(--ink); text-decoration: none; padding: .35rem 0; font-weight: 500; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--butter); }

.btn {
  display: inline-block; background: var(--butter); color: var(--butter-ink); font: 650 1rem/1.2 var(--body);
  padding: .8rem 1.15rem; border-radius: .6rem; border: 2px solid var(--butter-ink); text-decoration: none; cursor: pointer;
  box-shadow: 3px 3px 0 var(--butter-ink);
}
.btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--butter-ink); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn[disabled] { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }
.site-nav a.btn { padding: .5rem .85rem; color: var(--butter-ink); border-bottom: 2px solid var(--butter-ink); }
@media (prefers-color-scheme: dark) { .btn, .site-nav a.btn { border-color: var(--butter); box-shadow: none; } .btn.quiet { border-color: var(--ink); } }

/* ---------- sections ---------- */
main > section, .page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-head { padding-bottom: 1rem; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 18ch; }
.band { background: var(--tile); border-block: 1px solid var(--line); }
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .split.even { grid-template-columns: 1fr 1fr; } }

/* ---------- hero ---------- */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 0; overflow: hidden; }
.hero .wrap { display: grid; gap: 2rem; align-items: end; }
.hero-copy { padding-bottom: clamp(1.5rem, 4vw, 3.5rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin-top: 1.5rem; }
@media (min-width: 60rem) { .hero .wrap { grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: 3rem; } }

/* the counter scene: tile backsplash, a tablet on a stand, two fridge notes */
.scene {
  position: relative; padding: 7.2rem 1rem 0; min-width: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 3.25rem 3.25rem; background-position: -1px -1px;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 1rem 1rem 0 0;
}
.scene::after { content: ""; display: block; height: 1.1rem; margin: 0 -1rem; background: var(--ink); border-radius: 2px 2px 0 0; } /* counter edge */
.tablet {
  position: relative; max-width: 30rem; margin: 0 auto; background: #0b1512; padding: .7rem; border-radius: 1.1rem;
  box-shadow: var(--shadow);
}
.tablet::after { /* stand */
  content: ""; position: absolute; left: 50%; bottom: -1.3rem; width: 38%; height: 1.3rem; transform: translateX(-50%);
  background: #0b1512; clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); z-index: -1;
}
.tablet-wrap { position: relative; z-index: 1; padding-bottom: 1.3rem; }
.kscreen {
  background: var(--screen); color: var(--screen-ink); border-radius: .55rem; padding: 1rem; display: grid; gap: .8rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); font-size: .9rem; line-height: 1.35;
}
.kscreen .pet { grid-row: span 2; align-self: center; text-align: center; }
.kscreen .pet svg { width: min(100%, 11rem); height: auto; }
.kscreen .said { grid-column: 1 / -1; background: rgba(255, 255, 255, .09); border-radius: .8rem .8rem .8rem .2rem; padding: .7rem .9rem; font-size: 1rem; }
.kcard { background: rgba(255, 255, 255, .07); border-radius: .6rem; padding: .6rem .75rem; }
.kcard b { display: block; font: 650 .8rem/1.2 var(--body); opacity: .75; margin-bottom: .25rem; }
.kcard ul { list-style: none; padding: 0; margin: 0; }
.kcard li { margin: 0; }
.ktimer { font: 700 1.5rem/1 var(--display); font-variant-numeric: tabular-nums; }
.kpill { display: inline-block; margin-top: .4rem; background: var(--butter); color: var(--butter-ink); font-weight: 650; font-size: .78rem; padding: .2rem .55rem; border-radius: 1rem; }

.note {
  display: inline-block; position: relative; background: var(--butter); color: var(--butter-ink);
  font: 600 1.35rem/1.15 var(--hand); padding: 1rem .9rem .7rem; max-width: 13rem; transform: rotate(-2deg);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, .18);
}
.note::before { content: ""; position: absolute; top: -.45rem; left: 50%; width: 1rem; height: 1rem; margin-left: -.5rem; border-radius: 50%; background: var(--no); box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .25); }
.note.blue::before { background: #1c5a9e; }
.note.tilt { transform: rotate(2.5deg); }
.scene .note { position: absolute; z-index: 2; font-size: 1.15rem; max-width: 9.5rem; }
.scene .note.n1 { top: .9rem; left: .6rem; }
.scene .note.n2 { top: 1.4rem; right: .6rem; }
@media (min-width: 40rem) { .scene { padding-top: 6.5rem; } .scene .note { font-size: 1.3rem; max-width: 12rem; } .scene .note.n1 { left: 1.5rem; } .scene .note.n2 { right: 1.5rem; } }

/* ---------- a day in the kitchen ---------- */
.day { list-style: none; padding: 0; margin: 2rem 0 0; max-width: none; border-left: 3px solid var(--butter); }
.day li { display: grid; gap: .2rem 1.5rem; padding: 1.1rem 0 1.1rem 1.25rem; margin: 0; border-bottom: 1px solid var(--line); position: relative; }
.day li:last-child { border-bottom: 0; }
.day li::before { content: ""; position: absolute; left: -.5rem; top: 1.55rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--butter); border: 2px solid var(--enamel); }
.day time, .day .when { font: 650 1.05rem/1.3 var(--display); color: var(--muted); font-variant-numeric: tabular-nums; }
.day h3 { margin: 0 0 .25rem; font-size: 1.3rem; }
.day p { margin: 0; }
.day .heard { font: 600 1.35rem/1.2 var(--hand); color: var(--ink); }
@media (min-width: 48rem) { .day li { grid-template-columns: 7rem minmax(0, 1fr); } .day li::before { top: 1.5rem; } }

/* ---------- promise ---------- */
.promise { display: grid; gap: 1.25rem; margin-top: 1.5rem; padding: 0; list-style: none; max-width: none; }
.promise li { margin: 0; padding-left: 1rem; border-left: 3px solid var(--ink); }
.promise h3 { margin-bottom: .3rem; }
.promise p { margin: 0; color: var(--muted); }
@media (min-width: 48rem) { .promise { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* ---------- trust levels ---------- */
.levels { display: grid; gap: 1.25rem; margin: 2rem 0 0; }
.level { background: var(--tile); border: 2px solid var(--ink); border-radius: .8rem; padding: 1.25rem; }
.level.readable { border-style: dashed; }
.level.group { border-style: dotted; border-width: 3px; }
.level h3 { font-size: 1.45rem; margin-bottom: .15rem; }
.level .who { font-weight: 600; margin-bottom: .6rem; }
.level p:last-child { margin-bottom: 0; }
@media (min-width: 56rem) { .levels { grid-template-columns: repeat(3, 1fr); } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: .8rem; background: var(--tile); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; line-height: 1.45; }
caption { text-align: left; padding: .9rem 1rem; font-weight: 600; border-bottom: 1px solid var(--line); }
th, td { text-align: left; vertical-align: top; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
thead th { font: 650 .95rem/1.3 var(--body); background: var(--enamel); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 650; min-width: 9rem; }
td { min-width: 12rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 650; padding: .1rem .5rem; border: 1.5px solid currentColor; border-radius: 1rem; margin-top: .3rem; white-space: nowrap; }
.tag.readable { border-style: dashed; }
.tag.soon { color: var(--muted); }
.never { color: var(--no); font-weight: 600; }

/* cards-instead-of-table on phones for the messenger table */
@media (max-width: 47.99rem) {
  .stack thead { position: absolute; left: -999rem; }
  .stack caption { display: block; }
  .stack, .stack tbody, .stack tr, .stack th, .stack td { display: block; min-width: 0; }
  .stack tr { border-bottom: 3px solid var(--line); padding: .5rem 0; }
  .stack tr:last-child { border-bottom: 0; }
  .stack th, .stack td { border: 0; padding: .35rem 1rem; }
  .stack tbody th { font: 650 1.15rem/1.3 var(--display); }
  .stack td::before { content: attr(data-label); display: block; font-size: .82rem; font-weight: 650; color: var(--muted); }
}

/* yes / never lists */
.yn { display: grid; gap: 1.25rem; margin: 1.5rem 0; }
@media (min-width: 44rem) { .yn { grid-template-columns: 1fr 1fr; } }
.yn > div { background: var(--tile); border: 1px solid var(--line); border-radius: .8rem; padding: 1.1rem 1.25rem; }
.yn ul { list-style: none; padding: 0; margin: 0; }
.yn li { padding-left: 1.6rem; position: relative; }
.yn li::before { position: absolute; left: 0; font-weight: 700; }
.yn .does li::before { content: "✓"; color: var(--yes); }
.yn .pin li::before { content: ""; top: .5em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--no); }

.honest { border-left: 6px solid var(--no); background: var(--tile); padding: 1.5rem 1.25rem; border-radius: 0 .8rem .8rem 0; }
.honest ol { padding-left: 1.3em; max-width: 68ch; }
.honest li { margin-bottom: .9em; }

/* ---------- diagram ---------- */
.flow { display: grid; gap: 2.2rem; margin: 2rem 0 .5rem; }
.flow h3 { font-size: 1rem; color: var(--muted); margin-bottom: .6rem; }
.flow ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; max-width: none; }
.flow li { margin: 0; background: var(--tile); border: 1px solid var(--line); border-radius: .6rem; padding: .7rem .85rem; line-height: 1.35; }
.flow li b { display: block; }
.flow li span { font-size: .9rem; color: var(--muted); }
.flow .hub { position: relative; background: var(--screen); color: var(--screen-ink); border-radius: .9rem; padding: 1.25rem; align-self: center; }
.flow .hub h3 { color: var(--screen-ink); font-size: 1.3rem; }
.flow .hub p { font-size: .95rem; margin-bottom: .8rem; }
.flow .hub li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.flow .hub li span { color: inherit; opacity: .8; }
.flow .hub::before, .flow .hub::after { content: "↓"; position: absolute; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 1.4rem; line-height: 1; }
.flow .hub::before { top: -1.85rem; }
.flow .hub::after { bottom: -1.85rem; }
.flow li.pin { border: 2px solid var(--no); }
.flow li.out { border-style: dashed; border-color: var(--muted); }
@media (min-width: 60rem) {
  .flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 3.2rem; }
  .flow .hub::before, .flow .hub::after { content: "→"; top: 50%; bottom: auto; transform: translateY(-50%); }
  .flow .hub::before { left: -2.3rem; }
  .flow .hub::after { left: auto; right: -2.3rem; }
}
figure { margin: 0; }
figcaption { font-size: .92rem; color: var(--muted); max-width: 62ch; margin-top: 1rem; }

/* ---------- steps (a real sequence) ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0; max-width: 44rem; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.4rem 3.4rem; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--butter); color: var(--butter-ink); font: 700 1.1rem/2.3rem var(--display); text-align: center; }
.steps h3 { margin-bottom: .2rem; padding-top: .25rem; }
.steps p { margin: 0; }

.need { display: grid; gap: 1.25rem; padding: 0; list-style: none; max-width: none; margin: 1.5rem 0 0; }
.need li { background: var(--tile); border: 1px solid var(--line); border-radius: .8rem; padding: 1.1rem 1.25rem; margin: 0; }
.need p { margin: 0; }
.need .opt { font-size: .85rem; font-weight: 650; color: var(--muted); }
@media (min-width: 44rem) { .need { grid-template-columns: 1fr 1fr; } }

.beta { background: var(--butter); color: var(--butter-ink); border-radius: .8rem; padding: 1.25rem 1.4rem; max-width: 46rem; }
.beta h2, .beta h3 { color: inherit; }
.beta p:last-child { margin-bottom: 0; }
.beta a { color: inherit; }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; }
.faq h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font: 650 1.15rem/1.3 var(--display); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .8rem; font-size: 1.5rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > :not(summary) { margin-right: 1rem; }

/* ---------- waitlist ---------- */
.cta { background: var(--ink); color: var(--enamel); }
.cta h2 { max-width: 20ch; }
.cta p { color: inherit; opacity: .85; }
.form { display: grid; gap: 1rem; max-width: 30rem; }
.form label { font-weight: 600; display: grid; gap: .35rem; }
.form input[type="email"], .form select {
  font: inherit; color: var(--ink); background: var(--tile); border: 2px solid var(--ink); border-radius: .5rem; padding: .7rem .8rem; width: 100%;
}
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.form .check input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; flex: none; accent-color: var(--ink); }
.form .btn { justify-self: start; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 2rem 0 3rem; font-size: .95rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.site-foot p { margin: 0; max-width: 46ch; }

/* one small moment: the pet blinks. Nothing else moves by itself. */
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.pet-eyes { transform-origin: 100px 98px; animation: blink 6s infinite; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pet-eyes { animation: none; }
  .btn:hover { transform: none; }
}
