/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Brand tokens */
:root {
  --sq-acorn: #FF8C42;
  --sq-bark: #26221F;
  --sq-bark-2: #3A342F;
  --sq-shell: #F6F1EA;
  --sq-toasted: #B5461A;
  --sq-ash: #8C8379;
  --sq-husk: #D9D2C8;
  --sq-husk-2: #E8E2D9;
  --sq-rowan: #D23B2A;

  --sq-font-display: 'Familjen Grotesk', sans-serif;
  --sq-font-body: 'Public Sans', sans-serif;
  --sq-font-mono: 'DM Mono', monospace;

  --sq-track-display: -0.03em;
  --sq-track-caps: 0.2em;
  --sq-track-code: 0.05em;

  --sq-lh-display: 0.95;
  --sq-lh-title: 1.2;
  --sq-lh-body: 1.5;

  --sq-radius-8: 8px;
  --sq-radius-6: 6px;
  --sq-radius-4: 4px;
  --sq-radius-device: 28px;

  --sq-button-h: 52px;
  --sq-rule: 1px solid var(--sq-husk);
  --sq-motion: 180ms ease-out;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sq-font-body);
  background: var(--sq-shell);
  color: var(--sq-bark);
  line-height: var(--sq-lh-body);
  font-size: 16px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--sq-font-display);
  font-weight: 700;
  letter-spacing: var(--sq-track-display);
}

h2 {
  font-size: clamp(32px, 5vw, 44px);
  line-height: var(--sq-lh-display);
  text-align: center;
  margin-bottom: 48px;
  color: var(--sq-bark);
}

h3 {
  font-weight: 700;
  font-size: 20px;
  line-height: var(--sq-lh-title);
  margin-bottom: 8px;
}

a { color: inherit; text-decoration: none; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sq-acorn);
  color: var(--sq-bark);
  font-family: var(--sq-font-body);
  font-weight: 600;
  font-size: 16px;
  height: var(--sq-button-h);
  padding: 0 28px;
  border-radius: var(--sq-radius-8);
  transition: filter var(--sq-motion);
  white-space: nowrap;
}
.btn-primary:hover { filter: brightness(0.92); }

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sq-bark);
  color: var(--sq-shell);
  font-family: var(--sq-font-body);
  font-weight: 600;
  font-size: 16px;
  height: var(--sq-button-h);
  padding: 0 28px;
  border-radius: var(--sq-radius-8);
  transition: filter var(--sq-motion);
  white-space: nowrap;
}
.btn-hero:hover { filter: brightness(1.2); }

.btn-large { font-size: 17px; height: 56px; padding: 0 36px; }

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  background: var(--sq-shell);
  border-bottom: var(--sq-rule);
  z-index: 100;
  padding: 14px 0;
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  height: 32px;
  width: auto;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo-wordmark {
  font-family: var(--sq-font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: var(--sq-track-display);
  color: var(--sq-bark);
  line-height: 1;
}
.logo-sub {
  font-family: var(--sq-font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: var(--sq-track-caps);
  text-transform: uppercase;
  color: var(--sq-ash);
  line-height: 1;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--sq-acorn);
  color: var(--sq-bark);
  font-family: var(--sq-font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: var(--sq-track-caps);
  text-transform: uppercase;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--sq-radius-8);
  transition: filter var(--sq-motion);
}
.nav-cta:hover { filter: brightness(0.92); }

/* ===== HERO ===== */
.hero {
  background: var(--sq-acorn);
  padding: 80px 0 72px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.hero-tagline {
  font-family: var(--sq-font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: var(--sq-track-caps);
  text-transform: uppercase;
  color: var(--sq-bark);
  opacity: 0.65;
  margin-bottom: 16px;
}
.hero-content h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: var(--sq-lh-display);
  margin-bottom: 20px;
  color: var(--sq-bark);
}
.hero-sub {
  font-size: 17px;
  line-height: var(--sq-lh-body);
  color: var(--sq-bark);
  opacity: 0.8;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--sq-bark);
  opacity: 0.55;
}

/* Box + phone */
.hero-visual { display: flex; justify-content: center; }
.phone-mockup {
  width: 256px;
  background: var(--sq-bark);
  border-radius: var(--sq-radius-device);
  padding: 16px 12px;
}
.phone-screen {
  background: var(--sq-shell);
  border-radius: 18px;
  overflow: hidden;
}
.mock-header {
  background: var(--sq-acorn);
  padding: 14px 14px 12px;
  border-bottom: var(--sq-rule);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.mock-stash-name {
  font-family: var(--sq-font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: var(--sq-track-display);
  color: var(--sq-bark);
  line-height: 1.2;
}
.mock-code-badge {
  font-family: var(--sq-font-mono);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: var(--sq-track-code);
  color: var(--sq-bark);
  opacity: 0.55;
  white-space: nowrap;
}
.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 10px 10px 4px;
}
.mock-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1;
  background: repeating-linear-gradient(
    45deg,
    var(--sq-husk) 0,
    var(--sq-husk) 2px,
    var(--sq-husk-2) 2px,
    var(--sq-husk-2) 8px
  );
}
.mock-add {
  background: var(--sq-husk-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sq-font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--sq-ash);
}
.mock-footer {
  padding: 10px 14px 14px;
  border-top: var(--sq-rule);
  margin-top: 4px;
}
.mock-scan-label {
  font-family: var(--sq-font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: var(--sq-track-caps);
  text-transform: uppercase;
  color: var(--sq-toasted);
}

/* ===== PAIN ===== */
.pain {
  background: var(--sq-bark);
  color: var(--sq-shell);
  padding: 80px 0;
  text-align: center;
}
.pain h2 { color: var(--sq-shell); }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 48px;
}
.pain-grid blockquote {
  font-family: var(--sq-font-display);
  font-weight: 500;
  font-size: clamp(16px, 2vw, 20px);
  line-height: var(--sq-lh-title);
  color: var(--sq-shell);
  font-style: italic;
  padding: 0 32px;
  border-left: 1px solid var(--sq-bark-2);
  text-align: left;
}
.pain-grid blockquote:first-child {
  border-left: none;
  padding-left: 0;
}
.pain-closer {
  font-family: var(--sq-font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--sq-acorn);
}

/* ===== HOW IT WORKS ===== */
.how { padding: 80px 0; }
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.step {
  flex: 1;
  padding: 0 28px;
}
.step-num {
  font-family: var(--sq-font-display);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: var(--sq-track-display);
  line-height: 1;
  color: var(--sq-toasted);
  margin-bottom: 8px;
}
.step h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.step p { color: var(--sq-ash); font-size: 16px; line-height: var(--sq-lh-body); }
.step-arrow {
  font-size: 24px;
  color: var(--sq-acorn);
  padding-top: 14px;
  flex-shrink: 0;
  font-family: var(--sq-font-body);
}

/* ===== FEATURES ===== */
.features {
  border-top: var(--sq-rule);
  border-bottom: var(--sq-rule);
  padding: 80px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.feature {
  padding: 28px;
  border-left: var(--sq-rule);
}
.feature:nth-child(3n+1) { border-left: none; }
.feature:nth-child(n+4) { border-top: var(--sq-rule); }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--sq-ash); font-size: 15px; line-height: var(--sq-lh-body); }

/* ===== OFFER ===== */
.offer { padding: 80px 0; }
.offer .container { display: flex; justify-content: center; }
.offer-card {
  border: var(--sq-rule);
  border-radius: var(--sq-radius-8);
  padding: 48px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}
.offer-label {
  font-family: var(--sq-font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: var(--sq-track-caps);
  text-transform: uppercase;
  color: var(--sq-ash);
  margin-bottom: 16px;
}
.offer-price {
  font-family: var(--sq-font-display);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: var(--sq-track-display);
  line-height: 1;
  color: var(--sq-toasted);
  margin-bottom: 8px;
}
.offer-sub { color: var(--sq-ash); margin-bottom: 28px; font-size: 16px; }
.offer-list {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}
.offer-list li {
  padding: 12px 0;
  border-bottom: var(--sq-rule);
  font-size: 16px;
  line-height: 1.4;
  color: var(--sq-bark);
}
.offer-list li:first-child { border-top: var(--sq-rule); }
.order-form { margin: 0; }
.order-boxes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  text-align: left;
}
.order-boxes label { font-weight: 600; font-size: 16px; }
.order-boxes small { display: block; font-weight: 400; font-size: 13px; color: var(--sq-ash); }
.stepper {
  display: inline-flex;
  align-items: center;
  border: var(--sq-rule);
  border-radius: var(--sq-radius-8);
  overflow: hidden;
}
.stepper button {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--sq-husk-2);
  color: var(--sq-bark);
  font-size: 20px;
  font-family: var(--sq-font-body);
  cursor: pointer;
}
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper input {
  width: 56px;
  height: 44px;
  border: none;
  text-align: center;
  font-family: var(--sq-font-mono);
  font-size: 18px;
  color: var(--sq-bark);
  background: transparent;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.order-form .btn-primary { width: 100%; border: none; cursor: pointer; }
.offer-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--sq-ash);
}

/* ===== FAQ ===== */
.faq {
  background: var(--sq-bark);
  color: var(--sq-shell);
  padding: 80px 0;
}
.faq h2 { color: var(--sq-shell); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.faq-item {
  padding: 24px 28px;
  border-top: 1px solid var(--sq-bark-2);
}
.faq-item:nth-child(even) { border-left: 1px solid var(--sq-bark-2); }
.faq-item h3 {
  font-family: var(--sq-font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--sq-acorn);
  margin-bottom: 8px;
}
.faq-item p { font-size: 15px; color: var(--sq-husk); line-height: var(--sq-lh-body); }

/* ===== FOOTER CTA ===== */
.footer-cta {
  padding: 80px 0;
  text-align: center;
}
.footer-cta h2 { margin-bottom: 12px; }
.footer-cta p { color: var(--sq-ash); margin-bottom: 28px; font-size: 17px; }

/* ===== FOOTER ===== */
footer {
  background: var(--sq-bark);
  text-align: center;
  padding: 40px 0;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-mark {
  height: 28px;
  width: auto;
  display: block;
}
.footer-wordmark {
  font-family: var(--sq-font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: var(--sq-track-display);
  color: var(--sq-shell);
}
.footer-links {
  font-family: var(--sq-font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: var(--sq-track-caps);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-links a { color: var(--sq-ash); transition: color var(--sq-motion); }
.footer-links a:hover { color: var(--sq-acorn); }
.footer-small { font-size: 12px; color: var(--sq-bark-2); margin-top: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }

  .pain-grid { grid-template-columns: 1fr; }
  .pain-grid blockquote {
    border-left: none;
    border-top: 1px solid var(--sq-bark-2);
    padding: 20px 0;
    text-align: center;
  }
  .pain-grid blockquote:first-child { border-top: none; padding-top: 0; }

  .steps { flex-direction: column; align-items: flex-start; }
  .step { padding: 0 0 32px; }
  .step:last-child { padding-bottom: 0; }
  .step-arrow { transform: rotate(90deg); padding: 0 0 16px 16px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { border-left: var(--sq-rule); border-top: none; }
  .feature:nth-child(odd) { border-left: none; }
  .feature:nth-child(n+3) { border-top: var(--sq-rule); }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-item:nth-child(even) { border-left: none; }

  .offer-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 36px; }
  h2 { font-size: 28px; }

  .features-grid { grid-template-columns: 1fr; }
  .feature { border-left: none !important; border-top: var(--sq-rule) !important; }
  .feature:first-child { border-top: none !important; }

  .logo-sub { display: none; }
}
