:root {
  color-scheme: light;
  --paper: #fff8ef;
  --paper-strong: #fff0df;
  --ink: #241f1c;
  --text: #4f4741;
  --muted: #82766c;
  --line: #eadccc;
  --surface: rgba(255, 255, 255, 0.66);
  --surface-strong: rgba(255, 253, 248, 0.92);
  --purple: #7c5cff;
  --purple-deep: #5540c8;
  --green: #67c587;
  --gold: #ffb84c;
  --coral: #ff8e7a;
  --sky: #75c9f7;
  --shadow: 0 22px 70px rgba(71, 50, 28, 0.14);
  --small-shadow: 0 12px 32px rgba(71, 50, 28, 0.1);
  --max: 1160px;
  --shot-aspect: 552 / 1200;
  --hero-drift: 0px;
  --hero-fade: 1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.15), #fff8ef 760px),
    var(--paper);
}

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

a {
  color: var(--purple-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

p {
  color: var(--text);
  line-height: 1.7;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 40;
  padding: 10px 12px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(234, 220, 204, 0.7);
  background: rgba(255, 248, 239, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(124, 92, 255, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 750;
}

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

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

.nav-links .nav-download {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  box-shadow: 0 10px 26px rgba(60, 40, 160, 0.18);
}

.nav-links .nav-download:hover {
  color: #fff;
  background: var(--purple-deep);
}

.hero {
  min-height: calc(94svh - 72px);
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  background:
    linear-gradient(120deg, #2b211c 0%, #5d4637 56%, #fff0df 56.2%, #fff8ef 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--hero-fade);
  transform: translateY(var(--hero-drift));
}

.stamp-field {
  position: absolute;
  width: 180px;
  height: 180px;
  opacity: 0.14;
  background: var(--purple);
  clip-path: polygon(50% 0%, 60% 11%, 75% 7%, 81% 21%, 95% 25%, 89% 40%, 100% 50%, 89% 60%, 95% 75%, 81% 79%, 75% 93%, 60% 89%, 50% 100%, 40% 89%, 25% 93%, 19% 79%, 5% 75%, 11% 60%, 0% 50%, 11% 40%, 5% 25%, 19% 21%, 25% 7%, 40% 11%);
}

.stamp-one {
  top: 16%;
  right: 12%;
}

.stamp-two {
  bottom: 16%;
  left: 8%;
  background: var(--green);
  transform: rotate(-18deg);
}

.stamp-three {
  width: 110px;
  height: 110px;
  bottom: 8%;
  right: 34%;
  background: var(--gold);
  transform: rotate(12deg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 58px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
  min-width: 0;
  color: #fff;
}

.eyebrow {
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--purple-deep);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--purple);
}

.hero .eyebrow {
  color: #efe8ff;
}

.hero .eyebrow::before {
  background: var(--gold);
}

.hero h1,
.page-hero h1,
.legal-hero h1,
.status-panel h1,
.qr-panel h1 {
  margin: 0;
  line-height: 0.96;
  font-size: clamp(3.5rem, 9vw, 6.4rem);
  letter-spacing: 0;
}

.hero h1 {
  color: #fff;
}

.hero-line {
  max-width: 600px;
  margin: 20px 0 0;
  color: #fff9f2;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  font-weight: 850;
}

.hero-text {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 249, 242, 0.86);
  font-size: 1.06rem;
}

.hero-line,
.hero-text {
  overflow-wrap: break-word;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  cursor: pointer;
  font: inherit;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.button.primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 16px 42px rgba(60, 40, 160, 0.26);
}

.hero .button.primary {
  background: #fff;
  color: var(--purple-deep);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
}

.hero-visual {
  position: relative;
  min-height: clamp(560px, 70svh, 700px);
  display: grid;
  place-items: center;
  overflow: visible;
}

.phone-frame {
  width: clamp(244px, 21vw, 304px);
  aspect-ratio: var(--shot-aspect);
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 34px;
  background: #fffaf4;
  box-shadow:
    0 28px 78px rgba(72, 50, 31, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.72) inset;
  transform: rotate(2deg);
  overflow: hidden;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  object-position: top center;
}

.screen-stack {
  position: relative;
  width: min(86vw, 520px);
  height: clamp(540px, 68svh, 680px);
  min-height: 0;
  display: grid;
  place-items: center;
}

.screen-card {
  position: relative;
  z-index: 3;
}

.main-screen {
  transform: rotate(1deg);
}

.back-screen {
  position: absolute;
  z-index: 1;
  width: clamp(190px, 16vw, 232px);
  opacity: 0.82;
  filter: saturate(0.96);
}

.left-screen {
  left: 0;
  bottom: 42px;
  transform: rotate(-9deg);
}

.right-screen {
  right: 0;
  top: 40px;
  transform: rotate(8deg);
}

.floating-note {
  position: absolute;
  min-width: 190px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: var(--small-shadow);
}

.floating-note span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.floating-note strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.note-top {
  top: 96px;
  right: 0;
}

.note-bottom {
  left: 0;
  bottom: 112px;
}

.proof-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.proof-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.proof-item {
  padding: 30px 28px;
  border-right: 1px solid var(--line);
}

.proof-item:first-child {
  border-left: 1px solid var(--line);
}

.proof-item strong,
.promise-list strong,
.flow-step strong,
.support-grid h2,
.family-grid h3 {
  display: block;
  color: var(--ink);
}

.proof-item span,
.promise-list span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 104px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 60px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.9fr);
}

.copy-block h2,
.section-header h2,
.scope-list h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.copy-block p,
.section-header p,
.scope-list p {
  max-width: 640px;
  font-size: 1.05rem;
}

.feature-list {
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  line-height: 1.6;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--green);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.58);
}

.flow-panel,
.promise-list,
.status-panel,
.qr-panel {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: var(--surface);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.flow-panel {
  padding: 26px;
  border-radius: 32px;
  display: grid;
  gap: 16px;
}

.flow-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 4px 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(234, 220, 204, 0.8);
}

.flow-step:last-child {
  border-bottom: 0;
}

.flow-step span {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(124, 92, 255, 0.12);
  color: var(--purple-deep);
  font-weight: 850;
}

.flow-step p {
  margin: 4px 0 0;
}

.screen-section {
  width: min(100% - 32px, 1240px);
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.screen-shot {
  margin: 0;
}

.screen-shot img {
  width: 100%;
  aspect-ratio: var(--shot-aspect);
  object-fit: contain;
  object-position: top center;
  border-radius: 32px;
  border: 1px solid rgba(234, 220, 204, 0.9);
  background: #fffaf4;
  box-shadow:
    0 22px 56px rgba(71, 50, 28, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.screen-shot:nth-child(even) {
  margin-top: 42px;
}

.screen-shot figcaption {
  margin-top: 18px;
}

.screen-shot strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
}

.screen-shot span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.family-band {
  padding-top: 72px;
}

.plus-band {
  padding-top: 78px;
}

.section-header {
  max-width: 820px;
  margin-bottom: 36px;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.family-grid article,
.support-grid article {
  min-height: 190px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(234, 220, 204, 0.72);
  box-shadow: var(--small-shadow);
}

.mini-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(124, 92, 255, 0.1);
  color: var(--purple);
  font-weight: 900;
}

.family-grid h3 {
  margin: 22px 0 0;
  font-size: 1.35rem;
}

.family-grid p,
.support-grid p {
  margin-bottom: 0;
}

.scope-list {
  max-width: 620px;
}

.promise-list {
  padding: 30px;
  border-radius: 32px;
  display: grid;
  gap: 20px;
}

.promise-list div {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(234, 220, 204, 0.8);
}

.promise-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.site-footer {
  width: min(100% - 32px, var(--max));
  min-height: 92px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

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

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

.page-hero,
.legal-hero {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 92px 0 34px;
}

.page-hero p,
.legal-hero p {
  max-width: 680px;
  font-size: 1.08rem;
}

.support-grid {
  width: min(100% - 32px, var(--max));
  margin: 0 auto 92px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.legal-main {
  padding-bottom: 92px;
}

.legal-copy {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: 32px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(234, 220, 204, 0.76);
}

.legal-copy h2 {
  margin: 34px 0 0;
  color: var(--ink);
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.center-shell,
.qr-shell {
  width: min(100% - 32px, 760px);
  min-height: calc(100svh - 164px);
  margin: 0 auto;
  padding: 70px 0;
  display: grid;
  place-items: center;
}

.status-panel,
.qr-panel {
  width: 100%;
  padding: clamp(28px, 6vw, 52px);
  border-radius: 36px;
}

.status-panel img,
.qr-head img {
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.18);
}

.status-panel h1,
.qr-panel h1 {
  margin-top: 6px;
  font-size: clamp(2.3rem, 7vw, 4.8rem);
}

.status-panel.has-error {
  border-color: rgba(232, 93, 93, 0.28);
}

.qr-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.qr-copy {
  margin-top: 24px;
}

.qr-form {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.qr-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.qr-form input,
.qr-form textarea,
.qr-form select {
  width: 100%;
  border: 1px solid rgba(234, 220, 204, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
}

.qr-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 28px;
  font-weight: 800;
  color: var(--purple-deep);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 940px) {
  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, #30231d 0%, #5d4637 54%, #fff3e5 54.2%, #fff8ef 100%);
  }

  .hero-inner,
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 34px;
    padding-top: 48px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .screen-stack {
    height: 560px;
  }

  .back-screen {
    width: 220px;
  }

  .screen-gallery {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 4px 22px;
    scroll-snap-type: x proximity;
  }

  .screen-shot {
    flex: 0 0 min(72vw, 310px);
    scroll-snap-align: start;
  }

  .screen-shot:nth-child(even) {
    margin-top: 0;
  }

  .proof-inner,
  .family-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .proof-item:first-child {
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

}

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

  .nav-links {
    display: none;
  }

  .hero-inner,
  .section,
  .proof-inner,
  .site-footer,
  .page-hero,
  .legal-hero,
  .legal-copy,
  .support-grid,
  .center-shell,
  .qr-shell {
    width: min(100% - 24px, var(--max));
  }

  .hero h1,
  .page-hero h1,
  .legal-hero h1,
  .status-panel h1,
  .qr-panel h1 {
    line-height: 1;
  }

  .hero-line {
    max-width: 340px;
    font-size: 1.2rem;
  }

  .hero-text {
    max-width: 340px;
  }

  .hero-visual {
    min-height: clamp(548px, 142vw, 616px);
  }

  .screen-stack {
    width: 100%;
    height: clamp(548px, 142vw, 616px);
  }

  .phone-frame {
    width: min(64vw, 238px);
    border-radius: 30px;
  }

  .phone-frame img {
    border-radius: inherit;
  }

  .back-screen {
    width: min(42vw, 160px);
  }

  .left-screen {
    left: -6px;
    bottom: 68px;
  }

  .right-screen {
    right: -6px;
    top: 66px;
  }

  .screen-shot {
    flex-basis: min(76vw, 286px);
  }

  .screen-shot img {
    border-radius: 28px;
  }

  .floating-note {
    min-width: 156px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .note-top {
    top: 38px;
    right: 0;
  }

  .note-bottom {
    bottom: 40px;
  }

  .section {
    padding: 72px 0;
  }

  .family-grid article,
  .support-grid article,
  .legal-copy,
  .status-panel,
  .qr-panel {
    border-radius: 24px;
    padding: 24px;
  }

  .qr-head {
    align-items: flex-start;
  }

  .site-footer {
    padding: 26px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}
