/* FarmacoOra landing — Rouve-inspired premium system */

:root {
  --bg: #FAFAF7;
  --fg1: #1A1A2E;
  --accent: #0E8A7A;
  --success: #1B7A45;
  --success-bg: #E3F2EA;
  --fg2: #4A4A55;
  --fg3: #7A7A82;
  --fg4: #A8A8AD;
  --surface-1: #F3F2EC;
  --surface-2: #EAE9E2;
  --fg1-a08: rgba(26, 26, 46, 0.08);
  --accent-a10: rgba(14, 138, 122, 0.1);
  --accent-a18: rgba(14, 138, 122, 0.18);

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

  --elev-1: 0 2px 8px rgba(26, 26, 46, 0.06);
  --elev-2: 0 12px 32px rgba(26, 26, 46, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

body {
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .wrap { padding-inline: 32px; }
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  background: rgba(250, 250, 247, 0.72);
}

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

@media (min-width: 768px) {
  .nav-inner { height: 68px; }
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--fg1);
}

@media (min-width: 768px) {
  .wordmark { font-size: 24px; }
}

.wordmark .dot { color: var(--accent); }

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 15px;
  color: var(--fg2);
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}

.nav-links a:hover {
  background: var(--fg1-a08);
  color: var(--fg1);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* ── Store badge ── */
.store {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 15px 0 13px;
  background: var(--fg1);
  color: var(--bg);
  border-radius: 12px;
  transition: transform var(--ease) 0.16s, opacity 0.12s;
}

.store:hover { opacity: 0.9; }
.store:active { transform: scale(0.97); opacity: 0.85; }

.store svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}

.store-small {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.92;
}

.store-large {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store--big {
  height: 54px;
  padding: 0 20px 0 17px;
}

.store--big svg {
  width: 27px;
  height: 27px;
}

.store--big .store-small { font-size: 11px; }
.store--big .store-large { font-size: 20px; }

.store--soon {
  position: relative;
  cursor: default;
  opacity: 1;
  pointer-events: none;
  padding-right: 14px;
  flex-wrap: wrap;
  height: auto;
  min-height: 54px;
  row-gap: 8px;
  justify-content: center;
}

@media (max-width: 420px) {
  .store--soon {
    flex-direction: column;
    align-items: center;
    padding: 12px 18px;
    text-align: center;
  }

  .store--soon .store-text { text-align: center; align-items: center; }
  .soon-pill { margin-left: 0; }
}

.store--soon:hover,
.store--soon:active {
  opacity: 1;
  transform: none;
}

.soon-pill {
  margin-left: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding-top: 64px;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 128px;
    padding-bottom: 80px;
  }
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 10vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin: 0 auto;
  text-wrap: balance;
}

.hero .subline {
  margin: 22px auto 0;
  max-width: 34ch;
  font-size: clamp(17px, 4.6vw, 21px);
  line-height: 1.45;
  color: var(--fg2);
  text-wrap: balance;
}

.hero .cta {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}

/* ── Shots carousel ── */
.shots-section {
  position: relative;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .shots-section { padding-bottom: 96px; }
}

.shots-hint {
  display: none;
  text-align: center;
  font-size: 13px;
  color: var(--fg3);
  margin-bottom: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  .shots-hint {
    display: block;
    animation: hint-pulse 2.4s var(--ease) infinite;
  }
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overflow-y: clip;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  padding: 12px 0 20px;
  /* Center first card; peek next on mobile */
  padding-inline: max(20px, calc(50% - min(42vw, 140px)));
  scroll-padding-inline: max(20px, calc(50% - min(42vw, 140px)));
  /* pan-y must stay allowed so the page can scroll when the finger is on a shot */
  touch-action: pan-x pan-y;
}

.shots::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .shots {
    gap: 18px;
    padding-inline: 32px;
    scroll-padding-inline: 32px;
    justify-content: safe center;
  }

  .shots-hint { display: none !important; }
}

.shot {
  flex: 0 0 min(72vw, 250px);
  width: min(72vw, 250px);
  max-width: 250px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  touch-action: pan-x pan-y;
}

@media (min-width: 768px) {
  .shot {
    flex: 0 0 230px;
    width: 230px;
  }
}

@media (min-width: 960px) {
  .shot {
    flex: 0 0 250px;
    width: 250px;
  }
}

.shot.is-active {
  transform: scale(1);
  opacity: 1;
}

.shot:not(.is-active) {
  opacity: 0.55;
  transform: scale(0.94);
}

@media (min-width: 768px) {
  .shot:not(.is-active) {
    opacity: 1;
    transform: none;
  }
}

.phone {
  width: 100%;
  background: #1a1a2e;
  border-radius: clamp(28px, 8vw, 40px);
  padding: clamp(6px, 1.8vw, 8px);
  box-shadow: 0 24px 50px rgba(26, 26, 46, 0.18), 0 0 0 1px rgba(26, 26, 46, 0.06);
}

.phone-screen {
  width: 100%;
  aspect-ratio: 390 / 845;
  border-radius: clamp(22px, 6.5vw, 32px);
  background: var(--bg);
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
  touch-action: pan-x pan-y;
}

.shot .caption {
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--fg1);
}

.shots-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  min-height: 10px;
}

@media (min-width: 768px) {
  .shots-dots { display: none; }
}

.shots-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg1-a08);
  padding: 0;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.shots-dots button.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 100;
  background: var(--fg1);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-top: 56px;
  padding-bottom: 72px;
  border-top: 1px solid var(--fg1-a08);
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    padding-top: 80px;
    padding-bottom: 116px;
  }
}

.feature .ficon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-a10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg1);
  margin-bottom: 18px;
}

.feature .ficon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.feature p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg2);
  max-width: 34ch;
}

/* ── SEO copy ── */
.seo-block {
  padding-block: 56px 48px;
  border-top: 1px solid var(--fg1-a08);
  max-width: 720px;
}

.seo-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 5vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.seo-block p {
  color: var(--fg2);
  font-size: 17px;
  line-height: 1.6;
  margin-top: 12px;
}

.seo-block strong { color: var(--fg1); }

/* ── FAQ ── */
.faq {
  padding-block: 24px 64px;
  max-width: 720px;
}

.faq h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 5vw, 34px);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.faq-item {
  border: 1px solid var(--fg1-a08);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq-item a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--fg3);
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  padding: 0 18px 16px;
  color: var(--fg2);
  font-size: 15px;
  line-height: 1.55;
}

/* ── Final CTA ── */
.final {
  text-align: center;
  padding: 72px 0 80px;
  border-top: 1px solid var(--fg1-a08);
}

@media (min-width: 768px) {
  .final { padding: 96px 0 112px; }
}

.final h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 7vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 16ch;
  margin-inline: auto;
}

.final-sub {
  margin-top: 14px;
  color: var(--fg2);
  font-size: 17px;
}

.final .cta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--fg1-a08);
  padding: 40px 0 48px;
}

.foot-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.foot-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.foot-mark .dot { color: var(--accent); }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-items: center;
  justify-content: center;
}

.foot-links a {
  font-size: 15px;
  color: var(--fg2);
  transition: color 0.12s var(--ease);
}

.foot-links a:hover { color: var(--fg1); }

.foot-copy {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg3);
}

@media (min-width: 768px) {
  .foot-grid {
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
  }
}

/* ── Legal pages (shared) ── */
.legal-page { padding-bottom: 4rem; }

.legal-hero {
  padding-top: 48px;
  padding-bottom: 40px;
  text-align: left;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 8vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 14ch;
}

.legal-hero .lead {
  margin-top: 16px;
  max-width: 42ch;
  color: var(--fg2);
  font-size: 18px;
  line-height: 1.5;
}

.legal-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg3);
}

.legal-layout {
  display: grid;
  gap: 2rem;
  padding-bottom: 64px;
}

@media (min-width: 960px) {
  .legal-layout {
    grid-template-columns: 220px 1fr;
    gap: 48px;
  }
}

.legal-toc {
  position: sticky;
  top: 80px;
  align-self: start;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--fg1-a08);
}

.legal-toc__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 12px;
}

.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: toc;
}

.legal-toc li {
  counter-increment: toc;
}

.legal-toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.35;
}

.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg3);
  flex: none;
  min-width: 1.6em;
}

.legal-toc a:hover {
  background: var(--fg1-a08);
  color: var(--fg1);
}

.legal-toc a:hover::before {
  color: var(--accent);
}

@media (max-width: 959px) {
  .legal-toc { position: static; }
}

.legal-content { max-width: 42rem; }

.legal-section {
  padding-block: 28px;
  border-top: 1px solid var(--fg1-a08);
  scroll-margin-top: 88px;
}

.legal-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-section__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.legal-section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin: 22px 0 8px;
}

.legal-section p,
.legal-section li {
  color: var(--fg2);
  font-size: 16px;
  line-height: 1.6;
}

.legal-section p + p { margin-top: 12px; }

.legal-section ul,
.legal-section ol {
  margin: 12px 0 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section ul { list-style: disc; }
.legal-section ol { list-style: decimal; }
.legal-section li::marker { color: var(--accent); }

.legal-callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--accent-a10);
  border: 1px solid var(--accent-a18);
  color: var(--fg2);
  font-size: 15px;
  line-height: 1.55;
}

.legal-callout--warn {
  background: #FEF3E8;
  border-color: rgba(196, 92, 42, 0.2);
}

.legal-callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--fg1);
  font-weight: 650;
}

.legal-dl {
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-dl div {
  display: grid;
  gap: 2px;
}

@media (min-width: 560px) {
  .legal-dl div {
    grid-template-columns: 7rem 1fr;
    gap: 12px;
  }
}

.legal-dl dt {
  font-weight: 650;
  font-size: 14px;
  color: var(--fg3);
}

.legal-dl dd {
  margin: 0;
  color: var(--fg2);
  font-size: 16px;
}

.legal-footer-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--fg1-a08);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg3);
}
