/* Smadrobe: one stylesheet for every page. Mobile first, on an 8px grid. */

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f8f6f2;
  --card: #fffefc;
  --ink: #1c1b19;
  --ink70: #686661;
  --green: #87986b;
  --green-ink: #5d6e44;
  --cream: #f8ebd8;
  --oat: #f3ece1;
  --sage: #eef0e6;
  --hairline: #e5e1d9;
  --on-ink: #f8f6f2;
  --ink-hover: #33312d;
  --tile: #fff;
  --header-bg: rgb(248 246 242 / 86%);
  --header-line: rgb(229 225 217 / 60%);
  --link-line: rgb(28 27 25 / 35%);
  --line-strong: rgb(28 27 25 / 40%);
  --line-soft: rgb(28 27 25 / 15%);
  --ui-line: rgb(28 27 25 / 8%);
  --ui-glow: rgb(255 255 255 / 60%);
  --band-bg: #1c1b19;
  --band-line: transparent;
  --shade: 58 42 20;
  --rim: drop-shadow(0 0 0 transparent);
  --light-only: block;
  --dark-only: none;
  --light-pic: contents;
  --dark-pic: none;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --max: 1120px;
  --r-xl: 40px;
  --r-lg: 32px;
  --r-md: 24px;
  --shadow-soft: 0 1px 2px rgb(var(--shade) / 6%), 0 16px 32px -16px rgb(var(--shade) / 18%);
  --shadow-lift: 0 2px 4px rgb(var(--shade) / 6%), 0 32px 56px -24px rgb(var(--shade) / 28%);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

/* Dark: the app's own warm dark palette (app_colors.dart). It follows the
   device unless the visitor picked a theme with the toggle, which sets
   data-theme on <html>. The two blocks hold the same values. */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17120e;
    --card: #221b16;
    --ink: #f3ebdd;
    --ink70: #bfb2a0;
    --green-ink: #b4c49a;
    --oat: #2c241d;
    --sage: #252a1f;
    --hairline: #3a3028;
    --on-ink: #1c1611;
    --ink-hover: #e2d8c6;
    --tile: #eae4da;
    --header-bg: rgb(23 18 14 / 84%);
    --header-line: rgb(58 48 40 / 70%);
    --link-line: rgb(243 235 221 / 40%);
    --line-strong: rgb(243 235 221 / 40%);
    --line-soft: rgb(243 235 221 / 15%);
    --ui-line: rgb(255 255 255 / 8%);
    --ui-glow: transparent;
    --band-bg: #0f0b08;
    --band-line: #3a3028;
    --shade: 0 0 0;
    --rim: drop-shadow(0 0 1px rgb(243 235 221 / 45%));
    --light-only: none;
    --dark-only: block;
    --light-pic: none;
    --dark-pic: contents;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #17120e;
  --card: #221b16;
  --ink: #f3ebdd;
  --ink70: #bfb2a0;
  --green-ink: #b4c49a;
  --oat: #2c241d;
  --sage: #252a1f;
  --hairline: #3a3028;
  --on-ink: #1c1611;
  --ink-hover: #e2d8c6;
  --tile: #eae4da;
  --header-bg: rgb(23 18 14 / 84%);
  --header-line: rgb(58 48 40 / 70%);
  --link-line: rgb(243 235 221 / 40%);
  --line-strong: rgb(243 235 221 / 40%);
  --line-soft: rgb(243 235 221 / 15%);
  --ui-line: rgb(255 255 255 / 8%);
  --ui-glow: transparent;
  --band-bg: #0f0b08;
  --band-line: #3a3028;
  --shade: 0 0 0;
  --rim: drop-shadow(0 0 1px rgb(243 235 221 / 45%));
  --light-only: none;
  --dark-only: block;
  --light-pic: none;
  --dark-pic: contents;
  color-scheme: dark;
}

/* Images drawn for one theme: the wordmark, Apple's badge, the app screens. */
.light-only {
  display: var(--light-only);
}

.dark-only {
  display: var(--dark-only);
}

/* App screenshots come in a light and a dark set. The hidden one takes no
   room and, being lazy, is never fetched. */
picture.light-only {
  display: var(--light-pic);
}

picture.dark-only {
  display: var(--dark-pic);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--link-line);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 999px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--header-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 64px;
}

.brand {
  display: block;
  flex: none;
  border-radius: 8px;
}

.brand img {
  width: 104px;
}

.nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

/* The narrowest phones keep Privacy and Support; Features is just below. */
@media (max-width: 379px) {
  .nav li:has(a[href$="#features"]) {
    display: none;
  }
}

.nav a {
  display: inline-block;
  padding: 8px 6px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
}

.nav a:hover {
  background: var(--oat);
}

.nav {
  margin-left: auto;
}

/* Light/dark: shows the moon in light mode and the sun in dark. */
.theme-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin-right: -6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle[hidden] {
  display: none;
}

.theme-toggle:hover {
  background: var(--oat);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle__moon {
  display: var(--light-only);
}

.theme-toggle__sun {
  display: var(--dark-only);
}

.nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--on-ink);
}

/* Eyebrows: a small green leaf, then the label. */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-ink);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 0 100%;
  background: var(--green);
}

.eyebrow--light {
  color: #c9d4b3;
}

/* App Store badge: Apple's artwork, unmodified, never below 40px tall. */

.store {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.store--center {
  align-items: center;
}

.store-badge {
  display: inline-block;
  border-radius: 10px;
}

.store-badge img {
  height: 56px;
  width: auto;
}

.store__note {
  color: var(--ink70);
  font-size: 0.9375rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--hairline);
  font-size: 0.875rem;
  font-weight: 500;
}

.pills svg,
.why svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--green-ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Phone: a thin light-gold edge, a black bezel, the screen's own rounded
   corners and a soft shadow. Sized by --w; everything else follows it. */

.phone {
  --w: 200px;
  position: relative;
  flex: none;
  width: var(--w);
  padding: calc(var(--w) * 0.012);
  border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(145deg, #f4e8d2, #d8bf97 38%, #f0e2c7 68%, #c8ad85);
  box-shadow:
    0 1px 1px rgb(var(--shade) / 10%),
    0 12px 24px -10px rgb(var(--shade) / 20%),
    0 48px 72px -32px rgb(var(--shade) / 36%);
}

.phone img {
  width: 100%;
  aspect-ratio: 1179 / 2556;
  object-fit: cover;
  object-position: top;
  border: calc(var(--w) * 0.03) solid #0d0d0c;
  border-radius: calc(var(--w) * 0.152);
  background: #0d0d0c;
}

/* Hero */

.hero {
  padding-block: 40px 24px;
  overflow-x: clip;
}

.hero .wrap {
  display: grid;
  gap: 48px;
}

.hero h1 {
  font-size: clamp(2.75rem, 1.6rem + 4.2vw, 4rem);
  line-height: 1;
}

.accent {
  color: var(--green-ink);
}

.hero__intro {
  margin-block: 16px 32px;
  max-width: 30rem;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink70);
}

.hero__stage {
  position: relative;
  display: grid;
  justify-items: center;
  padding-block: 16px 40px;
}

.hero__stage::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  width: min(108%, 520px);
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--oat);
}

.device {
  --pw: 240px;
  position: relative;
  width: var(--pw);
}

.device .phone {
  --w: var(--pw);
  z-index: 1;
}

/* The character peeks out from behind the phone's right edge. */
.hero__character {
  position: absolute;
  z-index: 0;
  right: -64px;
  bottom: 9%;
  width: 120px;
  rotate: 8deg;
  filter: drop-shadow(0 12px 16px rgb(var(--shade) / 16%));
}

.float {
  position: absolute;
  z-index: 2;
  translate: 0 var(--drift, 0px);
  filter: var(--rim) drop-shadow(0 16px 16px rgb(var(--shade) / 20%)) drop-shadow(0 2px 3px rgb(var(--shade) / 10%));
}

.float--coat {
  width: 64px;
  left: -44px;
  top: 34%;
  rotate: -8deg;
}

.float--scarf {
  width: 60px;
  right: -36px;
  top: 3%;
  rotate: 10deg;
}

.float--boots {
  width: 76px;
  left: -48px;
  bottom: 9%;
  rotate: -4deg;
}

/* Callouts point at the real Today screen; only where there is room. */
.callouts {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Sections */

.section {
  padding-block: 48px;
}

.section__head {
  margin-bottom: 32px;
}

.section__title {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  max-width: 22ch;
}

/* Sound familiar? */

.pains {
  display: grid;
  gap: 16px;
}

.pain {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 28px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--hairline);
}

.pain__art {
  aspect-ratio: 16 / 10;
  margin-bottom: 24px;
  border-radius: var(--r-md);
  background: var(--oat);
  overflow: hidden;
}

.pain__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.pain__art--builder img { object-position: 50% 28%; }

.pain__art--unworn {
  display: grid;
  place-items: center;
  padding: 16px;
}

.pain__art--unworn picture {
  width: 100%;
}

.pain__art--unworn img {
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.pain h3 {
  margin: 0 12px 12px;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.125rem);
}

.pain h3 + p {
  display: flex;
  gap: 10px;
  margin-inline: 12px;
  color: var(--ink70);
}

.pain h3 + p::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 0.55em;
  border-radius: 0 100%;
  background: var(--green);
}

/* The Today demo */

.demo-layout {
  display: grid;
  gap: 32px;
}

.demo__intro > p:not(.eyebrow) {
  margin-top: 16px;
  max-width: 28rem;
  font-size: 1.125rem;
  color: var(--ink70);
}

.demo__intro .demo__note {
  font-size: 0.9375rem;
}

.demo {
  justify-self: center;
  width: 100%;
  max-width: 420px;
  padding: 24px 16px 16px;
  border-radius: var(--r-xl);
  background: var(--oat);
}

.demo__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 8px 16px;
}

.demo__title {
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
}

.demo__weather {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  color: var(--ink70);
}

.demo__weather svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.demo__card {
  padding: 12px 12px 16px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.demo__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo__list li {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
}

.demo__list li.is-active {
  opacity: 1;
  visibility: visible;
}

html:not(.js) .demo__list li:not(.is-active) {
  display: none;
}

.demo__picture {
  aspect-ratio: 1;
  margin-bottom: 16px;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background: var(--tile);
}

.demo__occasion {
  margin: 0 8px 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-ink);
}

.demo__name {
  margin-inline: 8px;
  font-weight: 600;
  line-height: 1.35;
}

.demo__reason {
  margin: 4px 8px 0;
  color: var(--ink70);
}

.demo__shuffle {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font: 500 1rem var(--sans);
  cursor: pointer;
}

.demo__shuffle[hidden] {
  display: none;
}

.demo__shuffle:hover {
  background: var(--ink-hover);
}

/* How it works */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 12px 12px 28px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--hairline);
}

.step__art {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  background: var(--oat);
  overflow: hidden;
  margin-bottom: 24px;
}

.step__art--crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.step__art--build img { object-position: 50% 30%; }

.step__art--snap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--sage);
}

.step__art--snap picture {
  width: 46%;
}

.snap__photo {
  width: 100%;
  border: 4px solid var(--card);
  border-radius: 16px;
  rotate: -4deg;
  box-shadow: var(--shadow-soft);
}

.snap__arrow {
  width: 32px;
  fill: none;
  stroke: var(--green-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.snap__cutout {
  width: 30%;
  filter: drop-shadow(0 12px 12px rgb(var(--shade) / 18%));
}

.step__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 12px 12px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.step h3 {
  font-size: 2rem;
  margin: 0 12px 8px;
}

.step h3 + p {
  margin-inline: 12px;
  color: var(--ink70);
}

/* Features: a bento of zoomed-in screens */

.bento {
  display: grid;
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.card--oat {
  background: var(--oat);
  border-color: transparent;
}

.card--sage {
  background: var(--sage);
  border-color: transparent;
}

.card__text {
  padding: 32px 24px 24px;
}

.card h3 {
  font-size: clamp(1.875rem, 1.5rem + 1.2vw, 2.25rem);
  margin-bottom: 8px;
}

.card__text p {
  color: var(--ink70);
  max-width: 28rem;
}

/* A piece of the real screen, rising from the card's bottom edge. */
.ui {
  margin: auto 16px 0;
  border: 1px solid var(--ui-line);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: #f7f5f1;
  overflow: hidden;
  box-shadow: 0 -1px 0 var(--ui-glow), 0 24px 48px -16px rgb(var(--shade) / 22%);
}

.ui img {
  width: 100%;
}

/* Why Smadrobe */

.why {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.why li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--hairline);
  font-family: var(--serif);
  font-size: 1.625rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.why svg {
  flex: none;
  box-sizing: content-box;
  padding: 12px;
  border-radius: 50%;
  background: var(--sage);
}

/* Privacy: the one dark section */

.dark {
  position: relative;
  display: grid;
  gap: 24px;
  padding: 48px 24px 0;
  border-radius: var(--r-xl);
  background: var(--band-bg);
  border: 1px solid var(--band-line);
  color: var(--cream);
  overflow: hidden;
}

.dark::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 480px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(248 235 216 / 12%), rgb(248 235 216 / 0%) 70%);
  pointer-events: none;
}

.dark h2 {
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 3.75rem);
  margin-bottom: 32px;
  max-width: 18ch;
}

.dark .checks span {
  color: rgb(248 235 216 / 86%);
}

.dark a {
  color: var(--cream);
  text-decoration-color: rgb(248 235 216 / 45%);
}

.dark :focus-visible {
  outline-color: var(--cream);
}

.dark__character {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 200px;
  margin-bottom: -16px;
}

.checks {
  display: grid;
  gap: 16px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.checks li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
}

.checks svg {
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.arrow-link {
  font-weight: 500;
}

.arrow-link::after {
  content: " \2192";
}

/* Pricing */

.plans {
  display: grid;
  gap: 16px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 272px;
  padding: 32px 32px 144px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.plan--lifetime {
  border-color: var(--ink);
}

.plan h3 {
  font-size: 2.75rem;
}

.plan p {
  max-width: 16rem;
  color: var(--ink70);
}

/* Both cards keep their art in the same box, so they line up. */
.plan__art {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 140px;
  height: 104px;
  object-fit: contain;
  object-position: right bottom;
}

/* Start free's character is square: a little taller than the sweaters' box,
   so the two read at the same size. Still inside the card's padding. */
.plan__art--character {
  width: 120px;
  height: 120px;
}

/* FAQ */

.faq {
  display: grid;
  gap: 16px;
}

.faq__intro p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--ink70);
  max-width: 24rem;
}

.faq__list {
  border-top: 1px solid var(--hairline);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat,
    var(--oat);
}

.faq details[open] summary::after {
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    var(--oat);
}

.faq details p {
  padding-bottom: 24px;
  color: var(--ink70);
  max-width: 40rem;
}

/* Final call to action */

.cta {
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: 48px 24px;
  border-radius: var(--r-xl);
  background: var(--sage);
  text-align: center;
}

.cta__character {
  width: 144px;
  margin-bottom: -8px;
  filter: drop-shadow(0 16px 16px rgb(var(--shade) / 14%));
}

.cta h2 {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4rem);
}

/* Long-form pages: Privacy and Support */

.page-head {
  position: relative;
  margin-block: 24px 40px;
  padding: 40px 24px;
  border-radius: var(--r-xl);
  background: var(--oat);
  overflow: hidden;
}

.page-head h1 {
  font-size: clamp(2.75rem, 1.6rem + 4.2vw, 4rem);
  margin-bottom: 16px;
}

.page-head .lede {
  max-width: 34rem;
}

.page-head .updated {
  margin-top: 16px;
}

.page-head__art {
  display: none;
}

.doc {
  padding-bottom: 80px;
}

.doc .wrap {
  max-width: calc(800px + 2 * var(--gutter));
}

.doc .body {
  max-width: 680px;
}

.doc .body h2 {
  font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.375rem);
  margin-top: 56px;
  margin-bottom: 16px;
}

.doc .body h3 {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  margin-bottom: 8px;
}

.doc .body h2 + h3 {
  border-top: 0;
  padding-top: 0;
}

.doc p + p,
.doc p + ul,
.doc ul + p,
.doc ol + p {
  margin-top: 16px;
}

.doc ul,
.doc ol {
  margin: 12px 0 0;
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 8px;
}

.doc li::marker {
  color: var(--green-ink);
}

.lede {
  font-size: 1.1875rem;
  color: var(--ink70);
}

.updated {
  color: var(--ink70);
  font-size: 0.9375rem;
}

.summary {
  padding: 32px 24px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--hairline);
}

.doc .summary h2 {
  margin-top: 0;
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 32px 24px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--hairline);
}

.contact-card .email {
  font-family: var(--serif);
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.5rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.contact-card p:not(.email) {
  color: var(--ink70);
}

.doc-art {
  margin-top: 24px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--hairline);
}

/* 404 */

.not-found {
  padding-block: 56px 96px;
  text-align: center;
}

.not-found img {
  width: 220px;
  margin: 0 auto 32px;
}

.not-found h1 {
  font-size: clamp(2.75rem, 1.6rem + 4.2vw, 4rem);
  margin-bottom: 16px;
}

.not-found p {
  color: var(--ink70);
}

.not-found p + p {
  margin-top: 24px;
}

/* Footer */

.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--hairline);
  padding-block: 40px 48px;
  font-size: 0.9375rem;
  color: var(--ink70);
}

.site-footer .wrap {
  display: grid;
  gap: 16px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--ink);
  display: inline-block;
  padding-block: 4px;
}

.site-footer .brand img {
  width: 112px;
}

.legal {
  font-size: 0.875rem;
}

/* Tablet */

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }

  .brand img {
    width: 140px;
  }

  .nav ul {
    gap: 8px;
    font-size: 1rem;
  }

  .nav a {
    padding: 8px 14px;
  }

  .device {
    --pw: 300px;
  }

  .hero__character {
    width: 150px;
    right: -88px;
  }

  .float--coat { width: 84px; left: -64px; }
  .float--scarf { width: 80px; right: -52px; }
  .float--boots { width: 100px; left: -72px; }

  .pains {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .step h3 {
    font-size: 1.75rem;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .card--closet,
  .card--insights {
    grid-column: 1 / -1;
  }

  .card__text {
    padding: 40px 32px 32px;
  }

  .ui {
    margin-inline: 32px;
  }

  .why {
    grid-template-columns: 1fr 1fr;
  }

  .dark {
    padding: 56px 48px 0;
  }

  .plans {
    grid-template-columns: 1fr 1fr;
  }

  .cta {
    padding: 64px 40px;
  }

  .page-head {
    padding: 56px 48px;
  }

  .page-head__art {
    display: block;
    position: absolute;
    right: 40px;
    bottom: 0;
    width: 200px;
  }

  .page-head h1,
  .page-head .lede {
    max-width: calc(100% - 220px);
  }

  .summary,
  .contact-card {
    padding: 32px;
  }

  .site-footer .wrap {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 40px;
  }

  .site-footer ul {
    justify-content: flex-end;
  }

  .site-footer .legal {
    grid-column: 1 / -1;
  }
}

/* Desktop */

@media (min-width: 960px) {
  .brand img {
    width: 148px;
  }

  .hero {
    padding-block: 56px 32px;
  }

  .hero .wrap {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 64px;
  }

  .device {
    --pw: 340px;
  }

  .hero__stage::before {
    width: 580px;
  }

  .hero__character {
    width: 180px;
    right: -104px;
  }

  .float--coat { width: 104px; left: -84px; }
  .float--scarf { width: 96px; right: -64px; }
  .float--boots { width: 124px; left: -96px; }

  .section {
    padding-block: 64px;
  }

  .section__head {
    margin-bottom: 40px;
  }

  .demo-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
  }

  .demo {
    justify-self: end;
  }

  .bento {
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
  }

  .card--closet { grid-column: 1 / 8; }
  .card--builder { grid-column: 8 / 13; }
  .card--calendar { grid-column: 1 / 7; }
  .card--insights { grid-column: 7 / 13; }

  .why {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .why li {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 28px;
  }

  .dark {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
    gap: 48px;
    padding: 72px 64px 0;
  }

  .dark__text {
    padding-bottom: 72px;
  }

  .dark__character {
    width: 300px;
    margin-bottom: -24px;
  }

  .faq {
    grid-template-columns: 1fr 1.6fr;
    gap: 64px;
    align-items: start;
  }

  .cta {
    padding-block: 72px;
  }
}

/* Wide: room for the callouts beside the phone. */

@media (min-width: 1240px) {
  .device {
    translate: -32px 0;
  }

  .callouts {
    display: block;
  }

  .callout {
    position: absolute;
    z-index: 3;
    width: max-content;
    max-width: 152px;
    padding: 10px 14px;
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    translate: 0 -50%;
  }

  /* A hairline and a green dot lead from each label to what it names:
     --reach is the distance from the label to that spot on the screen. */
  .callout::before,
  .callout::after {
    content: "";
    position: absolute;
    top: 50%;
  }

  .callout::before {
    width: var(--reach);
    height: 1px;
    background: var(--line-strong);
  }

  .callout::after {
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border: 2px solid var(--card);
    border-radius: 50%;
    background: var(--green-ink);
    box-shadow: 0 0 0 1px var(--line-soft);
  }

  .callout--weather {
    --reach: calc(var(--pw) * 0.12 + 28px);
    top: 17.5%;
    right: calc(100% + 28px);
  }

  .callout--weather::before { left: 100%; }
  .callout--weather::after { left: calc(100% + var(--reach) - 6px); }

  .callout--own {
    --reach: calc(var(--pw) * 0.2 + 28px);
    top: 44%;
    left: calc(100% + 28px);
  }

  .callout--shuffle {
    --reach: calc(var(--pw) * 0.12 + 28px);
    top: 86%;
    left: calc(100% + 28px);
  }

  .callout--own::before,
  .callout--shuffle::before { right: 100%; }

  .callout--own::after,
  .callout--shuffle::after { right: calc(100% + var(--reach) - 6px); }

  .hero__character {
    bottom: auto;
    top: 55%;
  }
}

/* Motion: opt-in, and only where it helps. */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .js .reveal {
    opacity: 0;
    translate: 0 24px;
    transition:
      opacity 0.7s var(--ease),
      translate 0.7s var(--ease),
      transform 0.4s var(--ease),
      box-shadow 0.4s var(--ease);
  }

  .js .reveal.is-in {
    opacity: 1;
    translate: 0 0;
  }

  .pains .reveal:nth-child(even),
  .bento .reveal:nth-child(even),
  .steps .reveal:nth-child(2),
  .why .reveal:nth-child(2),
  .plans .reveal:nth-child(2) {
    transition-delay: 0.08s;
  }

  .steps .reveal:nth-child(3),
  .why .reveal:nth-child(3) {
    transition-delay: 0.16s;
  }

  .why .reveal:nth-child(4) {
    transition-delay: 0.24s;
  }

  .device .phone {
    animation: rise 0.9s var(--ease) both;
  }

  .float,
  .hero__character,
  .callout {
    animation: appear 0.9s 0.2s var(--ease) both;
  }

  .float {
    transition: translate 0.2s linear;
  }

  .demo__list li {
    transition: opacity 0.45s var(--ease), visibility 0.45s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      translate: 0 16px;
    }
  }

  @keyframes appear {
    from {
      opacity: 0;
    }
  }
}

/* Hover lift and tilt, for a mouse or trackpad only. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card,
  .step,
  .plan,
  .pain,
  .why li {
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  }

  .ui {
    transition: transform 0.5s var(--ease);
  }

  .card:hover,
  .step:hover,
  .plan:hover,
  .pain:hover,
  .why li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
  }

  .card:hover .ui {
    transform: translateY(-6px) rotate(-0.5deg);
  }
}
