/* ════════════════════════════════════════════════════════
   Tína Cosmetics — Coming Soon — style.css
   Fonts   : Cormorant Garamond (300, 400) + Inter (400) — Google Fonts
   Palette : CVI v1.0 — all warm-shifted, no pure black or white
   ════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400&family=Inter:wght@400&display=swap');

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* ── CSS VARIABLES ──────────────────────────────────────── */
:root {
  --sand:      #F0ECE4;
  --linen:     #EDE8E0;
  --stone:     #D8D3C8;
  --ash:       #C4BCB0;
  --driftwood: #A89F94;
  --bark:      #7A7268;
  --earth:     #4A443C;
  --dark:      #3A342C;
  --darker:    #2A2420;
  --page:      #FAF8F4;
}

/* ── BASE ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--page);
  color: var(--earth);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

body.modal-open { overflow: hidden; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--earth);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  color: var(--earth);
  line-height: 1.15;
  margin-bottom: 14px;
}

h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--earth);
  margin: 18px 0 6px;
}

h3:first-child { margin-top: 0; }

p { line-height: 1.75; }

/* Eyebrow label */
.eyebrow {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--driftwood);
  margin-bottom: 20px;
  display: block;
}

.eyebrow-light { color: var(--bark); }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  background: var(--earth);
  color: var(--sand);
  border: none;
  padding: 13px 28px;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-primary:focus-visible { background: var(--dark); outline: none; }
.btn-primary.sm { padding: 10px 20px; font-size: 10px; }

.btn-ghost {
  background: transparent;
  color: var(--earth);
  border: 0.5px solid var(--stone);
  padding: 13px 28px;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: border-color 0.2s;
}

.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--bark); outline: none; }
.btn-ghost.sm { padding: 10px 20px; font-size: 10px; }

.btn-sand {
  background: var(--sand);
  color: var(--earth);
  border: none;
  padding: 13px 28px;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-sand:hover, .btn-sand:focus-visible { background: var(--linen); outline: none; }

.btn-text-link {
  background: none;
  border: none;
  color: var(--driftwood);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  cursor: pointer;
}

.btn-text-link:hover { color: var(--ash); }

/* ── NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sand);
  border-bottom: 0.5px solid var(--stone);
  height: 96px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

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

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  background: var(--sand);
  border-bottom: 0.5px solid var(--stone);
  padding: 88px 48px 80px;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
}

.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 64px;
  align-items: start;
}

.hero-body {
  font-size: 15px;
  color: var(--bark);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 28px;
}

.hero-sizes {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
}

.size-chip {
  border: 0.5px solid var(--ash);
  color: var(--bark);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 18px;
}

/* Hero form */
.hero-form { max-width: 440px; }

.input-row {
  display: flex;
  background: var(--page);
  border: 0.5px solid var(--stone);
  margin-bottom: 12px;
}

.input-row input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  color: var(--earth);
}

.input-row input::placeholder { color: var(--ash); }
.input-row .btn-primary,
.input-row .btn-sand { flex-shrink: 0; }

.input-row-dark {
  background: var(--dark);
  border-color: var(--dark);
}

.input-row-dark input { color: var(--sand); }
.input-row-dark input::placeholder { color: var(--bark); }

.form-legal {
  font-size: 11px;
  color: var(--driftwood);
  line-height: 1.7;
}

.form-legal a {
  color: var(--driftwood);
  text-underline-offset: 2px;
}

.form-legal a:hover { color: var(--ash); }

.form-legal-dark { color: var(--bark); }
.form-legal-dark a { color: var(--bark); }

.waitlist-success {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.5;
  padding: 16px 0;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.hero-product-frame {
  width: 100%;
  background: var(--linen);
  border: 0.5px solid var(--stone);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.hero-product-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-product-tag {
  text-align: center;
  padding: 28px 24px 36px;
  width: 100%;
  border-top: 0.5px solid var(--stone);
}

.tag-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--earth);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.tag-detail {
  font-size: 10px;
  color: var(--driftwood);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tag-inci {
  font-size: 10px;
  color: var(--ash);
  letter-spacing: 0.5px;
  line-height: 1.6;
}

/* ── TRUST STRIP ────────────────────────────────────────── */
.trust-strip {
  background: var(--linen);
  border-bottom: 0.5px solid var(--stone);
  padding: 12px 48px;
  text-align: center;
  font-size: 10px;
  color: var(--bark);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── PILLARS ────────────────────────────────────────────── */
.pillars {
  background: var(--page);
  border-bottom: 0.5px solid var(--stone);
  padding: 72px 48px;
}

.pillars-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  align-items: start;
}

.pillar { padding: 0 44px; text-align: center; }
.pillars-inner .pillar:first-child { padding-left: 0; }
.pillars-inner .pillar:last-child  { padding-right: 0; }

.pillar-rule {
  background: var(--stone);
  height: 64px;
  align-self: center;
}

.pillar-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--earth);
  margin-bottom: 10px;
}

.pillar-body {
  font-size: 12px;
  color: var(--driftwood);
  line-height: 1.7;
}

/* ── WAITLIST SECTION ───────────────────────────────────── */
.waitlist-section {
  background: var(--earth);
  padding: 100px 48px;
  text-align: center;
  border-top: 0.5px solid var(--dark);
}

.waitlist-section h2 {
  color: var(--sand);
  margin-bottom: 12px;
}

.waitlist-sub {
  font-size: 14px;
  color: var(--driftwood);
  margin-bottom: 36px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.waitlist-form {
  max-width: 420px;
  margin: 0 auto;
}

.waitlist-form .input-row { border-color: transparent; }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer { background: var(--dark); }

.footer-upper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 48px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-brand img { height: 52px; width: auto; }

.footer-tagline {
  font-size: 12px;
  color: var(--bark);
  margin-top: 14px;
  line-height: 1.8;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 12px;
  color: var(--driftwood);
  text-decoration: none;
}

.footer-links a:hover { color: var(--ash); }

/* Instagram link */
.footer-instagram {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--driftwood);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-instagram:hover { color: var(--ash); }

.instagram-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer-instagram span {
  font-size: 12px;
  letter-spacing: 0.5px;
}

.footer-lower {
  border-top: 0.5px solid #2A2420;
  padding: 16px 48px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}

.footer-lower p {
  font-size: 10px;
  color: #5A5450;
  line-height: 1.6;
}

/* ── COOKIE BANNER ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--earth);
  border-top: 0.5px solid var(--dark);
  padding: 16px 48px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-title {
  font-size: 12px;
  color: var(--sand);
  margin-bottom: 3px;
}

.cookie-banner-desc {
  font-size: 11px;
  color: var(--driftwood);
  max-width: 560px;
  line-height: 1.6;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(58, 52, 44, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--page);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
}

.modal.modal-lg { max-width: 560px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 300;
  color: var(--earth);
  line-height: 1.2;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 15px;
  color: var(--driftwood);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.15s;
}

.modal-close:hover { color: var(--earth); }

.modal-intro {
  font-size: 13px;
  color: var(--bark);
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-meta {
  font-size: 11px;
  color: var(--driftwood);
  margin-bottom: 20px;
}

.modal-scroll {
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--stone) transparent;
}

.modal-scroll h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--earth);
  margin: 20px 0 6px;
}

.modal-scroll h3:first-child { margin-top: 0; }

.modal-scroll p {
  font-size: 13px;
  color: var(--bark);
  line-height: 1.75;
  margin-bottom: 6px;
}

.modal-scroll a { color: var(--earth); text-underline-offset: 2px; }
.modal-scroll a:hover { color: var(--bark); }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  border-top: 0.5px solid var(--stone);
  margin-top: 24px;
}

/* ── COOKIE ROWS ────────────────────────────────────────── */
.cookie-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 0.5px solid var(--stone);
}

.cookie-row-last { border-bottom: none; }

.cookie-row-name {
  font-size: 13px;
  color: var(--earth);
  margin-bottom: 4px;
}

.cookie-row-desc {
  font-size: 12px;
  color: var(--driftwood);
  line-height: 1.6;
  max-width: 320px;
}

/* ── TOGGLE SWITCH — iPhone style ───────────────────────── */
.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  margin-top: 2px;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  display: block;
  position: relative;
  width: 50px;
  height: 30px;
  background: var(--stone);
  border-radius: 30px;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--page);
  box-shadow: 0 1px 3px rgba(58, 52, 44, 0.25);
  transition: transform 0.25s ease;
}

/* Checked state */
.toggle input:checked ~ .toggle-track { background: var(--earth); }
.toggle input:checked ~ .toggle-track .toggle-thumb { transform: translateX(20px); }

/* Disabled state (always-on necessary cookies) */
.toggle input:disabled ~ .toggle-track {
  background: var(--earth);
  opacity: 0.5;
}
.toggle input:disabled ~ .toggle-track .toggle-thumb { transform: translateX(20px); }
.toggle:has(input:disabled) { cursor: not-allowed; }

/* Focus ring for keyboard users */
.toggle input:focus-visible ~ .toggle-track {
  outline: 2px solid var(--earth);
  outline-offset: 3px;
}

/* ── RESPONSIVE — tablet (≤960px) ───────────────────────── */
@media (max-width: 960px) {
  /* Nav */
  .nav { padding: 0 24px; height: 80px; }
  .nav-logo img { height: 46px; }

  /* Hero — stack vertically, show image below text */
  .hero { padding: 56px 32px 0; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: flex; }
  .hero-product-frame { max-width: 100%; }

  /* Pillars — 2 columns */
  .pillars { padding: 0; }
  .pillars-inner { grid-template-columns: 1fr 1fr; gap: 0; }
  .pillar-rule { display: none; }
  .pillar {
    padding: 32px 28px;
    text-align: left;
    border-bottom: 0.5px solid var(--stone);
  }
  .pillar:nth-child(odd) { border-right: 0.5px solid var(--stone); }
  .pillar:nth-last-child(-n+2) { border-bottom: none; }

  /* Sections */
  .waitlist-section { padding: 80px 32px; }
  .trust-strip { padding: 12px 24px; }

  /* Footer */
  .footer-upper { padding: 40px 32px 32px; }
  .footer-lower { padding: 14px 32px; }

  /* Cookie */
  .cookie-banner { padding: 16px 24px; }
}

/* ── RESPONSIVE — mobile (≤600px) ───────────────────────── */
@media (max-width: 600px) {
  /* Nav */
  .nav { padding: 0 20px; height: 72px; }
  .nav-logo img { height: 40px; }
  .btn-primary.sm { padding: 9px 16px; font-size: 10px; }

  /* Hero */
  .hero { padding: 44px 20px 0; }
  h1 { font-size: clamp(34px, 9vw, 44px); }
  .hero-body { font-size: 14px; max-width: 100%; }
  .hero-form { max-width: 100%; }
  .hero-sizes { margin-bottom: 28px; }

  /* Email input rows — stack on mobile */
  .input-row {
    flex-direction: column;
    background: transparent;
    border: none;
    gap: 8px;
  }
  .input-row input {
    border: 0.5px solid var(--stone);
    background: var(--page);
    padding: 14px 16px;
    width: 100%;
    font-size: 16px; /* prevents iOS zoom on focus */
  }
  .input-row-dark input {
    border-color: var(--bark);
    background: var(--dark);
  }
  .input-row .btn-primary,
  .input-row .btn-sand {
    width: 100%;
    text-align: center;
    padding: 14px;
  }

  /* Trust strip — wrap gracefully */
  .trust-strip {
    font-size: 9px;
    letter-spacing: 1.5px;
    padding: 12px 20px;
    line-height: 1.8;
  }

  /* Pillars — single column */
  .pillars-inner { grid-template-columns: 1fr; }
  .pillar { padding: 28px 20px; border-right: none !important; border-bottom: 0.5px solid var(--stone); }
  .pillar:last-child { border-bottom: none; }

  /* Waitlist section */
  .waitlist-section { padding: 64px 20px; }
  .waitlist-section h2 { font-size: clamp(28px, 8vw, 40px); }
  .waitlist-form { max-width: 100%; }

  /* Footer */
  .footer-upper {
    padding: 36px 20px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .footer-right {
    align-items: flex-start;
    width: 100%;
    gap: 16px;
  }
  .footer-links { justify-content: flex-start; gap: 20px; flex-wrap: wrap; }
  .footer-lower { padding: 14px 20px; flex-direction: column; gap: 4px; }
  .footer-brand img { height: 44px; }

  /* Cookie banner */
  .cookie-banner { padding: 16px 20px; }
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cookie-banner-actions { width: 100%; justify-content: flex-end; }

  /* Modals — full width on small screens */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    max-width: 100%;
    max-height: 92vh;
    padding: 28px 20px 32px;
    border-radius: 0;
  }
  .modal.modal-lg { max-width: 100%; }
  .modal-scroll { max-height: 52vh; }

  /* Cookie settings rows */
  .cookie-row { gap: 16px; }
  .cookie-row-desc { max-width: 100%; }
}
