@font-face {
  font-family: "HabitCheer Display";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "HabitCheer Text";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #351b31;
  --ink-deep: #10100f;
  --plum: #642f59;
  --coral: #ff5c67;
  --rose: #f4457a;
  --mango: #ffcf3d;
  --peach: #ffe2c9;
  --canvas: #fff5ec;
  --cream: #fffdfa;
  --mint: #39c98a;
  --teal: #2bb8b0;
  --line: rgba(53, 27, 49, 0.14);
  --shadow: 0 24px 60px rgba(100, 47, 89, 0.12);
  --display: "HabitCheer Display", "Avenir Next", sans-serif;
  --text: "HabitCheer Text", "Helvetica Neue", sans-serif;
  --page: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--plum); text-underline-offset: 0.18em; }
a:hover { color: #4d2145; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  color: var(--cream);
  background: var(--ink-deep);
  border-radius: 10px;
}

.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 245, 236, 0.96);
}

.nav-shell {
  width: var(--page);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  padding: 7px;
  color: var(--cream);
  background: var(--ink-deep);
  border-radius: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 700;
}

.desktop-nav a {
  color: var(--ink);
  text-decoration: none;
}

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

.nav-support {
  padding: 10px 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.mobile-nav { display: none; }

.page-shell { width: var(--page); margin: 0 auto; }

.hero {
  min-height: 720px;
  padding: 86px 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  align-items: center;
  gap: clamp(42px, 6vw, 92px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--rose);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--ink-deep);
  font-size: clamp(54px, 7vw, 92px);
  font-weight: 800;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
}

h3 { margin-bottom: 10px; font-size: 25px; font-weight: 750; }

.hero-copy {
  max-width: 620px;
  margin: 0 0 30px;
  color: #624e5f;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.55;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center-actions { justify-content: center; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink-deep); background: var(--mango); }
.button-primary:hover { color: var(--ink-deep); background: #ffd95f; }
.button-secondary { color: var(--ink); border-color: var(--line); background: var(--cream); }

.hero-note { margin: 18px 0 0; color: #776c74; font-size: 14px; }

.phone-stage {
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: center;
}

.phone-stage::before {
  content: "";
  position: absolute;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  background: var(--peach);
}

.phone-stage::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: 64px;
  width: 150px;
  height: 150px;
  border-radius: 42px;
  background: var(--mango);
  transform: rotate(11deg);
}

.phone {
  position: relative;
  z-index: 2;
  width: min(350px, 86vw);
  padding: 13px;
  color: var(--ink);
  background: var(--ink-deep);
  border-radius: 48px;
  box-shadow: 0 30px 70px rgba(16, 16, 15, 0.26);
  transform: rotate(2deg);
}

.phone-screen {
  min-height: 570px;
  padding: 30px 18px 24px;
  background: var(--canvas);
  border-radius: 37px;
  overflow: hidden;
}

.phone-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; }
.phone-label { margin: 28px 0 5px; color: var(--rose); font-size: 10px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.phone-title { margin: 0 0 18px; font-family: var(--display); font-size: 29px; font-weight: 800; line-height: 1.1; }
.phone-pulse { padding: 22px; color: var(--cream); background: var(--plum); border-radius: 25px; }
.phone-pulse small { display: block; color: #f5cfe7; font-weight: 700; }
.phone-points { display: block; margin: 6px 0; font-family: var(--display); font-size: 49px; font-weight: 800; line-height: 1; }
.phone-progress { height: 7px; margin-top: 18px; border-radius: 99px; background: rgba(255,255,255,.2); overflow: hidden; }
.phone-progress::before { content: ""; display: block; width: 72%; height: 100%; background: var(--mango); }
.phone-section { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 2px 9px; font-size: 12px; }
.phone-section strong { font-family: var(--display); font-size: 16px; }
.phone-card { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; margin-top: 9px; padding: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; }
.phone-card-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink-deep); background: var(--peach); border-radius: 12px; font-weight: 900; }
.phone-card strong { display: block; font-size: 12px; }
.phone-card small { display: block; color: #82767e; font-size: 9px; }
.phone-card .points { color: var(--rose); font-size: 11px; font-weight: 800; }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--cream); }
.trust-grid { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { min-height: 128px; padding: 28px 24px; border-right: 1px solid var(--line); }
.trust-item:first-child { border-left: 1px solid var(--line); }
.trust-item b { display: block; color: var(--ink-deep); font-family: var(--display); font-size: 17px; }
.trust-item span { color: #756a72; font-size: 13px; }

.story { padding: 120px 0; }
.story-row { display: grid; grid-template-columns: 0.92fr 1.08fr; align-items: center; gap: clamp(50px, 9vw, 130px); margin-bottom: 150px; }
.story-row:last-child { margin-bottom: 0; }
.story-row.reverse { grid-template-columns: 1.08fr 0.92fr; }
.story-row.reverse .story-copy { order: 2; }
.story-copy p { max-width: 540px; color: #665661; font-size: 19px; }
.story-list { padding: 0; margin: 26px 0 0; list-style: none; }
.story-list li { position: relative; margin: 12px 0; padding-left: 29px; color: #56444f; }
.story-list li::before { content: ""; position: absolute; top: .62em; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); box-shadow: inset 0 0 0 3px var(--cream); outline: 1px solid var(--mint); }

.product-panel { position: relative; min-height: 460px; padding: 34px; background: var(--cream); border: 1px solid var(--line); border-radius: 42px; box-shadow: var(--shadow); }
.product-panel.coral { color: var(--cream); background: var(--coral); border: 0; }
.product-panel.plum { color: var(--cream); background: var(--plum); border: 0; }
.panel-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.panel-title { margin: 12px 0 26px; font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1.14; }
.routine-line { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; margin-top: 12px; padding: 16px; color: var(--ink); background: var(--cream); border-radius: 19px; }
.routine-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--plum); background: var(--peach); border-radius: 14px; font-weight: 900; }
.routine-line strong { display: block; font-family: var(--display); }
.routine-line small { display: block; color: #82767e; }
.status { padding: 5px 9px; color: #13573e; background: #c9f4e1; border-radius: 99px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.proposal { margin-top: 18px; padding: 18px; color: var(--ink); background: var(--cream); border-radius: 19px; }
.proposal .change { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 14px 0; color: #64525e; font-size: 13px; }
.proposal .change b { color: var(--ink); }
.proposal-actions { display: flex; gap: 8px; }
.proposal-actions span { padding: 8px 12px; border-radius: 99px; background: var(--peach); font-size: 11px; font-weight: 800; }
.proposal-actions span:last-child { color: var(--cream); background: var(--plum); }
.reward-total { font-family: var(--display); font-size: 74px; font-weight: 800; line-height: 1; }
.reward-bar { height: 10px; margin: 20px 0 30px; background: rgba(255,255,255,.18); border-radius: 99px; overflow: hidden; }
.reward-bar::before { content: ""; display: block; width: 67%; height: 100%; background: var(--mango); }

.privacy-section { padding: 112px 0; color: var(--cream); background: var(--ink-deep); }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 9vw, 120px); align-items: start; }
.privacy-section .eyebrow { color: var(--mango); }
.privacy-section h2 { max-width: 540px; }
.privacy-section p { max-width: 560px; color: #d7ccd3; font-size: 18px; }
.privacy-promises { border-top: 1px solid rgba(255,255,255,.16); }
.privacy-promise { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 19px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.privacy-number { color: var(--mango); font-family: var(--display); font-weight: 800; }
.privacy-promise b { display: block; font-family: var(--display); }
.privacy-promise span { color: #cbbfc7; font-size: 14px; }

.mascot-band { padding: 100px 0; background: var(--peach); }
.mascot-grid { display: grid; grid-template-columns: minmax(240px, .7fr) 1.3fr; align-items: center; gap: 70px; }
.mascot-wrap { position: relative; min-height: 330px; display: grid; place-items: end center; }
.mascot-wrap::before { content: ""; position: absolute; inset: 30px 6% 0; border-radius: 50% 50% 42% 42%; background: var(--mango); }
.mascot-wrap img { position: relative; max-height: 370px; width: auto; }
.mascot-copy p { max-width: 650px; color: #69535f; font-size: 20px; }

.closing { padding: 120px 0; }
.closing-inner { padding: clamp(40px, 7vw, 82px); color: var(--cream); background: var(--plum); border-radius: 46px; }
.closing h2 { max-width: 760px; }
.closing p { max-width: 630px; color: #f3ddeb; font-size: 19px; }

.site-footer { padding: 62px 0 34px; color: #766a72; background: var(--cream); border-top: 1px solid var(--line); }
.footer-grid { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: 1.25fr repeat(3, .75fr); gap: 40px; }
.footer-brand p { max-width: 330px; font-size: 14px; }
.footer-group b { display: block; margin-bottom: 12px; color: var(--ink); font-family: var(--display); font-size: 14px; }
.footer-group a { display: block; margin: 8px 0; color: #6f5e69; font-size: 14px; }
.footer-bottom { width: var(--page); margin: 42px auto 0; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); font-size: 12px; }

.document-hero { padding: 78px 0 58px; border-bottom: 1px solid var(--line); }
.document-hero h1 { max-width: 870px; margin-bottom: 18px; font-size: clamp(48px, 7vw, 78px); }
.document-lede { max-width: 760px; margin: 0; color: #6d5c67; font-size: 20px; }
.document-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 26px; color: #7a6c75; font-size: 13px; }
.document-layout { display: grid; grid-template-columns: 250px minmax(0, 720px); gap: clamp(50px, 8vw, 110px); align-items: start; padding: 70px 0 110px; }
.document-nav { position: sticky; top: 28px; }
.document-nav strong { display: block; margin-bottom: 13px; font-family: var(--display); font-size: 13px; text-transform: uppercase; letter-spacing: .11em; }
.document-nav a { display: block; margin: 9px 0; color: #71616b; font-size: 14px; }
.document-content { min-width: 0; }
.document-content section { scroll-margin-top: 28px; padding: 0 0 38px; margin: 0 0 38px; border-bottom: 1px solid var(--line); }
.document-content section:last-child { border-bottom: 0; }
.document-content h2 { margin-bottom: 18px; font-size: 34px; letter-spacing: -.03em; }
.document-content h3 { margin-top: 30px; font-size: 21px; letter-spacing: -.025em; }
.document-content p, .document-content li { color: #574650; }
.document-content li { margin: 9px 0; }
.document-content strong { color: var(--ink); }
.notice { margin: 28px 0; padding: 20px 22px; border-left: 5px solid var(--mango); background: var(--cream); box-shadow: 0 12px 32px rgba(100,47,89,.08); }
.notice p:last-child { margin-bottom: 0; }
.plain-summary { padding: 28px; background: var(--peach); border-radius: 24px; }
.plain-summary h2 { font-size: 28px; }
.retention-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.retention-table th, .retention-table td { padding: 13px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.retention-table th { color: var(--ink); font-family: var(--display); }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0; }
.support-card { min-height: 190px; padding: 24px; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 22px; text-decoration: none; }
.support-card:hover { color: var(--ink); border-color: var(--coral); }
.support-card small { color: #786b73; }
.contact-card { margin-top: 34px; padding: 30px; color: var(--cream); background: var(--plum); border-radius: 26px; }
.contact-card a { color: var(--mango); }

.error-page { min-height: 70vh; display: grid; place-items: center; padding: 70px 20px; text-align: center; }
.error-mark { width: 90px; height: 90px; margin: 0 auto 28px; padding: 17px; color: var(--cream); background: var(--ink-deep); border-radius: 25px; }
.error-page h1 { margin-bottom: 16px; font-size: clamp(55px, 9vw, 92px); }
.error-page p { max-width: 520px; margin: 0 auto 28px; color: #6f5f69; }

@media (max-width: 900px) {
  :root { --page: min(100% - 32px, 720px); }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; list-style: none; font-size: 0; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary::before { content: "Menu"; font-size: 0; width: 20px; height: 14px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); box-shadow: inset 0 5px var(--canvas), inset 0 7px var(--ink); }
  .mobile-nav nav { position: absolute; top: 55px; right: 0; min-width: 220px; padding: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .mobile-nav nav a { display: block; padding: 10px 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
  .hero { min-height: 0; padding-top: 62px; }
  .hero-grid, .story-row, .story-row.reverse, .privacy-grid, .mascot-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 25px; }
  .phone-stage { min-height: 610px; }
  .story-row { margin-bottom: 100px; }
  .story-row.reverse .story-copy { order: initial; }
  .story-row.reverse .product-panel { order: 2; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 1px solid var(--line); }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mascot-wrap { order: 2; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .document-layout { grid-template-columns: 1fr; gap: 25px; }
  .document-nav { position: static; padding: 18px 20px; background: var(--cream); border-radius: 18px; columns: 2; }
  .document-nav strong { column-span: all; }
}

@media (max-width: 600px) {
  :root { --page: calc(100% - 28px); }
  body { font-size: 16px; }
  .nav-shell { min-height: 72px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 38px; height: 38px; }
  .hero { padding: 52px 0 58px; }
  h1 { font-size: clamp(47px, 15vw, 66px); }
  h2 { font-size: 39px; }
  .hero-copy { font-size: 18px; }
  .actions { align-items: stretch; }
  .actions .button { width: 100%; }
  .phone-stage { min-height: 565px; margin-top: 10px; }
  .phone-stage::before { width: 110vw; height: 110vw; }
  .phone-stage::after { display: none; }
  .phone { width: 310px; }
  .phone-screen { min-height: 520px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:first-child, .trust-item:nth-child(3) { min-height: auto; border: 0; border-bottom: 1px solid var(--line); }
  .story, .privacy-section, .mascot-band, .closing { padding: 78px 0; }
  .story-row { margin-bottom: 82px; gap: 34px; }
  .product-panel { min-height: 0; padding: 24px 19px; border-radius: 28px; }
  .proposal .change { grid-template-columns: 1fr; }
  .proposal .change span { display: none; }
  .routine-line { grid-template-columns: 40px 1fr; }
  .routine-line .status { grid-column: 2; justify-self: start; }
  .mascot-grid { gap: 30px; }
  .mascot-wrap { min-height: 270px; }
  .closing-inner { border-radius: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-group:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .document-hero { padding: 56px 0 42px; }
  .document-hero h1 { font-size: 48px; }
  .document-lede { font-size: 18px; }
  .document-layout { padding: 40px 0 75px; }
  .document-nav { columns: 1; }
  .document-content h2 { font-size: 30px; }
  .support-grid { grid-template-columns: 1fr; }
  .retention-table, .retention-table tbody, .retention-table tr, .retention-table th, .retention-table td { display: block; }
  .retention-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .retention-table tr { margin-bottom: 16px; padding: 14px; background: var(--cream); border-radius: 15px; }
  .retention-table td { padding: 5px 0; border: 0; }
  .retention-table td::before { content: attr(data-label); display: block; color: var(--ink); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .document-nav { display: none; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .page-shell { width: 100%; }
  .document-hero { padding: 0 0 24px; }
  .document-layout { display: block; padding: 32px 0; }
  .document-content section { break-inside: avoid; }
  a { color: #000; }
}
