/* Chore Chart site. Plain static CSS shared by every page, no build step.
   Colours and type are tokens on :root. Light and dark themes: the device's setting
   unless the visitor picked one with the Light/Dark buttons on the home page
   (data-theme on <html>, see theme.js). The red header and hero band stay in both; dark is Apple's neutral
   black and greys, no warm browns.

   One font family for everything, the system one: SF Pro on Apple devices, the
   platform's UI font elsewhere. SF Pro is not served as a web font, because Apple's
   licence doesn't allow it. */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;         /* secondary text, 4.6:1 or more on every light background */
  --line: #d2d2d7;
  --accent: #df5444;        /* the app icon's red */
  --accent-tx: #c9302a;     /* that red as text on light backgrounds, 4.8:1 or more */
  --accent-on-dark: #ffb19f;
  --hero: #c94434;          /* header and hero band; white text on it is 4.8:1 */
  --night: #1b1f2e;
  --kitchen: #e3f3f2;       /* room tints, from the app's room colours */
  --living: #fdf0dc;
  --bedroom: #ecebfb;
  --bedroom-ink: #4a46b8;
  --phone-bg: #e8e8ed;
  --phone-ring: rgba(0, 0, 0, .06);
  --ok: #248a3d;
  --err: #c9302c;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui,
          "Segoe UI", Roboto, sans-serif;

  /* Headings: 80 / 64 / 48 px on a wide screen, scaling down to a phone. */
  --size-hero: clamp(44px, 30.6px + 3.43vw, 80px);
  --size-section: clamp(36px, 25.6px + 2.67vw, 64px);
  --size-headline: clamp(30px, 23.3px + 1.71vw, 48px);
  --weight-display: 600;
  --track-display: -.015em;
  --leading-hero: 1.05;
  --leading-display: 1.08;

  /* Card and list titles */
  --size-title: 21px;
  --weight-title: 600;
  --track-title: -.005em;
  --leading-title: 1.25;

  /* Text: no tracking */
  --size-text: 17px;
  --leading-text: 1.47;
  --size-lead: clamp(19px, 18.26px + .19vw, 21px);
  --leading-lead: 1.43;
  --size-small: 15px;
  --size-eyebrow: 17px;

  --gutter: clamp(20px, 4vw, 40px);
  --hang: 220px;            /* how far the hero phone hangs below the red band */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000; --bg-alt: #1d1d1f; --card: #1d1d1f;
    --ink: #f5f5f7; --ink-2: #a1a1a6; --line: #38383a;
    --accent: #ef6555; --accent-tx: #ff8a7d;
    --night: #1a1e2d;
    --kitchen: #102a2a; --living: #1d1d1f; --bedroom: #1f1e3a; --bedroom-ink: #aeacf6;
    --phone-bg: #2c2c2e; --phone-ring: rgba(255, 255, 255, .08);
    --ok: #30d158; --err: #ff6961;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --bg-alt: #1d1d1f; --card: #1d1d1f;
  --ink: #f5f5f7; --ink-2: #a1a1a6; --line: #38383a;
  --accent: #ef6555; --accent-tx: #ff8a7d;
  --night: #1a1e2d;
  --kitchen: #102a2a; --living: #1d1d1f; --bedroom: #1f1e3a; --bedroom-ink: #aeacf6;
  --phone-bg: #2c2c2e; --phone-ring: rgba(255, 255, 255, .08);
  --ok: #30d158; --err: #ff6961;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--size-text); line-height: var(--leading-text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-tx); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-style: normal; text-wrap: balance; }
h1, h2 { font-weight: var(--weight-display); letter-spacing: var(--track-display); line-height: var(--leading-display); }
h1 { font-size: var(--size-hero); line-height: var(--leading-hero); }
h2 { font-size: var(--size-section); }
h3 { font-size: var(--size-title); font-weight: var(--weight-title); letter-spacing: var(--track-title); line-height: var(--leading-title); }
h1 em, h2 em, h3 em { font-style: normal; }
p { margin: 0; text-wrap: pretty; }
.eyebrow { font-size: var(--size-eyebrow); font-weight: 600; line-height: 1.3; color: var(--accent-tx); }
.lead { font-size: var(--size-lead); line-height: var(--leading-lead); color: var(--ink-2); }
.small { font-size: var(--size-small); color: var(--ink-2); }
.wrap { max-width: calc(1120px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Header: the red band on every page */
.top { background: var(--hero); color: #fff; }
.top :focus-visible { outline-color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none;
  font-size: 19px; font-weight: var(--weight-title); letter-spacing: var(--track-title);
}
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5); }
.top nav { margin-left: auto; display: flex; gap: 28px; }
.top nav a { color: rgba(255, 255, 255, .88); text-decoration: none; font-size: var(--size-small); }
.top nav a:hover { color: #fff; }
.top nav a[aria-current] { color: #fff; font-weight: 600; }
@media (max-width: 640px) {
  .top nav { gap: 20px; }
  .top nav .wide { display: none; }
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: 0 24px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg);
  font: 600 17px/1.2 var(--font); text-decoration: none; cursor: pointer;
}
.button:hover { opacity: .85; }
.button:disabled { opacity: .5; cursor: default; }
.button.light { background: #fff; color: #1d1d1f; }

/* Phone screenshot. The radius matches the iPhone's corners; the slight scale hides
   the simulator's edge pixels. */
.phone {
  overflow: hidden; border-radius: 12.5% / 5.75%; background: var(--phone-bg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25), 0 0 0 1px var(--phone-ring);
}
.phone picture { display: block; }
.phone img { width: 100%; transform: scale(1.012); }

/* Home: hero */
/* A warm orange glow behind the phone. It fades out before the top edge, so the hero
   meets the flat red header without a seam, and stays off the text column. */
.hero {
  background: radial-gradient(42% 75% at 80% 72%, rgba(255, 150, 70, .6), rgba(255, 150, 70, 0)), var(--hero);
  color: #fff;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 80px; padding-top: 72px; }
.hero .eyebrow { color: rgba(255, 255, 255, .88); }
.hero h1 { margin-top: 20px; }
.hero .lead { margin-top: 32px; max-width: 560px; color: rgba(255, 255, 255, .92); }
.hero .store-badge { display: inline-block; margin-top: 40px; }
.store-badge img { display: block; height: 54px; width: auto; }
.hero .meta { margin-top: 18px; font-size: var(--size-small); color: rgba(255, 255, 255, .85); }
.look { display: inline-flex; margin-top: 28px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .16); }
.look[hidden] { display: none; }
.look button {
  min-height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: #fff;
  font: 600 15px/1 var(--font); cursor: pointer;
}
.look button[aria-pressed="true"] { background: #fff; color: #1d1d1f; }
.look button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero .shots { position: relative; z-index: 1; margin-bottom: calc(-1 * var(--hang)); }
.hero .phone { box-shadow: 0 40px 80px -30px rgba(60, 10, 0, .55); }

/* Hero carousel: a scroll-snap strip inside the phone, so it swipes natively. */
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.slide { flex: 0 0 100%; overflow: hidden; scroll-snap-align: start; }
.slide picture { display: block; }
.dots { position: absolute; top: 100%; left: 0; right: 0; margin-top: 10px; display: flex; justify-content: center; }
.dots[hidden] { display: none; }
.dots button {
  width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.dots button::after {
  content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--ink-2); opacity: .4;
  transition: width .3s, opacity .3s;
}
.dots button[aria-current="true"]::after { width: 20px; opacity: 1; }
.dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
@media (max-width: 900px) {
  .hero { background: radial-gradient(85% 38% at 50% 100%, rgba(255, 150, 70, .6), rgba(255, 150, 70, 0)), var(--hero); }
  :root { --hang: 150px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 48px; }
  .hero .shots { width: min(320px, 80%); justify-self: center; }
}

/* Home: questions */
.intro { padding: calc(var(--hang) + 72px) 0 56px; }  /* room for the carousel dots */
.intro h2 { margin-top: 16px; max-width: 760px; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; overflow: hidden; border-radius: 32px; padding: 44px 44px 0; min-height: 600px; }
.tile .eyebrow { margin: 0 0 14px; max-width: none; color: var(--accent-tx); }
.tile h3 {
  font-size: var(--size-headline); font-weight: var(--weight-display);
  letter-spacing: var(--track-display); line-height: var(--leading-display);
}
.tile p { margin-top: 16px; color: var(--ink-2); max-width: 400px; }
.tile .phone { width: 250px; margin: 36px auto -420px; }
.tile.w2 { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
.tile.w2 .phone { width: 280px; margin: 0 0 -420px; }
.tile.w3 { grid-column: span 3; min-height: 0; padding-bottom: 44px; }
.tile.k { background: var(--kitchen); }
.tile.n { background: var(--night); color: #f5f5f7; }
.tile.n p { color: #b9b6c4; }
.tile.n .eyebrow { color: var(--accent-on-dark); }
.tile.lv { background: var(--living); }
.tile.bd { background: var(--bedroom); }
.tile.sd { background: var(--bg-alt); }

.facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--bedroom-ink); }

.fam { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; }
.fam p { max-width: 560px; }
.avs { display: flex; }
.av {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  font-size: 32px; font-weight: 600; border: 4px solid var(--bg-alt); margin-left: -14px;
}
.av:first-child { margin-left: 0; }

.minis { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mini { border-radius: 24px; background: var(--bg-alt); padding: 28px; }
.mini svg { width: 24px; height: 24px; color: var(--accent-tx); }
.mini h3 { margin-top: 18px; }
.mini p { margin-top: 6px; color: var(--ink-2); }

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.w2, .tile.w3 { grid-column: span 2; }
  .tile.w2 { grid-template-columns: minmax(0, 1fr) 240px; }
  .tile.w2 .phone { width: 240px; }
  .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile.w2, .tile.w3 { grid-column: auto; min-height: 0; }
  .tile { padding: 32px 28px 0; border-radius: 28px; }
  .tile.w2 { display: block; }
  .tile.w3 { padding-bottom: 32px; }
  .tile .phone, .tile.w2 .phone { width: min(250px, 78%); margin: 32px auto -45%; }
  .fam { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .av { width: 64px; height: 64px; font-size: 26px; margin-left: -12px; }
}
@media (max-width: 560px) {
  .minis { grid-template-columns: minmax(0, 1fr); }
  .mini { padding: 24px; }
}

/* Home: price */
.price { margin-top: clamp(80px, 10vw, 128px); background: var(--bg-alt); padding: clamp(72px, 9vw, 120px) 0; }
.price h2 { margin-top: 16px; max-width: 900px; }
.price h2 em { color: var(--accent-tx); }
.price .lead { margin-top: 24px; max-width: 640px; }

/* Home: privacy and support */
.end { padding: clamp(72px, 9vw, 112px) 0; }
.end .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 80px; }
.end h2 { font-size: var(--size-headline); }
.end p { margin-top: 16px; color: var(--ink-2); max-width: 34em; }
.end .more { display: inline-block; margin-top: 16px; font-weight: 600; text-decoration: none; }
.end .more:hover { text-decoration: underline; }
@media (max-width: 800px) { .end .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
footer { border-top: 1px solid var(--line); }
footer .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center;
  padding-top: 28px; padding-bottom: 32px; font-size: 14px;
}
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .copy { margin-left: auto; color: var(--ink-2); }

/* Long text pages (privacy) */
.doc { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.doc .wrap { max-width: calc(720px + 2 * var(--gutter)); }
.doc .date { color: var(--ink-2); font-size: var(--size-small); }
.doc h1 { margin-top: 12px; font-size: var(--size-section); line-height: var(--leading-display); }
.doc h1 + p { margin-top: 24px; font-size: var(--size-lead); line-height: var(--leading-lead); color: var(--ink-2); }
.doc h2 { margin: 48px 0 12px; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.doc ul + p { margin-top: 16px; }

/* Support */
.support { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.support .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 7vw, 96px); align-items: start; }
.support h1 { font-size: var(--size-section); line-height: var(--leading-display); }
.support h1 + p { margin-top: 16px; }
@media (max-width: 860px) { .support .wrap { grid-template-columns: minmax(0, 1fr); } }

.form { margin-top: 32px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--size-small); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.status { font-size: var(--size-small); }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.faq { border-radius: 28px; background: var(--bg-alt); padding: clamp(24px, 4vw, 40px); }
.faq h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:last-of-type { border-bottom: 0; padding-bottom: 0; }
.faq details:first-of-type { margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 16px; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-2); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 8px; color: var(--ink-2); }

/* 404 */
.notfound { padding: clamp(72px, 12vw, 160px) 0; text-align: center; }
.notfound h1 { font-size: var(--size-section); line-height: var(--leading-display); }
.notfound p { margin-top: 16px; }
