/* ============================================================================
   Habits — landing page
   ============================================================================ */

:root {
  --blue:        #007AFF;
  --blue-2:      #2E9CFF;
  --blue-soft:   #2D8CFF;

  --bg:          #F7F7F9;
  --surface:     #FFFFFF;
  --hair:        rgba(20,20,30,0.08);
  --hair-2:      rgba(20,20,30,0.14);

  --ink-1:       #15151A;
  --ink-2:       #44444E;
  --ink-3:       #7A7A85;
  --ink-4:       #B4B4BD;

  --dark-bg:     #0E0E12;
  --dark-ink:    #F5F5F7;
  --dark-ink-2:  #B6B6C0;

  --maxw: 1240px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink-1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "ss01";
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(0,122,255,0.18); color: var(--ink-1); }


/* ============================================================================
   NAV
   ============================================================================ */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247,247,249,0.78);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--hair);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.topbar-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15.5px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-1);
}
.brand-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.04);
}
.brand-mark svg { width: 100%; height: 100%; display: block; border-radius: 7px; }
.foot-brand .brand-mark { width: 24px; height: 24px; border-radius: 6px; }
.topbar-nav {
  display: flex; gap: 30px;
  justify-content: center;
  font-size: 14px;
}
.topbar-nav a { color: var(--ink-2); transition: color .15s; }
.topbar-nav a:hover { color: var(--ink-1); }
.link-cta {
  display: inline-flex; align-items: center;
  background: var(--ink-1);
  color: #fff;
  font-size: 13.5px; font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  justify-self: end;
  transition: background .2s, transform .15s;
}
.link-cta:hover { background: var(--blue); transform: translateY(-1px); }


/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
.display-1 {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  font-size: clamp(54px, 8vw, 108px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0 0 22px;
  color: var(--ink-1);
}
.display-2 {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  font-size: clamp(46px, 6.2vw, 80px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin: 0 auto 14px;
  color: var(--ink-1);
}
.subhead {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--ink-2);
  margin: 0 auto 26px;
  max-width: 22ch;
}
.grad {
  background: linear-gradient(135deg, var(--g-from) 0%, var(--g-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-blue   { --g-from: #007AFF; --g-to: #5AC8FA; }
.grad-green  { --g-from: #30D158; --g-to: #34C759; }
.grad-orange { --g-from: #FF9F0A; --g-to: #FF453A; }
.grad-purple { --g-from: #BF5AF2; --g-to: #5E5CE6; }
.grad-pink   { --g-from: #FF375F; --g-to: #FF9F0A; }

.kicker {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--kicker-color, var(--blue));
  letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 16px;
}
.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-2);
  line-height: 1.6;
  letter-spacing: -0.005em;
  margin: 0 auto 0;
  max-width: 600px;
}


/* ============================================================================
   PILLS / BUTTONS
   ============================================================================ */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  font-size: 16px; font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .18s cubic-bezier(.2,.9,.3,1), background .2s, box-shadow .25s;
  cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.pill-primary {
  background: var(--ink-1);
  color: #fff;
  box-shadow: 0 14px 28px -10px rgba(20,20,30,0.45);
}
.pill-primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(0,122,255,0.55);
}
.pill-ghost {
  background: rgba(20,20,30,0.04);
  color: var(--ink-1);
  border-color: rgba(20,20,30,0.10);
}
.pill-ghost:hover { background: rgba(20,20,30,0.08); transform: translateY(-1px); }

.pill-grad {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, #007AFF 0%, #5E5CE6 55%, #BF5AF2 100%);
  box-shadow:
    0 14px 32px -10px rgba(0,122,255,0.55),
    0 4px 14px -4px rgba(94,92,230,0.45),
    inset 0 1px 0 rgba(255,255,255,0.25);
  font-weight: 600;
  overflow: hidden;
}
.pill-grad::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.32) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .9s cubic-bezier(.4,0,.2,1);
}
.pill-grad:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 44px -12px rgba(0,122,255,0.65),
    0 8px 18px -4px rgba(94,92,230,0.55),
    inset 0 1px 0 rgba(255,255,255,0.30);
}
.pill-grad:hover::before { transform: translateX(100%); }


/* ============================================================================
   PHONE BEZEL
   ============================================================================ */
.phone {
  --p-w: 360px;
  --p-h: 750px;
  width: var(--p-w);
  position: relative;
  z-index: 1;
  transition: transform .5s cubic-bezier(.2,.9,.3,1);
  filter:
    drop-shadow(0 40px 70px rgba(20,20,30,0.22))
    drop-shadow(0 10px 24px rgba(20,20,30,0.10));
}
.phone:hover { transform: translateY(-4px) rotate(-0.6deg); }
.phone-hero  { --p-w: 380px; --p-h: 790px; }
.bezel {
  width: var(--p-w);
  height: var(--p-h);
  background: #111113;
  border-radius: 54px;
  padding: 9px;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 0 5px #000,
    0 0 0 1px rgba(0,0,0,0.5);
}

/* Side buttons */
.bezel::before {
  content: "";
  position: absolute;
  right: -3px; top: 130px;
  width: 3px; height: 72px;
  background: #2a2a2e;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 90px 0 #2a2a2e;
}
.bezel::after {
  content: "";
  position: absolute;
  left: -3px; top: 168px;
  width: 3px; height: 56px;
  background: #2a2a2e;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 -72px 0 #2a2a2e, 0 70px 0 #2a2a2e;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 44px;
  display: block;
  object-fit: cover;
  object-position: top center;
  background: #000;
}


/* ============================================================================
   THEME SWAP — crossfade between two iPhone screen images inside the bezel
   ============================================================================ */
.theme-swap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background: #000;
}
.theme-swap-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.theme-swap-a { animation: theme-swap-a 6.4s infinite both; }
.theme-swap-b { animation: theme-swap-b 6.4s infinite both; opacity: 0; }

@keyframes theme-swap-a {
  0%, 42%   { opacity: 1; }
  50%, 92%  { opacity: 0; }
  100%      { opacity: 1; }
}
@keyframes theme-swap-b {
  0%, 42%   { opacity: 0; }
  50%, 92%  { opacity: 1; }
  100%      { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-swap-a, .theme-swap-b { animation: none; }
  .theme-swap-b { opacity: 1; } /* show the colourful one for reduced-motion users */
}


/* ============================================================================
   HERO
   ============================================================================ */
.hero {
  position: relative;
  padding: 60px 28px 100px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  overflow: visible;
}
.hero-bg {
  position: absolute;
  inset: -100px -20% 0 -20%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(34% 50% at 22% 18%, rgba(0,122,255,0.18), transparent 70%),
    radial-gradient(34% 50% at 78% 28%, rgba(255,159,10,0.16), transparent 70%),
    radial-gradient(36% 60% at 50% 100%, rgba(48,209,88,0.14), transparent 75%);
  filter: blur(18px);
}
.hero-text  { max-width: 640px; position: relative; z-index: 2; }
.hero-stage {
  display: flex; justify-content: center; align-items: center;
  position: relative; z-index: 2;
  perspective: 1400px;
}
.hero .display-1 {
  font-size: clamp(64px, 9.5vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: clamp(18px, 1.55vw, 21px);
  color: var(--ink-2);
  line-height: 1.55;
  letter-spacing: -0.008em;
  margin: 0 0 32px;
  max-width: 520px;
}
.hero-cta {
  display: flex; gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.hero-meta {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--ink-3);
  font-size: 13.5px;
  margin: 0;
}
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }

@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  50%      { transform: translateY(-12px) rotateX(0deg) rotateY(0deg); }
}
.phone-hero {
  animation: phone-float 7s ease-in-out infinite;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-stage[data-tilt="1"] .phone-hero { animation: none; }
.hero-stage[data-tilt="1"] .phone-hero {
  transition: transform .25s cubic-bezier(.2,.9,.3,1);
}


/* ============================================================================
   TRUST STRIP
   ============================================================================ */
.trust {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 28px 100px;
  text-align: center;
  border-top: 1px solid var(--hair);
}
.trust-eyebrow {
  margin: 0 0 36px;
  font-size: 12px; font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}
.trust-cell { text-align: center; }
.trust-num {
  font-size: clamp(52px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 14px;
  color: var(--ink-1);
}
.trust-num.grad-blue,
.trust-num.grad-green,
.trust-num.grad-orange,
.trust-num.grad-pink {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-image: linear-gradient(135deg, var(--g-from), var(--g-to));
}
.trust-cap {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 240px;
  margin: 0 auto;
}


/* ============================================================================
   FEATURE SECTIONS
   ============================================================================ */
.feature {
  position: relative;
  padding: 140px 28px 160px;
  overflow: hidden;
  text-align: center;
}
.feature-inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.feature-phone {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.feature-phone-pair { gap: 32px; flex-wrap: wrap; }
.feature-text-only .feature-inner { max-width: 760px; }
.feature-text-only { padding: 110px 28px 130px; }


/* ----------------------------------------------------------------------------
   SPLIT LAYOUT — text on one side, phone on the other (alternating zigzag).
   Use .feature-split for text-left / image-right (the default).
   Add .layout-image-left to flip so text is on the right.
   The section itself stays full-width so the background gradient still
   bleeds edge-to-edge; only the two grid items are constrained.
   ---------------------------------------------------------------------------- */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  text-align: left;
  padding: 120px clamp(28px, 5vw, 80px) 130px;
}
.feature-split > .feature-inner {
  max-width: 520px;
  margin: 0;
  justify-self: end;
}
.feature-split > .feature-inner .display-2 br { display: inline; }
.feature-split > .feature-phone {
  margin-top: 0;
  justify-self: start;
  width: 100%;
}
.feature-split.layout-image-left > .feature-inner { order: 2; justify-self: start; }
.feature-split.layout-image-left > .feature-phone { order: 1; justify-self: end; }

@media (max-width: 900px) {
  .feature-split {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
    padding: 92px 24px 100px;
  }
  .feature-split > .feature-inner {
    max-width: 600px;
    margin: 0 auto;
    justify-self: center;
  }
  .feature-split > .feature-phone { justify-self: center; }
  .feature-split.layout-image-left > .feature-inner { order: 1; justify-self: center; }
  .feature-split.layout-image-left > .feature-phone { order: 2; justify-self: center; }
  .feature-split > .feature-inner .display-2 br { display: none; }
}
@media (max-width: 560px) {
  .feature-split { padding: 72px 18px 84px; gap: 44px; }
}


/* ----------------------------------------------------------------------------
   APPLE HEALTH — metric chips with a color dot for each auto-tracked metric
   ---------------------------------------------------------------------------- */
.health-chips {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.feature-split:not(.layout-image-left) .health-chips { justify-content: flex-start; }
.feature-split.layout-image-left .health-chips     { justify-content: flex-start; }
.health-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 12px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-1);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.hc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c, #007AFF);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #007AFF) 22%, transparent);
}
@media (max-width: 900px) {
  .health-chips { justify-content: center !important; }
}

/* THEME TRIO — three iPhones side-by-side, same screen in three themes */
.phone-mini { --p-w: 240px; --p-h: 500px; }
.theme-trio {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 28px;
  justify-content: center;
  align-items: end;
  position: relative;
  z-index: 1;
}
.theme-trio .phone:nth-child(1) { transform: rotate(-2.5deg); }
.theme-trio .phone:nth-child(2) { transform: translateY(-18px); }
.theme-trio .phone:nth-child(3) { transform: rotate(2.5deg); }
.theme-trio .phone:hover { transform: translateY(-6px) rotate(0); z-index: 2; }
.theme-trio .bezel { border-radius: 38px; padding: 7px; }
.theme-trio .phone-screen { border-radius: 30px; }
.theme-trio .bezel::before,
.theme-trio .bezel::after { display: none; }

@media (max-width: 900px) {
  .theme-trio { gap: 16px; }
  .phone-mini { --p-w: 200px; --p-h: 416px; }
  .theme-trio .bezel { border-radius: 32px; padding: 6px; }
  .theme-trio .phone-screen { border-radius: 26px; }
}
@media (max-width: 640px) {
  .theme-trio { gap: 10px; }
  .phone-mini { --p-w: 150px; --p-h: 312px; }
  .theme-trio .bezel { border-radius: 24px; padding: 5px; }
  .theme-trio .phone-screen { border-radius: 19px; }
}
@media (max-width: 420px) {
  .phone-mini { --p-w: 116px; --p-h: 240px; }
  .theme-trio .bezel { border-radius: 18px; padding: 4px; }
  .theme-trio .phone-screen { border-radius: 14px; }
}
/* Stretch the glow orb for the trio's wider visual footprint */
.feature-themes .feature-phone::before,
.feature-themes .feature-phone::after { display: none; }
.feature-themes::after {
  content: "";
  position: absolute;
  width: 1100px; height: 700px;
  left: 50%; bottom: 8%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--sec-orb, transparent), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.feature::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--sec-bg, transparent);
  pointer-events: none;
  z-index: 0;
}

/* Big colored glow orb behind the phone */
.feature-phone::before {
  content: "";
  position: absolute;
  width: 780px; height: 780px;
  top: 50%; left: 50%;
  transform: translate(-50%, -45%);
  background: radial-gradient(closest-side, var(--sec-orb, transparent), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
  opacity: 1;
}
.feature-phone::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  top: 50%; left: 50%;
  transform: translate(-50%, -40%);
  background: radial-gradient(closest-side, var(--sec-orb-2, transparent), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.85;
  mix-blend-mode: plus-lighter;
}

/* Per-section themes */
.feature[data-theme="white"]    { --sec-bg: #FFFFFF;                                            --sec-orb: rgba(0,122,255,0.22);   --sec-orb-2: rgba(0,122,255,0.30);   --kicker-color: var(--blue); }
.feature[data-theme="peach"]    { --sec-bg: linear-gradient(180deg, #FFF1E0 0%, #FFE6CC 100%);  --sec-orb: rgba(255,159,10,0.48);  --sec-orb-2: rgba(255,90,40,0.34);   --kicker-color: #C75800; }
.feature[data-theme="lavender"] { --sec-bg: linear-gradient(180deg, #F1E7FF 0%, #E9DBFF 100%);  --sec-orb: rgba(191,90,242,0.46);  --sec-orb-2: rgba(94,92,230,0.32);   --kicker-color: #7B2FB8; }
.feature[data-theme="mint"]     { --sec-bg: linear-gradient(180deg, #DDFAE5 0%, #C8F4D7 100%);  --sec-orb: rgba(48,209,88,0.48);   --sec-orb-2: rgba(0,200,170,0.32);   --kicker-color: #1F8A3D; }
.feature[data-theme="rose"]     { --sec-bg: linear-gradient(180deg, #FFE0EA 0%, #FFCFDF 100%);  --sec-orb: rgba(255,55,95,0.42);   --sec-orb-2: rgba(255,120,90,0.34);  --kicker-color: #C72A5A; }
.feature[data-theme="sky"]      { --sec-bg: linear-gradient(180deg, #D9EFF9 0%, #C0E5F5 100%);  --sec-orb: rgba(80,200,250,0.55);  --sec-orb-2: rgba(0,122,255,0.30);   --kicker-color: #0C7CB0; }
.feature[data-theme="cream"]    { --sec-bg: linear-gradient(180deg, #FFF4D0 0%, #FFECB0 100%);  --sec-orb: rgba(255,196,40,0.52);  --sec-orb-2: rgba(255,140,40,0.30);  --kicker-color: #A07900; }
.feature[data-theme="lilac"]    { --sec-bg: linear-gradient(180deg, #E6E6FE 0%, #D5D3FC 100%);  --sec-orb: rgba(94,92,230,0.46);   --sec-orb-2: rgba(150,90,242,0.32);  --kicker-color: #3B39B8; }
.feature[data-theme="jade"]     { --sec-bg: linear-gradient(180deg, #DDF4E8 0%, #CAEFD9 100%);  --sec-orb: rgba(102,212,178,0.55); --sec-orb-2: rgba(48,200,140,0.30);  --kicker-color: #1F8A60; }
.feature[data-theme="rainbow"]  { --sec-bg: linear-gradient(135deg, #FFE9F0 0%, #F0E5FF 35%, #DDF1FF 70%, #DDF6E8 100%); --sec-orb: rgba(191,90,242,0.40); --sec-orb-2: rgba(255,90,170,0.32); --kicker-color: #7B2FB8; }
.feature[data-theme="rainbow"]::before { background-image:
  radial-gradient(35% 50% at 18% 18%, rgba(255,55,95,0.20), transparent 70%),
  radial-gradient(35% 50% at 82% 22%, rgba(48,209,88,0.20), transparent 70%),
  radial-gradient(40% 50% at 50% 100%, rgba(0,122,255,0.18), transparent 75%); }
.feature[data-theme="dark"]     { --sec-bg: var(--dark-bg);                                     --sec-orb: rgba(255,170,10,0.46);  --sec-orb-2: rgba(255,80,90,0.28);   --kicker-color: #FFCB52; color: var(--dark-ink); }
.feature[data-theme="dark"] .display-2 { color: var(--dark-ink); }
.feature[data-theme="dark"] .lede      { color: var(--dark-ink-2); }


/* ============================================================================
   PRIVACY
   ============================================================================ */
.priv-chips {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 30px 0 24px;
}
.priv-chip {
  background: rgba(48,168,118,0.10);
  border: 1px solid rgba(48,168,118,0.32);
  color: #1F7A56;
  font-size: 14px; font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.priv-link {
  display: inline-block;
  color: #1F7A56;
  font-size: 14.5px; font-weight: 600;
  border-bottom: 1px solid rgba(31,122,86,0.35);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.priv-link:hover { color: var(--ink-1); border-bottom-color: var(--ink-1); }

/* Achievements */
.ach-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  align-items: center;
  justify-content: flex-start;
}
.ach-medal-big {
  font-size: 52px;
  line-height: 1;
  display: inline-block;
  filter: drop-shadow(0 6px 14px rgba(94,92,230,0.28));
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.ach-medal-big:hover { transform: translateY(-4px) scale(1.06); }
.ach-medal-big.is-locked { opacity: 0.55; filter: grayscale(0.4) drop-shadow(0 4px 10px rgba(0,0,0,0.18)); }

@media (max-width: 560px) {
  .ach-row { gap: 14px 16px; }
  .ach-medal-big { font-size: 40px; }
}


/* ============================================================================
   PRICING
   ============================================================================ */
.feature[data-theme="dark"] .plan-row { color: var(--dark-ink); }
.plan-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 38px auto 30px;
  max-width: 720px;
}
.plan {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 24px 18px;
  text-align: center;
  position: relative;
  transition: border-color .25s, transform .25s, background .25s;
}
.plan:hover {
  border-color: rgba(255,255,255,0.20);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
}
.plan-best {
  background: linear-gradient(165deg, rgba(255,214,10,0.22), rgba(255,159,10,0.06));
  border-color: rgba(255,214,10,0.50);
  box-shadow: 0 26px 50px -18px rgba(255,170,10,0.40);
  transform: translateY(-8px);
}
.plan-best:hover { transform: translateY(-12px); }
.plan-ribbon {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: #FFCB52;
  color: #2a1b00;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 18px -4px rgba(255,180,30,0.55);
}
.plan-tag {
  font-size: 11px; font-weight: 700;
  color: var(--dark-ink-2);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.plan-price {
  font-size: 32px; font-weight: 700;
  letter-spacing: -0.035em; line-height: 1;
  margin: 14px 0 8px;
  color: var(--dark-ink);
}
.plan-unit { font-size: 14px; font-weight: 500; color: var(--dark-ink-2); letter-spacing: -0.01em; }
.plan-foot { font-size: 12px; color: var(--dark-ink-2); margin-top: 6px; opacity: 0.85; }


/* ============================================================================
   CTA
   ============================================================================ */
.cta-block { padding: 40px 28px 130px; }
.cta-frame {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(0,122,255,0.55), transparent 75%),
    linear-gradient(135deg, #007AFF 0%, #5E5CE6 100%);
  color: #fff;
  border-radius: 44px;
  padding: 100px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0,122,255,0.45);
}
.cta-glow {
  position: absolute; inset: -60%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.18), transparent 70%);
  pointer-events: none; z-index: 0;
}
.cta-frame > * { position: relative; z-index: 1; }
.cta-frame .display-1 { color: #fff; margin-bottom: 18px; }
.cta-frame .lede { color: rgba(255,255,255,0.85); margin: 0 auto 32px; }
.cta-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta-form input {
  flex: 0 0 320px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 15px; color: #fff;
  font-family: inherit; outline: none;
  letter-spacing: -0.005em;
  transition: border-color .2s, background .2s;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.7); }
.cta-form input:focus { border-color: #fff; background: rgba(255,255,255,0.22); }
.cta-frame .pill-primary {
  background: #fff;
  color: var(--ink-1);
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.30);
}
.cta-frame .pill-primary:hover { background: rgba(255,255,255,0.92); transform: translateY(-2px); }


/* ============================================================================
   FOOTER
   ============================================================================ */
.site-foot { border-top: 1px solid var(--hair); background: var(--bg); }
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 28px 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}
.foot-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-1); }
.foot-links { display: flex; gap: 26px; justify-content: center; font-size: 13.5px; color: var(--ink-3); }
.foot-links a:hover { color: var(--ink-1); }
.foot-meta { font-size: 12px; color: var(--ink-3); text-align: right; }


/* ============================================================================
   REVEAL ANIMATIONS
   ============================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity .9s cubic-bezier(.2,.9,.3,1),
    transform .9s cubic-bezier(.2,.9,.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-phone {
  opacity: 0;
  transform: translateY(60px) scale(0.94);
  transition:
    opacity 1s cubic-bezier(.2,.9,.3,1),
    transform 1s cubic-bezier(.2,.9,.3,1);
}
.reveal-phone.in { opacity: 1; transform: translateY(0) scale(1); }


/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 980px) {
  .topbar-nav { display: none; }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 48px;
    gap: 50px;
  }
  .hero-text { margin: 0 auto; max-width: 640px; }
  .hero-cta { justify-content: center; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-meta { justify-content: center; }
  .trust-row { grid-template-columns: 1fr; gap: 44px; }
  .feature { padding: 100px 24px 110px; }
  .feature-phone::before { width: 580px; height: 580px; }
  .feature-phone::after  { width: 340px; height: 340px; }
  .display-2 br { display: none; }
  .subhead br  { display: none; }
  .plan-row { grid-template-columns: 1fr; }
  .plan-best { transform: none; }
  .plan-best:hover { transform: translateY(-3px); }
  .foot-inner { grid-template-columns: 1fr; text-align: center; }
  .foot-brand, .foot-meta { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .hero .display-1 { font-size: 60px; }
  .display-2 { font-size: 40px; }
  .subhead { font-size: 17px; }
  .hero { padding: 28px 18px 60px; }
  .phone, .phone-hero { --p-w: 290px; --p-h: 605px; }
  .feature { padding: 72px 18px 84px; }
  .feature-phone { margin-top: 44px; }
  .feature-phone::before { width: 460px; height: 460px; filter: blur(8px); }
  .feature-phone::after  { width: 260px; height: 260px; filter: blur(16px); }
  .cta-frame { padding: 64px 22px; border-radius: 28px; }
  .cta-form input { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-phone { opacity: 1; transform: none; transition: none; }
  .phone-hero { animation: none; }
  .phone:hover { transform: none; }
}


/* ============================================================================
   LIVE DEMOS — accurate replicas of current app UI
   ============================================================================ */

/* Demo phone = .phone bezel but inside is a live div, not an <img> */
.phone-demo:hover { transform: none; }
.phone-demo .bezel { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 0 5px #000, 0 0 0 1px rgba(0,0,0,0.5); }
.demo-screen {
  width: 100%;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* — Dynamic Island — */
.dyn-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 30px;
  background: #000;
  border-radius: 18px;
  z-index: 20;
  pointer-events: none;
  flex-shrink: 0;
}
.dyn-island-dark { background: rgba(0,0,0,0.60); }

/* — Status bar — */
.demo-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px 4px;
  font-size: 14px; font-weight: 600;
  color: #15151A;
  letter-spacing: -0.01em;
  z-index: 3;
  font-feature-settings: "tnum";
  flex-shrink: 0;
}
.demo-status-white { color: #fff; }
.demo-status-r { display: inline-flex; gap: 6px; align-items: center; }
.sb-bars, .sb-wifi, .sb-batt { display: inline-block; background: currentColor; }
.sb-bars {
  width: 17px; height: 11px;
  -webkit-mask: linear-gradient(to top, currentColor, currentColor) bottom/3px 100% no-repeat,
               linear-gradient(to top, currentColor, currentColor) 30% bottom/3px 70% no-repeat,
               linear-gradient(to top, currentColor, currentColor) 65% bottom/3px 50% no-repeat,
               linear-gradient(to top, currentColor, currentColor) top right/3px 30% no-repeat;
          mask: linear-gradient(to top, currentColor, currentColor) bottom/3px 100% no-repeat,
               linear-gradient(to top, currentColor, currentColor) 30% bottom/3px 70% no-repeat,
               linear-gradient(to top, currentColor, currentColor) 65% bottom/3px 50% no-repeat,
               linear-gradient(to top, currentColor, currentColor) top right/3px 30% no-repeat;
  background: currentColor;
}
.sb-wifi {
  width: 15px; height: 11px;
  -webkit-mask: radial-gradient(circle at 50% 100%, currentColor 1.5px, transparent 2px) 0 0/100% 100% no-repeat;
          mask: radial-gradient(circle at 50% 100%, currentColor 1.5px, transparent 2px) 0 0/100% 100% no-repeat;
}
.sb-batt {
  width: 24px; height: 11px;
  border: 1px solid currentColor; border-radius: 3px;
  position: relative; background: transparent;
}
.sb-batt::before {
  content: ""; position: absolute; inset: 1.5px; right: 4px;
  background: currentColor; border-radius: 1px;
}
.sb-batt::after {
  content: ""; position: absolute; right: -3.5px; top: 3.5px;
  width: 2px; height: 4px;
  background: currentColor; border-radius: 0 1px 1px 0;
}

/* — Screen backgrounds — */
.demo-tap-screen { background: #E8E8EF; }

/* — Today screen title — */
.demo-tap-title {
  font-size: 32px; font-weight: 800;
  letter-spacing: -0.025em;
  color: #15151A;
  padding: 2px 20px 14px;
  flex-shrink: 0;
}

/* — Progress card (new — matches app's TodayProgressCardView) — */
.demo-prog-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 20px 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.dpc-ring-wrap {
  position: relative;
  width: 76px; height: 76px;
  flex-shrink: 0;
}
.dpc-ring-svg { width: 100%; height: 100%; }
.dpc-ring-svg circle { transition: stroke-dashoffset .8s cubic-bezier(.4,0,.2,1), stroke .6s ease; }
.dpc-pct-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.dpc-pct {
  font-size: 15px; font-weight: 800;
  color: #15151A;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  transition: color .5s ease;
}
.dpc-pct-green { color: #34C759; }
.dpc-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dpc-chip {
  background: rgba(0,0,0,0.04);
  border-radius: 10px;
  padding: 6px 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  transition: background .4s ease;
}
.dpc-chip-green { background: rgba(52,199,89,0.12); }
.dpc-val {
  font-size: 18px; font-weight: 700;
  color: #15151A; letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}
.dpc-lab {
  font-size: 11px; font-weight: 500;
  color: #8E8E93;
  letter-spacing: -0.005em;
}

/* — Week tracker — */
.demo-week-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 0 20px 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.dwt-dot {
  aspect-ratio: 1;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 700;
  border-radius: 50%;
  color: #8E8E93;
  letter-spacing: 0;
}
.dwt-done   { background: #34C759; color: #fff; }
.dwt-today  { background: #007AFF; color: #fff; box-shadow: 0 0 0 2px rgba(0,122,255,0.25); }
.dwt-perfect { background: #34C759; color: #fff; box-shadow: 0 0 0 3px rgba(52,199,89,0.35); animation: ring-pulse 1.2s ease-out; }
.dwt-future { background: rgba(0,0,0,0.07); color: #B4B4BD; }

@keyframes ring-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,199,89,0.60); }
  60%  { box-shadow: 0 0 0 8px rgba(52,199,89,0.00); }
  100% { box-shadow: 0 0 0 3px rgba(52,199,89,0.35); }
}

/* — Section label — */
.demo-section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em;
  color: #8E8E93;
  padding: 4px 22px 8px;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* — Habit cards (matches HabitCardView exactly) — */
.demo-cards {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.d-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 12px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 2.5px solid var(--card-border-c, rgba(0,0,0,0.08));
  min-height: 68px;
  isolation: isolate;
}

/* Fill layer — sweeps left to right with curved right cap */
.d-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--card-from), var(--card-to));
  clip-path: inset(0 100% 0 0 round 12px 20px 20px 12px);
  transition: clip-path 0.5s cubic-bezier(.4,0,.2,1);
  z-index: 0;
  border-radius: 12px;
}
.d-card.is-complete::before {
  clip-path: inset(0 round 12px);
}
.d-card.is-half::before {
  clip-path: inset(0 50% 0 0 round 12px 20px 20px 12px);
}
.d-card.is-quarter::before {
  clip-path: inset(0 37.5% 0 0 round 12px 20px 20px 12px);
}

.d-card > * { position: relative; z-index: 1; }

/* Card color themes — exact app gradient values */
.d-green  { --card-from: #10B981; --card-to: #059669; --card-border-c: rgba(16,185,129,0.65); }
.d-pink   { --card-from: #EC4899; --card-to: #DB2777; --card-border-c: rgba(236,72,153,0.65); }
.d-indigo { --card-from: #6366F1; --card-to: #4F46E5; --card-border-c: rgba(99,102,241,0.65); }
.d-blue   { --card-from: #3B82F6; --card-to: #2563EB; --card-border-c: rgba(59,130,246,0.65); }
.d-amber  { --card-from: #F59E0B; --card-to: #D97706; --card-border-c: rgba(245,158,11,0.65); }
.d-red    { --card-from: #EF4444; --card-to: #DC2626; --card-border-c: rgba(239,68,68,0.65); }
.d-cyan   { --card-from: #06B6D4; --card-to: #0891B2; --card-border-c: rgba(6,182,212,0.65); }
.d-purple { --card-from: #8B5CF6; --card-to: #7C3AED; --card-border-c: rgba(139,92,246,0.65); }

/* Subtle background tint when empty (habit color shows through) */
.d-card::after {
  content: "";
  position: absolute; inset: 0;
  background: transparent;
  border-radius: 12px;
  z-index: 0;
  pointer-events: none;
}
.d-green::after  { background: rgba(16,185,129,0.07); }
.d-pink::after   { background: rgba(236,72,153,0.07); }
.d-indigo::after { background: rgba(99,102,241,0.07); }
.d-blue::after   { background: rgba(59,130,246,0.07); }
.d-amber::after  { background: rgba(245,158,11,0.07); }
.d-red::after    { background: rgba(239,68,68,0.07); }
.d-cyan::after   { background: rgba(6,182,212,0.07); }
.d-purple::after { background: rgba(139,92,246,0.07); }

/* — Icon tile (44×44, radius 12) — */
.d-icon-tile {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--card-from), var(--card-to));
  opacity: 0.65;
  flex-shrink: 0;
  transition: opacity 0.4s ease;
  position: relative; z-index: 1;
}
.is-complete .d-icon-tile { opacity: 1; }
.d-emoji {
  font-size: 22px;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
}

/* — Text — */
.d-meta { flex: 1; min-width: 0; }
.d-title {
  font-size: 16px; font-weight: 700;
  color: #15151A;
  letter-spacing: -0.012em;
  transition: color 0.4s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.d-sub {
  font-size: 12.5px;
  color: #8E8E93;
  margin-top: 1px;
  transition: color 0.4s;
}
.is-complete .d-title { color: #fff; }
.is-complete .d-sub   { color: rgba(255,255,255,0.88); }
.is-half .d-title, .is-quarter .d-title { color: #fff; }
.is-half .d-sub, .is-quarter .d-sub { color: rgba(255,255,255,0.80); }

/* — Streak chip — */
.d-streak {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px; font-weight: 700;
  color: #FF9500;
  background: rgba(255,149,0,0.12);
  padding: 4px 8px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .35s cubic-bezier(.34,1.56,.64,1), transform .4s cubic-bezier(.34,1.56,.64,1);
  font-feature-settings: "tnum";
}
.d-streak.is-visible { opacity: 1; transform: scale(1); }
.is-complete .d-streak {
  background: rgba(255,255,255,0.22);
  color: #fff;
  opacity: 1; transform: scale(1);
}
.d-flame-svg {
  width: 10px; height: 13px;
  display: inline-block;
  vertical-align: -1px;
  flex-shrink: 0;
}

/* — Action button — */
.d-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.07);
  flex-shrink: 0;
  position: relative;
  transition: background 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.is-complete .d-btn,
.d-btn-done {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 6px rgba(0,0,0,0.14);
}
.d-check {
  width: 13px; height: 8px;
  border-bottom: 2.5px solid var(--check-color, #15151A);
  border-left: 2.5px solid var(--check-color, #15151A);
  transform: rotate(-45deg) translate(-1px, -2px);
  opacity: 0;
  transition: opacity 0.25s 0.25s;
  border-radius: 1px;
}
.is-complete .d-check,
.d-btn-done .d-check { opacity: 1; }

.d-green.is-complete  { --check-color: #059669; }
.d-pink.is-complete   { --check-color: #DB2777; }
.d-indigo.is-complete { --check-color: #4F46E5; }
.d-blue.is-complete   { --check-color: #2563EB; }
.d-amber.is-complete  { --check-color: #D97706; }
.d-red.is-complete    { --check-color: #DC2626; }
.d-cyan.is-complete   { --check-color: #0891B2; }
.d-purple.is-complete { --check-color: #7C3AED; }
.d-btn-done .d-check  { --check-color: #059669; }

/* — Tap pulse — */
.d-pulse {
  position: absolute;
  right: 10px; top: 50%;
  width: 48px; height: 48px;
  margin-top: -24px;
  border-radius: 50%;
  border: 2px solid #007AFF;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.7);
  z-index: 4;
}
.d-pulse::before {
  content: "";
  position: absolute; inset: 8px;
  border-radius: 50%;
  background: rgba(0,122,255,0.30);
}
.d-pulse.is-pulsing { animation: pulse-anim .55s ease-out forwards; }
@keyframes pulse-anim {
  0%   { opacity: 0.95; transform: scale(0.7); }
  100% { opacity: 0;    transform: scale(1.7); }
}

/* — Tab bar — */
.demo-tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0 20px;
  background: rgba(248,248,250,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 0.5px solid rgba(0,0,0,0.10);
  flex-shrink: 0;
}
.dtb-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  color: #8E8E93;
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.01em;
}
.dtb-item svg { width: 22px; height: 22px; }
.dtb-active { color: #007AFF; }


/* ============================================================================
   PERFECT DAY SECTION
   ============================================================================ */
.demo-perfect-screen {
  background: #E8E8EF;
}

/* Perfect Day toast */
.perfect-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 20px 8px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(52,199,89,0.35);
  box-shadow: 0 4px 20px rgba(52,199,89,0.20);
  opacity: 0;
  transform: translateY(-12px) scale(0.95);
  transition: opacity .5s cubic-bezier(.34,1.56,.64,1), transform .5s cubic-bezier(.34,1.56,.64,1);
  flex-shrink: 0;
}
.perfect-toast.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.perfect-toast-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.perfect-toast-title {
  font-size: 14px; font-weight: 700;
  color: #15151A; letter-spacing: -0.01em;
}
.perfect-toast-sub {
  font-size: 11.5px; font-weight: 500;
  color: #8E8E93; letter-spacing: -0.005em;
  margin-top: 1px;
}

/* Confetti burst */
.confetti-burst {
  position: absolute;
  top: 38%; left: 50%;
  pointer-events: none;
  z-index: 30;
}
.conf {
  position: absolute;
  width: var(--sz, 7px); height: var(--sz, 7px);
  background: var(--c, #007AFF);
  border-radius: 2px;
  opacity: 0;
  transform: translate(0, 0) rotate(0deg);
}
.conf.is-burst {
  animation: conf-fly 1.1s cubic-bezier(.22,.61,.36,1) var(--d, 0s) forwards;
}
@keyframes conf-fly {
  0%   { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx,0), var(--ty,0)) rotate(var(--r,0)) scale(0.6); }
}


/* ============================================================================
   THEMES DEMO
   ============================================================================ */
.demo-themes-screen {
  position: relative;
  background: #1c1c1e;
}
.demo-wall {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #5BA4F0, #7B7FE0);
  transition: background 0.8s ease-in-out;
  z-index: 0;
}
.demo-wall[data-theme="2"] { background: linear-gradient(160deg, #FA6B66, #F59E52); }
.demo-wall[data-theme="3"] { background: linear-gradient(160deg, #5CD99E, #40B7BF); }
.demo-wall[data-theme="4"] { background: linear-gradient(160deg, #9D5BF5, #EB6BC7); }
.demo-wall[data-theme="5"] { background: linear-gradient(160deg, #F5923B, #F5CC3B); }
.demo-wall[data-theme="6"] { background: linear-gradient(160deg, #3BD4F5, #3B82F6); }

.demo-themes-screen > *:not(.demo-wall) { position: relative; z-index: 1; }

.demo-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 4px 16px 0;
}
.demo-tb-pill {
  width: 64px; height: 30px;
  background: rgba(255,255,255,0.20);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255,255,255,0.28);
  border-radius: 999px;
}
.demo-toolbar > .demo-tb-pill:last-child { justify-self: end; }
.demo-tb-title {
  font-size: 17px; font-weight: 600; color: #fff;
  text-align: center; letter-spacing: -0.01em;
}

.demo-progress {
  display: flex; align-items: center;
  gap: 18px;
  padding: 18px 20px 10px;
  color: #fff;
}
.demo-ring {
  position: relative;
  width: 84px; height: 84px; flex-shrink: 0;
}
.demo-ring svg { width: 100%; height: 100%; }
.demo-ring-pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700;
  font-feature-settings: "tnum"; color: #fff;
}
.demo-stats {
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.demo-stat {
  background: rgba(255,255,255,0.20);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 0.5px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  padding: 8px 14px;
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 700; font-size: 15px;
}
.ds-num { font-feature-settings: "tnum"; }

.demo-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px; padding: 4px 20px 12px;
}
.demo-wk-dot {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.30);
}
.demo-wk-done   { background: #fff; }
.demo-wk-today  { background: rgba(255,255,255,0.85); box-shadow: 0 0 0 2px rgba(255,255,255,0.30); }
.demo-wk-future { background: rgba(255,255,255,0.18); }

.demo-cards-themes { padding: 0 16px 10px; gap: 9px; }
.demo-cards-themes .d-card {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  min-height: 60px;
  padding: 9px 12px;
}


/* ============================================================================
   WIDGETS DEMO
   ============================================================================ */
.demo-widgets-screen {
  position: relative; background: #1c1c1e;
}
.demo-wall-sunset {
  background: linear-gradient(180deg,
    rgb(82, 41, 140) 0%,
    rgb(219, 81, 140) 50%,
    rgb(250, 158, 82) 100%);
}
.demo-sun-glow {
  position: absolute;
  top: 4%; right: -6%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,219,140,0.70) 0%, rgba(255,219,140,0) 65%);
  mix-blend-mode: plus-lighter;
  pointer-events: none; z-index: 1;
}
.demo-widgets-screen > *:not(.demo-wall):not(.demo-sun-glow) { position: relative; z-index: 2; }

.demo-widget-stack {
  padding: 24px 16px 0;
  display: flex; flex-direction: column; gap: 14px; flex: 1;
}
.dw {
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(0,0,0,0.28), 0 4px 12px rgba(0,0,0,0.16);
  opacity: 0;
  transform: scale(0.85) translateY(10px);
  transition: opacity .45s ease, transform .55s cubic-bezier(.34,1.56,.64,1);
}
.dw.is-in { opacity: 1; transform: scale(1) translateY(0); }

.dw-medium { padding: 14px 16px; }
.dw-med-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 9px;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
  margin-bottom: 9px;
}
.dw-med-date { font-size: 11px; font-weight: 600; color: #6B6B73; }
.dw-med-days {
  display: flex; gap: 6px;
  font-size: 10px; font-weight: 600; color: #6B6B73;
  font-feature-settings: "tnum";
}
.dw-med-days span { width: 12px; text-align: center; }
.dw-med-days .now { color: #15151A; }

.dw-med-row {
  display: flex; align-items: center; gap: 10px; padding: 5px 0;
}
.dw-row-icon {
  width: 22px; height: 22px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
.dw-row-name {
  font-size: 12px; font-weight: 600; color: #15151A;
  flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dw-row-dots { display: flex; gap: 6px; }
.dw-row-dots .d {
  width: 13px; height: 13px; border-radius: 50%; display: inline-block;
}
.dw-row-dots .d.done {
  background: var(--row-color, #007AFF); position: relative;
}
.dw-row-dots .d.done::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 6px; height: 4px;
  border-bottom: 1.4px solid #fff; border-left: 1.4px solid #fff;
  transform: rotate(-45deg) translate(0, -1px);
}
.dw-row-dots .d.miss { border: 1.3px solid var(--row-color, #007AFF); }
.dw-row-dots .d.future { background: rgba(0,0,0,0.10); }

.dw-blue   { background: rgba(0,122,255,0.14); color: #007AFF; --row-color: #007AFF; }
.dw-green  { background: rgba(52,199,89,0.14); color: #34C759; --row-color: #34C759; }
.dw-orange { background: rgba(255,149,0,0.14); color: #FF9500; --row-color: #FF9500; }
.dw-red    { background: rgba(239,68,68,0.14); color: #EF4444; --row-color: #EF4444; }

.dw-small-row { display: flex; gap: 14px; }
.dw-small {
  flex: 1; aspect-ratio: 1; padding: 12px;
  display: flex; align-items: center; justify-content: center;
}
.dw-ring-svg { position: relative; width: 78%; aspect-ratio: 1; }
.dw-ring-svg svg { width: 100%; height: 100%; }
.dw-ring-pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #15151A; font-feature-settings: "tnum";
}
.dw-grid-cells {
  width: 100%; height: 100%;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; padding: 2px;
}
.dw-cell {
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  border: 2.5px solid var(--row-color, #007AFF);
  opacity: 0.25; background: #fff;
}
.dw-cell.lit { opacity: 1; }

.demo-dock {
  margin: auto 22px 18px;
  background: rgba(255,255,255,0.20);
  backdrop-filter: blur(28px) saturate(140%); -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 0.6px solid rgba(255,255,255,0.30);
  border-radius: 22px; padding: 8px 10px;
  display: flex; justify-content: space-around; align-items: center; gap: 8px;
}
.dock-app {
  width: 36px; height: 36px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.dock-phone  { background: linear-gradient(180deg, #66dc76, #14a833); color: #fff; }
.dock-msg    { background: linear-gradient(180deg, #6ef051, #33c733); color: #fff; }
.dock-photos { background: #fff; }
.dock-habits svg { width: 36px; height: 36px; border-radius: 9px; display: block; }


/* ============================================================================
   GROUPS DEMO
   ============================================================================ */
.demo-groups-stage { padding: 0 20px; }
.dg-container {
  position: relative; border-radius: 22px;
  background: transparent; border: 0.5px solid transparent; padding: 0;
  transition:
    padding .42s cubic-bezier(.4,0,.2,1),
    background .42s ease, border-color .42s ease, box-shadow .42s ease;
}
.dg-container.is-expanded,
.dg-container.is-collapsed {
  background: #FFFFFF; border-color: rgba(20,20,30,0.08);
  padding: 6px 8px 10px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03), 0 10px 28px rgba(20,20,30,0.07);
}
.dg-header {
  display: flex; align-items: center; gap: 12px; padding: 10px 8px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .42s cubic-bezier(.4,0,.2,1), opacity .3s ease, padding .3s ease;
}
.dg-container.is-expanded .dg-header,
.dg-container.is-collapsed .dg-header { max-height: 56px; opacity: 1; }
.dg-icon {
  font-size: 20px; width: 34px; height: 34px;
  background: rgba(255,184,28,0.18); border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dg-title {
  font-size: 16px; font-weight: 700; color: #15151A; flex: 1; letter-spacing: -0.012em;
}
.dg-prog {
  position: relative; width: 36px; height: 36px; flex-shrink: 0;
}
.dg-prog svg { width: 100%; height: 100%; }
.dg-chev {
  position: absolute; inset: 0; margin: auto;
  width: 11px !important; height: auto !important;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.dg-container.is-collapsed .dg-chev { transform: rotate(180deg); }
.dg-pulse { right: 2px; top: 50%; }
.dg-body {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 320px; opacity: 1; overflow: hidden;
  transition:
    max-height .42s cubic-bezier(.4,0,.2,1),
    opacity .32s ease, gap .42s cubic-bezier(.4,0,.2,1);
}
.dg-container.is-expanded .dg-body,
.dg-container.is-collapsed .dg-body { gap: 8px; }
.dg-container.is-collapsed .dg-body { max-height: 0; opacity: 0; }


/* ============================================================================
   ANALYTICS DEMO
   ============================================================================ */
.da-tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 20px 14px;
}
.da-tile {
  background: #fff; border: 0.5px solid rgba(20,20,30,0.07); border-radius: 14px;
  padding: 11px 13px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03), 0 4px 10px rgba(20,20,30,0.04);
}
.da-tile-lab { font-size: 10.5px; font-weight: 600; color: #7A7A85; letter-spacing: -0.005em; margin-bottom: 4px; }
.da-tile-val {
  font-size: 22px; font-weight: 700; color: #15151A; letter-spacing: -0.025em;
  line-height: 1; font-feature-settings: "tnum";
}
.da-tile-name { font-size: 16px; letter-spacing: -0.012em; }
.da-unit { font-size: 12px; color: #7A7A85; margin-left: 2px; font-weight: 600; }

.da-tabs {
  position: relative; margin: 0 20px 14px;
  background: rgba(118,118,128,0.12); border-radius: 11px; padding: 3px;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
}
.da-tab {
  position: relative; z-index: 2; padding: 7px 0; text-align: center;
  font-size: 13px; font-weight: 600; color: #44444E; border-radius: 9px;
  letter-spacing: -0.01em; transition: color .25s ease;
}
.da-tab.is-active { color: #15151A; }
.da-tab-pill {
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc((100% - 6px) / 3);
  background: #fff; border-radius: 9px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03), 0 3px 8px rgba(20,20,30,0.10);
  transition: transform .35s cubic-bezier(.4,0,.2,1); z-index: 1;
}
.da-tab-pill[data-pos="1"] { transform: translateX(100%); }
.da-tab-pill[data-pos="2"] { transform: translateX(200%); }

.da-content { position: relative; padding: 0 20px 14px; min-height: 220px; }
.da-pane {
  position: absolute; top: 0; left: 20px; right: 20px; bottom: 14px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease; pointer-events: none;
}
.da-pane.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.da-pane-head {
  display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px;
}
.da-chev {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #15151A; font-size: 18px; line-height: 1;
}
.da-chev-dim { color: rgba(20,20,30,0.30); }
.da-pane-title { font-size: 14.5px; font-weight: 700; color: #15151A; letter-spacing: -0.01em; }

.da-cal-days {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  font-size: 10px; font-weight: 600; color: rgba(20,20,30,0.50);
  text-align: center; margin-bottom: 6px;
}
.da-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-empty { aspect-ratio: 1; }
.cal-day {
  aspect-ratio: 1; display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; border-radius: 50%; color: #15151A; font-feature-settings: "tnum";
}
.cal-day.done   { background: #34C759; color: #fff; }
.cal-day.part   { background: #007AFF; color: #fff; }
.cal-day.past   { box-shadow: inset 0 0 0 1px rgba(20,20,30,0.18); }
.cal-day.today  { box-shadow: inset 0 0 0 1.5px #15151A; font-weight: 700; }
.cal-day.future { color: rgba(20,20,30,0.35); }

.da-week-summary {
  display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 10px;
}
.da-week-num {
  font-size: 26px; font-weight: 700; letter-spacing: -0.03em;
  color: #15151A; font-feature-settings: "tnum"; line-height: 1;
}
.da-week-pct { font-size: 16px; font-weight: 600; color: rgba(20,20,30,0.55); margin-left: 2px; }
.da-week-lab { font-size: 11px; color: rgba(20,20,30,0.55); }

.da-bars {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  align-items: end; padding: 0 2px; height: 110px;
}
.da-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.da-bar-pct {
  font-size: 9px; font-weight: 700; color: rgba(20,20,30,0.65); font-feature-settings: "tnum";
  min-height: 11px; opacity: 0; transform: translateY(4px);
  transition: opacity .5s .25s ease, transform .5s .25s ease;
}
.da-bar-track {
  width: 100%; height: 76px;
  background: rgba(118,118,128,0.15); border-radius: 5px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.da-bar-track.is-future { background: rgba(118,118,128,0.07); }
.da-bar-fill {
  width: 100%; height: var(--h, 0%);
  background: #007AFF; border-radius: 5px;
  transform-origin: bottom; transform: scaleY(0);
  transition: transform .55s cubic-bezier(.34,1.56,.64,1);
}
.da-bar-fill.is-full { background: #34C759; }
.da-bar-day { font-size: 10.5px; font-weight: 600; color: rgba(20,20,30,0.55); }
.da-bar-day.is-today  { color: #15151A; font-weight: 700; }
.da-bar-day.is-future { color: rgba(20,20,30,0.40); }
.da-week.is-active .da-bar-fill { transform: scaleY(1); }
.da-week.is-active .da-bar-pct  { opacity: 1; transform: none; }

.da-day-ring { position: relative; width: 110px; height: 110px; margin: 0 auto 14px; }
.da-day-ring svg { width: 100%; height: 100%; }
.da-day-pct {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #15151A; letter-spacing: -0.025em;
  font-feature-settings: "tnum"; line-height: 1;
}
.da-day-pct span { font-size: 13px; color: rgba(20,20,30,0.50); }
.da-day-lab {
  position: absolute; bottom: 12px; left: 0; right: 0;
  text-align: center; font-size: 9px; font-weight: 700;
  color: rgba(20,20,30,0.55); letter-spacing: 0.06em; text-transform: uppercase;
}
.dr-seg { stroke-dasharray: 0 251.33; transition: stroke-dasharray .6s cubic-bezier(.4,0,.2,1); }
.da-day.is-active .dr-seg-1 { stroke-dasharray: 83.78 251.33; transition-delay: .15s; }
.da-day.is-active .dr-seg-2 { stroke-dasharray: 83.78 251.33; transition-delay: .55s; }
.da-day.is-active .dr-seg-3 { stroke-dasharray: 83.78 251.33; transition-delay: .95s; }
.da-day-list { display: flex; flex-direction: column; gap: 0; }
.da-day-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 0.5px solid rgba(20,20,30,0.08); font-size: 13px;
}
.da-day-row:last-child { border-bottom: none; }
.da-day-ico {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--c, #007AFF); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
.da-day-name { flex: 1; color: rgba(20,20,30,0.55); text-decoration: line-through; font-weight: 500; }
.da-day-tick { color: #34C759; font-size: 15px; font-weight: 700; }


/* ============================================================================
   REMINDERS / LOCK SCREEN DEMO
   ============================================================================ */
.demo-lock-screen { position: relative; background: #0E0E12; }
.lock-wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255,159,10,0.40) 0%, transparent 70%),
    radial-gradient(80% 50% at 50% 100%, rgba(94,92,230,0.55) 0%, transparent 75%),
    linear-gradient(180deg, rgb(35, 24, 70) 0%, rgb(60, 30, 92) 35%, rgb(120, 45, 110) 70%, rgb(180, 80, 100) 100%);
  z-index: 0;
}
.demo-lock-screen > *:not(.lock-wall) { position: relative; z-index: 1; }
.lock-lock { width: 30px; margin: 8px auto 0; display: block; text-align: center; }
.lock-lock svg { width: 16px; height: 18px; }
.lock-time-block { text-align: center; color: #fff; margin-top: 6px; padding: 6px 24px 14px; }
.lock-time { font-size: 78px; font-weight: 200; letter-spacing: -0.04em; line-height: 0.95; font-feature-settings: "tnum"; }
.lock-date { font-size: 14px; font-weight: 600; margin-top: 2px; opacity: 0.92; letter-spacing: -0.005em; }
.lock-notif-stack { display: flex; flex-direction: column; gap: 7px; padding: 6px 12px 0; }
.lock-notif {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 0.5px solid rgba(255,255,255,0.16); color: #fff;
  opacity: 0; transform: translateY(-14px) scale(0.94);
  transition: opacity .5s ease, transform .55s cubic-bezier(.34,1.56,.64,1);
}
.lock-notif.is-in { opacity: 1; transform: translateY(0) scale(1); }
.lock-notif-alert { background: rgba(255,159,10,0.28); border-color: rgba(255,200,90,0.40); }
.ln-icon { width: 28px; height: 28px; flex-shrink: 0; border-radius: 6px; overflow: hidden; }
.ln-icon svg { width: 100%; height: 100%; display: block; }
.ln-body { flex: 1; min-width: 0; }
.ln-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,0.80);
  letter-spacing: 0.04em; margin-bottom: 2px;
}
.ln-app { letter-spacing: 0.05em; }
.ln-time { font-weight: 500; letter-spacing: -0.005em; font-feature-settings: "tnum"; opacity: 0.85; }
.ln-title { font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-text { font-size: 12.5px; color: rgba(255,255,255,0.88); line-height: 1.35; letter-spacing: -0.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lock-bottom { margin: auto 26px 22px; display: flex; justify-content: space-between; align-items: center; }
.lock-tool {
  width: 42px; height: 42px;
  background: rgba(0,0,0,0.30); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}
.lock-tool svg { width: 16px; height: 16px; }
.lock-grip { width: 110px; height: 5px; border-radius: 5px; background: #fff; opacity: 0.95; }


/* ============================================================================
   HERO DEMO SCREEN
   ============================================================================ */
.demo-hero-screen {
  background: #E8E8EF;
}
.demo-hero-screen .demo-cards { gap: 9px; }
.demo-hero-screen .d-card { min-height: 60px; padding: 8px 11px; }
.demo-hero-screen .d-icon-tile { width: 38px; height: 38px; border-radius: 10px; }
.demo-hero-screen .d-emoji { font-size: 19px; }
.demo-hero-screen .d-title { font-size: 14.5px; }
.demo-hero-screen .d-sub   { font-size: 11.5px; }
.demo-hero-screen .d-btn   { width: 32px; height: 32px; }
.demo-hero-screen .d-check { width: 11px; height: 7px; border-width: 2px; }
.demo-hero-screen .demo-prog-card { padding: 12px 14px; margin-bottom: 10px; }
.demo-hero-screen .dpc-ring-wrap { width: 66px; height: 66px; }
.demo-hero-screen .dpc-pct { font-size: 13px; }
.demo-hero-screen .dpc-val { font-size: 15px; }
.demo-hero-screen .dpc-lab { font-size: 10px; }
.demo-hero-screen .dpc-chip { padding: 5px 9px; }
.demo-hero-screen .demo-week-track { margin-bottom: 8px; }
.demo-hero-screen .demo-section-label { padding: 2px 22px 6px; }
.demo-hero-screen .demo-tabbar { padding: 8px 0 14px; }
.demo-hero-screen .dtb-item { font-size: 8.5px; }
.demo-hero-screen .dtb-item svg { width: 18px; height: 18px; }
.demo-hero-screen .d-streak { font-size: 11px; padding: 3px 6px; }
.demo-hero-screen .d-flame-svg { width: 8px; height: 10px; }


/* ============================================================================
   DEMO RESPONSIVE
   ============================================================================ */
@media (max-width: 560px) {
  .demo-tap-title { font-size: 26px; }
  .demo-prog-card { padding: 10px 12px; margin: 0 14px 10px; }
  .dpc-ring-wrap { width: 64px; height: 64px; }
  .demo-week-track { margin: 0 14px 8px; }
  .demo-cards { padding: 0 14px; }
  .demo-cards-themes { padding: 0 12px 10px; }
  .demo-groups-stage { padding: 0 14px; }
  .demo-widget-stack { padding: 20px 12px 0; gap: 12px; }
  .demo-dock { margin: auto 16px 14px; padding: 6px 8px; }
  .da-tiles, .da-tabs, .da-content { padding-left: 14px; padding-right: 14px; }
  .da-content { padding-bottom: 10px; }
  .da-pane { left: 14px; right: 14px; bottom: 10px; }
  .da-bars { height: 96px; }
  .lock-time { font-size: 64px; }
  .lock-notif-stack { padding: 4px 10px 0; }
  .ln-title, .ln-text { font-size: 12px; }
  .d-card { min-height: 60px; }
  .d-icon-tile { width: 38px; height: 38px; border-radius: 10px; }
  .d-emoji { font-size: 19px; }
  .d-btn { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-phone { opacity: 1; transform: none; transition: none; }
  .phone-hero { animation: none; }
  .phone:hover { transform: none; }
  .d-card::before { transition: none; }
  .dw { transition: none; opacity: 1; transform: none; }
  .demo-wall { transition: none; }
  .d-pulse.is-pulsing { animation: none; opacity: 0; }
  .dg-container, .dg-body, .dg-header { transition: none; }
  .da-pane, .da-tab-pill, .da-bar-fill, .da-bar-pct, .dr-seg { transition: none; }
  .lock-notif { transition: none; opacity: 1; transform: none; }
  .pill-grad::before { transition: none; }
  .perfect-toast { transition: none; opacity: 1; transform: none; }
  .conf.is-burst { animation: none; opacity: 0; }
  .dpc-ring-svg circle { transition: none; }
}


/* ============================================================================
   A11Y UTILITIES
   ============================================================================ */

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

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 1000;
  background: #007AFF; color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus-visible {
  top: 12px;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Universal visible focus ring for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #007AFF;
  outline-offset: 3px;
  border-radius: 6px;
}


/* ============================================================================
   HERO EYEBROW — launch badge with pulsing dot
   ============================================================================ */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  background: rgba(0, 122, 255, 0.10);
  color: #0062CC;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
  border: 1px solid rgba(0, 122, 255, 0.20);
}
.hero-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #007AFF;
  box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.55);
  animation: heroPulse 2.0s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes heroPulse {
  0%   { box-shadow: 0 0 0 0   rgba(0, 122, 255, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(0, 122, 255, 0); }
  100% { box-shadow: 0 0 0 0   rgba(0, 122, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pulse { animation: none; }
}


/* ============================================================================
   MOBILE NAV — hamburger + slide-down sheet
   ============================================================================ */

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 10px;
  transition: background .15s;
}
.nav-toggle:hover { background: rgba(0,0,0,0.04); }
.nav-toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink-1);
  border-radius: 2px;
  transition: transform .25s ease, opacity .15s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px 22px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  display: block;
  padding: 14px 12px;
  color: var(--ink-1);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  transition: background .15s;
}
.mobile-nav a:hover,
.mobile-nav a:active { background: rgba(0,0,0,0.04); }
.mobile-nav .mobile-cta {
  margin-top: 10px;
  background: var(--ink-1);
  color: #fff;
  text-align: center;
  font-weight: 600;
}
.mobile-nav .mobile-cta:hover {
  background: #000;
}

@media (max-width: 980px) {
  .nav-toggle  { display: inline-flex; }
  .link-cta    { display: none; }
}


/* ============================================================================
   PRICING — CTAs on each card + comparison matrix
   ============================================================================ */

.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, background .15s, color .15s;
  white-space: nowrap;
}
.plan-cta-primary {
  background: linear-gradient(135deg, #007AFF, #5AC8FA);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 122, 255, 0.35);
}
.plan-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 122, 255, 0.45);
}
.plan-cta-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.plan-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.30);
}

.plan-extra {
  margin: 36px auto 0;
  max-width: 540px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}
.plan-extra strong {
  color: #fff;
  font-weight: 600;
}

.plan-matrix {
  margin: 56px auto 0;
  max-width: 680px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  overflow: hidden;
}
.pm-head, .pm-row, .pm-cell {
  padding: 16px 20px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.pm-head {
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  border-top: 0;
}
.pm-head-best {
  color: #5AC8FA;
}
.pm-row {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}
.pm-cell {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.pm-cell-best {
  color: #fff;
  font-weight: 600;
  background: rgba(0, 122, 255, 0.08);
}

@media (max-width: 560px) {
  .plan-matrix {
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
  }
  .pm-head, .pm-row, .pm-cell {
    padding: 13px 12px;
    font-size: 13px;
  }
}


/* ============================================================================
   FAQ
   ============================================================================ */

.feature-faq {
  padding-top: 110px;
  padding-bottom: 110px;
}
.faq-list {
  margin: 44px auto 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 0 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] {
  border-color: rgba(0, 122, 255, 0.20);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-1);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary > span:first-child { flex: 1; }
.faq-plus {
  position: relative;
  width: 18px; height: 18px;
  flex: 0 0 18px;
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  background: var(--ink-2);
  border-radius: 2px;
  transition: transform .25s ease, background .15s;
}
.faq-plus::before {
  left: 0; right: 0; top: 50%;
  height: 2px;
  transform: translateY(-50%);
}
.faq-plus::after {
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  transform: translateX(-50%);
}
.faq-item[open] .faq-plus::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}
.faq-item[open] .faq-plus::before {
  background: #007AFF;
}
.faq-item p {
  margin: 0 0 22px;
  padding-right: 36px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}


/* ============================================================================
   CTA — confirmation status + fineprint
   ============================================================================ */

.cta-status {
  min-height: 22px;
  margin: 14px auto 0;
  text-align: center;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}
.cta-status.is-error { color: #FFB4B4; }
.cta-fineprint {
  margin: 14px auto 0;
  max-width: 460px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

