/* ============================================================================
   Habits — landing page (Grit-inspired light theme)
   - Cream/off-white page background, dark text
   - Each feature section has a tinted background + big colored glow-orb
     behind the phone, so the page is visibly colorful, not subtle-on-black
   - Short Grit-style titles (1–3 words)
   - Animated scroll-reveal phones, subtle parallax on hero
   ============================================================================ */

:root {
  /* iOS system blue (kept for the brand) */
  --blue:        #0A84FF;
  --blue-2:      #2E9CFF;
  --blue-soft:   #2D8CFF;

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

  /* Ink (text) */
  --ink-1:       #15151A;
  --ink-2:       #44444E;
  --ink-3:       #7A7A85;
  --ink-4:       #B4B4BD;

  /* Dark accent (used by Pricing/CTA sections that flip to dark) */
  --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(10,132,255,0.20); color: var(--ink-1); }


/* ============================================================================
   NAV — light, sticky, hairline border
   ============================================================================ */
.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: 24px; height: 24px; }
.brand-mark svg { width: 100%; height: 100%; display: block; 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: #0A84FF; --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(10,132,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); }


/* ============================================================================
   PHONE BEZEL (no CSS notch — screenshots include the Dynamic Island)
   ============================================================================ */
.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 30px 60px rgba(20,20,30,0.18))
    drop-shadow(0 8px 20px rgba(20,20,30,0.08));
}
.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: #0d0d0e;
  border-radius: 54px;
  padding: 9px;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 0 0 0 5px #000;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 44px;
  display: block;
  object-fit: cover;
  object-position: top center;
  background: #000;
}


/* ============================================================================
   HERO — big bold short headline + hero phone with parallax tilt
   ============================================================================ */
.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(10,132,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; }

/* Subtle floating animation on the hero phone */
@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;
}
/* JS parallax tilt rides on the inner element */
.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 — three big-number cells under the hero
   ============================================================================ */
.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  (Grit-style: centered single column, BIG colored glow
   orb behind the phone for visible color)
   ============================================================================ */
.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; }

/* Section background tint (the soft pastel page color) */
.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: 720px; height: 720px;
  top: 50%; left: 50%;
  transform: translate(-50%, -45%);
  background: radial-gradient(closest-side, var(--sec-orb, transparent), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.95;
}

/* Per-section theme variables (page tint + orb color) */
.feature[data-theme="white"]    { --sec-bg: #FFFFFF;                       --sec-orb: rgba(10,132,255,0.18);  --kicker-color: var(--blue); }
.feature[data-theme="peach"]    { --sec-bg: linear-gradient(180deg, #FFF4EA 0%, #FFEEDC 100%); --sec-orb: rgba(255,159,10,0.40);  --kicker-color: #C75800; }
.feature[data-theme="lavender"] { --sec-bg: linear-gradient(180deg, #F5EDFF 0%, #EFE4FF 100%); --sec-orb: rgba(191,90,242,0.38);  --kicker-color: #7B2FB8; }
.feature[data-theme="mint"]     { --sec-bg: linear-gradient(180deg, #E8FBEE 0%, #DAF6E3 100%); --sec-orb: rgba(48,209,88,0.40);   --kicker-color: #1F8A3D; }
.feature[data-theme="rose"]     { --sec-bg: linear-gradient(180deg, #FFE9F0 0%, #FFD9E5 100%); --sec-orb: rgba(255,55,95,0.36);   --kicker-color: #C72A5A; }
.feature[data-theme="sky"]      { --sec-bg: linear-gradient(180deg, #E2F4FB 0%, #D0EDF8 100%); --sec-orb: rgba(100,210,255,0.50); --kicker-color: #0C7CB0; }
.feature[data-theme="cream"]    { --sec-bg: linear-gradient(180deg, #FFF8DE 0%, #FFF2C6 100%); --sec-orb: rgba(255,196,40,0.45);  --kicker-color: #A07900; }
.feature[data-theme="lilac"]    { --sec-bg: linear-gradient(180deg, #EBEBFE 0%, #DEDDFC 100%); --sec-orb: rgba(94,92,230,0.40);   --kicker-color: #3B39B8; }
.feature[data-theme="jade"]     { --sec-bg: linear-gradient(180deg, #E5F7EE 0%, #D6F2E1 100%); --sec-orb: rgba(102,212,178,0.50); --kicker-color: #1F8A60; }
.feature[data-theme="dark"]     { --sec-bg: var(--dark-bg);                --sec-orb: rgba(255,170,10,0.42);  --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); }


/* ============================================================================
   APPEARANCE — split background (half light / half dark)
   ============================================================================ */
.feature[data-theme="split"] {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 50%, #0E0E12 50%, #0E0E12 100%);
}
.feature[data-theme="split"]::before { display: none; }
.feature[data-theme="split"] .display-2 { color: var(--ink-1); }
.feature[data-theme="split"] .lede      { color: var(--ink-2); }
.feature[data-theme="split"] .kicker    { color: var(--blue); }
.feature[data-theme="split"] .feature-phone-pair .phone:nth-child(1) { transform: translateY(8px); }
.feature[data-theme="split"] .feature-phone-pair .phone:nth-child(2) { transform: translateY(-8px); }


/* ============================================================================
   PRIVACY — text-only with chip row
   ============================================================================ */
.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); }

.ach-chips { margin-top: 6px; }
.ach-chip {
  background: rgba(94,92,230,0.10);
  border-color: rgba(94,92,230,0.32);
  color: #4441C2;
}
.ach-chip.ach-secret {
  background: rgba(191,90,242,0.10);
  border-color: rgba(191,90,242,0.32);
  color: #7B2FB8;
  font-style: italic;
}


/* ============================================================================
   PRICING — dark section with bright gold plan card highlight
   ============================================================================ */
.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; }
.legal-row {
  font-size: 12px; color: rgba(255,255,255,0.5);
  line-height: 1.55; margin: 30px auto 0; max-width: 620px;
}


/* ============================================================================
   CTA — final dark block with vivid blue gradient
   ============================================================================ */
.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(10,132,255,0.55), transparent 75%),
    linear-gradient(135deg, #0A84FF 0%, #5E5CE6 100%);
  color: #fff;
  border-radius: 44px;
  padding: 100px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(10,132,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 ANIMATION (more pronounced — phones slide + scale)
   ============================================================================ */
.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: 540px; height: 540px; }
  .display-2 br { display: none; }
  .subhead br  { display: none; }

  .feature[data-theme="split"] {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 60%, #0E0E12 60%, #0E0E12 100%);
  }

  .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: 440px; height: 440px; filter: blur(6px); }
  .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; }
}
