/* ============================================================
   Apethecary: coming-soon page

   Tokens and base styles are copied from client/src/assets/main.css,
   section styles from client/src/views/HomeView.vue. This folder deploys
   on its own and can't import them, so a brand change before launch has
   to be made in both places.

   Breakpoints follow main.css: 900px (single column, trimmed nav),
   480px (small phone).
   ============================================================ */

:root {
  --ink:       #1c1a16;
  --cream:     #f4efe6;
  --warm:      #ede5d8;
  --gold:      #b8935a;
  --gold-rgb:  184, 147, 90;
  --gold-lt:   #d4aa72;
  --sage:      #3d4f3c;
  --sage-lt:   #556b54;
  --muted:     #7a7268;
  --border:    rgba(var(--gold-rgb), 0.25);

  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans:  'Jost', system-ui, -apple-system, sans-serif;
}

/* ── Base (from main.css) ───────────────────────────────── */

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

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: rgba(var(--gold-rgb), 0.28);
  color: var(--ink);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Unlike main.css, this also zeroes the delays: otherwise the hero's
   staggered fade-ins leave each line invisible for up to 0.65s before it
   pops in. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Grain overlay: the same texture the app shows on every page. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.6;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}

em {
  font-style: italic;
  color: var(--sage);
}

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

a {
  color: var(--sage);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--sage-lt);
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span {
  color: var(--gold);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

/* Anchored sections stop below the fixed nav instead of under it. */
#how,
#concierge {
  scroll-margin-top: 48px;
}

/* ── Nav ────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 60px;
  background: linear-gradient(to bottom, var(--cream) 60%, transparent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

/* Block with line-height 1, like .nav-status, so the two share a centre line
   instead of the links sitting on the taller body line box. The padding
   keeps the click target from shrinking. */
.nav-links a {
  display: block;
  padding: 8px 0;
  line-height: 1;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

/* Sits where the app's "Begin" button is, as type rather than a button:
   there is nothing to press yet. */
.nav-status {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold);
  padding-left: 40px;
  border-left: 1px solid var(--border);
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 100px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
}

/* Small phones would otherwise break "Breed-aware" at its hyphen. */
.nowrap {
  white-space: nowrap;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 32px;
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s forwards;
}

.hero-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

/* Takes the place of the app's call to action. */
.hero-status {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  opacity: 0;
  animation: fadeUp 0.8s 0.65s forwards;
}

.hero-status::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--sage);
}

/* One figure per pet; pet.js picks which one shows. */
.pet {
  display: none;
  position: absolute;
  inset: 0;
}

html:not([data-pet]) .pet--arlo,
html[data-pet='arlo'] .pet--arlo,
html[data-pet='vega'] .pet--vega,
html[data-pet='percy'] .pet--percy {
  display: block;
}

.pet img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  /* Pulls the photo toward the palette instead of competing with it. */
  filter: saturate(0.82) contrast(1.02);
}

/* Bright photos: darken the bottom so the cream caption reads. */
.pet::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(28, 26, 22, 0.18) 0%, transparent 30%, transparent 55%, rgba(28, 26, 22, 0.72) 100%),
    linear-gradient(90deg, transparent 55%, rgba(28, 26, 22, 0.15) 100%);
}

/* Dark photos (Percy at night): a sage wash instead of more darkness. */
.pet--dark::after {
  background:
    linear-gradient(180deg, transparent 0%, transparent 45%, rgba(28, 26, 22, 0.55) 70%, rgba(61, 79, 60, 0.88) 100%),
    linear-gradient(90deg, transparent 50%, rgba(28, 26, 22, 0.2) 100%);
}

.pet figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 48px;
  border-top: 1px solid rgba(244, 239, 230, 0.18);
}

.pet--dark figcaption {
  border-top-color: rgba(var(--gold-rgb), 0.3);
}

.pet-name {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  font-weight: 300;
  line-height: 1.1;
  color: rgba(244, 239, 230, 0.95);
}

.pet-breed {
  display: block;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lt);
}

/* ── Section rule ───────────────────────────────────────── */

.section-rule {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 60px;
  margin: 80px 0;
}

.section-rule::before,
.section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.rule-mark {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
  opacity: 0.6;
}

/* ── The process ────────────────────────────────────────── */

.how-section {
  padding: 80px 60px;
}

.how-section h2,
.dark-section h2,
.closing h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 64px;
  max-width: 620px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}

.step {
  background: var(--cream);
  padding: 48px 40px;
  position: relative;
}

.step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--gold-lt);
  opacity: 0.55;
  margin-bottom: 24px;
}

.step h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.step p {
  font-size: 0.875rem;
  line-height: 1.75;
}

.step-badge {
  position: absolute;
  top: 48px;
  right: 40px;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 2px;
}

/* ── The concierge difference ───────────────────────────── */

.dark-section {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding: 100px 60px;
}

/* The faint oversized wordmark behind the section. The second content line
   gives it empty alt text so screen readers skip it; browsers that don't
   know that syntax keep the first. */
.dark-section::before {
  content: 'Apethecary';
  content: 'Apethecary' / '';
  position: absolute;
  right: -20px;
  bottom: -60px;
  font-family: var(--font-serif);
  font-size: 18rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
  pointer-events: none;
}

.dark-section .section-label {
  color: var(--gold-lt);
}

.dark-section h2 {
  color: var(--cream);
  max-width: 720px;
}

.dark-section h2 em {
  color: var(--gold-lt);
}

.concierge-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 32px;
}

.concierge-left p {
  line-height: 1.85;
  color: rgba(244, 239, 230, 0.68);
  margin-bottom: 20px;
}

.concierge-badge {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-lt);
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  padding: 8px 20px;
  border-radius: 2px;
}

.concierge-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.08);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-num {
  flex-shrink: 0;
  width: 36px;
  padding-top: 2px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--gold-lt);
  opacity: 0.8;
}

.feature-row h3 {
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 6px;
}

.feature-row p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(244, 239, 230, 0.55);
}

/* ── Closing ────────────────────────────────────────────── */

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 140px 60px;
}

.closing h2 {
  margin-bottom: 24px;
}

.closing-body {
  max-width: 440px;
  text-wrap: balance;
}

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 60px;
  background: var(--ink);
  border-top: 1px solid rgba(var(--gold-rgb), 0.1);
}

.wordmark--footer {
  color: rgba(244, 239, 230, 0.6);
}

.footer-note {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(244, 239, 230, 0.4);
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .nav {
    padding: 20px 24px;
  }

  /* Hide the whole <nav>, not just its list: an empty flex item still takes
     a gap and pushes the status off a 320px screen. */
  .nav-sections {
    display: none;
  }

  .nav-status {
    padding-left: 0;
    border-left: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

  .hero-left {
    padding: 56px 24px 48px;
  }

  .hero-right {
    min-height: 60vh;
  }

  .pet figcaption {
    padding: 32px 24px;
  }

  .section-rule {
    padding: 0 24px;
    margin: 56px 0;
  }

  .how-section {
    padding: 64px 24px;
  }

  .dark-section {
    padding: 72px 24px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    padding: 40px 28px;
  }

  .step-badge {
    top: 40px;
    right: 28px;
  }

  .concierge-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dark-section::before {
    font-size: 8rem;
    bottom: -20px;
    right: -10px;
  }

  .closing {
    padding: 96px 24px;
  }

  .footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 48px 24px;
  }
}

@media (max-width: 480px) {
  /* Keeps the wordmark and the status on one line, inside the 24px gutter,
     down to 320px. */
  .nav {
    gap: 16px;
  }

  .wordmark {
    font-size: 1.15rem;
  }

  .nav-status {
    letter-spacing: 0.14em;
  }
}
