:root {
  --cream: #fbf0da;
  --paper: #fffaf0;
  --paper-strong: #fffdf8;
  --ink: #201d19;
  --muted: #664f3f;
  --bark: #8f5530;
  --forest: #245b20;
  --forest-deep: #173f16;
  --moss: #5e9a35;
  --orange: #b94320;
  --acorn: #d08a42;
  --sand: #efd59b;
  --line: rgba(80, 53, 31, 0.15);
  --line-strong: rgba(80, 53, 31, 0.24);
  --shadow-soft: 0 18px 45px rgba(74, 47, 24, 0.10);
  --shadow-device: 0 32px 70px rgba(37, 28, 20, 0.22);
  --radius-lg: 30px;
  --radius-md: 20px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(79, 49, 28, 0.045) 0.7px, transparent 0.8px);
  background-size: 15px 15px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: var(--forest); }
p, li { color: var(--muted); }

h1,
h2,
h3 {
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h1 { font-size: clamp(3.35rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2.35rem, 5vw, 4.5rem); }
h3 { font-size: clamp(1.9rem, 3.2vw, 3.1rem); }

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--forest);
  color: white;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1220px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.announcement-bar {
  background: var(--forest);
  color: var(--cream);
}

.announcement-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 20px;
  color: #fff5df;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.announcement-link span { margin-left: 7px; }
.announcement-link:hover { background: var(--forest-deep); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 21px;
  border: 3px solid currentColor;
  border-top-width: 4px;
  border-radius: 2px 2px 16px 16px;
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.brand-mark span {
  position: absolute;
  top: -7px;
  left: 4px;
  width: 18px;
  height: 8px;
  border-radius: 50% 50% 0 0;
  background: var(--acorn);
  opacity: 0.65;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
}

.nav a {
  padding: 7px 0;
  color: var(--bark);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  text-underline-offset: 6px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--forest);
  text-decoration: underline;
}

.eyebrow,
.step-kicker {
  margin: 0;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  align-items: center;
  width: min(1220px, calc(100% - 48px));
  min-height: 780px;
  margin: 0 auto;
  padding: 72px 0 90px;
  gap: clamp(50px, 8vw, 110px);
}

.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { max-width: 760px; margin: 18px 0 24px; }

.hero-lede {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  box-shadow: 0 10px 22px rgba(36, 91, 32, 0.15);
  color: white;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  background: var(--forest-deep);
  box-shadow: 0 14px 30px rgba(36, 91, 32, 0.2);
  transform: translateY(-2px);
}

.hero-actions .button,
.hero-actions .button:hover {
  box-shadow: none;
}

.button.secondary {
  border: 1px solid rgba(42, 94, 32, 0.35);
  background: transparent;
  box-shadow: none;
  color: var(--forest);
}

.text-link-arrow {
  color: var(--bark);
  font-weight: 850;
  text-decoration: none;
}

.text-link-arrow span { display: inline-block; transition: transform 180ms ease; }
.text-link-arrow:hover span { transform: translateX(4px); }

.hero-proof {
  display: grid;
  gap: 9px;
  margin: 36px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.9rem;
  font-weight: 650;
}

.hero-proof li { color: var(--muted); }
.hero-proof span { margin-right: 10px; color: var(--moss); font-size: 0.64rem; }

.hero-device-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
}

.device-aura {
  position: absolute;
  border-radius: 50%;
  opacity: 0.75;
}

.aura-orange { width: 260px; height: 260px; top: 28px; right: 0; background: #f4c68d; }
.aura-green { width: 330px; height: 330px; bottom: 10px; left: -24px; background: #dce8cd; }

.phone-frame {
  position: relative;
  overflow: hidden;
  width: min(100%, 330px);
  aspect-ratio: 1170 / 2532;
  border: 8px solid #171713;
  border-radius: 44px;
  background: #171713;
  box-shadow: var(--shadow-device);
  isolation: isolate;
}

.phone-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-frame::before {
  content: "100";
  position: absolute;
  z-index: 6;
  top: 2.35%;
  right: 6.1%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.1%;
  height: 1.48%;
  border-radius: 3px;
  background: #171713;
  color: #fff;
  font-size: 0.48rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.phone-speaker {
  position: absolute;
  z-index: 4;
  top: 8px;
  left: 50%;
  width: 76px;
  height: 18px;
  border-radius: 0 0 14px 14px;
  background: #171713;
  transform: translateX(-50%);
}

.phone-frame-hero {
  z-index: 2;
  width: min(100%, 326px);
  animation: device-arrive 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-note {
  position: absolute;
  z-index: 3;
  display: grid;
  max-width: 210px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow-soft);
}

.hero-note strong { color: var(--forest); font-size: 0.88rem; }
.hero-note span { color: var(--muted); font-size: 0.72rem; }
.note-top { top: 92px; right: -38px; }
.note-bottom { bottom: 95px; left: -40px; }

@keyframes device-arrive {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.product-intro {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 70px;
  text-align: center;
}

.product-intro h2 { margin: 16px 0 22px; }
.product-intro > p:last-child { max-width: 720px; margin: 0 auto; font-size: 1.08rem; }

.feature-showcase {
  display: grid;
  grid-template-columns: minmax(350px, 0.88fr) minmax(0, 1.12fr);
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  gap: clamp(60px, 9vw, 130px);
}

.sticky-product {
  position: sticky;
  top: 92px;
  display: grid;
  align-content: center;
  justify-items: center;
  height: calc(100vh - 112px);
  min-height: 650px;
}

.showcase-phone {
  width: min(100%, 330px);
  box-shadow: 0 30px 65px rgba(37, 28, 20, 0.19);
}

.showcase-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(7px) scale(1.008);
  transition: opacity 340ms ease, transform 440ms ease;
}

.showcase-screen.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scan-limit-correction {
  position: absolute;
  z-index: 3;
  top: 40.25%;
  left: 12%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76%;
  height: 3.15%;
  background: #fff;
  color: #9a581e;
  font-size: 0.61rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.showcase-phone .scan-limit-correction { opacity: 0; transition: opacity 220ms ease; }
.showcase-phone .showcase-screen[data-screen="scan"].is-active ~ .scan-limit-correction { opacity: 1; }

.screen-indicator { display: flex; gap: 8px; margin-top: 22px; }
.screen-indicator span { width: 7px; height: 7px; border-radius: 999px; background: rgba(143, 85, 48, 0.22); transition: width 220ms ease, background-color 220ms ease; }
.screen-indicator span.is-active { width: 28px; background: var(--forest); }

.feature-steps { min-width: 0; }

.feature-step {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78vh;
  padding: 70px 0 70px 44px;
  border-left: 1px solid var(--line);
  opacity: 0.5;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 300ms ease, border-color 260ms ease;
}

.feature-step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--line-strong);
  transform: translateY(-50%);
}

.feature-step.is-active { border-left-color: rgba(36, 91, 32, 0.46); opacity: 1; transform: translateY(0); }
.feature-step.is-active::before { background: var(--orange); border-color: var(--orange); }

.step-count {
  width: fit-content;
  margin-bottom: 24px;
  color: var(--bark);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 900;
}

.feature-step h3 { max-width: 670px; margin: 13px 0 20px; }
.feature-step > p:not(.step-kicker) { max-width: 650px; margin: 0; font-size: 1.03rem; }

.feature-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
}

.feature-details li {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.64);
  color: var(--bark);
  font-size: 0.76rem;
  font-weight: 750;
}

.mobile-feature-shot { display: none; }

.closing-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: end;
  width: min(1160px, calc(100% - 48px));
  margin: 120px auto;
  padding: clamp(34px, 6vw, 70px);
  gap: 40px;
  border-radius: var(--radius-lg);
  background: var(--forest);
  box-shadow: var(--shadow-soft);
}

.closing-band .eyebrow { color: #f3b477; }
.closing-band h2 { max-width: 700px; margin: 15px 0 0; color: white; }
.closing-band > p { margin: 0; color: rgba(255, 255, 255, 0.78); }

/* Shared legal and support pages */
.legal-shell,
.support-shell {
  width: min(980px, calc(100% - 40px));
  margin: 54px auto 90px;
}

.legal-card,
.faq,
.contact-card,
.reset-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-soft);
}

.legal-card,
.faq { padding: clamp(26px, 6vw, 66px); border-radius: var(--radius-lg); }
.legal-head { margin-bottom: 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.legal-head h1 { margin: 12px 0 14px; font-size: clamp(2.8rem, 7vw, 4.8rem); }
.updated { color: var(--bark); font-size: 0.86rem; font-weight: 750; }
.legal-card section { scroll-margin-top: 110px; }
.legal-card h2 { margin: 2.5rem 0 0.8rem; color: var(--forest); font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -0.03em; }
.legal-card h3 { color: var(--forest); font-size: 1.2rem; letter-spacing: -0.02em; }
.legal-card ul { padding-left: 1.3rem; }
.legal-card strong { color: var(--ink); }
.note { padding: 14px 18px; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; background: rgba(255, 107, 61, 0.08); }

.support-intro { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.support-intro h1 { margin: 12px 0 14px; font-size: clamp(2.8rem, 7vw, 4.8rem); }
.lede { max-width: 710px; margin: 0 auto; font-size: clamp(1rem, 2vw, 1.16rem); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.contact-card { padding: 30px; border-radius: var(--radius-md); text-decoration: none; transition: transform 180ms ease, border-color 180ms ease; }
.contact-card:hover { border-color: rgba(36, 91, 32, 0.35); transform: translateY(-3px); }
.contact-card span { display: block; color: var(--orange); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.contact-card strong { display: block; margin-top: 9px; color: var(--forest); font-family: Fraunces, Georgia, serif; font-size: 1.45rem; }
.contact-card p { margin-bottom: 0; font-size: 0.93rem; }
.faq h2 { margin-top: 2.5rem; color: var(--forest); font-size: 1.8rem; }
.faq h2:first-child { margin-top: 0; }
.faq h3 { margin: 2rem 0 0.5rem; color: var(--ink); font-family: Inter, sans-serif; font-size: 1.05rem; letter-spacing: -0.015em; }
.button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.button-row.left { justify-content: flex-start; }

/* Password recovery */
.reset-shell { width: min(560px, calc(100% - 36px)); margin: 50px auto 88px; }
.reset-card { min-height: 540px; padding: clamp(28px, 7vw, 56px); border-radius: 30px; text-align: center; }
.reset-mark,
.success-check { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; background: rgba(94, 154, 53, 0.13); color: var(--forest); font-size: 1.6rem; font-weight: 900; }
.reset-eyebrow { margin: 0; color: var(--orange); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.15em; }
.reset-card h1 { margin: 10px auto 16px; font-size: clamp(2rem, 8vw, 3.25rem); }
.reset-card h2 { margin: 8px 0 12px; }
.reset-state p,
.reset-intro { margin: 0 auto 26px; }
.reset-form { margin-top: 28px; text-align: left; }
.reset-intro { text-align: center; }
.line-field { display: block; margin-top: 24px; }
.line-field span { display: block; color: var(--forest); font-size: 0.73rem; font-weight: 900; letter-spacing: 0.1em; }
.line-field input { width: 100%; margin-top: 8px; padding: 10px 2px 12px; border: 0; border-bottom: 2px solid rgba(143, 85, 48, 0.32); border-radius: 0; outline: none; background: transparent; color: var(--ink); font: inherit; }
.line-field input:focus { border-bottom-color: var(--forest); }
.form-message { min-height: 1.5em; margin: 18px 0 0; font-size: 0.9rem; font-weight: 750; text-align: center; }
.error-message { color: #9f2c21; }
.reset-button { width: 100%; margin-top: 20px; }
.reset-button:disabled { cursor: wait; opacity: 0.64; }
.text-button,
.text-link { display: block; margin: 20px auto 0; padding: 4px; border: 0; background: transparent; color: var(--bark); font: inherit; font-size: 0.9rem; font-weight: 800; text-align: center; text-decoration: underline; cursor: pointer; }
.reset-spinner { width: 30px; height: 30px; margin: 42px auto 18px; border: 3px solid rgba(42, 94, 32, 0.16); border-top-color: var(--forest); border-radius: 50%; animation: reset-spin 800ms linear infinite; }
@keyframes reset-spin { to { transform: rotate(360deg); } }

.site-footer { border-top: 1px solid var(--line); background: rgba(255, 250, 240, 0.78); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 28px; gap: 45px; }
.footer-brand { max-width: 330px; }
.footer-brand p { margin: 13px 0 0; font-size: 0.86rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; max-width: 710px; }
.footer-links a { color: var(--bark); font-size: 0.83rem; font-weight: 750; text-decoration: none; }
.footer-links a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: 20px 0 28px; border-top: 1px solid var(--line); color: #806652; font-size: 0.78rem; }
.copyright { color: #806652; font-size: 0.82rem; }

.not-found { min-height: 68vh; display: grid; place-items: center; text-align: center; }
.not-found-inner { width: min(680px, calc(100% - 36px)); }
.not-found h1 { margin: 14px 0; font-size: clamp(3rem, 8vw, 5.6rem); }

@media (max-width: 1050px) {
  .product-hero { grid-template-columns: minmax(0, 1fr) minmax(310px, 0.76fr); gap: 40px; }
  .hero-note { display: none; }
  .feature-showcase { grid-template-columns: minmax(310px, 0.76fr) minmax(0, 1.24fr); gap: 55px; }
  .feature-step { padding-left: 34px; }
}

@media (max-width: 820px) {
  .site-header { align-items: flex-start; min-height: auto; padding: 20px 0; }
  .nav { gap: 5px 14px; }
  .product-hero { grid-template-columns: 1fr; min-height: auto; padding: 74px 0 40px; text-align: center; }
  .hero-copy h1,
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-proof { width: fit-content; margin-left: auto; margin-right: auto; text-align: left; }
  .hero-device-wrap { min-height: 610px; }
  .phone-frame-hero { width: 302px; }
  .product-intro { padding-top: 100px; }
  .feature-showcase { display: block; width: min(680px, calc(100% - 36px)); }
  .sticky-product { display: none; }
  .feature-step { display: block; min-height: 0; margin-bottom: 90px; padding: 0; border-left: 0; opacity: 1; transform: none; }
  .feature-step::before { display: none; }
  .mobile-feature-shot { display: grid; place-items: center; margin-top: 34px; }
  .mobile-feature-shot .phone-frame { width: min(100%, 318px); box-shadow: 0 22px 52px rgba(37, 28, 20, 0.17); }
  .closing-band { grid-template-columns: 1fr; align-items: start; margin-top: 80px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .site-header { flex-direction: column; width: min(100% - 28px, 1220px); gap: 12px; }
  .nav { justify-content: flex-start; }
  .nav a { font-size: 0.82rem; }
  .product-hero { width: min(100% - 28px, 1220px); padding-top: 55px; }
  .hero-copy h1 { font-size: clamp(3.1rem, 16vw, 4.5rem); }
  .hero-actions { flex-direction: column; gap: 16px; }
  .hero-proof { font-size: 0.82rem; }
  .hero-device-wrap { min-height: 570px; }
  .phone-frame-hero { width: 274px; border-width: 7px; border-radius: 38px; }
  .device-aura { transform: scale(0.82); }
  .aura-orange { right: -55px; }
  .aura-green { left: -65px; }
  .product-intro { width: min(100% - 28px, 880px); padding: 80px 0 65px; }
  .product-intro h2 { font-size: clamp(2.2rem, 12vw, 3.2rem); }
  .feature-showcase { width: min(100% - 28px, 680px); }
  .feature-step h3 { font-size: clamp(2rem, 11vw, 2.7rem); }
  .feature-details { display: grid; }
  .feature-details li { width: fit-content; }
  .closing-band { width: min(100% - 28px, 1160px); margin: 70px auto; border-radius: 24px; }
  .legal-shell,
  .support-shell { width: min(100% - 22px, 980px); margin-top: 24px; }
  .legal-card,
  .faq { padding: 24px 20px; border-radius: 22px; }
  .footer-inner,
  .footer-bottom { width: min(100% - 28px, 1220px); }
}

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