/* ==========================================================================
   OCUREA — Nordic Conifer Cellulose Nanofiber Skincare
   Design System: Clinical Quiet Luxury (Aesop × Summer Fridays × Dieux)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,600&family=IBM+Plex+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #F7F6F2;       /* Forest Mist Paper */
  --bg-elevated: #EFECE6;      /* Warm Pulp Ivory */
  --bg-white: #FFFFFF;         /* Pure Clinical Card */
  --bg-dark: #14261E;          /* Deep Conifer Ink */
  --bg-dark-soft: #1D352B;     /* Pine Shadow */
  --text-primary: #14261E;     /* Deep Conifer Ink (14.2:1 contrast) */
  --text-secondary: #2F4239;   /* Bark Charcoal */
  --text-muted: #52635A;       /* Lichen Slate */
  --accent-moss: #4A6B5B;      /* Moss Vein Green */
  --accent-sage: #7A9A8B;      /* Dew Sage */
  --accent-larch: #C8B69E;     /* Raw Larch Wood */
  --accent-amber: #8C5A3C;     /* Resin Amber */
  --border-subtle: #DED9CE;    /* Unbleached Fiber Rule */
  --border-strong: #14261E;
  --danger-cut: #D13B3B;       /* CAD Cut Line Red */
  --crease-green: #2E8B57;     /* CAD Crease Line Green */
  --safe-blue: #2563EB;        /* CAD Safe Zone Blue */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-soft: 0 12px 32px rgba(20, 38, 30, 0.06);
  --shadow-card: 0 4px 16px rgba(20, 38, 30, 0.05);
  --container-max: 1280px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

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

/* Typography Utilities */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-moss);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-moss);
}

.h1-display {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.5vw, 4.1rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.h2-editorial {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
}

.h3-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.25;
}

.mono-spec {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* Announcement Bar */
.announcement-bar {
  background: var(--bg-dark);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.announcement-bar span.highlight {
  color: #D7E5DC;
  font-weight: 600;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-logo .wordmark {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--text-primary);
}

.brand-logo .submark {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--accent-moss);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--bg-dark);
  color: var(--bg-primary);
  border-color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--accent-moss);
  border-color: var(--accent-moss);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--bg-dark);
  color: var(--bg-primary);
}

.btn-cart-trigger {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-badge {
  background: var(--bg-dark);
  color: var(--bg-primary);
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 0.72rem;
}

/* Sections & Grids */
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-alt {
  background: var(--bg-elevated);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--bg-primary);
}

.section-dark .h2-editorial,
.section-dark .h3-title,
.section-dark .eyebrow {
  color: var(--bg-primary);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Hero Split */
.hero-section {
  padding: 64px 0 84px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-media-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-white);
  box-shadow: var(--shadow-soft);
}

.hero-badge-floating {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* Trust Spec Strip */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-white);
}

.spec-item {
  padding: 24px 28px;
  border-right: 1px solid var(--border-subtle);
}

.spec-item:last-child {
  border-right: none;
}

.spec-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
}

.spec-label {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* Cards & Tables */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  border-color: var(--accent-moss);
}

.product-card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.tag-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.tag-pill.moss {
  background: #E4EDE8;
  color: var(--bg-dark);
  border-color: var(--accent-moss);
}

/* Comparison Table */
.data-table-wrap {
  overflow-x: auto;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table td.highlight-col,
.data-table th.highlight-col {
  background: #EDF3F0;
  font-weight: 600;
}

/* PDP Pack & Subscription Selectors */
.tier-option {
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.18s ease;
}

.tier-option.selected {
  border-color: var(--bg-dark);
  background: #F1F6F3;
  box-shadow: 0 0 0 1px var(--bg-dark);
}

.swatch-btn {
  padding: 10px 16px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swatch-btn.active {
  border-color: var(--bg-dark);
  background: var(--bg-elevated);
}

.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);
}

/* Slide-out Cart Drawer */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 38, 30, 0.45);
  z-index: 900;
  display: none;
}

.cart-backdrop.open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 440px;
  max-width: 94vw;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 950;
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -16px 0 48px rgba(20, 38, 30, 0.15);
}

.cart-drawer.open {
  right: 0;
}

.shipping-progress-track {
  width: 100%;
  height: 8px;
  background: var(--border-subtle);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}

.shipping-progress-fill {
  height: 100%;
  background: var(--accent-moss);
  transition: width 0.3s ease;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: var(--bg-primary);
  padding: 72px 0 40px;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247, 246, 242, 0.15);
}

.footer-links {
  list-style: none;
  margin-top: 14px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #C9D3CD;
}

.footer-links a:hover {
  color: #FFFFFF;
}

@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4, .spec-strip, .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .spec-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}
