/*
 * spoonhouse.app: the landing page and the privacy policy.
 * Colours are the app's own (Palette.kt in app/src/main/java/com/lankyjimothy/home/ui/theme, and docs/design.md): light by default,
 * the night tokens when the device is in dark mode. Motion only ever changes opacity and
 * transform, and none of it runs when the device asks for less motion.
 */

@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-next-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/atkinson-next-500.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/atkinson-next-600.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/atkinson-next-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/nunito-700.woff2") format("woff2"); }

:root {
  color-scheme: light dark;

  /* Neutrals */
  --page: #f2ebe9;          /* Page */
  --card: #fffdfc;          /* Card */
  --ink: #352f38;           /* Ink */
  --ink-soft: #5a5160;      /* InkSoft */
  --outline: #857a86;       /* Outline */
  --hairline: #ddd3d8;      /* Hairline */
  --frame: #352f38;         /* the phone frame */

  /* The app: rose on blush */
  --rose: #8a3a5c;          /* Rose: the button and links */
  --rose-strong: #5c2440;   /* links on hover */
  --on-rose: #ffffff;
  --blush: #f8d3e1;         /* Blush: the hero band */
  --rose-ink: #3d1729;      /* RoseInk: text on blush */

  /* The mark */
  --mark-house: #8a3a5c;
  --mark-spoon: #8a6a00;    /* ButterMark */

  /* Gentle note tiles (section 4) */
  --mint: #cdebd5;  --mint-ink: #12301e;
  --lavender: #e4d9f5;  --lavender-ink: #251a3c;
  --butter: #f6e3a6;  --butter-ink: #3a2e00;
  --tile-blush: #f8d3e1;  --tile-blush-ink: #3d1729;

  /* People (section 5): slots 0 to 5 */
  --person-0: #f6e3a6;  /* Butter */
  --person-1: #8db8e3;  /* Sky */
  --person-2: #cdebd5;  /* Mint */
  --person-3: #f7cba4;  /* Apricot */
  --person-4: #f7d8d3;  /* Coral */
  --person-5: #b4e0ea;  /* Aqua */
  --person-ring: transparent;

  --focus: #5e4a85;         /* Plum */

  /* Shape and space */
  --radius-lg: 20px;
  --radius-full: 999px;
  --gutter: 16px;
  --section-gap: 96px;
  --content: 1080px;

  --body-size: 18px;
  --body-line: 28px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #18161b;        /* Night */
    --card: #2b282f;        /* NightCard */
    --ink: #ece6ee;         /* Moon */
    --ink-soft: #c8bfcb;    /* MoonSoft */
    --outline: #958c98;     /* NightOutline */
    --hairline: #45404a;    /* NightHairline */
    --frame: #121014;       /* NightLowest */

    --rose: #f2b8cf;        /* NightRose */
    --rose-strong: #fad8e5; /* NightBlushInk */
    --on-rose: #4a1830;     /* NightRoseInk */
    --blush: #56304f;       /* NightBlush */
    --rose-ink: #fad8e5;    /* NightBlushInk */

    --mark-house: #f2b8cf;
    --mark-spoon: #e3cb7c;  /* NightButter */

    --mint: #244a33;  --mint-ink: #cdebd5;
    --lavender: #41335f;  --lavender-ink: #e8def8;
    --butter: #4a4130;  --butter-ink: #e3cb7c;
    --tile-blush: #56304f;  --tile-blush-ink: #fad8e5;

    --person-0: #e3cb7c;  /* NightButter */
    --person-1: #284a6e;  /* NightSky */
    --person-2: #244a33;  /* NightMint */
    --person-3: #5a3a1c;  /* NightApricot */
    --person-4: #5e2724;  /* NightCoral */
    --person-5: #1a4552;  /* NightAqua */
    --person-ring: #958c98;

    --focus: #e3cb7c;       /* NightButter */
  }
}

@media (max-width: 640px) {
  :root {
    --section-gap: 64px;
    --body-size: 17px;
    --body-line: 26px;
  }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible Next", Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--body-size);
  line-height: var(--body-line);
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { margin: 0; font-weight: 600; }

p, ul { margin: 0; }

a { color: var(--rose); text-underline-offset: 0.15em; }
a:hover { color: var(--rose-strong); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: var(--radius-full);
  background: var(--card);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.soft { color: var(--ink-soft); }

/* The mark (inline SVG, so it follows the theme) */

.mark-house { fill: none; stroke: var(--mark-house); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.mark-spoon { fill: var(--mark-spoon); }

.wordmark {
  font-family: Nunito, "Atkinson Hyperlegible Next", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--page);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--hairline);
  transition: opacity 200ms ease-out;
}
.js .site-header:not(.is-scrolled)::after { opacity: 0; }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand { padding-right: 8px; border-radius: 12px; }
.brand .wordmark { font-size: 26px; line-height: 1; }

.pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--rose);
  border-radius: var(--radius-full);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 400px) {
  .brand .wordmark { font-size: 22px; }
  .brand svg { width: 30px; height: 30px; }
  .pill-link { padding: 10px 14px; font-size: 15px; }
}

/* Forms */

.waitlist { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 12px; }

.field {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-full);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.field::placeholder { color: var(--ink-soft); opacity: 1; }
.field[aria-invalid="true"] { border-color: var(--rose); }

.button {
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--rose);
  color: var(--on-rose);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.button:hover { background: var(--rose-strong); }
.button[disabled] { cursor: progress; }

/* Never shown, never announced: a field only bots fill in. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-size: 16px; line-height: 24px; font-weight: 600; }
.form-status:empty { display: none; }

/* Hero */

.hero { background: var(--blush); color: var(--rose-ink); }
.hero .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 72px;
}
.hero-copy {
  flex: 1 1 440px;
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.15; color: var(--rose-ink); }
.hero-lede { font-size: 20px; line-height: 30px; max-width: 30em; }
.hero .waitlist { margin-top: 8px; }
.hero .field { border-color: var(--outline); }
.hero-note { font-size: 15px; line-height: 23px; color: var(--rose-ink); }

/* Phone frames */

.phone {
  flex: 0 0 auto;
  margin: 0 auto;
  overflow: hidden;
  background: var(--page);
  border: 10px solid var(--frame);
}
.phone img { width: 100%; height: auto; }

.phone-hero {
  width: 300px;
  height: 560px;
  border-radius: 40px 40px 0 0;
  border-bottom: 0;
}
.phone-full {
  width: 300px;
  height: 540px;
  border-radius: 40px;
}
.phone-small {
  width: 260px;
  height: 340px;
  border-width: 8px;
  border-bottom: 0;
  border-radius: 32px 32px 0 0;
  align-self: flex-end;
}

@media (max-width: 640px) {
  .hero .wrap { padding-top: 48px; gap: 8px; }
  .hero-copy { padding-bottom: 40px; }
  .hero-lede { font-size: 19px; line-height: 28px; }
}

/* The Today screen ticking one chore (an overlay on the real screenshot) */

.shot { position: relative; }
.tick { display: none; }

.tick-fill {
  position: absolute;
  left: 84.39%;
  top: 49.26%;
  width: 9.76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #8a3a5c; /* the app's Rose, as on the screenshot */
}
.tick-fill svg { width: 100%; height: 100%; }
.tick-strike {
  position: absolute;
  left: 7.9%;
  top: 50.7%;
  width: 15.7%;
  height: 1.5px;
  border-radius: 1px;
  background: #5a5160; /* the app's InkSoft */
  transform-origin: left center;
}

/* Sections */

.section { padding-top: var(--section-gap); }
.section h2 { font-size: 32px; line-height: 40px; margin-bottom: 12px; }
.section-lede { color: var(--ink-soft); max-width: 34em; margin-bottom: 40px; }

@media (max-width: 640px) {
  .section h2 { font-size: 28px; line-height: 36px; }
  .section-lede { margin-bottom: 32px; }
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

/* What it does */

.features { display: flex; flex-wrap: wrap; gap: 24px; }
.feature {
  flex: 1 1 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature-shot {
  height: 300px;
  overflow: hidden;
  background: var(--page);
  border-bottom: 1px solid var(--hairline);
}
.feature-shot img { width: 100%; height: auto; }
.feature-text { padding: 20px 24px 24px; }
.feature h3 { font-size: 20px; line-height: 28px; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: 17px; line-height: 26px; }

/* Made for how you actually feel */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
}
.principle {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
}
.principle h3 { font-size: 19px; line-height: 26px; margin-bottom: 4px; }
.principle p { color: var(--ink-soft); font-size: 17px; line-height: 26px; }

.tile {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile svg { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-mint { background: var(--mint); color: var(--mint-ink); }
.tile-lavender { background: var(--lavender); color: var(--lavender-ink); }
.tile-butter { background: var(--butter); color: var(--butter-ink); }
.tile-blush { background: var(--tile-blush); color: var(--tile-blush-ink); }
.tile svg * { stroke: currentColor; }
.tile .solid { fill: currentColor; stroke: none; }

/* Everyone at home */

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split-copy { flex: 1 1 400px; }
.split-copy .section-lede { max-width: 30em; margin-bottom: 28px; }

.people {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
}
.people li { display: flex; align-items: center; gap: 8px; }
.dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--person-ring);
}
.dot-0 { background: var(--person-0); }
.dot-1 { background: var(--person-1); }
.dot-2 { background: var(--person-2); }
.dot-3 { background: var(--person-3); }
.dot-4 { background: var(--person-4); }
.dot-5 { background: var(--person-5); }

/* Private by design */

.private {
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.private-copy { flex: 1 1 380px; }
.private-lede { font-size: 20px; line-height: 30px; margin-bottom: 24px; }
.private ul {
  padding-left: 20px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.private-more { margin-top: 24px; }
.private-more a { font-weight: 600; display: inline-block; padding: 8px 0; }
.private .phone-small { margin-bottom: -40px; }

@media (max-width: 640px) {
  .private { padding: 28px 20px; gap: 32px; }
  .private .phone-small { margin-bottom: -28px; }
}

/* Questions */

.questions-wrap { max-width: 760px; }
.questions-wrap h2 { margin-bottom: 24px; }
.questions { overflow: hidden; }
.question + .question { border-top: 1px solid var(--hairline); }
.question summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  min-height: 44px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.question summary::-webkit-details-marker { display: none; }
.question summary:focus-visible { outline-offset: -4px; border-radius: var(--radius-lg); }
.question .answer { overflow: hidden; }
.question .answer p { padding: 0 24px 20px; color: var(--ink-soft); }

.plus { flex: 0 0 auto; color: var(--rose); }
.plus line { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.plus .upright { transform-origin: center; transform-box: fill-box; transition: transform 250ms ease-out; }
.question[open] .plus .upright { transform: scaleY(0); }

/* Footer */

.site-footer {
  margin-top: var(--section-gap);
  background: var(--card);
  border-top: 1px solid var(--hairline);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 56px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-brand .wordmark { font-size: 28px; line-height: 36px; }
.footer-brand .soft { font-size: 15px; line-height: 22px; }
.site-footer .waitlist { flex: 1 1 360px; max-width: 480px; }
.site-footer .waitlist label { font-weight: 600; }
.site-footer .field { flex-basis: 220px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
  padding-bottom: 32px;
  font-size: 15px;
  color: var(--ink-soft);
}
.footer-links a { display: inline-block; padding: 11px 0; line-height: 22px; }
.footer-links .made { margin-left: auto; }
@media (max-width: 640px) {
  .footer-links .made { margin-left: 0; width: 100%; padding: 8px 0; }
}

/* The privacy policy */

.policy { max-width: 760px; padding-top: 56px; }
.policy h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.15; margin-bottom: 12px; }
.policy h2 { font-size: 26px; line-height: 34px; margin: 48px 0 12px; }
.policy h3 { font-size: 20px; line-height: 28px; margin: 28px 0 8px; }
.policy p, .policy ul { margin-bottom: 16px; }
.policy ul { padding-left: 22px; }
.policy li + li { margin-top: 6px; }
.policy .updated { color: var(--ink-soft); font-size: 16px; }
.policy .summary { padding: 24px 28px; margin: 32px 0 8px; }
.policy .summary h2 { margin-top: 0; font-size: 22px; line-height: 30px; }
.policy .summary ul { margin-bottom: 0; }

/* Motion. Nothing here runs when the device asks for less motion, and nothing is ever hidden
   unless the script is running (the "js" class), so the page reads fine without it. */

@media (prefers-reduced-motion: no-preference) {
  .phone-hero { animation: settle 800ms ease-out both; }

  .tick { display: block; position: absolute; inset: 0; pointer-events: none; }
  .tick-fill { animation: tick-fill 250ms ease-out 1200ms both; }
  .tick-fill svg { animation: tick-check 200ms ease-out 1400ms both; }
  .tick-strike { animation: tick-strike 300ms ease-out 1550ms both; }

  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
    transition-delay: var(--delay, 0ms);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }

  .js .people .dot { opacity: 0; transform: scale(0.6); transition: opacity 300ms ease-out, transform 300ms ease-out; }
  .js .people.is-in .dot { opacity: 1; transform: none; }
  .js .people li:nth-child(2) .dot { transition-delay: 60ms; }
  .js .people li:nth-child(3) .dot { transition-delay: 120ms; }
  .js .people li:nth-child(4) .dot { transition-delay: 180ms; }
  .js .people li:nth-child(5) .dot { transition-delay: 240ms; }
  .js .people li:nth-child(6) .dot { transition-delay: 300ms; }
}

@keyframes settle {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes tick-fill {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}
@keyframes tick-check {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: none; }
}
@keyframes tick-strike {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
