:root {
  --background: #f1f4ea;
  --surface: #ffffff;
  --surface-soft: #f7f9f0;
  --surface-tint: #e9f4ec;
  --ink: #1f2c5c;
  --ink-soft: #3a4775;
  --muted: #697086;
  --line: #e0e5d6;
  --mint: #54c194;
  --mint-deep: #3da679;
  --mint-ink: #216f4f;
  --coral: #e78a7e;
  --coral-deep: #c25647;
  --coral-soft: #f8d6ce;
  --yellow: #e5b435;
  --yellow-soft: #fbf1d2;
  --sky: #3a78b8;
  --sky-soft: #d6e4ef;
  --violet: #5c4fb7;
  --violet-soft: #dedaF0;
  --shadow: 0 18px 50px rgba(31, 44, 92, 0.12);
  --radius-card: 18px;
  --radius-small: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(241, 244, 234, 0.86);
  border-bottom: 1px solid rgba(224, 229, 214, 0.82);
  display: flex;
  gap: 24px;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 4vw, 52px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand-link {
  align-items: center;
  display: inline-flex;
  font-size: 1.4rem;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-link img {
  height: 42px;
  margin-right: 10px;
  width: 42px;
}

.brand-link span span {
  color: var(--mint-deep);
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 24px;
  font-size: 0.94rem;
  font-weight: 700;
}

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

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta,
.button {
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.nav-cta,
.button.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 44, 92, 0.18);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  color: var(--ink);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: none;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  display: block;
  height: 2px;
  position: absolute;
  width: 18px;
}

.menu-toggle {
  position: relative;
}

.menu-toggle::before {
  transform: translateY(-6px);
}

.menu-toggle::after {
  transform: translateY(6px);
}

.hero {
  isolation: isolate;
  min-height: calc(88vh - 72px);
  overflow: hidden;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(241, 244, 234, 0.98) 0%, rgba(241, 244, 234, 0.9) 40%, rgba(241, 244, 234, 0.45) 100%),
    url("./coinpurr-quick-add.png") right 14% top 46% / min(58vw, 760px) auto no-repeat;
  content: "";
  inset: 0;
  position: absolute;
  z-index: -2;
}

.hero::after {
  background:
    radial-gradient(circle at 86% 28%, rgba(84, 193, 148, 0.2), transparent 24%),
    radial-gradient(circle at 74% 72%, rgba(229, 180, 53, 0.22), transparent 22%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-inner,
.section-inner,
.footer-inner {
  margin: 0 auto;
  max-width: var(--max);
  padding-left: clamp(20px, 4vw, 36px);
  padding-right: clamp(20px, 4vw, 36px);
}

.hero-inner {
  align-items: center;
  display: grid;
  min-height: calc(88vh - 72px);
  padding-bottom: 48px;
  padding-top: 58px;
}

.hero-copy {
  max-width: 670px;
}

.hero-logo {
  height: auto;
  margin-bottom: 8px;
  width: min(250px, 64vw);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 12vw, 9.2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.86;
  margin-bottom: 22px;
}

.hero-line {
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.03;
  margin-bottom: 20px;
  max-width: 680px;
}

.hero-body {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  max-width: 610px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.proof-item {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  min-height: 40px;
  padding: 0 14px;
}

.section {
  padding: clamp(58px, 8vw, 110px) 0;
}

.section.alt {
  background: var(--surface);
}

.section.tint {
  background: var(--surface-tint);
}

.section-head {
  max-width: 760px;
}

.section-head.center {
  margin: 0 auto;
  text-align: center;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(1.12rem, 1.8vw, 1.36rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 36px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  min-height: 190px;
  padding: 22px;
}

.step-number {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  margin-bottom: 24px;
  width: 30px;
}

.step p,
.feature p,
.pet-panel p,
.legal-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.feature-river {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
}

.feature {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px;
}

.feature.wide {
  grid-column: span 2;
}

.feature.accent-mint {
  background: var(--surface-tint);
}

.feature.accent-coral {
  background: var(--coral-soft);
}

.feature.accent-yellow {
  background: var(--yellow-soft);
}

.feature.accent-sky {
  background: var(--sky-soft);
}

.pet-section {
  display: grid;
  gap: 42px;
  grid-template-columns: 0.9fr 1.1fr;
}

.pet-stage {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.34)),
    var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: 34px;
  display: flex;
  justify-content: center;
  min-height: 430px;
  overflow: hidden;
  position: sticky;
  top: 96px;
}

.pet-stage::before {
  background: rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  content: "";
  height: min(62%, 320px);
  position: absolute;
  width: min(62%, 320px);
}

.pet-stage img {
  position: relative;
  width: min(76%, 330px);
}

.pet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 18px;
}

.pet-tab {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  min-height: 42px;
  padding: 0 18px;
}

.pet-tab.is-active {
  background: var(--ink);
  color: #fff;
}

.pet-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
}

.pet-panel[hidden] {
  display: none;
}

.habit-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 36px;
}

.habit {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  min-height: 150px;
  padding: 22px;
}

.habit strong {
  color: var(--mint-ink);
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 18px;
}

.device-band {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr 1fr;
}

.phone-stack {
  min-height: 540px;
  position: relative;
}

.phone-frame {
  background: #11182f;
  border: 10px solid #11182f;
  border-radius: 42px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: absolute;
  width: min(330px, 66vw);
}

.phone-frame:first-child {
  left: 4%;
  top: 0;
  transform: rotate(-4deg);
}

.phone-frame:last-child {
  right: 2%;
  top: 92px;
  transform: rotate(4deg);
}

.phone-frame img {
  border-radius: 30px;
  height: 520px;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.trust-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.trust-row {
  align-items: start;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  display: grid;
  gap: 10px;
  grid-template-columns: 28px 1fr;
  padding: 18px;
}

.check {
  align-items: center;
  background: var(--mint);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.legal-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px;
  text-decoration: none;
}

.launch-note {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: clamp(52px, 8vw, 88px) 0;
  position: relative;
}

.launch-note::after {
  background: rgba(84, 193, 148, 0.18);
  border-radius: 50%;
  content: "";
  height: 360px;
  position: absolute;
  right: -120px;
  top: -130px;
  width: 360px;
}

.launch-note .section-inner {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr auto;
  position: relative;
  z-index: 1;
}

.launch-note h2 {
  margin-bottom: 8px;
}

.launch-note p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
  max-width: 720px;
}

.footer {
  background: #151f45;
  color: #fff;
  padding: 42px 0;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.footer a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer small {
  color: rgba(255, 255, 255, 0.62);
}

.policy-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: clamp(54px, 8vw, 92px) 0;
}

.policy-hero .section-inner {
  max-width: 920px;
}

.policy-hero h1 {
  font-size: clamp(3.1rem, 8vw, 6.5rem);
}

.policy-content {
  padding: clamp(44px, 6vw, 74px) 0;
}

.policy-layout {
  display: grid;
  gap: 34px;
  grid-template-columns: 260px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1060px;
  padding: 0 clamp(20px, 4vw, 36px);
}

.policy-toc {
  align-self: start;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px;
  position: sticky;
  top: 96px;
}

.policy-toc a {
  color: var(--ink-soft);
  display: block;
  font-size: 0.92rem;
  font-weight: 750;
  padding: 8px 0;
  text-decoration: none;
}

.policy-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 46px);
}

.policy-main h2 {
  font-size: clamp(1.72rem, 3vw, 2.7rem);
  margin-top: 34px;
}

.policy-main h2:first-child {
  margin-top: 0;
}

.policy-main h3 {
  margin-top: 24px;
}

.policy-main p,
.policy-main li {
  color: var(--ink-soft);
}

.policy-main ul,
.policy-main ol {
  padding-left: 22px;
}

.note-box {
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  margin: 24px 0;
  padding: 18px;
}

.contact-box {
  background: var(--ink);
  border-radius: var(--radius-card);
  color: #fff;
  margin-top: 28px;
  padding: 26px;
}

.contact-box p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-box a {
  color: #fff;
  font-weight: 850;
}

.support-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.support-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
}

.steps-list {
  counter-reset: data-step;
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
}

.steps-list li {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  counter-increment: data-step;
  padding: 18px 18px 18px 58px;
  position: relative;
}

.steps-list li::before {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  content: counter(data-step);
  display: inline-flex;
  font-weight: 850;
  height: 28px;
  justify-content: center;
  left: 18px;
  position: absolute;
  top: 17px;
  width: 28px;
}

@media (max-width: 980px) {
  .nav-links {
    background: rgba(241, 244, 234, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 18px clamp(18px, 4vw, 52px) 24px;
    position: absolute;
    right: 0;
    top: 72px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
  }

  .nav-cta {
    margin-top: 8px;
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(241, 244, 234, 0.97) 0%, rgba(241, 244, 234, 0.84) 48%, rgba(241, 244, 234, 0.45) 100%),
      url("./coinpurr-quick-add.png") center bottom / 720px auto no-repeat;
  }

  .steps,
  .feature-river,
  .habit-grid,
  .legal-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature.wide {
    grid-column: span 1;
  }

  .pet-section,
  .device-band,
  .launch-note .section-inner,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .pet-stage,
  .policy-toc {
    position: static;
  }

  .policy-toc {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 66px;
  }

  .nav-links {
    top: 66px;
  }

  .brand-link {
    font-size: 1.18rem;
  }

  .brand-link img {
    height: 36px;
    width: 36px;
  }

  .hero,
  .hero-inner {
    min-height: calc(86vh - 66px);
  }

  .hero-logo {
    width: 190px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .steps,
  .feature-river,
  .habit-grid,
  .legal-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 0;
  }

  .pet-stage {
    min-height: 330px;
  }

  .phone-stack {
    min-height: 460px;
  }

  .phone-frame {
    border-width: 8px;
    width: 235px;
  }

  .phone-frame img {
    height: 420px;
  }

  .phone-frame:first-child {
    left: 0;
  }

  .phone-frame:last-child {
    right: 0;
    top: 70px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-main {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    margin-left: calc(clamp(20px, 4vw, 36px) * -1);
    margin-right: calc(clamp(20px, 4vw, 36px) * -1);
  }
}

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