/* RefreshRank - forest-editorial. Fraunces display / Schibsted Grotesk body. */
:root {
  --bg: #081f18;
  --bg-raised: #0c2a20;
  --line: #1c4435;
  --ink: #ecfdf3;
  --soft: #a7d8bc;
  --dim: #6fa98a;
  --accent: #4ade80;
  --accent-soft: #86efac;
  --decay: #557a66;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* atmosphere: two soft glows + grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(74, 222, 128, 0.10), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(74, 222, 128, 0.06), transparent 60%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--accent-soft); text-decoration-color: rgba(134, 239, 172, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

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

/* --- header ----------------------------------------------------------- */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 24px; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
nav.site { display: flex; align-items: center; gap: 26px; font-size: 15.5px; }
nav.site a { color: var(--soft); text-decoration: none; }
nav.site a:hover { color: var(--ink); }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-solid {
  background: var(--accent); color: #052012 !important;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
}
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(74, 222, 128, 0.25); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink) !important; }
.btn-ghost:hover { border-color: var(--dim); }

/* --- hero -------------------------------------------------------------- */
.hero { padding: 72px 0 36px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 560; font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.06; letter-spacing: -0.015em;
  font-variation-settings: "opsz" 60;
}
.hero h1 em { font-style: italic; color: var(--accent-soft); font-weight: 480; }
.hero p.lede { margin-top: 22px; font-size: 19px; color: var(--soft); max-width: 34em; }
.hero .cta-row { margin-top: 34px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero .fine { margin-top: 14px; font-size: 14px; color: var(--dim); }

/* staggered load-in. The hidden state lives only inside the keyframes
   (fill-mode: both) so content stays visible if animations never run. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.32s; } .d4 { animation-delay: 0.46s; }

/* hero chart: decay line draws, projection dashes, revival line lifts */
.chart { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .axis { stroke: var(--line); stroke-width: 2; }
.chart .decayline {
  stroke: var(--decay); stroke-width: 3.5; fill: none; stroke-linecap: round;
  stroke-dasharray: 460;
  animation: draw460 1.1s ease-out 0.4s both;
}
.chart .projection {
  stroke: var(--decay); stroke-width: 2.5; fill: none; stroke-linecap: round;
  stroke-dasharray: 7 9;
  animation: fadein 0.6s ease 1.5s both;
}
.chart .revival {
  stroke: var(--accent); stroke-width: 4; fill: none; stroke-linecap: round;
  stroke-dasharray: 330;
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.45));
  animation: draw330 0.9s cubic-bezier(0.3, 0, 0.2, 1) 1.7s both;
}
.chart .marker { fill: var(--accent); animation: fadein 0.4s ease 1.6s both; }
.chart .chart-label {
  font-family: var(--sans); font-size: 13px; fill: var(--soft);
  animation: fadein 0.5s ease 1.9s both;
}
.chart .chart-label.dimlabel { fill: var(--dim); }
@keyframes draw460 { from { stroke-dashoffset: 460; } to { stroke-dashoffset: 0; } }
@keyframes draw330 { from { stroke-dashoffset: 330; } to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.chart figcaption { margin-top: 12px; font-size: 13.5px; color: var(--dim); text-align: center; }

/* --- sections ----------------------------------------------------------- */
section { padding: 64px 0; }
.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
h2.sec {
  font-family: var(--serif); font-weight: 540; font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.01em; line-height: 1.12; max-width: 18em;
}
h2.sec em { font-style: italic; color: var(--accent-soft); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.step {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 24px 28px; position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.step:hover { transform: translateY(-3px); border-color: var(--dim); }
.step .num {
  font-family: var(--serif); font-style: italic; font-size: 52px; line-height: 1;
  color: var(--accent); opacity: 0.85;
}
.step h3 { font-size: 19px; margin: 14px 0 8px; }
.step p { font-size: 15.5px; color: var(--soft); }

/* editorial principle rows */
.principles { margin-top: 40px; border-top: 1px solid var(--line); }
.principle {
  display: grid; grid-template-columns: 0.85fr 1.4fr; gap: 32px;
  padding: 34px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.principle h3 { font-family: var(--serif); font-weight: 540; font-size: 26px; letter-spacing: -0.01em; }
.principle h3 em { font-style: italic; color: var(--accent-soft); }
.principle p { color: var(--soft); font-size: 16.5px; max-width: 38em; }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 42px; }
.tier {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 22px; display: flex; flex-direction: column; gap: 0;
}
.tier.featured { border-color: var(--accent); box-shadow: 0 0 40px rgba(74, 222, 128, 0.12); position: relative; }
.tier .tag {
  position: absolute; top: -11px; left: 22px; background: var(--accent); color: #052012;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.tier h3 { font-size: 17px; }
.tier .price { font-family: var(--serif); font-size: 40px; font-weight: 560; margin: 10px 0 2px; }
.tier .price span { font-family: var(--sans); font-size: 14px; color: var(--dim); font-weight: 400; }
.tier ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; font-size: 14.5px; color: var(--soft); }
.tier ul li::before { content: "\2713\00a0\00a0"; color: var(--accent); font-weight: 700; }
.tier .btn { margin-top: auto; text-align: center; }
.pricing-note { margin-top: 26px; font-size: 14.5px; color: var(--dim); max-width: 52em; }

/* FAQ */
.faq { margin-top: 36px; display: grid; gap: 10px; }
.faq details {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none; position: relative; padding-right: 30px; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: -2px; font-family: var(--serif); font-size: 24px; color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--soft); font-size: 15.5px; max-width: 56em; }

/* CTA band */
.band {
  margin: 30px 0 10px; border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.10), rgba(74, 222, 128, 0.02));
  padding: 52px 44px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.band h2 { font-family: var(--serif); font-weight: 540; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.01em; }
.band h2 em { font-style: italic; color: var(--accent-soft); }

/* legal pages */
.legal { max-width: 760px; padding: 56px 0 80px; }
.legal h1 { font-family: var(--serif); font-weight: 560; font-size: 40px; letter-spacing: -0.01em; margin-bottom: 6px; }
.legal .updated { color: var(--dim); font-size: 14.5px; margin-bottom: 36px; }
.legal h2 { font-family: var(--serif); font-weight: 560; font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--soft); font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }

/* footer */
footer.site {
  margin-top: 48px; border-top: 1px solid var(--line); padding: 36px 0 48px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 14.5px; color: var(--dim);
}
footer.site nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site a { color: var(--soft); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .steps { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .tiers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .tiers { grid-template-columns: 1fr; }
  nav.site .navlink { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .chart .decayline, .chart .projection, .chart .revival, .chart .marker, .chart .chart-label
  { animation: none; }
}
