/* VoiceJuice site. "Pressed juice" palette and type; see site/README.md. */
:root {
  --orange: #ee4b2b;   /* blood orange: the flood */
  --plum: #2a0f24;     /* aubergine: ink and dark sections */
  --zest: #ffd84d;     /* lemon zest: the transcript, highlights */
  --pith: #fff7dd;     /* pith: light surfaces for reading */
  --pink: #ff8fa8;     /* grapefruit: small accents on plum */
  --plum-soft: rgba(42, 15, 36, 0.72);
  --pith-soft: rgba(255, 247, 221, 0.74);

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Onest", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--pith);
  color: var(--plum);
  font: 400 1.0625rem/1.6 var(--body);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 4px; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); margin: 0; }

.label {
  display: block;
  font: 500 0.72rem/1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Header */
.site-header { background: var(--orange); padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--plum); text-decoration: none;
  font: 800 1.35rem/1 var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.01em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); font-weight: 500; font-size: 0.95rem; }
.site-nav a { color: var(--plum); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .lang {
  font: 500 0.75rem/1 var(--mono);
  border: 2px solid var(--plum); border-radius: 999px; padding: 6px 10px;
}
.site-nav .lang:hover { background: var(--plum); color: var(--orange); text-decoration: none; }

/* Hero: a 2:47 voice message gets pressed into something you read */
.hero { background: var(--orange); padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 9vw, 112px); overflow: hidden; }
.hero h1 { color: var(--plum); }
.hero h1 .press {
  display: block;
  font-weight: 900; font-stretch: 62%;
  font-size: clamp(3.9rem, 14.2vw, 11.5rem);
  line-height: 0.84; letter-spacing: -0.005em;
  text-transform: uppercase;
}
.hero h1 .loose {
  display: block;
  margin-top: 0.3em;
  font-weight: 300; font-stretch: 125%;
  font-size: clamp(1.45rem, 4.1vw, 3.4rem);
  line-height: 1.08; letter-spacing: -0.02em;
}
.hero-side {
  display: grid; gap: 24px 48px; align-items: end;
  grid-template-columns: minmax(0, 36rem) auto; justify-content: space-between;
  margin-top: clamp(28px, 4vw, 48px);
}
.lede { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 36rem; }
.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.store {
  display: inline-flex; flex-direction: column; gap: 3px;
  background: var(--plum); color: var(--pith);
  padding: 12px 20px; border-radius: 14px;
  font: 800 1.15rem/1.1 var(--display); font-stretch: 87.5%;
}
.store small { font: 400 0.68rem/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--zest); }
.text-link { font-weight: 700; }

.tape { margin-top: clamp(44px, 7vw, 88px); }
.tape-meta {
  display: flex; justify-content: center; gap: 14px;
  font: 500 0.8rem/1 var(--mono); letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.tape-meta time { opacity: 0.7; }
.wave {
  display: flex; align-items: center; gap: max(1px, 0.28vw);
  height: clamp(96px, 15vw, 180px);
  padding: 0 var(--gutter);
  transform-origin: 50% 50%;
  animation: press 1.5s cubic-bezier(0.75, 0, 0.2, 1) 0.45s both;
}
.wave i { flex: 1; height: var(--h); min-height: 4px; background: var(--plum); border-radius: 2px; }

.juice {
  margin: clamp(-16px, -1vw, -8px) auto 0; max-width: 980px;
  display: grid; grid-template-columns: 1fr 1.15fr;
  background: var(--zest); color: var(--plum);
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(42, 15, 36, 0.25), 0 30px 60px -30px rgba(42, 15, 36, 0.55);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 1.55s both;
}
.summary { padding: clamp(22px, 3.5vw, 40px); }
.gist {
  margin: 12px 0 16px;
  font: 800 clamp(1.6rem, 3.2vw, 2.4rem)/1.02 var(--display); font-stretch: 75%;
  text-wrap: balance;
}
.summary ul { margin: 0; padding: 0; list-style: none; }
.summary li { padding: 8px 0 8px 22px; border-top: 1.5px solid rgba(42, 15, 36, 0.2); position: relative; font-size: 0.98rem; }
.summary li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.transcript { background: var(--pith); padding: clamp(22px, 3.5vw, 40px); }
.transcript dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 14px 0 0; }
.transcript dt { font: 400 0.75rem/1.9 var(--mono); color: var(--plum-soft); }
.transcript dd { margin: 0; font-size: 0.98rem; line-height: 1.5; }

.yield {
  margin: 28px auto 0; max-width: 980px; text-align: center;
  font: 400 0.82rem/1.6 var(--mono); letter-spacing: 0.02em;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 1.9s both;
}
.yield b { font-weight: 500; text-decoration: line-through; text-decoration-thickness: 2px; }

@keyframes press {
  0%   { transform: scaleX(1) scaleY(0.9); }
  100% { transform: scaleX(0.3) scaleY(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: none; }
}

/* Section scaffolding */
section h2 {
  font-weight: 900; font-stretch: 62%;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.9; text-transform: uppercase;
  max-width: 14ch;
}
.section-lede { margin: 18px 0 0; max-width: 38rem; font-size: 1.1rem; }

/* How it works: a real sequence, so the numbers stay */
.how { background: var(--plum); color: var(--pith); padding: clamp(64px, 10vw, 128px) 0; }
.how a, .how :focus-visible { outline-color: var(--zest); }
.how .section-lede { color: var(--pith-soft); }
.steps {
  list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  counter-reset: step;
}
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-content: start; }
.steps img { grid-column: 1 / -1; width: 100%; height: auto; margin-bottom: 20px; border-radius: 6%/8%; }
.steps li::before {
  content: counter(step); grid-row: 2 / span 2;
  font: 900 clamp(3.6rem, 6vw, 4.8rem)/0.8 var(--display); font-stretch: 62%;
  color: var(--zest);
}
.steps b { font: 800 1.3rem/1.15 var(--display); font-stretch: 87.5%; }
.steps span { color: var(--pith-soft); }

/* The payoff: the real panel */
.result {
  margin-top: clamp(56px, 8vw, 104px);
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 30rem); gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.result img {
  width: 100%; height: auto; border-radius: 12%/5.6%;
  box-shadow: 0 0 0 10px #120610, 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  transform: rotate(-2deg);
}
.result h3 {
  font-weight: 900; font-stretch: 62%;
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: 0.9; text-transform: uppercase;
  color: var(--zest);
}
.result p { margin: 18px 0 0; font-size: 1.1rem; color: var(--pith-soft); }
.result .tip {
  margin-top: 32px;
  background: var(--zest); color: var(--plum);
  border-radius: 20px; padding: 20px 24px; font-size: 1rem;
}

/* Privacy: the back-of-the-bottle label */
.privacy { padding: clamp(64px, 10vw, 128px) 0; }
.privacy .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin: 40px 0 0; }
.facts dt { font: 800 1.2rem/1.2 var(--display); font-stretch: 87.5%; }
.facts dd { margin: 6px 0 0; color: var(--plum-soft); }
.ingredients {
  background: #fff; border: 3px solid var(--plum); padding: 18px 20px 14px;
  transform: rotate(1.2deg);
}
.ingredients-title {
  margin: 0; padding-bottom: 6px; border-bottom: 12px solid var(--plum);
  font: 900 clamp(2.8rem, 5vw, 3.8rem)/0.9 var(--display); font-stretch: 62%; text-transform: uppercase;
}
.ingredients-list { margin: 0; padding: 12px 0; border-bottom: 5px solid var(--plum); font-weight: 700; font-size: 1.1rem; }
.ingredients dl { margin: 0; }
.ingredients dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1.5px solid var(--plum); }
.ingredients dl div:last-child { border-bottom: 0; }
.ingredients dt { font-weight: 500; }
.ingredients dd { margin: 0; font: 500 0.85rem/1.8 var(--mono); text-align: right; }

/* Pricing */
.pricing { background: var(--orange); padding: clamp(64px, 10vw, 128px) 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(36px, 5vw, 56px); max-width: 920px; }
.plan { border-radius: 28px; padding: clamp(24px, 3.5vw, 40px); }
.plan.free { background: var(--pith); }
.plan.pro { background: var(--plum); color: var(--pith); }
.plan h3 { font: 500 0.8rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.price { margin: 14px 0 20px; font: 900 clamp(3.6rem, 7vw, 5rem)/0.9 var(--display); font-stretch: 62%; }
.plan.pro .price { color: var(--zest); }
.price small { font: 400 1rem/1 var(--body); font-stretch: 100%; }
.plan.pro .price small { color: var(--pith-soft); }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { padding: 10px 0; border-top: 1.5px solid currentColor; }
.plan.free li { border-color: rgba(42, 15, 36, 0.2); }
.plan.pro li { border-color: rgba(255, 247, 221, 0.22); }
.fine { margin: 28px 0 0; max-width: 46rem; font-size: 0.88rem; }

/* Footer */
.site-footer { background: var(--plum); color: var(--pith-soft); padding: 36px 0; font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--pith); text-decoration: none; }
.site-footer a:hover { color: var(--zest); }
.site-footer :focus-visible { outline-color: var(--zest); }

/* Privacy policy and support */
.doc-head { background: var(--orange); padding: clamp(24px, 5vw, 56px) 0 clamp(32px, 5vw, 56px); }
.doc-head h1 {
  font-weight: 900; font-stretch: 62%;
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  line-height: 0.86; text-transform: uppercase;
}
.updated { margin: 16px 0 0; font: 400 0.8rem/1.4 var(--mono); letter-spacing: 0.02em; }
.doc { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 112px); }
.doc .wrap > * { max-width: 760px; }
.doc h2 { margin: 2.2em 0 0.4em; font: 800 1.45rem/1.2 var(--display); font-stretch: 87.5%; }
.doc p { margin: 0 0 1em; }
.callout { background: var(--zest); border-radius: 20px; padding: 20px 24px; font-size: 1.12rem; font-weight: 500; }
.doc details { border-top: 2px solid var(--plum); }
.doc details:last-of-type { border-bottom: 2px solid var(--plum); }
.doc summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 0; font: 800 1.2rem/1.25 var(--display); font-stretch: 87.5%;
}
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; font: 400 1.4rem/1 var(--mono); transition: transform 0.2s; }
.doc details[open] summary::after { transform: rotate(45deg); }
.doc details p { padding-bottom: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-side { grid-template-columns: 1fr; }
  .juice { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .result { grid-template-columns: minmax(0, 260px) 1fr; }
  .privacy .wrap { grid-template-columns: 1fr; }
  .ingredients { max-width: 440px; }
}
@media (max-width: 640px) {
  .site-nav .optional { display: none; }
  .steps { grid-template-columns: 1fr; }
  .result { grid-template-columns: 1fr; }
  .result img { max-width: 280px; margin: 0 auto; }
  .facts { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .wave { animation-name: press-narrow; }
}
@keyframes press-narrow {
  0%   { transform: scaleX(1) scaleY(0.9); }
  100% { transform: scaleX(0.55) scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave, .juice, .yield { animation: none; }
  .wave { transform: scaleX(0.3); }
  .doc summary::after { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) {
  .wave { transform: scaleX(0.55); }
}
