/* ============================================================
   Damata Pocket Brew — design tokens + base styles
   Mobile-first (380px reference). Desktop centers at 420px.
   ============================================================ */

:root {
  /* Colors */
  --color-bg:                 #F2EDE3;
  --color-text:               #2A2520;
  --color-text-muted:         #6B6358;
  --color-text-tertiary:      #8B7E68;
  --color-sage:               #A8B5A0;
  --color-cta-bg:             #2A2520;
  --color-cta-bg-hover:       #3A332D;
  --color-cta-text:           #F2EDE3;
  --color-placeholder-bg:     #E5DBC8;
  --color-border:             rgba(42, 37, 32, 0.08);
  --color-input-border:       rgba(42, 37, 32, 0.2);

  /* Typography */
  --font-display:             'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body:                'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --fs-hero:                  44px;
  --fs-section:               32px;
  --fs-body:                  14px;
  --fs-caption:               11px;
  --fs-wordmark:              17px;
  --fs-price-anchor:          18px;
  --fs-price-sale:            32px;

  --ls-wordmark:              5px;
  --ls-caption:               1px;
  --ls-button:                0.3px;

  /* Spacing */
  --space-section-y:          48px;
  --space-section-y-lg:       64px;
  --space-element:            22px;
  --space-element-sm:         14px;
  --space-container-x:        22px;
  --container-max:            420px;

  /* Radius */
  --radius-button:            4px;
  --radius-card:              16px;
  --radius-small:             8px;
}

/* ------------------------------------------------------------
   Reset / base
   ------------------------------------------------------------ */

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

html, body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

input,
button {
  font: inherit;
}

/* ------------------------------------------------------------
   Container
   ------------------------------------------------------------ */

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

section,
.footer {
  padding-block: var(--space-section-y);
}

.hero {
  padding-block: var(--space-section-y-lg) var(--space-section-y);
}

/* ------------------------------------------------------------
   Typography utilities
   ------------------------------------------------------------ */

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

.wordmark {
  font-family: var(--font-display);
  font-size: var(--fs-wordmark);
  font-weight: 400;
  letter-spacing: var(--ls-wordmark);
  text-align: center;
  color: var(--color-text);
  margin-block-end: 32px;
}

.eyebrow {
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  text-align: center;
  margin: 0 0 12px;
}

.section-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-section);
  line-height: 1.1;
  text-align: center;
  color: var(--color-text);
  margin: 0 0 12px;
}

.section-sub {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0 0 8px;
}

.trust-line {
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-caption);
  color: var(--color-text-tertiary);
  text-align: center;
  margin: 14px 0 0;
}

/* ------------------------------------------------------------
   CTA button
   ------------------------------------------------------------ */

.cta {
  display: block;
  width: 100%;
  padding: 15px 24px;
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
  border: 0;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: var(--ls-button);
  text-align: center;
  transition: opacity 120ms ease, background-color 120ms ease, transform 80ms ease;
  margin-block-start: var(--space-element);
}

.cta:hover {
  opacity: 0.92;
  background: var(--color-cta-bg-hover);
}

.cta:active {
  transform: scale(0.98);
}

.cta:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

/* ------------------------------------------------------------
   Placeholders (will be replaced in Phase 2)
   ------------------------------------------------------------ */

.video-placeholder,
.photo-placeholder {
  background: var(--color-placeholder-bg);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-inline: auto;
  overflow: hidden;
}

.video-placeholder {
  aspect-ratio: 9 / 16;
  max-width: 260px;
}

.photo-placeholder--square {
  aspect-ratio: 1 / 1;
}

.photo-placeholder--wide {
  aspect-ratio: 4 / 3;
}

.placeholder-label {
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-caption);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
  text-align: center;
}

.hero__media {
  margin: 0 auto 20px;
}

.hero__caption {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  margin: 0 0 18px;
}

.sage-divider {
  width: 28px;
  height: 1px;
  background: var(--color-sage);
  border: 0;
  margin: 0 auto 18px;
}

.hero__badge {
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin: 0 0 18px;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 1.05;
  color: var(--color-text);
  margin: 0 0 12px;
}

.hero__sub {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  margin: 0;
}

/* ------------------------------------------------------------
   Free Sample
   ------------------------------------------------------------ */

.sample {
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.sample .photo-placeholder {
  max-width: 220px;
  margin-block: var(--space-element) 0;
}

/* ------------------------------------------------------------
   Social Proof
   ------------------------------------------------------------ */

.social-proof {
  border-top: 1px solid var(--color-border);
}

.is-launch-day-hidden {
  display: none;
}

.social-proof__carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-block: 12px;
  margin-inline: calc(var(--space-container-x) * -1);
  padding-inline: var(--space-container-x);
  scrollbar-width: none;
}

.social-proof__carousel::-webkit-scrollbar {
  display: none;
}

.social-proof__tile {
  flex: 0 0 70%;
  aspect-ratio: 9 / 16;
  background: var(--color-placeholder-bg);
  border-radius: var(--radius-card);
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------
   Buy
   ------------------------------------------------------------ */

.buy {
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.buy .photo-placeholder {
  margin-block-end: 24px;
}

.buy__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-section);
  line-height: 1.1;
  color: var(--color-text);
  margin: 0 0 6px;
}

.buy__meta {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  margin: 0 0 14px;
}

.buy__price {
  margin: 0 0 12px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}

.buy__price-anchor {
  font-family: var(--font-body);
  font-size: var(--fs-price-anchor);
  color: var(--color-text-tertiary);
  text-decoration: line-through;
}

.buy__price-sale {
  font-family: var(--font-display);
  font-size: var(--fs-price-sale);
  color: var(--color-text);
}

.buy__reframe {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 10px;
}

.buy__scarcity {
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin: 0 0 4px;
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */

.faq {
  border-top: 1px solid var(--color-border);
}

.faq__item {
  margin-block-end: 24px;
}

.faq__item:last-child {
  margin-block-end: 0;
}

.faq__q {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body);
  color: var(--color-text);
  margin: 0 0 6px;
}

.faq__a {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

/* ------------------------------------------------------------
   Waitlist
   ------------------------------------------------------------ */

.waitlist {
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.waitlist__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-block-start: var(--space-element);
}

.input {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-button);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  transition: border-color 120ms ease;
}

.input::placeholder {
  color: var(--color-text-tertiary);
  opacity: 1;
}

.input:focus {
  outline: 0;
  border-color: var(--color-text);
}

.waitlist__form .cta {
  margin-block-start: 4px;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.footer {
  text-align: center;
  border-top: 1px solid var(--color-border);
  padding-block: 48px;
}

.footer .wordmark {
  margin-block-end: 18px;
}

.footer__email {
  display: inline-block;
  font-size: var(--fs-body);
  color: var(--color-text);
  margin-block-end: 14px;
}

.footer__email:hover {
  opacity: 0.7;
}

.footer__social,
.footer__legal {
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-caption);
  color: var(--color-text-tertiary);
  margin: 0 0 10px;
}

.footer__social a,
.footer__legal a {
  color: var(--color-text-tertiary);
  transition: color 120ms ease;
}

.footer__social a:hover,
.footer__legal a:hover {
  color: var(--color-text);
}

.footer__copy {
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-caption);
  color: var(--color-text-tertiary);
  margin: 16px 0 0;
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */

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