/* Colours are the app's own asset-catalogue tokens (ios/ListMix/Assets.xcassets). */
:root {
  color-scheme: light dark;
  --bg: #EDF1F0; --panel: #FFFFFF; --sunk: #E3EAE8; --line: #D8E1DF;
  --ink: #101B1A; --ink2: #5C6E6B; --ink3: #8A9B98;
  --accent: #0C6B72; --accent-soft: #D7ECEC; --on-accent: #FFFFFF;
  --rust: #EF7D22; --blue: #1F86E0; --amber: #E5B000;
  --shadow: 0 1px 2px rgb(16 27 26 / .06), 0 8px 24px rgb(16 27 26 / .06);
  --radius: 18px;
  --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1211; --panel: #151F1E; --sunk: #0F1817; --line: #253433;
    --ink: #E9F0EE; --ink2: #94A7A4; --ink3: #6B7E7B;
    --accent: #3FB3B8; --accent-soft: #113030; --on-accent: #0C1211;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, .brand { font-family: var(--round); letter-spacing: -.01em; }

/* Header */
header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800;
         color: var(--ink); text-decoration: none; }
.brand svg { width: 38px; height: 38px; }
header nav a { color: var(--ink2); text-decoration: none; font-weight: 500; margin-left: 20px; }
header nav a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
        padding-block: 56px 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; margin: 0 0 18px; font-weight: 800; }
.hero .lead { font-size: clamp(19px, 2.2vw, 22px); color: var(--ink2); margin: 0 0 30px; max-width: 30ch; }
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.badge img { height: 54px; width: auto; }
.get .badges { display: flex; flex-wrap: wrap; gap: 12px; }
.get small { color: var(--ink2); font-size: 15px; }

.phone { border-radius: 40px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
         background: var(--panel); aspect-ratio: 1320 / 2868; }
.hero .phone { max-width: 330px; margin: 0 auto; }

/* How it works */
section { padding: 64px 0; }
section > .wrap > h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; margin: 0 0 12px; font-weight: 800; }
section > .wrap > .sub { color: var(--ink2); margin: 0 0 36px; font-size: 19px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0;
         list-style: none; counter-reset: step; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
            padding: 22px; box-shadow: var(--shadow); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px;
                    border-radius: 50%; background: var(--accent); color: var(--on-accent);
                    font: 700 17px var(--round); margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 21px; }
.steps p { margin: 0; color: var(--ink2); }

/* The mix, drawn: two lists in, one out, the towel once. */
.mix { display: grid; grid-template-columns: 1fr 1fr auto 1.2fr; gap: 16px; align-items: center;
       margin-top: 40px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 16px 18px; box-shadow: var(--shadow); }
.card h4 { margin: 0 0 10px; font: 700 18px var(--round); display: flex; align-items: center; gap: 8px; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { padding: 6px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.card li:first-child { border-top: 0; }
.card li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
                   border: 2px solid var(--ink3); }
.card li.done::before { border-color: var(--accent); background: var(--accent); }
.card li.done { color: var(--ink3); text-decoration: line-through; }
.card.out { border: 2px solid var(--accent); background: var(--accent-soft); }
.card.out li { border-color: color-mix(in srgb, var(--accent) 18%, transparent); }
.dots { display: inline-flex; gap: 3px; margin-left: auto; font-size: 13px; color: var(--ink2);
        align-items: center; text-decoration: none; }
.dots i { width: 7px; height: 7px; border-radius: 50%; }
.card li.hl { background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 8px;
              margin: 0 -8px; padding: 6px 8px; }
.arrow { font: 800 30px var(--round); color: var(--accent); }
.tag { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px;
       border-radius: 5px; color: #fff; font: 700 13px var(--round); }

/* Screens */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.screens figure { margin: 0; }
.screens figcaption { text-align: center; color: var(--ink2); margin-top: 14px; font-weight: 500; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.features li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.features h3 { margin: 0 0 4px; font-size: 19px; }
.features p { margin: 0; color: var(--ink2); }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 700 19px var(--round); list-style: none; display: flex;
               justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--ink2); }

/* Closing call */
.cta { text-align: center; }
.cta .get { justify-content: center; }
.cta svg { width: 72px; height: 72px; margin: 0 auto 18px; display: block; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink2); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--ink2); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 36px 48px; }
  .hero .phone { max-width: 280px; }
  .steps, .features { grid-template-columns: 1fr; }
  .mix { grid-template-columns: 1fr 1fr; }
  .mix .arrow { grid-column: 1 / -1; text-align: center; transform: rotate(90deg); }
  .mix .out { grid-column: 1 / -1; }
  /* Screens scroll sideways on a phone, as they would in a store listing. */
  .screens { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%;
             overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 8px; }
  .screens figure { scroll-snap-align: center; }
  section { padding: 48px 0; }
  header nav { display: none; }
  .badge img { height: 46px; }
}

/* Links to the checklist pages. */
.starters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.starters a { display: block; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
              padding: 14px 16px; color: var(--ink); text-decoration: none; font-weight: 600; }
.starters a:hover { border-color: var(--accent); }
@media (max-width: 860px) { .starters { grid-template-columns: 1fr 1fr; } }

/* Checklist pages (written by scripts/web-checklists.py). */
.checklist { padding-block: 28px 64px; max-width: 760px; }
.crumbs { font-size: 15px; color: var(--ink2); margin-bottom: 18px; }
.crumbs a { color: var(--ink2); }
.checklist h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.08; margin: 0 0 12px; font-weight: 800;
                display: flex; align-items: center; gap: 14px; }
.checklist h1 .tag { min-width: 40px; height: 40px; border-radius: 9px; font-size: 20px; }
.checklist .lead { font-size: 19px; color: var(--ink2); margin: 0 0 28px; }
.checklist h2 { font-size: 26px; margin: 0 0 8px; }

.sheet { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
         padding: 8px 20px 12px; }
.sheet-head { display: flex; align-items: center; gap: 10px; font: 700 20px var(--round); padding: 12px 0 10px;
              border-bottom: 1px solid var(--line); }
.sheet-head .emoji { font-size: 26px; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { border-bottom: 1px solid var(--line); }
.items li:last-child { border-bottom: 0; }
.items label { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-size: 18px; cursor: pointer; }
.items input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0;
               border: 2px solid var(--ink3); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.items input:checked { background: var(--accent); border-color: var(--accent); }
.items input:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--on-accent);
                              border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.items label:has(input:checked) { color: var(--ink3); text-decoration: line-through; }
.items input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.sheet .group { font: 600 13px system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase;
                color: var(--ink2); margin: 0; padding: 18px 0 6px; border-bottom: 1px solid var(--line); }
.madeof { color: var(--ink2); margin: 18px 0 0; }

.keep { margin: 40px 0; padding: 24px; border-radius: var(--radius); background: var(--accent-soft);
        border: 2px solid var(--accent); }
.keep p { margin: 0 0 18px; color: var(--ink2); }
.related { padding: 0; }
.related .starters { grid-template-columns: repeat(2, 1fr); margin-top: 14px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cards a { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; height: 100%;
           background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
           color: var(--ink); text-decoration: none; }
.cards a:hover { border-color: var(--accent); }
.cards strong { font: 700 19px var(--round); }
.cards a > span:last-child { grid-column: 1 / -1; color: var(--ink2); font-size: 15px; }

footer .more { flex-basis: 100%; }
footer .more ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 640px) { .cards, .related .starters { grid-template-columns: 1fr; } }

@media print {
  header, footer, .crumbs, .keep, .related, .madeof { display: none !important; }
  body { background: #fff; color: #000; }
  .sheet { box-shadow: none; border: 0; padding: 0; }
  .items input { border-color: #000; }
}
.items label > span { display: flex; flex-direction: column; }
.items small { color: var(--ink2); font-size: 14px; line-height: 1.4; margin-top: 2px; }

/* "100% free": the pill above the home page heading and beside every store badge. */
.free { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 18px;
        padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--accent-soft);
        color: var(--ink2); font-size: 15px; font-weight: 500; }
.free strong { background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 3px 11px;
               font: 700 15px var(--round); }
.keep .free { margin: 0 0 16px; background: var(--panel); }
@media (max-width: 640px) {
  .keep { padding: 20px 16px; }
  .keep .free, .keep .free strong { font-size: 14px; }
  .keep .badge img { height: 42px; }
}

/* Text pages: the privacy policies and 404. */
.doc { max-width: 720px; padding-block: 28px 64px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.1; margin: 0 0 6px; font-weight: 800; }
.doc h2 { font-size: 21px; margin: 34px 0 8px; }
.doc .sub { color: var(--ink2); margin: 0 0 28px; }
.doc .lead { font-size: 19px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code { font-size: 15px; background: var(--sunk); padding: 1px 5px; border-radius: 5px; }
.doc .other { margin-top: 40px; color: var(--ink2); }
.notfound { text-align: center; padding-block: 96px; }
