/* ── Palette tokens (mirror lib/src/core/theme/app_theme.dart editorial palette) ── */
:root {
  --cream: #F9F5EE;
  --cream-warm: #F2EBDD;
  --beige: #EDE8DE;
  --taupe: #A9A090;
  --olive: #30302A;
  --accent: #65758F;
  --accent-deep: #4F5D74;
  --rule: rgba(48, 48, 42, 0.18);
  --rule-soft: rgba(48, 48, 42, 0.10);
  --error: #B85450;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', 'Cormorant Garamond', 'Times New Roman', serif;
}

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

html, body {
  min-height: 100%;
  background: var(--cream);
  color: var(--olive);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "kern", "liga", "calt", "ss01";
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(circle at 12% 5%, var(--cream-warm), transparent 50%),
    radial-gradient(circle at 88% 30%, rgba(101, 117, 143, 0.05), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(169, 160, 144, 0.10), transparent 55%),
    var(--cream);
  background-attachment: fixed;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ════════════════════════════════════════════════════════════
   TOP BAND — taupe block + logo + tagline + static wave
   ════════════════════════════════════════════════════════════ */
.top-band {
  background: #A9A090; /* Hard-locked: must remain exactly this colour. */
  position: relative;
}

.top-strip {
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (min-width: 480px) {
  .top-strip { padding: 14px 24px; gap: 16px; }
}

.strip-item { color: var(--cream); opacity: 0.85; }

.locale-toggle {
  background: transparent;
  border: 1px solid rgba(249, 245, 238, 0.4);
  color: var(--cream);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.locale-toggle:hover {
  background: var(--cream);
  color: var(--olive);
  border-color: var(--cream);
}

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 18px 10px;
}
@media (min-width: 480px) { .masthead { padding: 8px 24px 12px; gap: 8px; } }
@media (min-width: 768px) { .masthead { padding: 10px 40px 14px; gap: 10px; } }

.wordmark {
  width: 100%;
  max-width: 380px;
  height: auto;
}
@media (min-width: 768px) { .wordmark { max-width: 440px; } }

.tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  text-align: center;
  color: var(--cream);
  letter-spacing: 0.02em;
  font-variation-settings: 'opsz' 18;
  max-width: 460px;
}
@media (min-width: 768px) { .tagline { font-size: 17px; } }

.wave-divider {
  display: block;
  width: 100%;
  height: 110px;
  /* Negative margins on both sides hide sub-pixel seams between the taupe
     band above and the cream area below — without these, browser AA can
     leave a hairline. */
  margin-top: -1px;
  margin-bottom: -1px;
}
@media (min-width: 768px) { .wave-divider { height: 140px; } }

/* ════════════════════════════════════════════════════════════
   MAIN SHELL
   ════════════════════════════════════════════════════════════ */
.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 18px 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 480px) { .shell { padding: 44px 24px 40px; gap: 48px; } }
@media (min-width: 768px) { .shell { padding: 56px 40px 48px; gap: 56px; } }

/* Form & social sections stay narrower so the form doesn't feel stretched. */
.form-section, .social-grid {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* ════════════════════════════════════════════════════════════
   FORM SECTION — beige panel with stamp badge + accent corner
   ════════════════════════════════════════════════════════════ */
.form-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 22px 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 40%),
    var(--beige);
  border: 1px solid var(--olive);
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(48, 48, 42, 0.04),
    0 1px 0 rgba(48, 48, 42, 0.05),
    0 12px 28px -16px rgba(28, 26, 22, 0.18);
}
@media (min-width: 480px) { .form-section { padding: 38px 30px 30px; gap: 20px; } }
@media (min-width: 768px) { .form-section { padding: 48px 52px 36px; } }

/* Top-right accent bar (kept). */
.form-section::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 80px; height: 6px;
  background: var(--accent);
}

/* L-shaped corner registration marks — editorial framing detail. */
.form-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.form-corner-tl {
  top: 12px; left: 12px;
  border-top: 1px solid var(--olive);
  border-left: 1px solid var(--olive);
}
.form-corner-tr {
  top: 12px; right: 12px;
  border-top: 1px solid var(--olive);
  border-right: 1px solid var(--olive);
}
.form-corner-bl {
  bottom: 12px; left: 12px;
  border-bottom: 1px solid var(--olive);
  border-left: 1px solid var(--olive);
}
.form-corner-br {
  bottom: 12px; right: 12px;
  border-bottom: 1px solid var(--olive);
  border-right: 1px solid var(--olive);
}

/* Hairline + dot ornament between headline and form. */
.form-fleuron {
  display: flex;
  justify-content: center;
  color: var(--accent);
  margin: -4px 0 -2px;
}
.form-fleuron svg {
  width: 72px;
  height: 8px;
  display: block;
  opacity: 0.7;
}

.form-headline {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--olive);
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 40;
}

.form { display: contents; }

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
@media (min-width: 520px) { .field { flex-direction: row; gap: 8px; } }

input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--olive);
  background: var(--cream);
  border: 1px solid var(--olive);
  border-radius: 0;
  padding: 16px 18px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
input[type="email"]::placeholder { color: var(--taupe); }
input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(101, 117, 143, 0.18);
  background: #FFFFFF;
}

button[type="submit"] {
  position: relative;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--olive);
  border: 1px solid var(--olive);
  border-radius: 0;
  padding: 16px 30px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.05s ease;
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button[type="submit"]:hover {
  background: var(--accent);
  border-color: var(--accent);
}
button[type="submit"]:active { transform: scale(0.98); }
button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--olive);
  border-color: var(--olive);
}

.spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
button.loading .btn-label { opacity: 0; }
button.loading .spinner {
  display: block;
  position: absolute;
  top: 50%; left: 50%;
  margin: -7px 0 0 -7px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.message {
  font-size: 14px;
  min-height: 20px;
  margin-top: 4px;
  color: var(--taupe);
}
.message.success { color: var(--olive); font-weight: 500; }
.message.error { color: var(--error); }

.disclaimer {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  color: var(--taupe);
  line-height: 1.5;
  text-align: center;
  font-variation-settings: 'opsz' 18;
  padding-top: 6px;
  border-top: 1px solid var(--rule-soft);
}

/* ════════════════════════════════════════════════════════════
   FEATURES — editorial cards (I. Shopping · II. AI stylist)
   ════════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 920px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

.feature-card {
  position: relative;
  border: 1px solid var(--olive);
  padding: 30px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow:
    inset 0 0 0 1px rgba(48, 48, 42, 0.04),
    0 1px 0 rgba(48, 48, 42, 0.04),
    0 8px 22px -14px rgba(28, 26, 22, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ── Card variants — three palette tones for visual rhythm ── */
.feature-card-cream {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.45) 0%, transparent 45%),
    var(--beige);
}

.feature-card-taupe {
  background:
    linear-gradient(180deg, rgba(249,245,238,0.18) 0%, transparent 50%),
    var(--taupe);
  color: var(--cream);
  border-color: var(--olive);
}
.feature-card-taupe .feature-headline { color: var(--cream); }
.feature-card-taupe .feature-body { color: var(--cream); opacity: 0.92; }
.feature-card-taupe .feature-num { color: var(--cream); opacity: 0.75; }
.feature-card-taupe .feature-rule { background: var(--cream); opacity: 0.5; }

.feature-card-olive {
  background:
    linear-gradient(180deg, rgba(249,245,238,0.06) 0%, transparent 60%),
    var(--olive);
  color: var(--cream);
  border-color: var(--olive);
}
.feature-card-olive .feature-headline { color: var(--cream); }
.feature-card-olive .feature-body { color: var(--cream); opacity: 0.78; }
.feature-card-olive .feature-num { color: var(--accent); opacity: 0.95; }
.feature-card-olive .feature-rule { background: var(--accent); opacity: 0.85; }
@media (min-width: 480px) { .feature-card { padding: 36px 28px 30px; } }
@media (min-width: 768px) { .feature-card { padding: 40px 32px 32px; } }

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(48, 48, 42, 0.04),
    0 1px 0 rgba(48, 48, 42, 0.04),
    0 14px 30px -14px rgba(28, 26, 22, 0.22);
}

/* Italic Roman numeral, top-right corner. */
.feature-num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-variation-settings: 'opsz' 32;
  line-height: 1;
}

.feature-headline {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--olive);
  font-variation-settings: 'opsz' 32;
  padding-right: 36px; /* avoid overlap with numeral */
}

.feature-rule {
  height: 1px;
  width: 36px;
  background: var(--accent);
  margin: 2px 0 4px;
}

.feature-body {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
  color: var(--olive);
  opacity: 0.82;
  font-variation-settings: 'opsz' 18;
}
@media (min-width: 480px) { .feature-body { font-size: 16px; } }

/* ════════════════════════════════════════════════════════════
   SOCIAL — Instagram + TikTok cards
   ════════════════════════════════════════════════════════════ */
.social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) {
  .social-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

.social-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 22px 22px 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 50%),
    var(--beige);
  border: 1px solid var(--olive);
  color: var(--olive);
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease,
              color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(48, 48, 42, 0.04),
    0 1px 0 rgba(48, 48, 42, 0.04);
}

.social-card:hover {
  background: var(--olive);
  color: var(--cream);
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px rgba(249, 245, 238, 0.08),
    0 14px 28px -12px rgba(28, 26, 22, 0.28);
}

/* Accent stripe on the leading edge — premium editorial detail. */
.social-stripe {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  background: var(--accent);
  transition: width 0.3s ease, background 0.3s ease;
}
.social-card:hover .social-stripe {
  width: 6px;
  background: var(--cream);
}

/* Italic numeral badge floated to the top-right. */
.social-num {
  position: absolute;
  top: 10px; right: 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  color: var(--taupe);
  letter-spacing: 0.04em;
  font-variation-settings: 'opsz' 18;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.social-card:hover .social-num {
  color: var(--cream);
  opacity: 0.6;
}

.social-icon-wrap {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.social-icon-wrap svg {
  width: 22px;
  height: 22px;
  color: currentColor;
}

.social-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.social-platform {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  font-variation-settings: 'opsz' 18;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}
.social-card:hover .social-platform {
  color: var(--cream);
  opacity: 0.78;
}

.social-handle {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.social-arrow {
  font-family: var(--font-serif);
  font-size: 22px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.25s ease, color 0.25s ease;
}
.social-card:hover .social-arrow {
  transform: translateX(4px);
  color: var(--cream);
}

/* ════════════════════════════════════════════════════════════
   FOOTER DIVIDER — hairline + 8-pointed star ornament
   ════════════════════════════════════════════════════════════ */
.footer-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  color: var(--accent);
}
.footer-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--rule) 30%,
    var(--rule) 70%,
    transparent 100%
  );
}
.footer-divider-mark {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ════════════════════════════════════════════════════════════
   FOOTER — multi-column, compact
   ════════════════════════════════════════════════════════════ */
.footer {
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 520px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-mark {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--olive);
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 24;
  text-transform: none;
}

.footer-meta {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 2px;
}

.footer-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.footer-block a {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 14px;
  color: var(--olive);
  text-decoration: none;
  transition: color 0.2s ease;
  font-variation-settings: 'opsz' 18;
}
.footer-block a:hover { color: var(--accent); text-decoration: underline; }

.footer-bar {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* Honeypot: hidden from humans, visible to naïve bots that scan the DOM. */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
