/* Clearing's site. The app's own type and colors: New York for titles (ui-serif), the system font for
   reading, and Caveat for the handwritten greeting. No outside requests, to match the app's privacy. */

@font-face {
  font-family: "Caveat";
  src: url("../fonts/Caveat.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #FCF9F2;
  --paper-shade: #F0F5F0;
  --card: #FFFFFF;
  --ink: #1F2A27;
  --ink-soft: #4A5A55;
  --ink-faint: #6B7A75;
  --line: #E4E8E3;
  --sage: #3F726D;
  --sage-deep: #3E6B66;
  --sage-wash: #E3EEEC;
  --sun: #DCA556;
  --sun-soft: #F2D49B;
  --coral: #B44A38;
  --hill-1: #CFE0D9;
  --hill-2: #9CBDB3;
  --hill-3: #5E8F87;
  --shadow: 0 18px 40px rgba(31, 42, 39, 0.08);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  /* Warm highlights on the deep green bands. */
  --glow: #F2D49B;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1E2622;
    --paper-shade: #232D29;
    --card: #29312D;
    --ink: #F4F0E7;
    --ink-soft: #C9D2CC;
    --ink-faint: #9AA9A3;
    --line: #36423D;
    --sage: #7FB3AD;
    --sage-deep: #2F5C57;
    --sage-wash: #2E3B37;
    --sun: #EFC17F;
    --sun-soft: #8A6E3E;
    --coral: #F07C69;
    --hill-1: #2E3B37;
    --hill-2: #355049;
    --hill-3: #3E6B66;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    --glow: #EFC17F;
  }
}
:root[data-theme="dark"] {
  --paper: #1E2622;
  --paper-shade: #232D29;
  --card: #29312D;
  --ink: #F4F0E7;
  --ink-soft: #C9D2CC;
  --ink-faint: #9AA9A3;
  --line: #36423D;
  --sage: #7FB3AD;
  --sage-deep: #2F5C57;
  --sage-wash: #2E3B37;
  --sun: #EFC17F;
  --sun-soft: #8A6E3E;
  --coral: #F07C69;
  --hill-1: #2E3B37;
  --hill-2: #355049;
  --hill-3: #3E6B66;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --glow: #EFC17F;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--card); padding: 8px 14px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--sage); margin: 0; }
.hand { font-family: var(--hand); color: var(--sage); line-height: 1; }
.serif { font-family: var(--serif); }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.5px; }
h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -1.8px; }
h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -1px; }
h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.12; }
p { margin: 0; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 12px;
  font-weight: 600; text-decoration: none;
  background: var(--sage-deep); color: #FFFFFF;
}
.button:hover { color: #FFFFFF; filter: brightness(1.08); }
.button.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button.quiet:hover { color: var(--ink); background: var(--card); }
.button.light { background: var(--paper); color: var(--sage-deep); }
.button.light:hover { color: var(--sage-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav .button { min-height: 40px; padding: 0 18px; border-radius: 10px; color: #FFFFFF; }

/* Hero */
.hero { padding-top: 80px; text-align: center; overflow-x: clip; }
.hero .hand { font-size: 36px; margin-bottom: 18px; }
.hero h1 { max-width: 920px; margin: 0 auto; }
.hero h1 em { font-style: normal; color: var(--sage); }
.hero .lede { font-size: 21px; color: var(--ink-soft); max-width: 660px; margin: 22px auto 30px; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--ink-faint); }
.hero-art { position: relative; margin-top: 56px; padding: 0 24px 72px; }
.hills { position: absolute; left: 0; right: 0; bottom: 0; height: 78%; width: 100%; }
/* The sun rises behind the screenshot's top right corner, at every width. It used to live in the
   hills, which crop their top on wide windows and took the sun with them. */
.hero-sun {
  position: absolute; top: -70px; width: 240px; aspect-ratio: 1; border-radius: 50%;
  left: min(calc(50% + min(550px, 50% - 24px) + 10px), calc(100% - 132px)); transform: translateX(-50%);
  background: radial-gradient(circle closest-side, var(--sun) 0 64%, var(--sun-soft) 65% 100%);
}
@media (max-width: 900px) { .hero-sun { width: 120px; top: -50px; left: calc(100% - 64px); } }
.hills .h1 { fill: var(--hill-1); }
.hills .h2 { fill: var(--hill-2); }
.hills .h3 { fill: var(--hill-3); }
.shot { position: relative; margin: 0 auto; max-width: 1100px; filter: drop-shadow(0 30px 50px rgba(31, 42, 39, 0.22)); }
.shot img { width: 100%; }
.caption { margin-top: 14px; font-size: 14px; color: var(--ink-faint); text-align: center; }

/* Facts strip */
.facts { background: var(--sage-deep); color: #FCF9F2; padding: 30px 0; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.facts strong { display: block; }
.facts span { color: #CFE0D9; }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: 110px 0; }
.section.tint { background: var(--paper-shade); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin: 10px 0 14px; }
.section-head p { font-size: 19px; color: var(--ink-soft); }

/* Four tools in one */
.swap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.swap .card { background: var(--card); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.swap .was { font-size: 14px; color: var(--ink-faint); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-faint) 60%, transparent); }
.swap .now { font-family: var(--serif); font-size: 23px; line-height: 1.2; margin: 6px 0 8px; }
.swap p { font-size: 15px; color: var(--ink-soft); }
.versus { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.versus > div { padding: 30px 34px; }
.versus .list { background: var(--card); }
.versus .clearing { background: var(--sage-deep); color: #FCF9F2; }
.versus h3 { font-size: 24px; margin-bottom: 14px; }
.versus ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.versus li { display: flex; gap: 12px; align-items: baseline; }
.versus .list li::before { content: "·"; color: var(--ink-faint); font-weight: 700; }
.versus .clearing li::before { content: "✓"; color: var(--glow); font-weight: 700; }

/* Research */
.science { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.science blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.14; letter-spacing: -0.5px; }
.science .who { margin-top: 14px; font-size: 14px; color: var(--ink-faint); }
.study { background: var(--card); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.study .hand { font-size: 32px; color: var(--sun); }
.study .serif { font-size: 22px; line-height: 1.2; }
.study p { font-size: 15px; color: var(--ink-soft); }
.study .cite { margin-top: auto; font-size: 13px; color: var(--ink-faint); }
.tagline { margin: 56px auto 0; text-align: center; font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); }
.tagline em { font-style: normal; color: var(--sage); }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr); gap: 56px; align-items: center; padding: 64px 0; }
.feature.flip { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr); }
.feature.flip .copy { order: 2; }
.feature .copy { display: flex; flex-direction: column; gap: 14px; }
.feature .copy .hand { font-size: 30px; color: var(--sun); }
.feature .copy p { color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { background: var(--sage-wash); color: var(--sage); border-radius: 999px; padding: 3px 12px; font-size: 14px; }
.feature .shot { filter: drop-shadow(0 22px 40px rgba(31, 42, 39, 0.18)); }
.feature .shot.small { max-width: 380px; }
.shot.small img { border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }

/* Look around gallery */
.gallery-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.gallery-tabs button {
  font: inherit; font-size: 15px; cursor: pointer; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: none; background: var(--card); color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--line);
}
.gallery-tabs button[aria-selected="true"] { background: var(--sage-deep); color: #FFFFFF; box-shadow: none; }
.gallery-panel[hidden] { display: none; }
.gallery-panel p { text-align: center; margin-top: 18px; color: var(--ink-soft); }

/* Assistants */
.chat { background: var(--card); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.bubble { border-radius: 16px; padding: 10px 14px; max-width: 86%; }
.bubble.me { align-self: flex-end; background: var(--sage-wash); border-bottom-right-radius: 4px; }
.bubble.ai { background: var(--paper-shade); border-bottom-left-radius: 4px; color: var(--ink-soft); }
.done-line { display: flex; gap: 8px; align-items: center; color: var(--sage); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.step { background: var(--card); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.step .num { font-family: var(--serif); font-size: 38px; color: var(--hill-2); line-height: 1; }
.step strong { display: block; margin-top: 10px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* Grids of small things */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tile { background: var(--card); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.tile svg { width: 26px; height: 26px; stroke: var(--sage); }
.tile strong { font-weight: 600; }
.tile p { color: var(--ink-soft); font-size: 15px; }
.more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; }
.more div { border-top: 1px solid var(--line); padding-top: 14px; }
.more strong { display: block; font-weight: 600; }
.more span { color: var(--ink-soft); font-size: 15px; }

/* Dark mode showcase */
.dark-band { background: #1E2622; color: #F4F0E7; }
.dark-band .eyebrow { color: #7FB3AD; }
.dark-band .section-head p { color: #C9D2CC; }

/* Story */
.story { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
/* Dan's photo is a cutout, so it stands on a soft green of the site's own. */
.portrait { margin: 0; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, var(--sage-wash), var(--hill-1)); display: flex; align-items: flex-end; justify-content: center; }
.portrait img { width: 92%; height: auto; }
.story .quote { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.14; letter-spacing: -0.5px; }
.story p { color: var(--ink-soft); font-size: 18px; }
.story .sign { font-family: var(--hand); font-size: 38px; color: var(--sage); line-height: 1; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sage); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); }

/* Download */
.download { position: relative; overflow: hidden; border-radius: 28px; background: var(--sage-deep); color: #FCF9F2; padding: 72px 40px 150px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.download .hand { font-size: 34px; color: var(--glow); }
.download p { color: #D7E5E1; max-width: 520px; }
.download .price { font-family: var(--serif); font-size: 40px; }
.download .price span { font-family: var(--sans); font-size: 17px; color: #CFE0D9; }
.download .small { font-size: 14px; color: #CFE0D9; }
.download svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 48px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--ink-faint); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Plain pages: privacy, support, what's new */
.page { padding: 72px 0 110px; }
.page h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 18px; }
.page h2 { font-size: 30px; margin: 48px 0 14px; }
.page h3 { font-size: 22px; margin: 32px 0 10px; }
.page p, .page li { color: var(--ink-soft); }
.page p + p { margin-top: 14px; }
.page ul { padding-left: 22px; }
.page li + li { margin-top: 8px; }
.page .updated { color: var(--ink-faint); font-size: 15px; }
.release { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 40px; }
.release .when { color: var(--ink-faint); font-size: 15px; }

/* Phones and small windows */
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .section { padding: 80px 0; }
  .site-nav { gap: 14px; }
  .site-nav .hide-small { display: none; }
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
  .swap, .versus, .science, .feature, .feature.flip, .steps, .grid3, .story, .faq { grid-template-columns: minmax(0, 1fr); }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature.flip .copy { order: 0; }
  .feature { gap: 28px; padding: 40px 0; }
  .hero { padding-top: 56px; }
  .hero-art { padding: 0 12px 36px; }
}
@media (max-width: 560px) {
  .facts .wrap { grid-template-columns: minmax(0, 1fr); }
  .more { grid-template-columns: minmax(0, 1fr); }
  .download { padding: 56px 22px 130px; }
}

/* One page: the header's links jump to each section and mark the one you're in. */
.site-header .wrap { flex-wrap: nowrap; }
.site-header .site-nav { flex: 1 1 auto; min-width: 0; justify-content: center; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.site-header .site-nav::-webkit-scrollbar { display: none; }
.site-header .site-nav a { white-space: nowrap; padding: 6px 12px; border-radius: 999px; transition: background-color 0.2s, color 0.2s; }
.site-header .site-nav a[aria-current="true"] { color: var(--sage); background: var(--sage-wash); }
.site-header > .wrap > .button { flex: none; min-height: 40px; padding: 0 18px; border-radius: 10px; }
.policy { max-width: 760px; margin: 36px auto 0; background: var(--card); border-radius: 18px; padding: 4px 26px; }
.policy summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--sage); }
.policy > div { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.policy h3 { font-size: 22px; margin-top: 12px; }
.policy p { color: var(--ink-soft); }
.release-list { margin: 24px 0 0; padding-left: 22px; display: grid; gap: 10px; color: var(--ink-soft); }
.release-list strong { color: var(--ink); }
@media (max-width: 900px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 8px; padding-top: 10px; padding-bottom: 8px; }
  .site-header .site-nav { order: 3; flex-basis: 100%; justify-content: flex-start; margin: 0 -12px; }
  .site-header > .wrap > .button { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .site-header .site-nav a { transition: none; } }

/* Pricing: pay once, keep everything. The one deep green band on the page. */
.pay { background: var(--sage-deep); color: #FCF9F2; }
.pay .eyebrow { color: #CFE0D9; }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.pay-head { display: flex; flex-direction: column; gap: 16px; }
.pay-head h2 { text-wrap: balance; }
.pay-head h2 em { font-style: normal; color: var(--glow); }
.pay-head p { color: #D7E5E1; font-size: 18px; }
.pay-price { display: flex; align-items: baseline; gap: 10px; }
.pay-price { flex-wrap: wrap; }
.pay-price span { font-family: var(--serif); font-size: 46px; line-height: 1; color: #FCF9F2; }
.pay-price .pay-tag { font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: #2F4F4B; background: #F2D49B; border-radius: 999px; padding: 3px 10px; align-self: center; }
.pay-head .pay-compare { font-size: 15px; color: #CFE0D9; border-top: 1px solid rgba(252, 249, 242, 0.2); padding-top: 16px; }
.pay-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pay-points li { background: rgba(252, 249, 242, 0.08); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.pay-points strong { font-size: 18px; }
.pay-points span { color: #D7E5E1; font-size: 15px; }
@media (max-width: 900px) { .pay-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* The header's light and dark switch. */
.theme-toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: none; background: transparent; color: var(--ink-soft); cursor: pointer; }
.theme-toggle:hover { color: var(--ink); background: var(--sage-wash); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .sun { display: none; } :root:not([data-theme="light"]) .theme-toggle .moon { display: block; } }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

/* Coming to iPhone: an early look, drawn in the page rather than a screenshot. */
.soon-points { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 14px; }
.soon-points li { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--hill-2); padding-left: 14px; }
.soon-points span { color: var(--ink-soft); font-size: 16px; }
.phone-figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.phone { width: min(300px, 100%); aspect-ratio: 9 / 19; border-radius: 46px; border: 10px solid #1F2A27; outline: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow), 0 30px 60px rgba(31, 42, 39, 0.18); padding: 18px 20px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.phone-status { display: flex; justify-content: center; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.phone .hand { font-size: 24px; }
.phone-date { font-family: var(--serif); font-size: 24px; line-height: 1.1; margin-top: -4px; }
.phone-card { background: var(--card); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; box-shadow: 0 6px 18px rgba(31, 42, 39, 0.06); }
.phone-label { font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--sage); }
.phone-task { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.3; padding: 4px 0; }
.phone-task i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink-faint); }
.phone-task b { font-weight: 600; font-size: 11px; color: var(--sage); background: var(--sage-wash); border-radius: 999px; padding: 1px 7px; }
.phone-capture { margin-top: auto; border-radius: 12px; background: var(--card); color: var(--ink-faint); font-size: 14px; padding: 10px 14px; }
@media (max-width: 900px) {
  .site-header .theme-toggle { margin-left: auto; }
  .site-header > .wrap > .button { margin-left: 0; }
}

/* Words that change with light and dark, like the hero's greeting. */
.when-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .when-light { display: none; } :root:not([data-theme="light"]) .when-dark { display: inline; } }
:root[data-theme="dark"] .when-light { display: none; }
:root[data-theme="dark"] .when-dark { display: inline; }

/* A narrower screenshot, for a single window rather than the whole app. */
.feature .shot.medium { max-width: 560px; }

/* Backups: three steps from this Mac to a new one. */
.backup-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; counter-reset: none; }
.backup-flow li { position: relative; background: var(--card); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.backup-flow li + li::before { content: "→"; position: absolute; left: -32px; top: 50%; transform: translateY(-50%); color: var(--hill-2); font-size: 22px; }
.backup-flow svg { width: 26px; height: 26px; stroke: var(--sage); }
.backup-flow strong { font-weight: 600; }
.backup-flow span { color: var(--ink-soft); font-size: 15px; }
.backup-flow .flow-main { box-shadow: var(--shadow), inset 0 0 0 2px var(--hill-2); }
.backup-flow .flow-status { margin-top: 4px; font-size: 13px; color: var(--sage); background: var(--sage-wash); border-radius: 10px; padding: 6px 10px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .backup-flow { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .backup-flow li + li::before { content: "↓"; left: 50%; top: -30px; transform: translateX(-50%); }
}

/* The ideas behind Clearing, under Dan's story. */
.thanks { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 40px; display: flex; flex-direction: column; gap: 22px; }
.thanks h3 { font-size: 28px; }
.thanks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.thanks li { display: flex; flex-direction: column; gap: 4px; }
.thanks strong { font-weight: 600; }
.thanks em { font-family: var(--serif); font-size: 15px; color: var(--sage); }
.thanks span { color: var(--ink-soft); font-size: 15px; }
.thanks .faint { font-size: 14px; }
@media (max-width: 1100px) { .thanks ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .thanks ul { grid-template-columns: minmax(0, 1fr); } }

/* Until Clearing is on the Mac App Store, the download box says so instead of linking. */
.download .soon-pill { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: 12px; font-weight: 600; color: #FCF9F2; background: rgba(252, 249, 242, 0.14); box-shadow: inset 0 0 0 1px rgba(252, 249, 242, 0.35); }
