/* Frog It — marketing site styles. Plain CSS, no build step.
   Tokens mirror the app (TaskTracker/TaskTracker/Colors.swift + iOS system colors).
   See .claude/design-system.md → "Website" before changing anything here. */

/* MARK: - Fonts (self-hosted, OFL — see fonts/LICENSE-*.txt; no requests to Google) */

@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/merriweather-700.woff2") format("woff2");
}

@font-face {
  font-family: "Merriweather";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/merriweather-400-italic.woff2") format("woff2");
}

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

/* MARK: - Tokens */

:root {
  /* App tokens (Colors.swift) */
  --frog-green: #002b13;          /* customNow / customNext / customLater */
  --frog-cream: #f2f6e7;          /* customLightColor */
  --ring-past: #7adba4;           /* pastRingColor */

  /* Green is an accent only — surfaces are white and light gray (see design-system.md → Website) */
  --mint: var(--ring-past);       /* highlight dots, link underlines */
  --eyebrow: #005525;             /* confetti green — small labels, card icons */

  /* Page = white, site panels/cards = light gray; the phone replica keeps the app's own colors */
  --page: #ffffff;
  --panel: #f5f5f7;
  --surface: #f5f5f7;             /* site cards (buckets, features, FAQ, habit, docs) */
  --app-page: #f2f2f7;            /* systemGroupedBackground */

  /* Adaptive, light values (iOS system colors) */
  --card: #ffffff;                /* systemBackground */
  --fill: #f2f2f7;                /* secondarySystemBackground */
  --label: #000000;
  --label-2: #636366;             /* secondary text — ≥5.3:1 on every site surface (WCAG AA) */
  --label-3: rgba(60, 60, 67, 0.3);   /* tertiaryLabel — decoration only, never text */
  --text-body: #3a3a3c;           /* paragraphs — ≥10:1 */
  --separator: rgba(60, 60, 67, 0.12);
  --ring-track: #ededed;          /* ringBackgroundColor */
  --accent: var(--frog-green);    /* adaptiveCompleted / adaptiveToday */
  --on-accent: #ffffff;           /* adaptiveSelectionText */
  --completed-tint: color-mix(in srgb, var(--frog-green) 16%, var(--card));

  --font-display: "Merriweather", Georgia, "Times New Roman", serif;   /* h1, h2, logo, quote */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-app: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;  /* app replica only */

  --radius-card: 14px;            /* list cards */
  --radius-row: 28px;             /* glass task rows */
  --shadow-float: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.06);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --panel: #111113;
    --surface: #1c1c1e;
    --app-page: #000000;
    --eyebrow: var(--ring-past);
    --card: #1c1c1e;
    --fill: #2c2c2e;
    --label: #ffffff;
    --label-2: rgba(235, 235, 245, 0.7);
    --label-3: rgba(235, 235, 245, 0.3);
    --text-body: rgba(235, 235, 245, 0.86);
    --separator: rgba(84, 84, 88, 0.6);
    --ring-track: rgba(255, 255, 255, 0.14);
    --accent: #ffffff;
    --on-accent: #000000;
    --completed-tint: color-mix(in srgb, #ffffff 12%, var(--card));
    --shadow-float: 0 0 0 1px rgba(255, 255, 255, 0.06);
    color-scheme: dark;
  }
}

/* MARK: - Base */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--label);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.container {
  max-width: 60rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.container--narrow {
  max-width: 46rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* MARK: - Display type */

h1,
h2,
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em !important;
}

/* The phone is a replica of the app: keep the app's own system font. */
.phone,
.phone * {
  font-family: var(--font-app);
}

/* MARK: - Ring (the app icon, and the app's progress ring) */

.ring {
  display: block;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
}

.ring .ring-track {
  stroke: var(--ring-track);
}

.ring .ring-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s var(--ease-out);
}

/* MARK: - Hero (headline + live demo) */

.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-top: 1.5rem;
  margin-bottom: 5rem;
}

.hero-ring {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.75rem;
}

.hero-ring .ring-fill {
  animation: ring-draw 1.6s 0.2s var(--ease-out) both;
}

@keyframes ring-draw {
  from { stroke-dashoffset: var(--circumference); }
  to   { stroke-dashoffset: 0; }
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: 2.75rem;
  line-height: 1.12;
}

.hero-sub {
  margin: 0 0 2rem;
  max-width: 30rem;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--text-body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.hero-note {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--label-2);
}

.store-badge {
  display: inline-block;
  border-radius: 10px;
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}

.store-badge:hover {
  transform: translateY(-1px);
  opacity: 0.85;
}

.store-badge img {
  display: block;
  height: 3.5rem;
  width: auto;
}

/* MARK: - Big quote */

.big-quote {
  max-width: 44rem;
  margin: 0 auto 6rem;
  padding: 0 0.5rem;
  text-align: center;
}

.big-quote blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1.4;
  color: var(--label);
}

.big-quote figcaption {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--eyebrow);
}

.big-quote figcaption::before {
  content: "\2014\00a0";
}

/* MARK: - Sections */

.section {
  margin-bottom: 6rem;
}

.section-head {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 1rem;
  font-size: 2.125rem;
  line-height: 1.18;
}

.section-head p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-body);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--eyebrow);
}

.eyebrow svg {
  width: 1rem;
  height: 1rem;
}

/* MARK: - Demo phone (a working mini Today screen) */

.phone {
  position: relative;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 1rem;
  background: var(--app-page);
  color: var(--label);
  border: 10px solid #e5e5ea;
  border-radius: 3rem;
  box-shadow: var(--shadow-float);
}

@media (prefers-color-scheme: dark) {
  .phone {
    border-color: #2c2c2e;
  }
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.5rem 0.25rem 1rem;
}

.phone-title {
  margin: 0;
  font-size: 2.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gear {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--card);
  color: var(--label-2);
}

.gear svg {
  width: 1.125rem;
  height: 1.125rem;
}

.progress-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
  padding: 0.875rem 1rem;
  background: var(--card);
  border-radius: var(--radius-card);
}

.progress-card .ring {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
}

.progress-text strong {
  display: block;
  font-size: 0.9375rem;
}

.progress-text span {
  font-size: 0.8125rem;
  color: var(--label-2);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0 0.25rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--label-2);
}

.section-label svg {
  width: 0.875rem;
  height: 0.875rem;
}

.tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.task {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  background: var(--card);
  border-radius: var(--radius-row);
  transition: background-color 0.35s var(--ease-out);
}

.task.is-done {
  background: var(--completed-tint);
}

.task-text {
  font-size: 1rem;
  transition: color 0.35s;
}

.task.is-done .task-text {
  color: var(--label-2);
}

.check {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--label-3);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.check:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.check svg {
  width: 100%;
  height: 100%;
}

.check .check-empty {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}

.check .check-fill,
.check .check-mark {
  opacity: 0;
}

.check .check-fill {
  fill: var(--accent);
}

.check .check-mark {
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
}

.task.is-done .check-empty {
  opacity: 0;
}

.task.is-done .check-fill {
  opacity: 1;
}

.task.is-done .check-mark {
  opacity: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.3s 0.08s var(--ease-out);
}

/* Matches the app's spring: scale to 1.15, settle back to 1. */
.task.is-popping .check {
  animation: check-pop 0.45s var(--ease-spring);
}

@keyframes check-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* SubtleConfettiView: 8–12 tiny pieces, 25–45px radial burst. */
.confetti {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 1px;
  pointer-events: none;
  animation: confetti 0.7s var(--ease-out) forwards;
}

@keyframes confetti {
  from { transform: translate(-50%, -50%) rotate(0); opacity: 1; }
  to   { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)); opacity: 0; }
}

.all-done {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--label-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}

.all-done.is-visible {
  opacity: 1;
  transform: none;
}

.replay {
  margin-left: 0.25rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.add-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 30px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 0 0 1px var(--separator), 0 4px 16px rgba(0, 0, 0, 0.06);
  color: var(--label-3);
  font-size: 0.9375rem;
}

.add-bar svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--label-2);
}

/* MARK: - Buckets */

.buckets {
  display: grid;
  gap: 0.5rem;
}

.card {
  background: var(--surface);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
}

.card h3 {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

/* Icon tile: green is an accent, on a soft tint of itself */
.card h3 svg {
  box-sizing: content-box;
  width: 1.375rem;
  height: 1.375rem;
  padding: 0.625rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--eyebrow) 12%, var(--page));
  color: var(--eyebrow);
}

.card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-body);
}

/* MARK: - Habits */

.habit-card {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-card);
}

.habit-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.habit-name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

.habit-freq {
  margin: 0.125rem 0 0;
  font-size: 0.8125rem;
  color: var(--label-2);
}

.streak {
  text-align: right;
}

.streak strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.streak span {
  font-size: 0.75rem;
  color: var(--label-2);
}

.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

/* The app's #EDEDED track is tuned for white; on the gray card it needs a touch more contrast. */
.habit-card .ring-track {
  stroke: #e1e1e6;
}

@media (prefers-color-scheme: dark) {
  .habit-card .ring-track {
    stroke: var(--ring-track);
  }
}

.week .ring {
  width: 100%;
  max-width: 2.5rem;
  margin: 0 auto 0.375rem;
}

.week .ring-fill {
  stroke: var(--ring-past);
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s var(--ease-out);
  transition-delay: calc(var(--i) * 90ms);
}

.week .is-today .ring-fill {
  stroke: var(--accent);
}

/* Days not done yet stay empty; done days start empty only when JS will fill them. */
.week li:not(.is-on) .ring-fill,
.js .week:not(.is-filled) .ring-fill {
  stroke-dashoffset: var(--circumference);
}

.week span {
  font-size: 0.75rem;
  color: var(--label-2);
}

.week .is-today span {
  color: var(--label);
  font-weight: 600;
}

/* MARK: - Feature grid */

.features {
  display: grid;
  gap: 0.5rem;
}

/* MARK: - FAQ */

.faq {
  display: grid;
  gap: 0.5rem;
  max-width: 40rem;
  margin: 0 auto;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

/* chevron.down, rotating open like an iOS disclosure row */
.faq summary::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.25rem;
  border-right: 2px solid var(--label-3);
  border-bottom: 2px solid var(--label-3);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s var(--ease-out);
}

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

.faq details p {
  margin-top: 0.625rem;
}

.faq a {
  color: var(--label);
  text-decoration-color: var(--ring-past);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* MARK: - CTA */

.cta {
  padding: 3.5rem 1.5rem;
  text-align: center;
  background: var(--panel);
  border-radius: 2rem;
}

.cta .ring {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
}

.cta .ring .ring-fill {
  stroke: var(--accent);
}

.cta h2 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.cta p {
  margin: 0 0 1.75rem;
  color: var(--text-body);
}

/* MARK: - Reveal on scroll (only when JS has run; content is visible without it) */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* MARK: - Site header */

.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--page) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
  backdrop-filter: saturate(1.8) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header-wrap.is-scrolled {
  border-bottom-color: var(--separator);
}

.site-header {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
}

.brand .ring {
  width: 1.5rem;
  height: 1.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--text-body);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--label);
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--label);
  color: var(--page) !important;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

.btn--large {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

@media (max-width: 479px) {
  .site-nav .nav-optional {
    display: none;
  }
}

/* MARK: - Footer */

.site-footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--separator);
  font-size: 0.875rem;
  color: var(--label-2);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer a {
  color: var(--text-body);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--label);
}

/* MARK: - Document pages (support, privacy) */

.container.doc {
  padding-top: 2.5rem;
}

.doc-head {
  margin-bottom: 2.5rem;
}

.doc h1 {
  margin: 0 0 0.75rem;
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.doc .lede {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-body);
}

.doc .updated {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--label-2);
}

.doc h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

.doc h3 {
  margin: 0 0 0.25rem;
  font-size: 1.0625rem;
}

.doc p,
.doc li {
  color: var(--text-body);
  line-height: 1.65;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.5rem;
}

.doc strong {
  color: var(--label);
  font-weight: 600;
}

.doc a:not(.btn),
.faq a {
  color: var(--label);
  text-decoration-color: var(--ring-past);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* Contact card on Support */
.contact-card {
  margin-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 1.25rem;
}

.contact-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.contact-card p {
  margin: 0;
}

/* "At a glance" summary on Privacy */
.glance {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding: 1.5rem;
  list-style: none;
  background: var(--surface);
  border-radius: 1.25rem;
}

.glance li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 0;
}

.glance li + li {
  margin: 0;
}

.glance svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--eyebrow);
}

.policy section {
  padding-top: 0.25rem;
}

.policy section + section {
  margin-top: 0.5rem;
  border-top: 1px solid var(--separator);
}

.policy h2 {
  margin-top: 2rem;
}

.faq-group + .faq-group {
  margin-top: 2.5rem;
}

.faq-group > h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.doc .faq {
  max-width: none;
}

/* MARK: - QR code (desktop only: phones tap the badge instead) */

.qr {
  display: none;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 22rem;
}

.qr-tile {
  flex: none;
  padding: 0.875rem;             /* quiet zone: ~4 modules, which scanners need */
  background: #ffffff;           /* QR codes need a light ground to scan, in dark mode too */
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--separator);
  line-height: 0;
}

.qr-code {
  display: block;
  width: 6.5rem;                 /* scales via the SVG viewBox; without one the code is cropped */
  height: 6.5rem;
}

.qr-text {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-body);
}

.qr-text strong {
  display: block;
  color: var(--label);
}

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .qr {
    display: flex;
  }
}

/* MARK: - How a day works */

.section-head p a,
.big-quote a {
  color: inherit;
  text-decoration-color: var(--ring-past);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.steps {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 1.25rem;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: color-mix(in srgb, var(--eyebrow) 22%, var(--surface));
}

.step-time {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--eyebrow) 12%, var(--page));
  color: var(--eyebrow);
  font-size: 0.8125rem;
  font-weight: 600;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1875rem;
}

.step p {
  margin: 0;
  line-height: 1.55;
  color: var(--text-body);
}

/* MARK: - Lock Screen replica (FrogLockScreenWidget, rectangular) */

.lockscreen {
  max-width: 22rem;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  border-radius: 2rem;
  background: #2c2c2e;           /* a plain dark wallpaper (neutral: green is never a surface) */
  color: #ffffff;
  text-align: center;
  font-family: var(--font-app);
}

.ls-date {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.85;
}

.ls-time {
  margin: 0 0 1.25rem;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ls-widget {
  max-width: 11.5rem;
  margin: 0 auto;
  padding: 0.625rem 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-align: left;
}

.ls-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.ls-row span {
  opacity: 0.8;
}

.ls-bar {
  height: 5px;
  margin: 0.375rem 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
}

.ls-bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: #ffffff;
}

.ls-next {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* MARK: - Split section (text beside a visual) */

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.split .eyebrow {
  margin-bottom: 0.5rem;
}

/* MARK: - Article (eat-the-frog guide) */

.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--label-2);
}

.breadcrumb a {
  color: var(--text-body) !important;
  text-decoration: none !important;
}

.article .doc-head h1 {
  font-size: 2.25rem;
}

.article-steps {
  padding-left: 1.25rem;
}

.article-steps li::marker {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--eyebrow);
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  margin-top: 1.5rem;
}

.article-cta .qr {
  margin-top: 0;
}

.sources li {
  font-size: 0.9375rem;
}

/* MARK: - Breakpoints */

@media (min-width: 720px) {
  .container {
    padding: 6rem 2rem;
  }

  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    margin-bottom: 7rem;
  }

  .hero h1 {
    font-size: 3.75rem;
    line-height: 1.08;
  }

  .hero-sub {
    font-size: 1.25rem;
  }

  .big-quote {
    margin-bottom: 8rem;
  }

  .big-quote blockquote {
    font-size: 2.25rem;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .split .section-head {
    margin: 0;
    text-align: left;
  }

  .split .habit-card {
    margin: 0;
  }

  .section {
    margin-bottom: 8rem;
  }

  .section-head h2 {
    font-size: 2.75rem;
  }


  .cta {
    padding: 4.5rem 2rem;
  }

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

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .doc-card {
    padding: 2.5rem;
  }

  .container.doc {
    padding-top: 3.5rem;
  }

  .article .doc-head h1 {
    font-size: 2.875rem;
  }
}

/* MARK: - Reduced motion: show end states, skip the movement */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
