/* ==========================================================================
   StitchFYN — Marketing Landing Page
   ========================================================================== */

:root {
  /* Green and golds taken from the logo kit */
  --color-primary:    #163d28;
  --color-deep:       #0f2c1d;
  --color-amber:      #e0a43a; /* on green, and for buttons */
  --color-gold-mid:   #c49a1a; /* marks and rules on light */
  --color-gold-ink:   #9e7a10; /* large text on light */
  --color-gold-small: #7a5d06; /* small text on light */
  --color-bg:         #f5f4f0;
  --color-surface:    #fafaf8;
  --color-text:       #1a2340;
  --color-muted:      #6b7280;
  --color-white:      #ffffff;

  --color-amber-light: #edbc66;
  --color-primary-light: #1f5238;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  --container-max: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

button { font: inherit; cursor: pointer; border: none; background: none; }

input, select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 640px;
}

section {
  padding: 96px 0;
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}

.btn-amber {
  background: var(--color-amber);
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(224, 164, 58, 0.35);
}

.btn-amber:hover {
  background: var(--color-amber-light);
  animation: pulse-amber 1.1s var(--ease) infinite;
}

@keyframes pulse-amber {
  0%   { box-shadow: 0 4px 14px rgba(224, 164, 58, 0.35); }
  50%  { box-shadow: 0 4px 24px rgba(224, 164, 58, 0.6); }
  100% { box-shadow: 0 4px 14px rgba(224, 164, 58, 0.35); }
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* ---------- Fade-up scroll animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
  padding: 22px 0;
}

.nav.is-scrolled {
  background: var(--color-white);
  box-shadow: 0 2px 18px rgba(26, 35, 64, 0.08);
  padding: 14px 0;
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  position: relative;
  z-index: 1100;
  flex-shrink: 0;
}

.nav-logo img { width: auto; height: 50px; }

/* White wordmark over the green hero and open menu, green wordmark on the white scrolled bar */
.nav-logo-light { display: none; }
.nav.is-scrolled:not(.menu-open) .nav-logo-dark { display: none; }
.nav.is-scrolled:not(.menu-open) .nav-logo-light { display: block; }

.nav-links {
  display: flex;
  gap: 28px;
  margin: 0 auto;
}

.nav-links a,
.nav-signin {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--color-text);
  transition: color 0.25s var(--ease);
}

.nav:not(.is-scrolled) .nav-links a,
.nav:not(.is-scrolled) .nav-signin { color: rgba(255,255,255,0.82); }

.nav.is-scrolled .nav-links a:hover,
.nav.is-scrolled .nav-signin:hover { color: var(--color-gold-ink); }
.nav:not(.is-scrolled) .nav-links a:hover,
.nav:not(.is-scrolled) .nav-signin:hover { color: var(--color-amber); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-cta {
  padding: 11px 24px;
  font-size: 0.88rem;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  z-index: 1100;
}

.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.is-scrolled .nav-burger span { background: var(--color-text); }
.nav:not(.is-scrolled) .nav-burger span { background: var(--color-white); }
.nav.menu-open .nav-burger span { background: var(--color-white); }

.nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  z-index: 1050;
}

.nav.menu-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-overlay-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-white);
  font-weight: 600;
}

.nav-overlay-cta { margin-top: 14px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  overflow: hidden;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background: url("assets/logo-mark-on-dark.png") no-repeat center / min(118vh, 130vw);
  opacity: 0.07;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-headline {
  color: var(--color-white);
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-sub {
  color: rgba(255,255,255,0.72);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  max-width: 620px;
  margin: 0 auto 16px;
}

.hero-support {
  color: var(--color-amber);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 44px;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 14px;
  z-index: 2;
}

.hero-scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-amber);
  animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
  0%   { top: 6px; opacity: 1; }
  70%  { top: 20px; opacity: 0; }
  100% { top: 20px; opacity: 0; }
}

/* ==========================================================================
   PATTERN SECTION
   ========================================================================== */
.pattern-section {
  background: var(--color-bg);
}

.pattern-opening {
  text-align: center;
  color: var(--color-primary);
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  max-width: 780px;
  margin: 0 auto 72px;
}

.pattern-opening span { color: var(--color-gold-ink); }

.spiral {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}

.spiral-step {
  position: relative;
  background: var(--color-surface);
  border-radius: 18px;
  padding: 32px 32px 32px 96px;
  box-shadow: 0 2px 10px rgba(26,35,64,0.05);
}

.spiral-step:nth-child(even) { margin-left: 0; }
.spiral-step:nth-child(odd) { margin-right: 0; }

@media (min-width: 768px) {
  .spiral-step:nth-child(odd) { margin-right: 8%; }
  .spiral-step:nth-child(even) { margin-left: 8%; }
}

.spiral-number {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-gold-ink);
  opacity: 0.8;
}

.spiral-step p {
  font-size: 1.05rem;
  color: var(--color-text);
}

.spiral-step[data-step="05"] {
  background: var(--color-primary);
}
.spiral-step[data-step="05"] p { color: var(--color-white); }
.spiral-step[data-step="05"] .spiral-number { color: var(--color-amber); opacity: 0.85; }

.pattern-closing {
  text-align: center;
  color: var(--color-primary);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  max-width: 700px;
  margin: 64px auto 0;
}

.pattern-closing span { color: var(--color-gold-ink); }

/* ==========================================================================
   PEOPLE SECTION
   ========================================================================== */
.people-section {
  background: var(--color-white);
}

.section-title {
  text-align: center;
  color: var(--color-primary);
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin-bottom: 56px;
}

.section-title span { color: var(--color-gold-ink); }
.section-title.light { color: var(--color-white); margin-bottom: 12px; }
.section-title.light span { color: var(--color-amber); }

.persona-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .persona-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

.persona-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.persona-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(26,35,64,0.1);
}

.persona-head h3 {
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 4px;
}

.persona-meta {
  color: var(--color-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.persona-problem {
  border-left: 3px solid var(--color-amber);
  padding-left: 16px;
  margin-bottom: 18px;
  font-size: 0.98rem;
  color: var(--color-text);
}

.persona-solution {
  border-left: 3px solid var(--color-primary);
  padding-left: 16px;
  font-size: 0.98rem;
  color: var(--color-primary);
  font-weight: 500;
}

/* ==========================================================================
   PLATFORM SECTION
   ========================================================================== */
.platform-section {
  background: var(--color-deep);
  color: var(--color-white);
}

.platform-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 64px;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .platform-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.platform-col {
  text-align: left;
}

.platform-icon {
  width: 56px;
  height: 56px;
  color: var(--color-amber);
  margin-bottom: 20px;
}

.platform-icon svg { width: 100%; height: 100%; }

.platform-col h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.platform-col p {
  color: rgba(255,255,255,0.78);
  font-size: 0.98rem;
}

/* ==========================================================================
   PROOF SECTION
   ========================================================================== */
.proof-section {
  background: var(--color-bg);
}

.stat-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 80px;
}

@media (min-width: 900px) {
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--color-primary);
  margin-bottom: 10px;
}

.stat p {
  color: var(--color-muted);
  font-size: 0.92rem;
  max-width: 220px;
  margin: 0 auto;
}

.callout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .callout-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.callout {
  background: var(--color-white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(26,35,64,0.05);
}

.callout h3 {
  color: var(--color-primary);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.callout p {
  color: var(--color-text);
  font-size: 0.98rem;
}

/* ---------- Fabric Safety Seal mock ---------- */
.seal-mock {
  margin-top: 28px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--color-primary), var(--color-deep));
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.seal-mock::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(120deg, rgba(224,164,58,0.08) 0, rgba(224,164,58,0.08) 2px, transparent 2px, transparent 26px);
}

.seal-mock-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.seal-mock-code {
  font-family: var(--font-mono);
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}

.seal-mock-badge {
  background: var(--color-amber);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
}

.seal-mock-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.seal-mock-qr {
  width: 76px;
  height: 76px;
  background: var(--color-white);
  border-radius: 10px;
  flex-shrink: 0;
  padding: 8px;
}

.seal-mock-qr-grid {
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(90deg, var(--color-primary) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(0deg, var(--color-primary) 0 6px, transparent 6px 12px);
  background-blend-mode: multiply;
  opacity: 0.9;
}

.seal-mock-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seal-mock-details span {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
}

.seal-mock-details span::before {
  content: "\2713 ";
  color: var(--color-amber);
  font-weight: 700;
}

/* ==========================================================================
   FOUNDING HERO
   ========================================================================== */
.founding-hero {
  position: relative;
  background: var(--color-primary);
  overflow: hidden;
}

.founding-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(224,164,58,0.06) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}

.founding-hero .container { position: relative; max-width: 800px; }

.founding-headline {
  color: var(--color-white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 40px;
}

.founding-body {
  color: rgba(255,255,255,0.85);
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 24px;
}

.founding-lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 56px 0 40px;
}

@media (min-width: 700px) {
  .founding-lists { grid-template-columns: 1fr 1fr; }
}

.founding-list h4 {
  color: var(--color-amber);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.founding-list li {
  color: var(--color-white);
  font-size: 0.98rem;
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.founding-list .check {
  color: var(--color-amber);
  font-weight: 700;
  flex-shrink: 0;
}

.founding-urgency {
  text-align: center;
  color: var(--color-amber);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   SIGNUP SECTION
   ========================================================================== */
.signup-section {
  background: var(--color-white);
}

.signup-headline {
  text-align: center;
  color: var(--color-primary);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: 10px;
}

.signup-sub {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 44px;
}

.founding-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-row input,
.form-row select {
  padding: 14px 16px;
  border: 1.5px solid #e2e0d8;
  border-radius: 10px;
  background: var(--color-surface);
  font-size: 1rem;
  transition: border-color 0.25s var(--ease);
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(22, 61, 40, 0.15);
}

.form-row.has-error input,
.form-row.has-error select {
  border-color: var(--color-amber);
}

.form-error {
  color: #8a5f00;
  font-size: 0.82rem;
  min-height: 1em;
}

.form-submit {
  margin-top: 10px;
  width: 100%;
}

.founding-success {
  text-align: center;
  padding: 48px 24px;
  background: var(--color-surface);
  border-radius: 16px;
}

.founding-success p {
  font-size: 1.15rem;
  color: var(--color-primary);
  font-weight: 500;
}

.signup-privacy {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: 28px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--color-deep);
  padding: 56px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 700px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

.footer-logo-img {
  width: 216px;
  height: auto;
  margin: -12px 0 10px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-white);
  margin-bottom: 8px;
}

.footer-tagline {
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.footer-copy {
  color: rgba(255,255,255,0.62);
  font-size: 0.8rem;
}

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

.footer-right a {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  transition: color 0.25s var(--ease);
}

.footer-right a:hover {
  color: var(--color-amber);
}

/* ==========================================================================
   RESPONSIVE — Mobile nav burger visibility
   ========================================================================== */
@media (max-width: 640px) {
  .nav-inner { gap: 12px; }
  .nav-signin { display: none; }
  .nav-cta {
    padding: 9px 16px;
    font-size: 0.78rem;
    margin-left: auto;
  }
}

@media (max-width: 960px) {
  .nav-burger { display: flex; flex-shrink: 0; margin-left: 16px; }
}

body.menu-locked { overflow: hidden; }

/* ==========================================================================
   CONVERSION ELEMENTS
   ========================================================================== */

/* ---------- Hero eyebrow + microcopy ---------- */
.hero-eyebrow {
  display: inline-block;
  background: rgba(224, 164, 58, 0.14);
  border: 1px solid rgba(224, 164, 58, 0.45);
  color: var(--color-amber-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero-microcopy {
  color: rgba(255,255,255,0.72);
  font-size: 0.85rem;
  margin-top: 18px;
}

/* ---------- Mid-page section CTAs ---------- */
.section-cta {
  text-align: center;
  margin-top: 64px;
}

.section-cta-lead {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.section-cta-note {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: 14px;
}

.section-cta-dark .section-cta-note {
  color: rgba(255,255,255,0.55);
}

/* ---------- Trust chips above form ---------- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.trust-row li {
  background: var(--color-bg);
  border: 1px solid #e2e0d8;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}

.trust-row li::before {
  content: "\2713 ";
  color: var(--color-gold-ink);
  font-weight: 700;
}

/* ---------- Form alert (submission failure) ---------- */
.form-alert {
  background: rgba(224, 164, 58, 0.1);
  border: 1.5px solid var(--color-amber);
  color: #7a5a00;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- Success share ---------- */
.founding-success .btn.success-share {
  margin-top: 24px;
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(22, 61, 40, 0.3);
  white-space: normal;
}

.founding-success .btn.success-share:hover {
  background: var(--color-primary-light);
}

.founding-success-note {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: 16px;
}

/* ---------- Sticky mobile CTA bar ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 -4px 20px rgba(26, 35, 64, 0.12);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}

.sticky-cta.is-shown {
  transform: translateY(0);
}

.sticky-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 15px 20px;
}

@media (min-width: 641px) {
  .sticky-cta { display: none; }
}

/* ---------- Secondary buttons ---------- */
.btn-ghost {
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-ghost:hover {
  border-color: var(--color-amber);
  color: var(--color-amber-light);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover { background: var(--color-primary-light); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; white-space: normal; }
}

/* ---------- Live status dot ---------- */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 10px;
  vertical-align: 1px;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

/* ---------- Section kicker ---------- */
.section-kicker {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold-small);
  margin-bottom: 14px;
}

.kicker-light { color: var(--color-amber-light); }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how-section { background: var(--color-bg); }

.journey {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: none;
}

@media (min-width: 700px) {
  .journey { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1040px) {
  .journey { grid-template-columns: repeat(4, 1fr); }
}

.journey-step {
  position: relative;
  background: var(--color-white);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 2px 10px rgba(26,35,64,0.05);
  border-top: 3px solid var(--color-amber);
}

.journey-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-amber-light);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 18px;
}

.journey-step h3 {
  color: var(--color-primary);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.journey-step p {
  color: var(--color-text);
  font-size: 0.95rem;
}

/* ---------- Platform feature grid ---------- */
.feature-heading {
  text-align: center;
  font-size: 1.3rem;
  margin: 80px 0 32px;
  color: var(--color-white);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 24px;
}

.feature h4 {
  color: var(--color-amber-light);
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.feature p {
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
}

/* ---------- Seal verification ---------- */
.verify-form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.verify-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.verify-row {
  display: flex;
  gap: 10px;
}

.verify-row input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e2e0d8;
  border-radius: 999px;
  background: var(--color-surface);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.verify-row input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.callout-grid > .callout { min-width: 0; }

@media (max-width: 640px) {
  .callout { padding: 28px 22px; }
}

.callout-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.callout-list li {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.callout-list li::before {
  content: "\2713  ";
  color: var(--color-gold-ink);
  font-weight: 700;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-section { background: var(--color-bg); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq {
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(26,35,64,0.05);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 24px;
  position: relative;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-gold-ink);
  transition: transform 0.25s var(--ease);
}

.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 14px;
}

.faq p {
  padding: 0 24px 22px;
  color: var(--color-muted);
  font-size: 0.97rem;
}

.signup-privacy a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ---------- Keyboard focus, anchor offset, spam trap ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-gold-mid);
  outline-offset: 3px;
}

section[id], .callout[id] { scroll-margin-top: 84px; }

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .btn-amber:hover { animation: none; }
  .hero-scroll-cue span { animation: none; }
  .sticky-cta { transition: none; }
  .live-dot { animation: none; }
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal { padding: 140px 0 96px; background: var(--color-white); }
.legal h1 { color: var(--color-primary); font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 8px; }
.legal h2 { color: var(--color-text); font-size: 1.15rem; margin: 36px 0 10px; }
.legal p { color: var(--color-text); }
.legal a { color: var(--color-primary); text-decoration: underline; }
.legal-updated { color: var(--color-muted) !important; font-size: 0.9rem; }
.legal-back { margin-top: 48px; }

/* ==========================================================================
   HOW TO USE GUIDE (guide.html)
   ========================================================================== */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  background: var(--color-amber);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.nav.is-scrolled .nav-links a[aria-current="page"] { color: var(--color-gold-ink); }
.nav:not(.is-scrolled) .nav-links a[aria-current="page"] { color: var(--color-amber); }

.guide-page { background: var(--color-bg); }

/* ---------- Hero ---------- */
.guide-hero {
  position: relative;
  background: var(--color-primary);
  overflow: hidden;
  padding: 150px 0 72px;
}
.guide-hero-inner { position: relative; z-index: 2; max-width: 860px; text-align: center; }
.guide-hero-title {
  color: var(--color-white);
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.guide-hero-title span { color: var(--color-amber-light); }
.guide-hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 680px;
  margin: 0 auto 32px;
}
.guide-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
}
.guide-legend li { display: flex; align-items: center; gap: 10px; }

/* ---------- Role chips ---------- */
.role {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.role-owner { background: rgba(22, 61, 40, 0.12); color: var(--color-primary); }
.role-tailor { background: rgba(26, 35, 64, 0.08); color: var(--color-text); }
.role-customer { background: rgba(224, 164, 58, 0.16); color: #7a5d06; }
.guide-legend .role-owner { background: rgba(255,255,255,0.14); color: var(--color-white); }
.guide-legend .role-tailor { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); }
.guide-legend .role-customer { background: rgba(224, 164, 58, 0.25); color: var(--color-amber-light); }

/* ---------- Layout: contents + steps ---------- */
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 96px;
}
@media (min-width: 1080px) {
  .guide-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-top: 56px; }
}

.guide-toc-box {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(26,35,64,0.05);
  padding: 4px 20px;
}
.guide-toc-box summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  padding: 14px 0;
}
.guide-toc-box nav { padding-bottom: 16px; }
.toc-part {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-small);
  margin: 14px 0 6px;
}
.guide-toc ol { list-style: decimal; padding-left: 22px; }
.guide-toc li { color: var(--color-muted); font-size: 0.88rem; margin: 2px 0; }
.guide-toc a {
  display: block;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--color-text);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.guide-toc a:hover { color: var(--color-primary); background: rgba(22, 61, 40, 0.06); }
.guide-toc a.is-current { color: var(--color-primary); font-weight: 600; background: rgba(22, 61, 40, 0.08); }

@media (min-width: 1080px) {
  .guide-toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; }
  .guide-toc-box summary { pointer-events: none; list-style: none; }
  .guide-toc-box summary::-webkit-details-marker { display: none; }
}

/* ---------- Parts and steps ---------- */
.guide-main:focus { outline: none; }
.guide-part { padding: 0; }
.guide-part + .guide-part { margin-top: 72px; }
.guide-part-title {
  color: var(--color-primary);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.guide-part-title span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-small);
}
.guide-part-intro { max-width: 760px; margin: -8px 0 24px; }
.guide-part-intro em { font-style: normal; font-weight: 600; color: var(--color-primary); }

.guide-step {
  background: var(--color-white);
  border-radius: 18px;
  border-top: 3px solid var(--color-amber);
  box-shadow: 0 2px 10px rgba(26,35,64,0.05);
  padding: 32px;
  scroll-margin-top: 96px;
}
.guide-step + .guide-step { margin-top: 28px; }
@media (max-width: 640px) {
  .guide-step { padding: 24px 18px; border-radius: 14px; }
}

.guide-step-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.guide-step-head .journey-num { flex-shrink: 0; margin-bottom: 0; }
.guide-step-head h3 { color: var(--color-primary); font-size: 1.3rem; margin: 6px 0 8px; }
.guide-roles { display: flex; flex-wrap: wrap; gap: 6px; }

.guide-copy { max-width: 760px; }
.guide-copy > * + * { margin-top: 14px; }
.guide-copy strong { color: var(--color-text); }
.guide-copy em { font-style: normal; font-weight: 600; color: var(--color-primary); }
.guide-do, .guide-list { padding-left: 22px; }
.guide-do { list-style: decimal; }
.guide-list { list-style: disc; }
.guide-do li, .guide-list li { margin: 8px 0; padding-left: 4px; }
.guide-do li::marker { color: var(--color-gold-ink); font-family: var(--font-heading); font-weight: 700; }
.guide-list a { color: var(--color-primary); text-decoration: underline; }
.guide-result {
  border-left: 3px solid var(--color-primary);
  padding: 4px 0 4px 14px;
}
.guide-tip {
  background: rgba(224, 164, 58, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.94rem;
}

/* ---------- Screenshots ---------- */
.guide-shot { margin-top: 24px; }
.guide-shot figcaption { color: var(--color-muted); font-size: 0.88rem; margin-top: 10px; }
.shot-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e4e0;
  box-shadow: 0 8px 28px rgba(26,35,64,0.1);
  background: var(--color-surface);
  cursor: zoom-in;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.shot-zoom:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(26,35,64,0.14); }
.shot-zoom:focus-visible { outline: 3px solid var(--color-amber); outline-offset: 3px; }
.shot-zoom img { width: 100%; height: auto; }

.guide-shot-small { max-width: 460px; }
.guide-shot-phone { max-width: 300px; }
.guide-shot-phone .shot-zoom { border-radius: 22px; border: 6px solid var(--color-text); }

.guide-shots { display: grid; gap: 24px; margin-top: 24px; align-items: start; }
.guide-shots .guide-shot { margin-top: 0; }
@media (min-width: 760px) {
  .guide-shots-split { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .guide-shots-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
  .guide-shots-reverse .guide-shot-small { order: -1; }
  .guide-shots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-shots-phones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-shots-phones .guide-shot-phone { max-width: none; }
}
@media (max-width: 759px) {
  .guide-shots-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .guide-shots-phones .guide-shot-phone .shot-zoom { border-width: 4px; border-radius: 16px; }
}

.guide-split { display: grid; gap: 24px; align-items: start; }
.guide-split > .guide-shot { margin-top: 0; }
@media (min-width: 900px) {
  .guide-split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; }
  .guide-split-phone { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 899px) {
  .guide-split .guide-shot-phone { margin: 0 auto; }
}

/* ---------- Closing call to action ---------- */
.guide-end {
  margin-top: 72px;
  padding: 48px 32px;
  border-radius: 18px;
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
  text-align: center;
}
.guide-end h2 { color: var(--color-white); font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 12px; }
.guide-end p { max-width: 560px; margin: 0 auto; }
.guide-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 28px 0 20px; }
.guide-end-top a { color: var(--color-amber-light); text-decoration: underline; font-size: 0.92rem; }
.btn-ghost-dark { color: var(--color-white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost-dark:hover { border-color: var(--color-amber); color: var(--color-amber-light); }
@media (max-width: 640px) {
  .guide-end { padding: 36px 20px; }
  .guide-end-actions .btn { white-space: normal; width: 100%; }
}

/* ---------- Lightbox ---------- */
.shot-lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(1400px, 96vw);
  max-height: 94vh;
  margin: auto;
  overflow: visible;
}
.shot-lightbox::backdrop { background: rgba(14, 22, 18, 0.85); }
.shot-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(94vh - 56px);
  width: auto;
  margin: 0 auto;
  border-radius: 10px;
  background: var(--color-white);
}
.shot-lightbox-caption { color: rgba(255,255,255,0.85); text-align: center; margin-top: 12px; font-size: 0.92rem; }
.shot-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text);
  font-size: 1.6rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.shot-lightbox-close:focus-visible { outline: 3px solid var(--color-amber); outline-offset: 2px; }
@media (max-width: 640px) {
  .shot-lightbox-close { top: -48px; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .shot-zoom, .shot-zoom:hover { transition: none; transform: none; }
}

/* ---------- 404 ---------- */
.notfound-logo { width: 240px; height: auto; margin: 0 auto 32px; }

/* ---------- Photography ---------- */
/* Falls back to plain green if the file is absent; the gradient keeps white text readable over any photo */
.hero-photo {
  position: absolute;
  inset: 0;
  background: url("assets/photos/hero-tailor.webp") no-repeat 78% center / cover;
  pointer-events: none;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22,61,40,1) 0%, rgba(22,61,40,0.6) 28%, rgba(22,61,40,0.15) 70%, rgba(22,61,40,0.1) 100%);
}

/* Photo on the right so the headline never crosses the subject's face */
.hero-home .hero-photo { left: 40%; }
.hero-home .hero-pattern { display: none; }

.hero-home { justify-content: flex-start; text-align: left; }

.hero-home .hero-content {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-home .hero-content > * { max-width: 640px; }
.hero-home .hero-sub { margin-left: 0; }
.hero-home .hero-actions { justify-content: flex-start; }
.hero-home .hero-eyebrow { display: table; }

@media (max-width: 900px) {
  .hero-home { text-align: center; padding-left: 0; padding-right: 0; }
  .hero-home .hero-content > * { margin-left: auto; margin-right: auto; }
  .hero-home .hero-actions { justify-content: center; }
  .hero-home .hero-photo { left: 0; background-position: 70% top; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(22,61,40,0.8) 0%, rgba(22,61,40,0.88) 45%, rgba(22,61,40,0.97) 100%); }
}

.guide-hero .hero-pattern { display: none; }
.guide-hero-photo { background-image: url("assets/photos/guide-designer.webp"); background-position: center 30%; }
.guide-hero-photo::after { background: linear-gradient(180deg, rgba(22,61,40,0.76) 0%, rgba(22,61,40,0.9) 100%); }

.photo-card { margin: 0 0 24px; border-radius: 14px; overflow: hidden; background: rgba(22,61,40,0.08); }
.photo-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-card-wide { margin: 0 auto 40px; max-width: 680px; }
.photo-card-wide img { aspect-ratio: 16 / 9; }
