/* ILVIO static site — matches the Atelier look: Newsreader serif headings,
   Red Hat Text body, minimal black-on-white palette. */

:root {
  --fg: #131313;
  --bg: #fff;
  /* Ink scale: real colours instead of opacity-stacked black, so text keeps
     its softness without washing into the background. */
  --ink-soft: #3f3f42;   /* body / secondary copy */
  --ink-mute: #6e6e73;   /* kickers, fineprint, footer */
  --muted: var(--ink-soft);
  --line: rgba(0, 0, 0, .12);
  --line-soft: rgba(0, 0, 0, .07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Red Hat Text", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.01em;
}

a { color: inherit; }

/* ---- Header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 20px;
}
.site-header .brand {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: .28em;
  text-decoration: none;
}
.site-header nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.site-header nav a {
  font-size: .9rem;
  text-decoration: none;
  color: var(--ink-soft);
}
.site-header nav a:hover { color: var(--fg); text-decoration: underline; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 72px;
  padding: 32px 20px 48px;
  text-align: center;
}
.site-footer nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.site-footer nav a {
  color: var(--ink-mute);
  font-size: .85rem;
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--fg); text-decoration: underline; }
.site-footer p {
  margin: 0;
  font-size: .8rem;
  color: var(--ink-mute);
}
.site-footer .org { margin-top: 28px; letter-spacing: .01em; }
.site-footer .mail { margin-top: 7px; }
.site-footer .mail a { text-decoration: none; }
.site-footer .mail a:hover { color: var(--fg); text-decoration: underline; }

/* ---- Landing ---- */
/* Hero fills the first viewport; the flex spacers split the free space
   38.2 : 61.8 so the title block sits on the golden section, slightly
   above true centre — the classical "optical centre". */
.hero {
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  text-align: center;
}
.hero::before { content: ""; flex: 382 0 0; }
.hero::after  { content: ""; flex: 618 0 0; }
.hero h1 {
  font-weight: 200;
  font-size: clamp(2.6rem, 6vw, 4rem);
  margin: 0 0 .35em;
}
.hero p {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 auto 30px;
}
.hero .cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: opacity .15s ease;
}
.btn:hover { opacity: .85; }
.btn--solid { background: var(--fg); color: var(--bg); border: 1px solid var(--fg); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid rgba(0, 0, 0, .18); }
.hero .soon {
  margin-top: 18px;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Quiet scroll cue at the bottom of the first viewport. */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  color: var(--ink-mute);
  opacity: .55;
  animation: cue-drift 2.6s ease-in-out infinite;
}
.hero { position: relative; }
@keyframes cue-drift {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 24px;
}
@media (max-width: 999px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 559px) { .features { grid-template-columns: 1fr; } }
.feature {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
}
/* Cards rest just below the fold and fade in as they enter. Hidden state is
   gated behind html.js so content stays visible without JavaScript. */
.js .feature {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1);
}
.js .feature:nth-child(2) { transition-delay: .09s; }
.js .feature:nth-child(3) { transition-delay: .18s; }
.js .feature:nth-child(4) { transition-delay: .27s; }
.js .feature.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .feature { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
}
.feature h2 {
  font-size: 1.35rem;
  margin: 0 0 8px;
}
.feature p {
  margin: 0;
  font-size: .95rem;
  color: var(--ink-soft);
}

/* ---- Pricing (plans) ---- */
.ilv-wrap { max-width: 1080px; margin: 0 auto; padding: 48px 20px 72px; }
.ilv-head { text-align: center; margin-bottom: 8px; }
.ilv-head h1 { font-weight: 200; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; margin: 0 0 .35em; }
.ilv-head p { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); max-width: 34em; margin: 0 auto; }
.ilv-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 40px; }
.ilv-card { flex: 1 1 280px; max-width: 330px; background: var(--bg); border: 1px solid rgba(0, 0, 0, .14); border-radius: 16px; padding: 30px 26px; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.ilv-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, .08); }
.ilv-card--feat { border: 1.5px solid var(--fg); position: relative; }
.ilv-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.ilv-plan { font-weight: 300; font-size: 1.65rem; margin: 0 0 4px; }
.ilv-price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 2px; }
.ilv-price b { font-family: "Newsreader", Georgia, serif; font-weight: 400; font-size: 2.5rem; letter-spacing: -.02em; }
.ilv-price span { color: var(--ink-mute); font-size: .95rem; }
.ilv-tag { color: var(--ink-mute); font-size: .9rem; margin: 0 0 20px; min-height: 1.2em; }
.ilv-list { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.ilv-list li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; font-size: .95rem; line-height: 1.4; border-top: 1px solid var(--line-soft); }
.ilv-list li:first-child { border-top: none; }
.ilv-list li.ilv-off { color: var(--ink-mute); }
.ilv-mk { flex: 0 0 auto; font-weight: 600; }
.ilv-cta { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 15px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: opacity .15s ease; }
.ilv-cta:hover { opacity: .85; }
.ilv-cta--solid { background: var(--fg); color: var(--bg); border: 1px solid var(--fg); }
.ilv-cta--ghost { background: transparent; color: var(--fg); border: 1px solid rgba(0, 0, 0, .18); }
.ilv-note { text-align: center; color: var(--ink-soft); font-size: .9rem; line-height: 1.6; max-width: 42em; margin: 44px auto 0; }
.ilv-note strong { font-weight: 600; color: var(--fg); }

/* ---- Welcome (Stripe success) ---- */
.ilvw { max-width: 640px; margin: 0 auto; padding: 56px 20px 80px; text-align: center; }
.ilvw-mark { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 26px; display: flex; align-items: center; justify-content: center; background: var(--fg); color: var(--bg); font-size: 36px; line-height: 1; }
.ilvw h1 { font-weight: 200; font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.05; margin: 0 0 .35em; }
.ilvw-sub { font-size: 1.0625rem; line-height: 1.65; color: var(--ink-soft); max-width: 30em; margin: 0 auto 30px; }
.ilvw-panel { background: rgba(0, 0, 0, .04); border-radius: 16px; padding: 26px; margin: 0 auto 34px; max-width: 30em; text-align: left; }
.ilvw-panel h2 { font-weight: 300; font-size: 1.3rem; margin: 0 0 14px; }
.ilvw-panel ul { list-style: none; margin: 0; padding: 0; }
.ilvw-panel li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: .95rem; line-height: 1.5; }
.ilvw-panel li span { flex: 0 0 auto; color: var(--ink-mute); }
.ilvw-fine { color: var(--ink-mute); font-size: .875rem; line-height: 1.6; margin: 26px auto 0; max-width: 32em; }

/* ---- Legal documents ---- */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}
.legal-doc h1 { font-weight: 200; font-size: clamp(2rem, 4.5vw, 2.8rem); margin: .4em 0 .5em; }
.legal-doc h2 { font-size: 1.55rem; margin: 1.8em 0 .5em; }
.legal-doc h3 { font-size: 1.2rem; margin: 1.5em 0 .4em; }
.legal-doc p, .legal-doc li { font-size: .97rem; }
.legal-doc blockquote {
  margin: 1em 0;
  padding: .5em 1.2em;
  border-left: 3px solid var(--line);
  opacity: .8;
}
.legal-doc hr { border: none; border-top: 1px solid var(--line-soft); margin: 2em 0; }
.legal-doc .table-scroll { overflow-x: auto; margin: 1em 0; }
.legal-doc table {
  border-collapse: collapse;
  width: 100%;
  font-size: .85rem;
  min-width: 640px;
}
.legal-doc th, .legal-doc td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.legal-doc th { background: rgba(0, 0, 0, .035); font-weight: 600; }
.legal-doc code { font-size: .85em; background: rgba(0, 0, 0, .05); padding: 1px 5px; border-radius: 4px; }
