/* Studio Pireneus. Visual world taken from adrienduval.fr: warm paper,
   near black ink, one lime highlight, heavy geometric display type. */
:root {
  --paper: #fffbf7;
  --paper-2: #f6f0e8;
  --ink: #1a1a1a;
  --ink-2: #4a4744;
  --ink-3: #6f6a65;
  --line: #e8e1d8;
  --lime: #d8f266;
  --lime-ink: #2b3300;
  --display: "Outfit", "Figtree", sans-serif;
  --body: "Figtree", sans-serif;
  --wrap: 72rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-color: #cfc6ba var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--ink);
  text-rendering: optimizeLegibility;
}
::selection { background: var(--lime); color: var(--ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 3.75rem; }
.brand { font: 700 0.95rem/1 var(--display); letter-spacing: -0.01em; text-decoration: none; }
.brand span { color: var(--ink-3); font-weight: 500; }
.top nav { display: flex; align-items: center; gap: 1.5rem; }
.top nav a:not(.pill) {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); text-decoration: none; transition: color 0.2s;
}
.top nav a:not(.pill):hover { color: var(--ink); }

.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem; border-radius: 999px; border: 0;
  background: var(--lime); color: var(--ink);
  font: 600 0.78rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(43, 51, 0, 0.45); }
.pill.dark { background: var(--ink); color: var(--paper); }
.pill.big { padding: 1.05rem 1.6rem; font-size: 0.85rem; }

/* Type */
.display {
  font: 800 clamp(3rem, 8.4vw, 6rem)/0.98 var(--display);
  letter-spacing: -0.04em; text-wrap: balance;
}
.display mark, .h2 mark {
  background: var(--lime); color: inherit;
  padding: 0 0.12em; margin: 0 -0.04em; border-radius: 0.08em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.h2 {
  font: 800 clamp(2.1rem, 4.6vw, 3.4rem)/1.02 var(--display);
  letter-spacing: -0.035em; text-wrap: balance;
}
.h3 { font: 700 1.35rem/1.2 var(--display); letter-spacing: -0.02em; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.6; color: var(--ink-2); max-width: 36rem; }
.muted { color: var(--ink-3); }
.small { font-size: 0.88rem; }

/* Hero */
.hero { padding-block: clamp(4.5rem, 12vw, 9rem) clamp(3rem, 7vw, 5rem); }
.hero .lede { margin-top: 2rem; }
.hero .actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.hero .actions .link { font-weight: 500; }

/* Marquee */
.marquee {
  border-block: 1px solid var(--line); overflow: hidden;
  padding-block: 1.05rem; color: var(--ink-3);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
}
.marquee .track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { padding-inline: 1.4rem; white-space: nowrap; }
.marquee span::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 2.8rem; border-radius: 50%; background: #cfc6ba; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding-block: clamp(4rem, 10vw, 7.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 46rem; }

/* Offer rows: two big lines, not cards */
.rows { border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.5rem 3rem;
  padding-block: 2.25rem; border-bottom: 1px solid var(--line);
}
.row .h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.03em; }
.row p { color: var(--ink-2); max-width: 34rem; }
.row a { font-weight: 600; }

/* Browser window frame, as on adrienduval.fr */
.window {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.04), 0 30px 60px -30px rgba(60, 45, 25, 0.28);
  overflow: hidden;
}
.window .bar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper-2);
}
.window .dots { display: flex; gap: 6px; }
.window .dots i { width: 9px; height: 9px; border-radius: 50%; background: #d9d1c6; }
.window .bar b { font: 500 0.78rem/1 var(--body); color: var(--ink-3); }
.window .body { padding: clamp(1.25rem, 3vw, 2rem); }

/* Demo */
.demo { display: grid; gap: 1.25rem; }
.msg { display: grid; gap: 0.35rem; }
.msg .from { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.msg .from strong { font-weight: 600; }
.msg .from small { color: var(--ink-3); font-size: 0.8rem; }
.msg .subject { font-weight: 600; font-size: 0.95rem; }
.msg p { color: var(--ink-2); white-space: pre-line; }
.tag {
  justify-self: start; display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.7rem; border-radius: 999px; background: var(--paper-2);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
}
.tag.lime { background: var(--lime); color: var(--lime-ink); }
.tag .spark { width: 12px; height: 12px; }
.draft {
  border-radius: 14px; padding: 1.25rem 1.35rem; background: var(--paper);
  border: 1px solid var(--line); min-height: 15.5rem;
}
.draft .text { white-space: pre-line; color: var(--ink); }
.draft .cursor { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -0.18em; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.send { opacity: 0.35; pointer-events: none; transition: opacity 0.5s var(--ease); }
.send.ready { opacity: 1; pointer-events: auto; }
.replay { background: none; border: 0; font: 500 0.88rem var(--body); color: var(--ink-3); cursor: pointer; text-decoration: underline; text-underline-offset: 0.25em; }
.replay:hover { color: var(--ink); }

.demo-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

/* Steps: the order matters, so the numbers stay */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 1.25rem; color: var(--ink-2); }
.steps li::before {
  content: counter(s); display: block; margin-bottom: 0.9rem;
  font: 800 2.6rem/1 var(--display); letter-spacing: -0.04em; color: var(--ink);
}
.gains { list-style: none; display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.gains li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; color: var(--ink-2); }
.gains svg { width: 1.25rem; height: 1.25rem; margin-top: 0.22rem; }

/* Price table */
.prices { border-top: 1px solid var(--ink); }
.price-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: baseline;
  gap: 1rem 2.5rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line);
}
.price-row .h3 { font-size: 1.5rem; }
.price-row p { color: var(--ink-2); }
.amount { font: 800 clamp(2rem, 4vw, 2.75rem)/1 var(--display); letter-spacing: -0.04em; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount small { display: block; margin-top: 0.4rem; font: 500 0.8rem/1 var(--body); letter-spacing: 0; color: var(--ink-3); }

/* Closing call */
.closing { background: var(--ink); color: var(--paper); }
.closing .h2 { color: var(--paper); }
.closing .lede { color: #cfc8bf; }
.closing .section-head { margin-bottom: 0; }
.closing .actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.closing a.mail { color: var(--paper); font-weight: 500; }

/* Prose pages */
.prose { max-width: 42rem; }
.prose .display { font-size: clamp(2.6rem, 6vw, 4.25rem); }
.prose h2 { font: 700 1.35rem/1.25 var(--display); letter-spacing: -0.02em; margin-top: 2.75rem; }
.prose p { margin-top: 0.7rem; color: var(--ink-2); }
.prose a { font-weight: 500; }

/* Opt-out form */
form.optout { display: grid; gap: 0.6rem; margin-top: 2.5rem; max-width: 34rem; }
form.optout label { font-size: 0.85rem; font-weight: 600; }
form.optout .field { display: flex; gap: 0.6rem; flex-wrap: wrap; }
form.optout input {
  flex: 1 1 16rem; min-width: 0; padding: 0.95rem 1.2rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #d6cdc2; border-radius: 999px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
form.optout input::placeholder { color: #8b847d; }
form.optout input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(216, 242, 102, 0.7); }
form.optout button[disabled] { opacity: 0.6; cursor: progress; }
.status { margin-top: 1.25rem; font-weight: 600; min-height: 1.6em; }
.status.ok { color: #2f5a14; }
.status.err { color: #9b2c22; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: 0.85rem; color: var(--ink-3); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.foot p { max-width: 44rem; }
.foot nav { display: flex; gap: 1.25rem; }
.foot a { color: var(--ink-2); }

/* One authored entrance: the hero headline rises out of a mask */
@media (prefers-reduced-motion: no-preference) {
  .rise > * { animation: rise 0.9s var(--ease) both; }
  .rise > *:nth-child(2) { animation-delay: 0.08s; }
  .rise > *:nth-child(3) { animation-delay: 0.16s; }
  @keyframes rise { from { transform: translateY(14px); } }
}
@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 52rem) {
  .row, .demo-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .price-row { grid-template-columns: 1fr auto; }
  .price-row p { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 36rem) {
  .top nav a.hide-sm { display: none; }
  .top nav { gap: 1rem; }
  .pill.small-sm { padding: 0.6rem 0.9rem; font-size: 0.7rem; }
}
