:root {
  --ink: #17201c;
  --muted: #66726c;
  --line: #dce5dd;
  --paper: #f8fbf4;
  --green: #28ad69;
  --deep: #294338;
  --sun: #f1ee45;
  --cream: #fffdf4;
  --coral: #df745f;
  --shadow: 0 28px 80px rgba(23, 32, 28, 0.16);
  --serif: "Cormorant Garamond", Georgia, "Book Antiqua", serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(135deg, #fbf9ef 0%, #eef8ee 56%, #f8fbf4 100%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(220, 229, 221, 0.8);
  background: rgba(248, 251, 244, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
}

.brand-mark,
.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.brand-mark {
  background: linear-gradient(135deg, var(--sun), var(--green));
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.55);
}

.brand-icon {
  display: block;
  box-shadow: 0 10px 24px rgba(40, 173, 105, 0.24);
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

nav a {
  text-decoration: none;
}

.language-switcher {
  display: flex;
  gap: 6px;
  align-items: center;
}

.language-switcher button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 950;
}

.language-switcher button[aria-pressed="true"] {
  border-color: var(--green);
  color: var(--ink);
  background: #edf8f0;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 72px);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 94px);
  line-height: 0.92;
  font-weight: 700;
}

.lead {
  max-width: 690px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.45;
}

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

.primary,
.secondary,
form button {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.primary,
form button {
  border: 0;
  color: #fff;
  background: var(--ink);
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.phone-preview {
  width: min(390px, 100%);
  justify-self: center;
  padding: 18px;
  display: grid;
  gap: 14px;
  border: 10px solid var(--ink);
  border-radius: 34px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.phone-top span {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.wallet-card {
  min-height: 210px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  border-radius: 22px;
  background: linear-gradient(145deg, #f1ee45 0%, #b7de62 28%, #5ec36e 68%, #28ad69 100%);
  color: #fff;
}

.wallet-card p {
  margin: 0;
  color: var(--deep);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.wallet-card strong {
  font-family: var(--serif);
  font-size: 58px;
  line-height: 1;
  font-weight: 700;
}

.wallet-card span {
  font-size: 18px;
  font-weight: 800;
}

.goal-card,
.quick-log {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.goal-card p,
.quick-log p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.goal-card strong {
  font-size: 18px;
}

.progress {
  height: 10px;
  margin: 14px 0 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eee9;
}

.progress span {
  display: block;
  width: 49%;
  height: 100%;
  background: var(--green);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.grid button {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
  padding: 12px;
}

.grid span {
  color: var(--muted);
}

.proof-band {
  padding: 34px clamp(18px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: baseline;
  background: var(--deep);
  color: #fff;
}

.proof-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.proof-band strong {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 42px);
}

.section,
.split,
.demo-section,
.waitlist {
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

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

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
}

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

.steps article,
.benefits,
.waitlist {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.steps article {
  padding: 24px;
}

.steps span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.steps h3 {
  margin: 20px 0 10px;
  font-size: 24px;
}

.steps p,
.split p,
.demo-section p,
.waitlist p {
  color: var(--muted);
  line-height: 1.55;
}

.demo-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 44px);
  background: linear-gradient(135deg, rgba(248, 251, 244, 0.86), rgba(237, 248, 240, 0.76));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.demo-copy {
  max-width: 820px;
}

.demo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 26px);
  align-items: start;
}

.demo-card {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.demo-card-copy {
  min-height: 158px;
  padding: 16px;
  border: 1px solid rgba(31, 140, 97, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.demo-card-copy span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.demo-card-copy h3 {
  margin: 8px 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 0.96;
}

.demo-card-copy p {
  margin: 0;
  font-size: 14px;
}

.demo-video {
  position: relative;
  width: min(100%, 280px);
  justify-self: center;
  padding: 12px;
  border: 1px solid rgba(23, 32, 28, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-video video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  height: min(50vh, 460px);
  min-height: 330px;
  max-height: 460px;
  border-radius: 16px;
  background: var(--ink);
  object-fit: cover;
  opacity: 1;
}

.demo-intro {
  position: absolute;
  inset: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(145deg, #fffef8 0%, #fbf8ee 52%, #f4ecd9 100%);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 900ms ease;
}

.demo-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: calc(100% - 34px);
}

.demo-brand img {
  width: clamp(34px, 5vw, 46px);
  height: clamp(34px, 5vw, 46px);
  flex: 0 0 auto;
  filter: drop-shadow(0 14px 22px rgba(31, 140, 97, 0.22));
}

.demo-brand span {
  font-family: var(--serif);
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.demo-video.is-playing .demo-intro {
  opacity: 0;
  pointer-events: none;
}

.demo-video.is-ended .demo-intro {
  opacity: 1;
  pointer-events: auto;
}

.demo-play {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: linear-gradient(145deg, #dcec38 0%, #45c76e 48%, #159861 100%);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 18px 32px rgba(31, 140, 97, 0.24);
  cursor: pointer;
}

.demo-play:focus-visible {
  outline: 3px solid rgba(31, 140, 97, 0.35);
  outline-offset: 4px;
}

.demo-sound {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(23, 32, 28, 0.74);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 250ms ease, transform 250ms ease, background 250ms ease;
}

.demo-sound span:first-child {
  font-size: 15px;
}

.demo-video.is-ready .demo-sound,
.demo-video.is-playing .demo-sound,
.demo-video.is-ended .demo-sound {
  opacity: 1;
  transform: translateY(0);
}

.demo-sound[aria-pressed="false"] {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.benefits {
  padding: 20px;
  display: grid;
  gap: 10px;
}

.benefits p {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.waitlist {
  margin: 0 clamp(18px, 5vw, 72px) clamp(54px, 8vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: center;
}

form {
  display: grid;
  gap: 12px;
}

.hidden-field {
  display: none;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 17px;
}

small {
  color: var(--green);
  font-weight: 850;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.legal-page {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.legal-brand {
  margin-bottom: 40px;
}

.legal-page h1 {
  font-size: clamp(42px, 7vw, 72px);
}

.legal-page h2 {
  margin-top: 36px;
  font-size: 28px;
  font-family: var(--sans);
}

.legal-page p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.legal-page a:not(.brand) {
  color: var(--green);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .demo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  .hero,
  .split,
  .demo-section,
  .waitlist {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .phone-preview {
    justify-self: start;
  }

  .demo-section {
    align-items: start;
  }

  .demo-gallery {
    grid-template-columns: 1fr;
  }

  .demo-card {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    align-items: start;
  }

  .demo-card-copy {
    min-height: 0;
  }

  .demo-video {
    width: min(100%, 280px);
    justify-self: end;
  }

  .demo-video video {
    height: min(50vh, 460px);
    min-height: 330px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 34px;
  }

  .phone-preview {
    border-width: 7px;
    border-radius: 26px;
  }

  .wallet-card strong {
    font-size: 48px;
  }

  .demo-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .demo-card {
    grid-template-columns: 1fr;
  }

  .demo-video {
    width: min(100%, 280px);
    justify-self: start;
  }

  .demo-video video {
    height: min(52vh, 450px);
    min-height: 330px;
  }

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

  .demo-brand span {
    font-size: 30px;
  }

  footer {
    flex-direction: column;
  }
}
