/* ============================================================
   PourMatch — Design System
   A wine cellar at dusk: deep burgundy-black, candlelight gold,
   parchment type. The signature motif is a single poured line —
   an echo of the mark itself (a fork pouring into a glass) —
   used once per page, never decoratively repeated.
   ============================================================ */

:root {
  /* Color */
  --ink: #180C0E;
  --surface: #23131A;
  --surface-raised: #2E1920;
  --surface-raised-2: #3A2129;
  --burgundy: #722F37;
  --burgundy-bright: #A2404C;
  --gold: #C9A15C;
  --gold-soft: #E4C88A;
  --parchment: #F3EADE;
  --parchment-dim: #C9B9AB;
  --parchment-faint: #8E7C71;
  --line: rgba(243, 234, 222, 0.12);
  --line-strong: rgba(243, 234, 222, 0.22);

  /* Type */
  --display: "Fraunces", "Iowan Old Style", serif;
  --body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Rhythm */
  --container: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Faint wine-cask grain, barely there */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle at 15% 8%, rgba(201, 161, 92, 0.06), transparent 45%),
                     radial-gradient(circle at 85% 92%, rgba(114, 47, 55, 0.18), transparent 55%);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.4em;
  color: var(--parchment);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 560; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.32rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--parchment-dim); }

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

.italic { font-style: italic; }

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

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

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

.section-tight { padding: 56px 0; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Nav ---------- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(24, 12, 14, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.46rem;
  font-weight: 600;
  color: var(--parchment);
  letter-spacing: -0.01em;
}
.brand .mark { height: 76px; width: auto; flex: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.92rem;
}
.nav-links a {
  color: var(--parchment-dim);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold-soft); }
.nav-links .btn { color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--gold);
  color: #241308;
}
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--parchment);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 108px 0 60px;
  position: relative;
}
.hero-inner {
  max-width: 760px;
}
.hero .lede {
  font-size: 1.18rem;
  color: var(--parchment-dim);
  max-width: 540px;
}
.hero-cta { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

/* Pairing card — signature reference to the product's real UI */
.pairing-demo {
  margin-top: 72px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--surface) 0%, var(--surface-raised) 100%);
  border-radius: 10px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1.1fr 1px 1fr;
  gap: 34px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.pairing-demo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% -10%, rgba(201,161,92,0.10), transparent 55%);
  pointer-events: none;
}
.pairing-demo .divider { background: var(--line-strong); height: 100%; }
.pairing-col .tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parchment-faint);
  margin-bottom: 10px;
}
.pairing-col .item-name { font-family: var(--display); font-size: 1.3rem; color: var(--parchment); margin-bottom: 4px; }
.pairing-col .item-sub { color: var(--parchment-dim); font-size: 0.95rem; }
.pairing-col.wine .item-name { color: var(--gold-soft); }
.pairing-note { font-size: 0.88rem; color: var(--parchment-faint); margin-top: 14px; line-height: 1.5; }

@media (max-width: 720px) {
  .pairing-demo { grid-template-columns: 1fr; }
  .pairing-demo .divider { display: none; }
}

/* ---------- Pour divider (signature motif, used once per page) ---------- */
.pour-divider {
  display: flex;
  justify-content: center;
  margin: 8px 0 0;
}
.pour-divider svg { width: 220px; height: 46px; overflow: visible; }
.pour-divider path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.pour-divider.in-view path { stroke-dashoffset: 0; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 56px;
}
.feature-card {
  background: var(--surface);
  padding: 34px 30px;
}
.feature-card .glyph {
  width: 34px; height: 34px;
  margin-bottom: 20px;
  color: var(--gold);
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { margin: 0; font-size: 0.95rem; }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Two column band ---------- */
.band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.band.reverse { grid-template-columns: 1.1fr 0.9fr; }
.band.reverse .band-visual { order: 2; }
@media (max-width: 860px) {
  .band, .band.reverse { grid-template-columns: 1fr; gap: 36px; }
  .band.reverse .band-visual { order: 0; }
}
.band-visual {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 30px;
  min-height: 260px;
}
.band ul { list-style: none; margin: 24px 0 0; padding: 0; }
.band li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--parchment-dim);
  font-size: 0.95rem;
}
.band li:first-child { border-top: none; }
.band li .check { color: var(--gold); flex: none; margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--ink) 100%);
  text-align: center;
}
.cta-band h2 { max-width: 640px; margin: 0 auto 14px; }
.cta-band p { max-width: 480px; margin: 0 auto 34px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { font-family: var(--display); font-size: 1.15rem; color: var(--parchment); margin-bottom: 10px; }
.footer-logo { width: 132px; height: auto; margin-bottom: 18px; }
.footer-tag { color: var(--parchment-faint); font-size: 0.9rem; max-width: 260px; }
.footer-col h4 {
  font-family: var(--body);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parchment-faint);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: var(--parchment-dim);
  font-size: 0.92rem;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--parchment-faint);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Pricing page ---------- */
.pricing-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px;
  margin: 8px 0 0;
}
.pricing-toggle button {
  border: none;
  background: transparent;
  color: var(--parchment-dim);
  font-family: var(--body);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
}
.pricing-toggle button.active { background: var(--gold); color: #241308; }
.save-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(201, 161, 92, 0.18);
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pricing-toggle button.active .save-pill { background: rgba(36, 19, 8, 0.18); color: #241308; }
.renewal-note {
  font-size: 0.8rem;
  color: var(--parchment-faint);
  margin: 2px 0 18px;
  line-height: 1.5;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
  align-items: stretch;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; } }

.tier-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier-card.featured {
  border-color: var(--gold);
  background: linear-gradient(165deg, var(--surface-raised-2), var(--surface));
  box-shadow: 0 24px 60px -20px rgba(201, 161, 92, 0.22);
}
.tier-card .most-popular {
  position: absolute;
  top: -13px; left: 30px;
  background: var(--gold);
  color: #241308;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.tier-name { font-family: var(--display); font-size: 1.5rem; margin-bottom: 6px; }
.tier-desc { font-size: 0.9rem; color: var(--parchment-faint); margin-bottom: 22px; min-height: 40px; }
.tier-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.tier-price .amount { font-family: var(--display); font-size: 2.6rem; color: var(--parchment); }
.tier-price .period { color: var(--parchment-faint); font-size: 0.92rem; }
.currency-note { font-size: 0.78rem; color: var(--parchment-faint); margin-bottom: 8px; }
.tier-card .btn { margin: 22px 0 26px; }
.tier-features { list-style: none; margin: 0; padding: 0; flex: 1; }
.tier-features li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.9rem;
  color: var(--parchment-dim);
  border-top: 1px solid var(--line);
}
.tier-features li:first-child { border-top: none; }
.tier-features li.dim { color: var(--parchment-faint); }
.tier-features .check { color: var(--gold); flex: none; }

.region-note {
  margin-top: 46px;
  text-align: center;
  color: var(--parchment-faint);
  font-size: 0.88rem;
}

/* ---------- Legal pages ---------- */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
}
.legal-doc h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line);
}
.legal-doc h2:first-of-type { margin-top: 0.6em; border-top: none; padding-top: 0; }
.legal-doc p { font-size: 0.96rem; }
.legal-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 0.88rem;
  color: var(--parchment-dim);
  margin-bottom: 44px;
}
.legal-meta { color: var(--parchment-faint); font-size: 0.86rem; margin-bottom: 2.4em; }

/* ---------- Simple page hero (non-home pages) ---------- */
.page-hero { padding: 76px 0 40px; }
.page-hero p.lede { max-width: 560px; font-size: 1.08rem; }

/* ---------- Contact / About ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 30px;
}
.contact-card h3 { margin-bottom: 6px; }
.contact-card a.email { color: var(--gold-soft); font-size: 1.05rem; }

form.signup-form { display: grid; gap: 16px; }
form.signup-form label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--parchment-faint);
  display: block;
  margin-bottom: 8px;
}
form.signup-form input, form.signup-form textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--parchment);
  font-family: var(--body);
  font-size: 0.95rem;
}
form.signup-form input:focus, form.signup-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
