:root {
  --brand-a: #6d46ab;
  --brand-b: #3c80ea;
  --gold-a: #ffd66b;
  --gold-b: #ffb547;

  --bg: #ffffff;
  --bg-alt: #f7f5fb;
  --card: #ffffff;
  --text: #17142a;
  --muted: #5d5a70;
  --line: #e7e4ef;
  --accent: #5b3fd0;
  --shadow: 0 30px 60px -20px rgba(40, 25, 90, 0.35), 0 12px 24px -12px rgba(40, 25, 90, 0.25);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0b16;
    --bg-alt: #13111e;
    --card: #1a1727;
    --text: #ece9f6;
    --muted: #a4a0b8;
    --line: #2a2640;
    --accent: #a993ff;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75), 0 12px 24px -12px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }

.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap.narrow { width: min(780px, 100%); }

h1, h2, h3 {
  text-wrap: balance;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

/* Highlighted words, in the logo's purple-to-blue. */
.hl {
  background: linear-gradient(90deg, #7b3fd2, #3f6fe2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  .hl { background-image: linear-gradient(90deg, #c4a4ff, #8fb4ff); }
}

/* data-platform on <html> picks which platform's screenshots and notes show. */
[data-platform="ios"] .only-android,
[data-platform="android"] .only-ios { display: none !important; }

/* ---------- Devices ---------- */

.phone { container-type: inline-size; width: var(--pw, 280px); max-width: 100%; flex-shrink: 0; }
.tablet { container-type: inline-size; width: 100%; }

.bezel {
  position: relative;
  background: #0c0e13;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.bezel img { display: block; width: 100%; height: auto; }

/* iPhone screens already include the Dynamic Island. */
.phone.ios .bezel { padding: 3.2cqw; border-radius: 16.5cqw; }
.phone.ios .bezel img { border-radius: 13.3cqw; }

.phone.android .bezel { padding: 2.6cqw; border-radius: 11.5cqw; background: #121418; }
.phone.android .bezel img { border-radius: 9cqw; }
.phone.android .bezel::after {
  content: "";
  position: absolute;
  top: 4.4cqw;
  left: 50%;
  width: 3.8cqw;
  height: 3.8cqw;
  transform: translateX(-50%);
  background: #000;
  border-radius: 50%;
  box-shadow: 0 0 0 0.4cqw rgba(255, 255, 255, 0.05);
}

.tablet .bezel { padding: 2.2cqw; border-radius: 4.6cqw; }
.tablet .bezel img { border-radius: 2.6cqw; }

/* A phone cut off by the bottom edge of its box, as if rising out of it. */
.stage {
  position: relative;
  display: flex;
  justify-content: center;
  height: calc(var(--pw) * 1.52);
  overflow: hidden;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.stage .phone { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(55% 45% at 8% 6%, #fde3c2 0%, transparent 70%),
    radial-gradient(50% 45% at 94% 10%, #d4e0fd 0%, transparent 70%),
    radial-gradient(70% 55% at 50% 100%, #e6d5fb 0%, transparent 72%),
    #fbf7f2;
}
@media (prefers-color-scheme: dark) {
  .hero {
    background:
      radial-gradient(55% 45% at 8% 6%, rgba(199, 96, 24, 0.3) 0%, transparent 70%),
      radial-gradient(50% 45% at 94% 10%, rgba(40, 93, 199, 0.38) 0%, transparent 70%),
      radial-gradient(70% 55% at 50% 100%, rgba(119, 40, 199, 0.42) 0%, transparent 72%),
      #100d1c;
  }
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 4px 12px -4px rgba(60, 40, 140, 0.45); }

.topnav nav { display: flex; gap: 26px; font-size: 0.95rem; }
.topnav nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.topnav nav a:hover { color: var(--text); }

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  padding-top: 44px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero h1 .line { display: block; }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.6rem, 6.6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero .lede {
  margin: 22px auto 0;
  max-width: 640px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 16px;
  margin-top: 32px;
}

/* Store badges exactly as Apple and Google supply them, at the same height. */
.badge { display: inline-block; line-height: 0; border-radius: 9px; box-shadow: 0 10px 24px -10px rgba(20, 10, 50, 0.5); }
.badge img { display: block; width: auto; height: 50px; }
@media (prefers-color-scheme: dark) {
  .badge { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 10px 24px -10px rgba(0, 0, 0, 0.6); }
}

.textlink { color: var(--accent); font-weight: 600; text-decoration: none; }
.textlink:hover { text-decoration: underline; }

.checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 9px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 9%, transparent);
  font-size: 0.9rem;
  font-weight: 600;
}
.checks li::before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%236d46ab'/%3E%3Cstop offset='1' stop-color='%233c80ea'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='10' cy='10' r='10' fill='url(%23g)'/%3E%3Cpath d='M5.8 10.3l2.7 2.7 5.7-5.9' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.showcase {
  position: relative;
  width: min(1080px, 100%);
  margin: 60px auto 0;
}

.devices {
  --pw: min(286px, 38vw);
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4vw, 44px);
  height: calc(var(--pw) * 1.5);
  overflow: hidden;
}
.devices .android { margin-top: calc(var(--pw) * 0.12); }

/* Real widgets floating around the phones. */
.float {
  position: absolute;
  z-index: 2;
  width: clamp(110px, 13vw, 150px);
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(30, 15, 70, 0.28));
  animation: bob 7s ease-in-out infinite;
}
.f1 { left: 6%; top: 4%; --r: -6deg; }
.f2 { right: 6%; top: 10%; --r: 5deg; animation-delay: -2s; }
.f3 { left: 11%; top: 50%; --r: 4deg; animation-delay: -4s; animation-duration: 8s; }
.f4 { right: 10%; top: 56%; --r: -4deg; animation-delay: -1s; animation-duration: 9s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-12px) rotate(var(--r)); }
}

/* ---------- Sections ---------- */

section { padding: 104px 0; }
.alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 1.12rem; }

/* Tints follow the App Store screenshots: a pastel wash and a deeper ink for text. */
.t-peach { --tint: #e0782e; --ink: #a54c10; --wash-a: #fbedd2; --wash-b: #efcf98; }
.t-sky { --tint: #3c6fe0; --ink: #2353b8; --wash-a: #d6e2fb; --wash-b: #a9c0ef; }
.t-coral { --tint: #e0603a; --ink: #ad3a14; --wash-a: #fce9db; --wash-b: #f0c8a8; }
.t-aqua { --tint: #1fb3b3; --ink: #0d7c7d; --wash-a: #dbfbfb; --wash-b: #a9e6e6; }
.t-mint { --tint: #23a065; --ink: #187647; --wash-a: #dafbeb; --wash-b: #aee7cb; }
.t-lavender { --tint: #8a45d6; --ink: #6a24b8; --wash-a: #ecdcfb; --wash-b: #d3b9f1; }

@media (prefers-color-scheme: dark) {
  [class*="t-"] {
    --ink: color-mix(in srgb, var(--tint) 62%, #fff);
    --wash-a: color-mix(in srgb, var(--tint) 16%, #13101f);
    --wash-b: color-mix(in srgb, var(--tint) 34%, #13101f);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ink, var(--accent));
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pro {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gold-a), var(--gold-b));
  color: #4a2c00;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  vertical-align: 0.15em;
  white-space: nowrap;
}

.crown {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffd66b'/%3E%3Cstop offset='1' stop-color='%23ffa92e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='10' cy='10' r='10' fill='url(%23g)'/%3E%3Cpath d='M5 13.5h10l1-6.5-3.4 2.6L10 5.2 7.4 9.6 4 7z' fill='%234a2c00'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Platform switch */

.switch-dock {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  justify-content: center;
  margin: -20px 0 64px;
  pointer-events: none;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px -14px rgba(30, 20, 80, 0.4);
  pointer-events: auto;
}
.switch-label { padding: 0 8px 0 12px; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.switch button {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 8px 18px;
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.switch button:hover { color: var(--text); }
.switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Feature rows */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}
.feature + .feature { margin-top: 112px; }
.feature:nth-of-type(even) .copy { order: 2; }

.feature h2 { font-size: clamp(2.1rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.feature h2 em { font-style: normal; color: var(--ink); }
.feature .copy > p { margin: 18px 0 0; color: var(--muted); font-size: 1.12rem; }

.ticks { margin: 24px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 32px; margin-top: 12px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--tint, var(--accent));
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 7.5px;
  top: 6.5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}

.visual {
  padding: 56px 20px 0;
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.55), transparent 58%),
    linear-gradient(180deg, var(--wash-a), var(--wash-b));
}
@media (prefers-color-scheme: dark) {
  .visual { background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.06), transparent 58%), linear-gradient(180deg, var(--wash-a), var(--wash-b)); }
}
.visual .stage { --pw: 286px; }

/* ---------- Try-it widgets (HTML copies of the real ones) ---------- */

.visual.try { padding: 44px 28px 30px; }

.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: min(440px, 100%);
  margin: 0 auto;
}

/* .wg is the size container; .wg-in lays out the contents in cqw of the widget's width. */
.wg {
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  color: #fff;
  font-family: Roboto, "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  box-shadow: 0 22px 40px -18px rgba(20, 10, 50, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.wg-in { position: absolute; inset: 0; display: flex; }
.wg p { margin: 0; }
.wg button {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, filter 0.2s;
}
.wg button:active { transform: scale(0.93); }
.wg svg { display: block; }

/* Hydration, medium */
.hydration {
  --fill: 0.75;
  grid-column: 1 / -1;
  aspect-ratio: 383 / 184;
  border-radius: 5.7% / 11.9%;
  background: linear-gradient(135deg, #070d1e 0%, #0d1b3e 55%, #0a2343 100%);
}
.hydration .wg-in { align-items: center; gap: 5cqw; padding: 0 4.2cqw; }
.glass {
  position: relative;
  flex-shrink: 0;
  width: 15.9cqw;
  height: 25.4cqw;
  border-radius: 3.2cqw;
  overflow: hidden;
  background: rgba(150, 160, 185, 0.28);
  box-shadow: inset 0 0 0 0.25cqw rgba(190, 200, 220, 0.45);
}
.glass .water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--fill) * 100%);
  background: linear-gradient(180deg, #1f2589 0%, #1640a8 100%);
  box-shadow: inset 0 0.35cqw 0 rgba(170, 185, 255, 0.55);
  transition: height 0.6s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.glass i {
  position: absolute;
  width: 1.1cqw;
  height: 1.1cqw;
  border: 0.3cqw solid rgba(230, 236, 255, 0.75);
  border-radius: 50%;
  bottom: calc(var(--fill) * 100% - 2cqw);
  animation: fizz 2.6s ease-in infinite;
  transition: bottom 0.6s;
}
.glass i:nth-child(2) { left: 18%; animation-delay: -0.4s; }
.glass i:nth-child(3) { left: 40%; animation-delay: -1.3s; }
.glass i:nth-child(4) { left: 58%; animation-delay: -2s; }
.glass i:nth-child(5) { left: 74%; animation-delay: -0.9s; }
.glass i:nth-child(6) { left: 30%; animation-delay: -1.7s; }
@keyframes fizz {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-6cqw); opacity: 0; }
}

.hy-body { flex: 1; min-width: 0; }
.hy-amount { display: flex; align-items: baseline; gap: 1.6cqw; line-height: 1; }
.hy-amount b { font-size: 8.4cqw; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hy-amount span { font-size: 3.4cqw; color: #a9b1c6; }
.hy-msg { margin-top: 2.2cqw !important; font-size: 2.9cqw; color: #c9cdd8; }
.hy-bar { display: flex; align-items: center; gap: 1.8cqw; margin-top: 3.4cqw; }
.hy-bar .track { flex: 1; height: 1.3cqw; border-radius: 1cqw; background: #2c3a5a; overflow: hidden; }
.hy-bar .track span {
  display: block;
  height: 100%;
  width: calc(var(--fill) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, #1640a8, #2f6ff0);
  transition: width 0.6s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.hy-bar b { font-size: 2.8cqw; color: #c9cdd8; min-width: 5.4cqw; text-align: right; font-variant-numeric: tabular-nums; }
.hy-buttons { display: flex; gap: 1.6cqw; margin-top: 4.4cqw; }
.hy-buttons button {
  flex: 1;
  height: 11.4cqw;
  border-radius: 2.4cqw;
  background: #557f93;
  font-size: 3.6cqw;
  font-weight: 800;
}
.hy-buttons button:hover { filter: brightness(1.12); }
.hy-buttons .reset { flex: 0 0 11.4cqw; border-radius: 50%; background: #25395a; color: #b8c0d0; display: grid; place-items: center; }
.hy-buttons .reset svg { width: 4.6cqw; height: 4.6cqw; }
.hydration.done .hy-bar .track span { background: linear-gradient(90deg, #18a36a, #36d18b); }

/* Habit, small */
.habit {
  aspect-ratio: 1;
  border-radius: 11.5%;
  background: linear-gradient(100deg, #fa7794 0%, #fca86d 52%, #fed64a 100%);
  text-align: center;
}
.habit .wg-in { flex-direction: column; align-items: center; padding-top: 9cqw; }
.habit .hb-check {
  display: grid;
  place-items: center;
  width: 17cqw;
  height: 17cqw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 0.9cqw rgba(255, 255, 255, 0.95);
  color: rgba(255, 255, 255, 0.6);
  transition: background-color 0.25s, transform 0.12s;
}
.hb-check svg { width: 10cqw; height: 10cqw; }
.habit[data-done="true"] .hb-check { background: #fff; color: #f0628a; animation: pop 0.35s ease; }
@keyframes pop { 50% { transform: scale(1.18); } }
.hb-name { margin-top: 4.4cqw !important; font-size: 7cqw; font-weight: 800; letter-spacing: -0.01em; }
.hb-status { margin-top: 1.2cqw !important; font-size: 5.2cqw; opacity: 0.9; }
.hb-stats { display: flex; justify-content: space-around; width: 100%; margin-top: auto; padding-bottom: 8cqw; }
.hb-stats div { display: flex; flex-direction: column; align-items: center; width: 40%; }
.hb-stats b { font-size: 9.4cqw; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.hb-stats span { font-size: 4.6cqw; opacity: 0.85; }

/* Focus timer, small */
.focus {
  --p: 0;
  aspect-ratio: 1;
  border-radius: 11.5%;
  background: linear-gradient(135deg, #1c0c11 0%, #3b1118 45%, #8d4419 100%);
}
.focus .wg-in { flex-direction: column; align-items: center; padding-top: 7.5cqw; }
.fc-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 43cqw;
  height: 43cqw;
}
.fc-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#ff8a1f calc(var(--p) * 360deg + 14deg), rgba(255, 255, 255, 0.14) 0);
  -webkit-mask: radial-gradient(circle, transparent 57%, #000 58%);
  mask: radial-gradient(circle, transparent 57%, #000 58%);
}
.fc-time {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 33cqw;
  height: 33cqw;
  border-radius: 50%;
  background: rgba(30, 6, 12, 0.55);
  line-height: 1.1;
}
.fc-time b { font-size: 10.6cqw; font-weight: 800; font-variant-numeric: tabular-nums; }
.fc-time span { font-size: 4.6cqw; font-weight: 700; color: #b3a3a8; }
.fc-status { margin-top: 7cqw !important; font-size: 5cqw; font-weight: 800; color: #ffb020; }
.fc-buttons { display: flex; gap: 4.6cqw; margin-top: auto; padding-bottom: 8cqw; }
.fc-buttons button { display: grid; place-items: center; height: 15.6cqw; border-radius: 4.2cqw; }
.fc-play { width: 21.5cqw; background: linear-gradient(135deg, #b8701a, #a3163f); }
.fc-play svg { width: 7cqw; height: 7cqw; }
.fc-reset { width: 17.4cqw; background: rgba(255, 255, 255, 0.1); color: #cdbfc3; }
.fc-reset svg { width: 6.4cqw; height: 6.4cqw; }
.focus .i-pause, .focus[data-running="true"] .i-play { display: none; }
.focus[data-running="true"] .i-pause { display: block; }

.try-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
}
.try-hint svg { width: 22px; height: 22px; }

/* ---------- Widget wall ---------- */

.wall-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60% 45% at 0% 0%, rgba(91, 123, 255, 0.85) 0%, transparent 70%),
    radial-gradient(55% 45% at 100% 18%, rgba(178, 92, 240, 0.8) 0%, transparent 70%),
    radial-gradient(60% 50% at 18% 100%, rgba(255, 143, 107, 0.75) 0%, transparent 70%),
    radial-gradient(55% 45% at 100% 100%, rgba(47, 195, 180, 0.7) 0%, transparent 70%),
    #3a2f88;
}
.wall-section .section-head p { color: rgba(255, 255, 255, 0.86); }
.wall-section .hl { background: none; color: #ffe2b8; }

.wall-frame { container-type: inline-size; width: min(1000px, 100%); margin: 0 auto; }

.wall {
  --cols: 6;
  --g: 22px;
  --rg: 8px;
  --cap: 24px;
  --c: calc((100cqw - (var(--cols) - 1) * var(--g)) / var(--cols));
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-auto-rows: calc(var(--c) + var(--cap));
  grid-auto-flow: row dense;
  column-gap: var(--g);
  row-gap: var(--rg);
}

.w { display: flex; flex-direction: column; margin: 0; min-width: 0; }
.w.m { grid-column: span 2; }
.w.l { grid-column: span 2; grid-row: span 2; }
.w img {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--c) * 0.115);
  filter: drop-shadow(0 14px 18px rgba(15, 8, 45, 0.35));
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.w:hover img { transform: translateY(-4px) scale(1.02); }
.w figcaption {
  height: var(--cap);
  padding-top: 6px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(20, 10, 50, 0.45);
}
.w .crown { margin-left: 2px; }

.wall-note { margin: 34px 0 0; text-align: center; color: rgba(255, 255, 255, 0.86); font-size: 0.95rem; }

/* ---------- Platforms ---------- */

.ipad {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 40px;
  max-width: 980px;
  margin: 0 auto 24px;
  padding: 44px 0 0 44px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(160deg, var(--wash-a), var(--wash-b));
}
@media (prefers-color-scheme: dark) {
  .ipad { background: linear-gradient(160deg, var(--wash-a), var(--wash-b)); }
}
.ipad-copy { padding-bottom: 44px; }
.ipad-copy h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.ipad-copy p { margin: 12px 0 0; color: var(--muted); font-size: 1.05rem; }
.ipad-stage { align-self: end; height: 340px; overflow: hidden; }
.ipad-stage .tablet { width: 560px; }

.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.platform {
  display: flex;
  flex-direction: column;
  padding: 34px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
}
.platform-head { display: flex; align-items: center; gap: 16px; }
.platform-head img { width: 64px; height: 64px; border-radius: 22.5%; box-shadow: 0 8px 18px -8px rgba(20, 10, 60, 0.45); }
.platform h3 { font-size: 1.5rem; font-weight: 800; }
.platform .req { margin: 3px 0 0; color: var(--muted); font-size: 0.95rem; }
.platform .ticks { flex: 1; margin-bottom: 30px; }
.platform .badge { align-self: flex-start; }

/* ---------- Privacy band ---------- */

.band {
  color: #fff;
  background:
    linear-gradient(160deg, transparent 50%, rgba(255, 255, 255, 0.06) 50.2%, transparent 72%),
    linear-gradient(135deg, #6a43b0 0%, #4c5bd4 55%, #3274df 100%);
}
.band .section-head p { color: rgba(255, 255, 255, 0.86); }
.band .hl { background: none; color: #ffd9a8; }

.promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.promises li {
  padding: 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.promises svg { width: 30px; height: 30px; color: #ffd9a8; }
.promises strong { display: block; margin-top: 14px; font-size: 1.1rem; }
.promises span { display: block; margin-top: 6px; color: rgba(255, 255, 255, 0.84); font-size: 0.95rem; }

.band .more-link { text-align: center; margin: 40px 0 0; }
.band .more-link a { color: #fff; font-weight: 600; }

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.plan {
  padding: 34px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
}
.plan.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(160deg, var(--brand-a), var(--brand-b)) border-box;
  box-shadow: var(--shadow);
}
.plan h3 { font-size: 1.5rem; font-weight: 800; }
.plan .price { margin: 10px 0 0; color: var(--muted); font-weight: 600; }
.plan .ticks li::before { background: color-mix(in srgb, var(--muted) 70%, var(--card)); }
.plan.featured .ticks li::before { background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); }
.plan .note {
  margin: 26px 0 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--gold-a) 24%, var(--card));
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- Final call to action ---------- */

.final { text-align: center; }
.final img.icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
.final h2 { margin-top: 26px; font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
.final p { margin: 14px auto 0; max-width: 560px; color: var(--muted); font-size: 1.1rem; }
.final .more { margin-top: 26px; }

footer {
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .legal { flex-basis: 100%; margin: 6px 0 0; font-size: 0.78rem; opacity: 0.85; }

@media (prefers-reduced-motion: reduce) {
  .stage .phone, .float, .glass i, .habit[data-done="true"] .hb-check { animation: none; }
  .w img { transition: none; }
}

/* ---------- Narrow screens ---------- */

@media (max-width: 1000px) {
  .promises { grid-template-columns: 1fr 1fr; }
  .float { width: clamp(96px, 12vw, 120px); }
  .f1 { left: 1%; }
  .f2 { right: 1%; }
  .f3 { left: 3%; }
  .f4 { right: 2%; }
}

@media (max-width: 760px) {
  section { padding: 76px 0; }
  .topnav nav a.wide { display: none; }
  .hero-copy { padding-top: 28px; }
  .showcase { margin-top: 44px; }
  .devices { --pw: min(250px, 43vw); gap: 12px; }
  .float { display: none; }

  .switch-dock { margin-bottom: 44px; }
  .switch-label { display: none; }

  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature + .feature { margin-top: 84px; }
  .feature:nth-of-type(even) .copy { order: 0; }
  .visual { padding-top: 40px; border-radius: 28px; }
  .visual .stage { --pw: 244px; }
  .visual.try { padding: 30px 16px 22px; }

  .wall { --cols: 4; --g: 12px; --rg: 4px; --cap: 18px; }
  .w figcaption { padding-top: 4px; font-size: 0.62rem; }

  .ipad { grid-template-columns: 1fr; gap: 8px; padding: 32px 0 0 24px; }
  .ipad-copy { padding: 0 24px 16px 0; }
  .ipad-stage { height: 240px; }
  .ipad-stage .tablet { width: 420px; }

  .platforms { grid-template-columns: 1fr; }
  .platform { padding: 28px 24px; }
  .promises { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 28px 24px; }
}
