/* ============================================================
   EconomyStore.in — Coming Soon
   Version: 1.0
   Design system: COMING_SOON_UI_SYSTEM_V1.md
   Mobile-first. No framework. No preprocessor.
   ============================================================ */


/* ── 1. Custom Properties ────────────────────────────────── */

:root {
  /* Backgrounds */
  --bg-base:    #F8F6F2;
  --bg-surface: #FFFFFF;
  --bg-subtle:  #F0EDE8;
  --bg-inverse: #0F2444;

  /* Text */
  --text-primary:              #111827;
  --text-secondary:            #4B5563;
  --text-tertiary:             #9CA3AF;
  --text-on-inverse:           #F8F6F2;
  --text-on-inverse-secondary: #9BA8BB;
  --text-link:                 #1A4E8A;

  /* Brand */
  --brand-navy:         #0F2444;
  --brand-navy-lighter: #1A3A6B;

  /* Accent — used for success states only */
  --accent-forest:        #1B5E3B;
  --accent-forest-light:  #F0FAF4;
  --accent-forest-border: #A7D7B9;

  /* States */
  --state-error:        #B91C1C;
  --state-error-bg:     #FEF2F2;
  --state-error-border: #FECACA;

  /* Neutrals */
  --neutral-200: #E5E1DA;
  --neutral-300: #D1CBC0;
  --neutral-500: #8A7F74;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Spacing — 4px base unit */
  --s1:  4px;
  --s2:  8px;
  --s3:  12px;
  --s4:  16px;
  --s5:  20px;
  --s6:  24px;
  --s8:  32px;
  --s10: 40px;
  --s12: 48px;
  --s16: 64px;
  --s20: 80px;
  --s24: 96px;

  /* Layout */
  --max-width:     1200px;
  --reading-width: 680px;
  --page-margin:   20px;
}


/* ── 2. Reset & Base ─────────────────────────────────────── */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover { color: var(--brand-navy); }

a:focus-visible {
  outline: 2px solid var(--brand-navy);
  outline-offset: 3px;
  border-radius: 2px;
  text-decoration: none;
}

ul, ol { list-style: none; }


/* ── 3. Skip Link ────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s4);
  padding: var(--s2) var(--s4);
  background: var(--brand-navy);
  color: var(--text-on-inverse);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  z-index: 9999;
  transition: top 0.1s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--text-on-inverse);
  outline-offset: -4px;
}


/* ── 4. Container ────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--page-margin);
}

@media (min-width: 768px) {
  .container { padding-inline: 40px; }
}

@media (min-width: 1200px) {
  .container { padding-inline: 80px; }
}


/* ── 5. Buttons ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 var(--s6);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--brand-navy);
  outline-offset: 2px;
}

/* Primary */
.btn-primary {
  background-color: var(--brand-navy);
  color: var(--text-on-inverse);
}

.btn-primary:hover {
  background-color: var(--brand-navy-lighter);
  color: var(--text-on-inverse);
  text-decoration: none;
}

.btn-primary:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:active { transform: none; }
}

/* Secondary (outline) */
.btn-secondary {
  background-color: transparent;
  color: var(--brand-navy);
  border: 1.5px solid var(--brand-navy);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  color: var(--brand-navy);
  text-decoration: none;
}

.btn-secondary:active { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  .btn-secondary:active { transform: none; }
}


/* ── 6. Form Elements ────────────────────────────────────── */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.form-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}

.required-mark {
  color: var(--state-error);
  margin-left: 2px;
  font-weight: 400;
  font-style: normal;
}

.form-input,
.form-select {
  height: 48px;
  padding: 0 var(--s4);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder { color: var(--neutral-500); }

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(15, 36, 68, 0.12);
}

.form-input[aria-invalid="true"],
.form-select[aria-invalid="true"] {
  border-color: var(--state-error);
  box-shadow: none;
}

.form-input[aria-invalid="true"]:focus,
.form-select[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

/* Select — custom arrow */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%234B5563' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s4) center;
  padding-right: var(--s10);
  cursor: pointer;
}

/* Form result messages */
.form-result {
  display: none;
  font-size: 14px;
  line-height: 1.55;
  border-radius: 8px;
  padding: var(--s3) var(--s4);
  margin-top: var(--s3);
}

.form-result.is-visible { display: block; }

.form-result.is-preview {
  color: var(--text-secondary);
  background-color: var(--bg-subtle);
  border: 1px solid var(--neutral-200);
}

.form-result.is-error {
  color: var(--state-error);
  background-color: var(--state-error-bg);
  border: 1px solid var(--state-error-border);
}

.form-result.is-success {
  color: var(--accent-forest);
  background-color: var(--accent-forest-light);
  border: 1px solid var(--accent-forest-border);
}

/* Honeypot — invisible to humans */
.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}


/* ── 7. Utilities ────────────────────────────────────────── */

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

/* Section divider */
.section-rule {
  border: none;
  border-top: 1px solid var(--neutral-200);
}


/* ── 8. Site Header ──────────────────────────────────────── */

.site-header {
  padding-top: var(--s8);
  padding-bottom: 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wordmark {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-block;
}

@media (min-width: 768px) {
  .site-header { padding-top: var(--s12); }
  .wordmark { font-size: 24px; }
}

@media (min-width: 1200px) {
  .site-header { padding-top: var(--s16); }
  .wordmark { font-size: 26px; }
}


/* ── 9. Hero ─────────────────────────────────────────────── */

.hero {
  padding-top: var(--s12);
  padding-bottom: var(--s16);
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    padding-top: var(--s16);
    padding-bottom: var(--s20);
  }
}

@media (min-width: 1200px) {
  .hero {
    padding-top: var(--s20);
    padding-bottom: var(--s12); /* reduced from s24: closes the empty-zone gap on 900px viewports */
  }
}

.hero-content {
  max-width: 760px;
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--s6);
}

/* Hero H1 */
.hero h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--s6);
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: var(--s6);
  }
}

@media (min-width: 1200px) {
  .hero h1 {
    font-size: 64px;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: var(--s8);
  }
}

/* Hero subheadline */
.hero-sub {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--s12);
}

@media (min-width: 1200px) {
  .hero-sub { font-size: 20px; }
}

/* Waitlist form */
.waitlist-form { max-width: 480px; margin-inline: auto; }

.waitlist-row {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

@media (min-width: 520px) {
  .waitlist-row {
    flex-direction: row;
  }

  .waitlist-row .form-input {
    flex: 1;
    min-width: 0;
  }

  .waitlist-row .btn {
    flex-shrink: 0;
  }
}

.waitlist-form .btn-primary { width: 100%; }

@media (min-width: 520px) {
  .waitlist-form .btn-primary { width: auto; }
}

.waitlist-meta {
  margin-top: var(--s3);
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.5;
}

.waitlist-meta a {
  color: var(--text-tertiary);
  text-underline-offset: 2px;
}

.waitlist-meta a:hover { color: var(--text-secondary); }


/* ── 10. About ───────────────────────────────────────────── */

.about {
  padding-top: var(--s16);
  padding-bottom: var(--s16);
}

@media (min-width: 768px) {
  .about { padding-top: var(--s20); padding-bottom: var(--s20); }
}

@media (min-width: 1200px) {
  .about { padding-top: var(--s16); padding-bottom: var(--s24); } /* top reduced from s24: pairs with hero fix to bring about text into viewport */
}

.about .container {
  display: flex;
  justify-content: center;
}

.about-body {
  max-width: var(--reading-width);
  text-align: center;
}

.about-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.about-body p + p { margin-top: var(--s6); }

@media (min-width: 1200px) {
  .about-body p { font-size: 18px; }
}


/* ── 11. Trust Cards ─────────────────────────────────────── */

.trust-cards {
  padding-top: var(--s16);
  padding-bottom: var(--s16);
  background-color: var(--bg-surface);
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
}

@media (min-width: 768px) {
  .trust-cards { padding-top: var(--s20); padding-bottom: var(--s20); }
}

@media (min-width: 1200px) {
  .trust-cards { padding-top: var(--s24); padding-bottom: var(--s24); }
}

.trust-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}

@media (min-width: 640px) {
  .trust-cards-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
}

.trust-card {
  padding: var(--s6);
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background-color: var(--bg-surface);
}

@media (min-width: 1200px) {
  .trust-card { padding: var(--s8); }
}

.trust-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--s3);
  line-height: 1.35;
}

@media (min-width: 1200px) {
  .trust-card h3 { font-size: 17px; }
}

.trust-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (min-width: 1200px) {
  .trust-card p { font-size: 15px; }
}


/* ── 12. Seller Section ──────────────────────────────────── */

.seller {
  padding-top: var(--s16);
  padding-bottom: var(--s16);
}

@media (min-width: 768px) {
  .seller { padding-top: var(--s20); padding-bottom: var(--s20); }
}

@media (min-width: 1200px) {
  .seller { padding-top: var(--s24); padding-bottom: var(--s24); }
}

.seller-card {
  max-width: 680px;
  margin-inline: auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  padding: var(--s6);
}

@media (min-width: 768px) {
  .seller-card { padding: var(--s8); }
}

.seller-card h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--s4);
}

@media (min-width: 1200px) {
  .seller-card h2 { font-size: 26px; }
}

.seller-intro {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--s6);
}

.seller-points {
  margin-bottom: var(--s6);
  padding-left: var(--s5);
  list-style: disc;
}

.seller-points li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--s2);
}

/* Seller form grid */
.seller-form { margin-top: var(--s6); }

.seller-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}

@media (min-width: 560px) {
  .seller-grid { grid-template-columns: 1fr 1fr; }
  .seller-grid .col-span-2 { grid-column: 1 / -1; }
}

.seller-form .form-actions { margin-top: var(--s6); }

.seller-form .btn-primary { width: 100%; }

@media (min-width: 560px) {
  .seller-form .btn-primary { width: auto; }
}

.seller-disclaimer {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: var(--s3);
  line-height: 1.55;
}


/* ── 13. Logistics Section ───────────────────────────────── */

.logistics {
  padding-top: var(--s16);
  padding-bottom: var(--s16);
  border-top: 1px solid var(--neutral-200);
}

@media (min-width: 768px) {
  .logistics { padding-top: var(--s20); padding-bottom: var(--s20); }
}

@media (min-width: 1200px) {
  .logistics { padding-top: var(--s24); padding-bottom: var(--s24); }
}

.logistics-body {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}

.logistics-body h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--s4);
}

@media (min-width: 1200px) {
  .logistics-body h2 { font-size: 26px; }
}

.logistics-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--s6);
}

.logistics-body .note {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: var(--s3);
  margin-bottom: 0;
}


/* ── 14. Site Footer ─────────────────────────────────────── */

.site-footer {
  background-color: var(--bg-inverse);
  padding-top: var(--s10);
  padding-bottom: var(--s10);
}

@media (min-width: 768px) {
  .site-footer { padding-top: var(--s12); padding-bottom: var(--s12); }
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 0;
  }
}

.footer-copy {
  font-size: 13px;
  color: var(--text-on-inverse-secondary);
  font-family: var(--font-body);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 640px) {
  .footer-links { justify-content: flex-end; }
}

.footer-links a {
  font-size: 13px;
  color: var(--text-on-inverse-secondary);
  text-decoration: none;
  padding: var(--s3) 0; /* 12px top/bottom — brings mobile tap target to ~44px */
}

.footer-links a:hover { color: var(--text-on-inverse); }

.footer-links a:focus-visible {
  outline: 2px solid var(--text-on-inverse);
  outline-offset: 2px;
  border-radius: 2px;
}


/* ── 15. Content Pages (Privacy, Terms) ──────────────────── */

.content-page main {
  padding-top: var(--s16);
  padding-bottom: var(--s24);
}

@media (min-width: 768px) {
  .content-page main { padding-top: var(--s20); }
}

.content-inner {
  max-width: var(--reading-width);
  margin-inline: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: var(--s8);
}

.back-link:hover { color: var(--text-primary); }

.back-link svg {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.content-inner h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: var(--s4);
}

@media (min-width: 768px) {
  .content-inner h1 { font-size: 36px; margin-bottom: var(--s4); }
}

.content-inner .meta {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: var(--s8);
}

.content-inner h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-top: var(--s8);
  margin-bottom: var(--s4);
}

@media (min-width: 768px) {
  .content-inner h2 { font-size: 20px; }
}

.content-inner p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--s4);
}

.content-inner ul {
  list-style: disc;
  padding-left: var(--s6);
  margin-bottom: var(--s4);
}

.content-inner ul li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--s2);
}

.content-inner a { color: var(--text-link); }

.content-inner strong {
  font-weight: 600;
  color: var(--text-primary);
}

.placeholder-note {
  background-color: var(--state-error-bg);
  border: 1px solid var(--state-error-border);
  border-radius: 6px;
  padding: var(--s3) var(--s4);
  margin-bottom: var(--s8);
  font-size: 13px;
  color: var(--state-error);
  line-height: 1.5;
}

.placeholder-note strong {
  color: var(--state-error);
}


/* ── 16. Inline-style replacements (CSP safe) ───────────── */

/* Waitlist form: the .form-group inside .waitlist-row must flex-grow */
.waitlist-row .form-group--flex {
  flex: 1;
  min-width: 0;
}

/* Seller section: second intro paragraph sits directly below first with no gap */
.seller-intro--no-top { margin-top: 0; }

/* Optional field label annotation */
.field-optional {
  font-weight: 400;
  color: var(--text-tertiary);
  font-size: 12px;
}


/* ── 17. Print Styles ────────────────────────────────────── */

@media print {
  .site-header,
  .site-footer,
  .waitlist-form,
  .seller-form,
  .logistics,
  .skip-link { display: none; }

  body {
    color: black;
    background: white;
    font-size: 12pt;
  }

  a[href]::after { content: " (" attr(href) ")"; }
}
