/* ==========================================================================
   Daylight — daylightapp.co
   The web counterpart to the iOS app. Palettes, type, card chrome and motion
   are ported directly from the app so the two feel like one product.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts — Hanken Grotesk, the same faces bundled in the app.
   Headings use ui-serif, which resolves to New York on Apple platforms
   (exactly what the app uses) and falls back to Georgia elsewhere.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* The app's accent palette (DailyEntry.swift). */
  --blue: #4580c7;
  --blue-sky: #4580c7; /* lifted in dark mode below, mirroring plannerBlueOnSky */
  --teal: #388c78;
  --purple: #8557b3;
  --green: #4d9e5c;
  --red: #cc5252;
  --yellow: #d1992e;

  /* Sky stops + glow, written by daylight.js from the current time of day. */
  --sky-1: #bae3ff;
  --sky-2: #dbf2ff;
  --sky-3: #f2faff;
  --glow: rgba(255, 255, 255, 0.32);

  /* Surfaces — iOS grouped-background equivalents. */
  --card: #ffffff;
  --card-2: #ffffff;
  --ink: #16181d;
  --ink-2: rgba(60, 60, 67, 0.62);
  --ink-3: rgba(60, 60, 67, 0.34);
  --hairline: rgba(60, 60, 67, 0.13);
  --wash-strong: 0.42; /* daylightContentFade */

  /* The app's two-layer lifted shadow. */
  --lift: 0 1px 4px rgba(0, 0, 0, 0.06), 0 7px 26px rgba(0, 0, 0, 0.09);
  --lift-strong: 0 2px 7px rgba(0, 0, 0, 0.1), 0 10px 36px rgba(0, 0, 0, 0.17);

  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 20px;
  --radius-sm: 14px;
  --page: 1080px;

  /* SwiftUI .spring(response:0.55, dampingFraction:0.85), approximated. */
  --spring: cubic-bezier(0.22, 1.02, 0.36, 1);
  --spring-bouncy: cubic-bezier(0.2, 1.5, 0.4, 1);
}

/* Night — used both when the OS is in dark mode and when the local sky itself
   is dark (the app's night phase), matching DaylightScreen's colorScheme flip. */
[data-scheme="dark"] {
  --blue-sky: #80b3f2;
  --card: #252525;
  --card-2: #1c1c1e;
  --ink: #f5f6f8;
  --ink-2: rgba(235, 235, 245, 0.62);
  --ink-3: rgba(235, 235, 245, 0.34);
  --hairline: rgba(235, 235, 245, 0.14);
  --wash-strong: 0;
  --lift: 0 1px 4px rgba(0, 0, 0, 0.28), 0 8px 30px rgba(0, 0, 0, 0.36);
  --lift-strong: 0 2px 8px rgba(0, 0, 0, 0.34), 0 12px 40px rgba(0, 0, 0, 0.46);
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sky-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* The daylight sky: a fixed, full-bleed gradient with the sun-glow resting in
   the upper sky (DaylightSky). Colours transition when the phase changes. */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(to bottom, var(--sky-1) 0%, var(--sky-2) 50%, var(--sky-3) 100%);
  transition: background 1.2s ease;
}

.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 10%, var(--glow) 0%, transparent 62%);
  transition: background 1.2s ease;
}

/* Moonlight spilling in from above the top edge, on the night palette only. */
.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 50% -8%, rgba(204, 219, 255, 0.3) 0%, transparent 70%);
  transition: opacity 1.2s ease;
}

[data-night="true"] .sky::before {
  opacity: 1;
}

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

a {
  color: var(--blue-sky);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: rgba(69, 128, 199, 0.22);
}

:focus-visible {
  outline: 2px solid var(--blue-sky);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  z-index: 100;
  box-shadow: var(--lift);
}

.skip-link:focus {
  left: 0;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 760px;
}

/* --------------------------------------------------------------------------
   4. Type
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 9vw, 4.75rem);
}

h2 {
  font-size: clamp(2rem, 4.6vw, 2.85rem);
  line-height: 1.14;
}

h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.22;
}

h4 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

.lede {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--ink-2);
  line-height: 1.55;
}

.slogan {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-2);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}

/* The app's all-caps, tracked section label. Stays in the system font, as in
   the app's SettingsCard / Today card headers. */
.eyebrow {
  font-family: var(--system);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-sky);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.eyebrow svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.muted {
  color: var(--ink-2);
}

.fine {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Something the reader would type or say, quoted inline in running copy. */
.said {
  color: var(--ink);
  font-weight: 600;
}

.said::before,
.said::after {
  content: "“";
  font-weight: 400;
  color: var(--ink-3);
}

.said::after {
  content: "”";
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  transition: padding 0.3s ease;
}

.masthead.is-stuck {
  padding: 8px 0;
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 10px 9px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 22px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.masthead.is-stuck .masthead-inner {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 30px rgba(0, 0, 0, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--blue-sky);
}

/* The hamburger. Hidden until the nav collapses at 780px (see §18), where the
   two bars cross into an X. Sized to a 40px tap target. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-left: auto;
  flex: none;
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 17px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition: background 0.18s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.26s ease;
}

.nav-toggle-bars::before {
  top: -5.5px;
}

.nav-toggle-bars::after {
  top: 5.5px;
}

/* Middle bar fades out, outer two rotate through it. */
.masthead.nav-open .nav-toggle-bars {
  background: transparent;
}

.masthead.nav-open .nav-toggle-bars::before {
  transform: translateY(5.5px) rotate(45deg);
}

.masthead.nav-open .nav-toggle-bars::after {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 22px rgba(69, 128, 199, 0.28);
  transition: transform 0.2s var(--spring), box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08), 0 12px 30px rgba(69, 128, 199, 0.34);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.9375rem;
  border-radius: 999px;
}

.btn-ghost {
  background: color-mix(in srgb, var(--card) 72%, transparent);
  color: var(--ink);
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.btn-ghost:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
}

/* The App Store badge, drawn rather than fetched so nothing loads off-site. */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 15px;
  background: #000;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14), 0 10px 28px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s var(--spring), box-shadow 0.25s ease;
}

.appstore:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16), 0 16px 36px rgba(0, 0, 0, 0.26);
}

.appstore svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: #fff;
}

.appstore span {
  display: block;
  line-height: 1.15;
}

.appstore .small {
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.appstore .big {
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-family: var(--system);
}

[data-scheme="dark"] .appstore {
  background: #fff;
  color: #000;
}

[data-scheme="dark"] .appstore svg {
  fill: #000;
}

/* Pre-launch: the badge keeps the App Store lockup but is a <span>, not a link,
   because there is nothing to link to yet. Nothing about it should invite a
   click — no pointer, no hover lift. */
.appstore.is-soon {
  cursor: default;
}

.appstore.is-soon:hover {
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14), 0 10px 28px rgba(0, 0, 0, 0.2);
}

/* The quiet "Coming soon" marker that stands in for the header's download
   button until the app ships. */
.pill-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 15px;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.pill-soon::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent);
}

/* --------------------------------------------------------------------------
   7. Main + the daylightContentFade wash
   -------------------------------------------------------------------------- */

main {
  position: relative;
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, calc(var(--wash-strong) * 0.48)) 14%,
    rgba(255, 255, 255, var(--wash-strong)) 32%,
    rgba(255, 255, 255, var(--wash-strong)) 100%
  );
  transition: background 1.2s ease;
}

section {
  padding: clamp(56px, 9vw, 104px) 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.centered .eyebrow {
  justify-content: center;
}

.section-head h2 + p {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-top: clamp(16px, 2.5vw, 32px);
  padding-bottom: clamp(48px, 7vw, 88px);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.85rem, 7.5vw, 4rem);
  margin-bottom: 10px;
}

.hero .slogan {
  margin-bottom: 16px;
}

.hero .lede {
  max-width: 44ch;
  margin: 0 auto 24px;
}

/* `stretch` rather than `center`: the App Store badge's two-line lockup is the
   tallest thing here, and anything sitting beside it matches that height
   instead of coming up a few pixels short. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: stretch;
}

/* The app-icon flourish: a sparkle halo you can drag around (SparkleHalo +
   rubberBandDraggable). */
.halo {
  position: relative;
  width: 260px;
  height: 200px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  touch-action: none;
}

.halo-icon {
  position: relative;
  z-index: 2;
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), 0 14px 40px rgba(0, 0, 0, 0.18);
  cursor: grab;
  will-change: transform;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.halo-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.halo-icon:active {
  cursor: grabbing;
}

.halo-sparkles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.sparkle {
  position: absolute;
  width: 0;
  height: 0;
  transform: rotate(var(--a));
}

.sparkle i {
  position: absolute;
  display: block;
  animation: sparkle-drift var(--p) linear var(--d) infinite;
  transform-origin: center;
}

.sparkle svg {
  display: block;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2);
  transform: rotate(calc(-1 * var(--a)));
  filter: drop-shadow(0 0 5px rgba(69, 128, 199, 0.8));
}

/* Grow out from behind the icon, drift outward, brighten fast and fade slow. */
@keyframes sparkle-drift {
  0% {
    transform: translateX(var(--from)) scale(0.35);
    opacity: 0;
  }
  18% {
    transform: translateX(calc(var(--from) + (var(--reach) * 0.18))) scale(0.47);
    opacity: 1;
  }
  100% {
    transform: translateX(calc(var(--from) + var(--reach))) scale(1);
    opacity: 0;
  }
}

/* The live "what the sky is doing right now" chip. */
.sky-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--card) 66%, transparent);
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  margin-bottom: 20px;
}

.sky-chip b {
  color: var(--ink);
  font-weight: 600;
}

.sky-chip .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(to bottom, var(--sky-1), var(--sky-3));
  box-shadow: 0 0 0 1px var(--hairline), 0 0 8px var(--glow);
  transition: background 1.2s ease;
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--lift);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
}

/* The five accent-coloured things Daylight brings together — the welcome
   screen's feature rows, jiggle and all. */
.pill-list {
  display: grid;
  gap: 12px;
  max-width: 470px;
  margin: 0 auto;
}

.pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--lift);
  font-weight: 600;
  color: var(--accent, var(--blue));
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.pill .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.pill .icon svg {
  width: 19px;
  height: 19px;
  fill: var(--accent);
}

/* FeatureRow's tap jiggle, keyframe for keyframe. */
.pill.jiggle {
  animation: jiggle 0.42s ease-in-out;
}

@keyframes jiggle {
  0% {
    transform: rotate(0deg) scale(1);
  }
  21% {
    transform: rotate(-7deg) scale(1.04);
  }
  45% {
    transform: rotate(7deg) scale(1.06);
  }
  66% {
    transform: rotate(-4deg) scale(1.03);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

/* A feature card: tinted icon disc, title, copy. */
.feature {
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--lift);
  height: 100%;
  transition: transform 0.3s var(--spring), box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--lift-strong);
}

.feature .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent, var(--blue)) 14%, transparent);
}

.feature .icon svg {
  width: 21px;
  height: 21px;
  fill: var(--accent, var(--blue));
}

.feature h3 {
  font-size: 1.1875rem;
  margin-bottom: 8px;
}

.feature p {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Split rows: copy on one side, a demo on the other. */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.split.reverse .split-visual {
  order: -1;
}

.split-copy h2 {
  margin-bottom: 16px;
}

.split-copy p {
  color: var(--ink-2);
}

.checklist {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.checklist svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  fill: var(--accent, var(--blue));
}

/* A quiet tinted aside under a split's copy — a second thought, not a second
   feature, so it stays flatter and smaller than a .feature tile. */
.aside {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 26px;
  padding: 15px 17px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent, var(--blue)) 9%, transparent);
}

.aside > svg {
  width: 21px;
  height: 21px;
  flex: none;
  margin-top: 1px;
  fill: var(--accent, var(--blue));
}

.aside p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
}

.aside b {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   10. Demos
   -------------------------------------------------------------------------- */

.demo {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--lift-strong);
}

.demo-label {
  font-family: var(--system);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent, var(--blue));
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.demo-label svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Tap-to-complete to-do list, with the app's confetti. */
.todo {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.todo li {
  position: relative;
}

.todo button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 11px 6px;
  background: none;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.todo button:hover {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}

.todo .box {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 2px solid var(--ink-3);
  flex: none;
  display: grid;
  place-items: center;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.4s var(--spring-bouncy);
}

.todo .box svg {
  width: 13px;
  height: 13px;
  fill: #fff;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s ease, transform 0.35s var(--spring-bouncy);
}

.todo .label {
  transition: color 0.3s ease, opacity 0.3s ease;
}

.todo li.done .box {
  background: var(--green);
  border-color: var(--green);
  transform: scale(1.08);
}

.todo li.done .box svg {
  opacity: 1;
  transform: scale(1);
}

.todo li.done .label {
  color: var(--ink-2);
  text-decoration: line-through;
  text-decoration-color: var(--ink-3);
  opacity: 0.75;
}

.confetti {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 5;
  animation: confetti-fly 0.85s ease-out forwards;
}

@keyframes confetti-fly {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.4);
    opacity: 0;
  }
}

.todo-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.todo-reset {
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-sky);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.todo-reset:hover {
  background: color-mix(in srgb, var(--blue) 10%, transparent);
}

/* The six time-of-day swatches — the app's phase gallery, made tappable so
   the whole page can be previewed at any hour. */
.phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.phase {
  position: relative;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  font: inherit;
  color: #fff;
  box-shadow: var(--lift);
  transition: transform 0.3s var(--spring), box-shadow 0.3s ease;
}

.phase:hover,
.phase.is-active {
  transform: translateY(-3px);
  box-shadow: var(--lift-strong);
}

.phase.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 15px;
  border: 2px solid var(--blue);
}

.phase .fill {
  position: absolute;
  inset: 0;
}

.phase .fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 12%, var(--pglow) 0%, transparent 68%);
}

.phase .txt {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 10px;
  text-align: left;
}

/* The label colour is chosen per swatch from the palette's own luminance
   (see daylight.js), so the gradient underneath stays true rather than being
   dulled by a scrim. */
.phase.on-light {
  color: #17202c;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.45);
}

.phase.on-dark {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.phase .txt b {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}

.phase .txt span {
  font-size: 0.75rem;
  opacity: 0.85;
}

.phase-note {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

/* Quick add — the app's parse-as-you-type event field (QuickAddEventField),
   typed sentence, live preview card and all. */
/* Block, not flex: the caret has to flow with the text and wrap onto the last
   line with it, which a flex item can't do. */
.qa-field {
  min-height: 52px;
  margin: 0;
  padding: 13px 15px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}

/* The app's placeholder, for the moment between clearing and typing. */
.qa-field span:first-child:empty::before {
  content: "Describe an event…";
  color: var(--ink-3);
}

.qa-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  border-radius: 1px;
  background: var(--accent, var(--green));
  animation: qa-blink 1.1s steps(1, end) infinite;
}

@keyframes qa-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  99% {
    opacity: 0;
  }
}

/* The preview the app shows under the field: what it made of the sentence,
   ready to save. */
.qa-card {
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  display: grid;
  gap: 7px;
  background: color-mix(in srgb, var(--green) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 34%, transparent);
}

.qa-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.qa-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.qa-title:empty::before {
  content: "Add a title";
  font-weight: 600;
  color: var(--ink-3);
}

/* The app's quiet "still refining" hint — never a blocking state, so it only
   pulses beside the result rather than replacing it. */
.qa-spark {
  width: 14px;
  height: 14px;
  flex: none;
  margin-left: auto;
  fill: var(--ink-3);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.qa-card.is-thinking .qa-spark {
  opacity: 1;
  animation: qa-pulse 1.1s ease-in-out infinite;
}

@keyframes qa-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.88);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.qa-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.qa-row svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: var(--ink-3);
}

/* The place and repeat lines only exist for sentences that mention one — and
   this display beats the UA's [hidden] rule, so it has to say so itself. */
.qa-row[hidden] {
  display: none;
}

.qa-note {
  margin: 16px 0 0;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.qa-tries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.qa-try {
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1.3;
  text-align: left;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.qa-try:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--green) 45%, transparent);
  background: color-mix(in srgb, var(--green) 9%, transparent);
}

.qa-try.is-active {
  color: var(--ink);
  font-weight: 600;
  border-color: color-mix(in srgb, var(--green) 55%, transparent);
  background: color-mix(in srgb, var(--green) 13%, transparent);
}

/* --------------------------------------------------------------------------
   11. Comparison table
   -------------------------------------------------------------------------- */

.compare {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--lift-strong);
  overflow: hidden;
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare caption {
  padding: 22px 24px 0;
  text-align: left;
  font-size: 0.8125rem;
  color: var(--ink-2);
  caption-side: top;
}

.compare th,
.compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}

.compare thead th {
  position: sticky;
  top: 0;
  background: var(--card);
  font-family: var(--system);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 20px;
  padding-bottom: 14px;
  z-index: 2;
}

.compare thead th:first-child {
  color: var(--ink-3);
}

.compare thead th.premium-col {
  color: var(--blue-sky);
}

.compare tbody th {
  font-weight: 500;
  color: var(--ink);
}

.compare tbody th small {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-2);
  font-weight: 400;
  margin-top: 2px;
}

.compare td {
  width: 22%;
  color: var(--ink-2);
  text-align: center;
}

.compare .premium-col {
  background: color-mix(in srgb, var(--blue) 6%, transparent);
  text-align: center;
  width: 22%;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare .yes svg {
  width: 19px;
  height: 19px;
  fill: var(--teal);
  vertical-align: -3px;
}

.compare .no svg {
  width: 15px;
  height: 15px;
  fill: var(--ink-3);
  vertical-align: -1px;
}

.compare .val {
  font-weight: 600;
  color: var(--ink);
}

.compare .premium-col .val {
  color: var(--blue-sky);
}

.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.section-group-label {
  font-family: var(--system);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.compare tbody tr.group th {
  padding-top: 22px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.compare tbody tr.group td {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   12. Pricing
   -------------------------------------------------------------------------- */

/* Always three abreast, or fully stacked — a 2 + 1 wrap reads as a mistake. */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
  align-items: stretch;
}

@media (max-width: 660px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

.plan {
  position: relative;
  background: var(--card);
  border-radius: 18px;
  padding: 30px 22px 24px;
  text-align: center;
  box-shadow: var(--lift);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--spring), box-shadow 0.3s ease, border-color 0.25s ease;
}

.plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--lift-strong);
}

.plan.is-selected {
  border-color: var(--blue);
  box-shadow: var(--lift-strong);
}

.plan .badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(69, 128, 199, 0.35);
}

/* Spacing is set per line here — the base paragraph margin is an em, which at
   the price's 2.5rem would open a 44px hole under it. */
.plan p {
  margin: 0;
}

.plan .name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.plan .price {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.plan .cadence {
  font-size: 0.8125rem;
  color: var(--ink-2);
  margin-top: 8px;
}

.plan .sub {
  font-size: 0.8125rem;
  color: var(--ink-2);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}

.price-note {
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--ink-2);
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* The premium card's gradient hairline + glow, from Settings. */
.premium-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--lift-strong);
}

.premium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(69, 128, 199, 0.55), rgba(56, 140, 120, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.benefits svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  fill: var(--blue-sky);
}

.lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 18%, transparent);
  color: var(--teal);
  vertical-align: 2px;
}

.lock-badge svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   13. FAQ / support
   -------------------------------------------------------------------------- */

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

details.qa {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--lift);
  overflow: hidden;
}

details.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  position: relative;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

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

details.qa summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.28s var(--spring);
}

details.qa[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

details.qa summary:hover {
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}

details.qa .qa-body {
  padding: 0 22px 20px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.62;
}

details.qa .qa-body ol,
details.qa .qa-body ul {
  margin: 0 0 1em;
  padding-left: 20px;
}

details.qa .qa-body li {
  margin-bottom: 6px;
}

details.qa .qa-body li:last-child {
  margin-bottom: 0;
}

details.qa[open] .qa-body {
  animation: qa-open 0.32s var(--spring);
}

@keyframes qa-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.contact-card .icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: color-mix(in srgb, var(--blue) 14%, transparent);
}

.contact-card .icon svg {
  width: 26px;
  height: 26px;
  fill: var(--blue-sky);
}

.contact-card .body {
  flex: 1 1 260px;
}

/* These are real sections (h2) that just shouldn't be typeset like one. */
.contact-card :is(h2, h3) {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.3;
  margin: 0 0 6px;
}

/* --------------------------------------------------------------------------
   14. Legal / long-form prose
   -------------------------------------------------------------------------- */

.prose {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 52px);
  box-shadow: var(--lift);
}

.prose h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  margin: 44px 0 14px;
  scroll-margin-top: 100px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.125rem;
  margin: 28px 0 10px;
}

.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 0.9688rem;
  line-height: 1.68;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 1.1em;
}

.prose li {
  margin-bottom: 8px;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 36px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 0.9062rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  color: var(--ink-2);
}

.prose th {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.summary-card {
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 22%, transparent);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  margin-bottom: 32px;
}

.summary-card :is(h2, h3),
.prose .summary-card :is(h2, h3) {
  margin: 0 0 12px;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.summary-card ul {
  margin: 0;
  padding-left: 20px;
}

.summary-card li {
  color: var(--ink-2);
  margin-bottom: 7px;
}

.summary-card li:last-child {
  margin-bottom: 0;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.toc a {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  color: var(--ink-2);
}

.toc a:hover {
  text-decoration: none;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue-sky);
}

.page-head {
  padding: clamp(36px, 6vw, 68px) 0 clamp(20px, 3vw, 32px);
  text-align: center;
}

.page-head h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  margin-bottom: 14px;
}

.page-head p {
  max-width: 46ch;
  margin: 0 auto;
}

.updated {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--ink-2);
  padding: 6px 15px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 62%, transparent);
  border: 1px solid var(--hairline);
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   15. Closing CTA + footer
   -------------------------------------------------------------------------- */

.closer {
  text-align: center;
}

.closer .card {
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  box-shadow: var(--lift-strong);
}

.closer :is(h1, h2) {
  font-size: clamp(2rem, 4.6vw, 2.85rem);
  line-height: 1.14;
  margin-bottom: 14px;
}

.closer p {
  max-width: 40ch;
  margin: 0 auto 28px;
  color: var(--ink-2);
}

.site-foot {
  padding: 44px 0 52px;
  border-top: 1px solid var(--hairline);
  margin-top: 20px;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.foot-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.foot-brand b {
  font-family: var(--serif);
  font-size: 1.0625rem;
  display: block;
  line-height: 1.2;
}

.foot-brand span {
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.foot-links a {
  font-size: 0.875rem;
  color: var(--ink-2);
  padding: 6px 11px;
  border-radius: 999px;
}

.foot-links a:hover {
  text-decoration: none;
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.foot-legal {
  margin-top: 26px;
  font-size: 0.8125rem;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   16. Entrance motion (cardEntrance / staggeredEntrance)
   -------------------------------------------------------------------------- */

/* Scoped to `.js` (set by boot.js before first paint) so a visitor without
   JavaScript gets the page fully visible rather than a blank sky. */
.js [data-rise] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.62s var(--spring), transform 0.62s var(--spring);
  transition-delay: var(--rise-delay, 0s);
}

.js [data-rise].is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   17. Utilities
   The site ships under a strict Content-Security-Policy, which disallows
   inline style attributes — so every one-off lives here instead.
   -------------------------------------------------------------------------- */

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.a-blue {
  --accent: var(--blue-sky);
}
.a-teal {
  --accent: var(--teal);
}
.a-purple {
  --accent: var(--purple);
}
.a-green {
  --accent: var(--green);
}
.a-red {
  --accent: var(--red);
}
.a-yellow {
  --accent: var(--yellow);
}

.eyebrow {
  color: var(--accent, var(--blue-sky));
}

.eyebrow.centered {
  justify-content: center;
}

.tac {
  text-align: center;
}

.tal {
  text-align: left;
}

/* Strips the bullet without touching the component's own spacing. */
.plain-list {
  list-style: none;
  padding: 0;
}

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

.text-sm {
  font-size: 0.9375rem;
}

.narrow-40 {
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.narrow-44 {
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}

.narrow-46 {
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.narrow-52 {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.section-flush {
  padding-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}
.mt-14 {
  margin-top: 14px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.mt-36 {
  margin-top: 36px;
}
.mt-44 {
  margin-top: 44px;
}
.mb-10 {
  margin-bottom: 10px;
}
.mb-12 {
  margin-bottom: 12px;
}
.mb-22 {
  margin-bottom: 22px;
}
.mb-36 {
  margin-bottom: 36px;
}

.h-section {
  margin: 44px 0 20px;
}

.h-sm {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.3;
}

.h-inner {
  margin: 38px 0 18px;
}

/* A feature tile sitting inside another card — flat, tinted, no lift. */
.feature.flat {
  box-shadow: none;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}

.feature.flat:hover {
  transform: none;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 780px) {
  body {
    font-size: 16.5px;
  }

  /* The five links can't share a row with the brand at phone widths, so they
     collapse behind the hamburger and drop out of the pill when opened. */
  .masthead-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0;
    padding: 9px 10px 9px 14px;
    border-radius: 26px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    /* Must override the base rule's flex-wrap. With wrapping on, the links have
       nowhere to stack while max-height is still near zero, so they spill into
       five side-by-side columns and visibly snap into a list as it opens. */
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px;
    /* Collapsed. visibility:hidden is what keeps the links out of the tab
       order while shut — max-height alone would still let them take focus. */
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.22s ease,
      visibility 0.3s;
  }

  .masthead.nav-open .nav {
    max-height: 340px;
    margin-top: 10px;
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    font-size: 0.95rem;
    padding: 11px 12px;
    border-radius: 14px;
  }

  /* Room is tight once the hamburger is in the pill, and the hero already says
     "Coming soon on the App Store" a screenful below. */
  .pill-soon {
    display: none;
  }

  .masthead .appstore,
  .masthead .btn {
    display: none;
  }

  .halo {
    width: 240px;
    height: 220px;
  }

  .halo-icon {
    width: 100px;
    height: 100px;
    border-radius: 23px;
  }

  .compare th,
  .compare td {
    padding: 12px 10px;
    font-size: 0.875rem;
  }

  .compare caption {
    padding: 18px 16px 0;
  }

  .split.reverse .split-visual {
    order: 0;
  }

  .foot-inner {
    justify-content: center;
    text-align: center;
  }

  .foot-legal {
    justify-content: center;
    text-align: center;
  }
}

/* On a phone the whole point of the table is the Free-vs-Premium comparison,
   so all three columns have to be on screen at once rather than one of them
   sitting off the edge behind a horizontal scroll. */
@media (max-width: 560px) {
  .compare table {
    font-size: 0.8125rem;
  }

  .compare th,
  .compare td {
    padding: 12px 8px;
  }

  .compare tbody th {
    padding-left: 14px;
  }

  .compare tbody th small {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .compare td,
  .compare .premium-col {
    width: 25%;
  }

  .compare thead th {
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
  }

  .compare .yes svg {
    width: 17px;
    height: 17px;
  }
}

/* --------------------------------------------------------------------------
   19. Reduce Motion — the app skips its flourishes here too.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .halo-sparkles {
    display: none;
  }

  .js [data-rise] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   20. Print
   -------------------------------------------------------------------------- */

@media print {
  .sky,
  .masthead,
  .site-foot,
  .toc {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .prose {
    box-shadow: none;
    padding: 0;
  }
}
