/* Tonneo: design system. Cool, precise, unhurried. */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

:root {
  --bg: #0a0d11;
  --bg-soft: #10151b;
  --bg-card: #12181f;
  --fg: #e9edf0;
  --fg-dim: #98a5ad;
  --fg-faint: #5c6870;
  --accent: #8fd0e6;
  --accent-soft: rgba(143, 208, 230, 0.14);
  --line: rgba(233, 237, 240, 0.12);
  --line-soft: rgba(233, 237, 240, 0.06);
  --serif: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --maxw: 1120px;
  --pad: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 1; }

::selection { background: var(--accent); color: #061014; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 26px 0;
  background: linear-gradient(to bottom, rgba(10,13,17,0.92), rgba(10,13,17,0));
  transition: padding 0.35s ease, background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.site-header.is-scrolled { padding: 16px 0; background: rgba(10,13,17,0.86); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.wordmark { font-family: var(--serif); font-size: 1.28rem; text-decoration: none; letter-spacing: 0.01em; }
.wordmark em { font-style: normal; color: var(--accent); }
.site-nav { display: flex; gap: 30px; align-items: center; }
.site-nav a { text-decoration: none; color: var(--fg-dim); font-size: 0.92rem; letter-spacing: 0.02em; transition: color 0.25s ease; }
.site-nav a:hover { color: var(--fg); }
.site-nav a.nav-cta { color: var(--fg); border: 1px solid var(--line); padding: 8px 18px; border-radius: 999px; transition: border-color 0.25s ease, background 0.25s ease; }
.site-nav a.nav-cta:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- hero ---------- */
.hero { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 90px; position: relative; }
.hero .eyebrow {
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 26px; font-weight: 600;
  opacity: 0; animation: fadeIn 0.9s ease 0.15s forwards;
}
.hero-title { font-size: clamp(2.6rem, 2vw + 2.4rem, 6.2rem); line-height: 1.04; margin: 0 0 34px; max-width: 15ch; }
.hero-title .kline { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .kline > span { display: inline-block; animation: lineUp 1s cubic-bezier(.19,1,.22,1) both; animation-delay: var(--d, 0s); }
.hero-title .kline .accent-word { color: var(--accent); font-style: italic; }
.hero-sub { font-size: clamp(1.05rem, 0.4vw + 1rem, 1.3rem); color: var(--fg-dim); max-width: 46ch; line-height: 1.7; margin: 0 0 46px; opacity: 0; animation: fadeUp 1s ease 1.15s forwards; }
.hero-actions { display: flex; gap: 18px; align-items: center; opacity: 0; animation: fadeUp 1s ease 1.35s forwards; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.btn-primary { background: var(--fg); color: #0a0d11; }
.btn-primary:hover { transform: translateY(-2px); background: var(--accent); }
.btn-ghost { border: 1px solid var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hairline {
  height: 1px; background: linear-gradient(90deg, var(--accent), transparent);
  width: 0; margin-top: 54px; animation: growLine 1.4s ease 1.6s forwards;
}
.scroll-cue { position: absolute; left: var(--pad); bottom: 34px; display: flex; align-items: center; gap: 12px; color: var(--fg-faint); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0; animation: fadeIn 1s ease 2s forwards; }
.scroll-cue::after { content: ""; width: 1px; height: 34px; background: var(--fg-faint); animation: scrollDrop 2.2s ease infinite; }

@keyframes lineUp { from { transform: translateY(112%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes growLine { from { width: 0; } to { width: 220px; } }
@keyframes scrollDrop { 0% { transform: scaleY(0); transform-origin: top; opacity: 0; } 40% { transform: scaleY(1); transform-origin: top; opacity: 1; } 60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; } 100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; } }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(.2,.65,.3,1), transform 0.9s cubic-bezier(.2,.65,.3,1); }
.js .reveal.in-view { opacity: 1; transform: translateY(0); }
.js .reveal-delay-1.in-view { transition-delay: 0.12s; }
.js .reveal-delay-2.in-view { transition-delay: 0.24s; }

/* ---------- editorial sections ---------- */
.section { padding: clamp(70px, 11vw, 150px) 0; border-top: 1px solid var(--line-soft); }
.section-grid { display: grid; grid-template-columns: 0.85fr 1.6fr; gap: clamp(28px, 5vw, 90px); align-items: start; }
.section-label { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.section-index { display: block; color: var(--fg-faint); font-family: var(--serif); font-size: 1.4rem; margin-bottom: 14px; }
.section h2 { font-size: clamp(1.7rem, 1.4vw + 1.4rem, 2.6rem); line-height: 1.18; margin-bottom: 22px; }
.section p { color: var(--fg-dim); font-size: 1.05rem; max-width: 62ch; }
.section p + p { margin-top: 18px; }
.section .lede { font-size: clamp(1.15rem, 0.6vw + 1rem, 1.4rem); color: var(--fg); line-height: 1.6; }

/* ---------- guides ---------- */
.guides { padding: clamp(70px, 11vw, 150px) 0; border-top: 1px solid var(--line-soft); }
.guides-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 46px; flex-wrap: wrap; }
.guide-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  text-decoration: none; color: var(--fg); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(24px, 4vw, 44px); background: var(--bg-card); transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.guide-card:hover { border-color: var(--accent); transform: translateY(-3px); background: #141b23; }
.guide-kicker { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint); }
.guide-card h3 { font-size: clamp(1.3rem, 1vw + 1.1rem, 1.9rem); margin: 10px 0 12px; line-height: 1.25; }
.guide-card p { color: var(--fg-dim); margin: 0; font-size: 0.98rem; max-width: 60ch; }
.guide-arrow { font-size: 1.6rem; color: var(--accent); transition: transform 0.3s ease; }
.guide-card:hover .guide-arrow { transform: translateX(6px); }

/* ---------- lead capture ---------- */
.lead-section { padding: clamp(80px, 12vw, 170px) 0; border-top: 1px solid var(--line-soft); text-align: center; }
.lead-section .wrap { max-width: 640px; }
.lead-section h2 { font-size: clamp(1.9rem, 1.6vw + 1.5rem, 3rem); margin-bottom: 18px; }
.lead-section p { color: var(--fg-dim); margin-bottom: 40px; font-size: 1.05rem; }
.lead-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.lead-form input[type="email"] {
  flex: 1 1 280px; background: transparent; border: none; border-bottom: 1px solid var(--line);
  color: var(--fg); font-size: 1.05rem; padding: 14px 6px; font-family: var(--sans); outline: none;
  transition: border-color 0.3s ease;
}
.lead-form input[type="email"]::placeholder { color: var(--fg-faint); }
.lead-form input[type="email"]:focus { border-color: var(--accent); }
.lead-form button {
  background: var(--accent); color: #061014; border: none; border-radius: 999px;
  padding: 15px 30px; font-size: 0.98rem; font-family: var(--sans); font-weight: 600; cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lead-form button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--accent); }
.lead-fine { margin-top: 22px; font-size: 0.82rem; color: var(--fg-faint); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 60px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: var(--fg-dim); font-size: 0.88rem; }
.footer-nav a:hover { color: var(--accent); }
.fineprint { color: var(--fg-faint); font-size: 0.82rem; margin: 0; }
.fineprint a { color: var(--fg-faint); text-decoration: underline; text-underline-offset: 3px; }
.fineprint a:hover { color: var(--accent); }

/* ---------- article ---------- */
.article-main { padding: 150px 0 60px; }
.article-wrap { max-width: 760px; }
.crumbs { font-size: 0.82rem; color: var(--fg-faint); display: flex; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--fg-faint); }
.crumbs a:hover { color: var(--accent); }
.article-wrap h1 { font-size: clamp(2rem, 1.6vw + 1.6rem, 3.2rem); line-height: 1.12; margin-bottom: 22px; }
.pmeta { color: var(--fg-faint); font-size: 0.9rem; margin-bottom: 20px; }
.disclosure { font-size: 0.85rem; color: var(--fg-faint); border-left: 2px solid var(--line); padding-left: 14px; margin-bottom: 30px; }
.takeaway { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; font-size: 1.03rem; color: var(--fg); margin-bottom: 50px; line-height: 1.6; }
.takeaway strong { color: var(--accent); }
.article-body h2 { font-size: clamp(1.4rem, 0.9vw + 1.2rem, 1.9rem); margin: 56px 0 20px; line-height: 1.25; }
.article-body h3 { font-size: 1.2rem; margin: 34px 0 14px; }
.article-body p { color: var(--fg-dim); margin: 0 0 20px; font-size: 1.04rem; }
.article-body ul, .article-body ol { color: var(--fg-dim); padding-left: 22px; margin: 0 0 20px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--fg); }
.tablewrap { overflow-x: auto; margin: 30px 0 40px; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 480px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); color: var(--fg-dim); }
th { color: var(--fg); font-family: var(--serif); font-weight: 500; background: var(--bg-card); }
tr:last-child td { border-bottom: none; }
.faqbox { margin: 40px 0 50px; }
.faqbox h2 { margin-bottom: 20px; }
.faqbox details { border-top: 1px solid var(--line); padding: 20px 0; }
.faqbox details:last-child { border-bottom: 1px solid var(--line); }
.faqbox summary { cursor: pointer; font-family: var(--serif); font-size: 1.1rem; color: var(--fg); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faqbox summary::-webkit-details-marker { display: none; }
.faqbox summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; transition: transform 0.3s ease; flex-shrink: 0; }
.faqbox details[open] summary::after { transform: rotate(45deg); }
.faqbox p { color: var(--fg-dim); margin: 14px 0 0; }
.closing-hook { font-size: 1.1rem; padding: 34px 0 10px; color: var(--fg); }
.closing-hook a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 404 ---------- */
.notfound-main { min-height: 80vh; display: flex; align-items: center; }
.notfound-main .eyebrow { color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 20px; }
.notfound-main h1 { font-size: clamp(2.4rem, 2vw + 2rem, 4.5rem); margin-bottom: 20px; }
.notfound-main p { color: var(--fg-dim); max-width: 50ch; margin-bottom: 36px; font-size: 1.08rem; }

/* ---------- static pages ---------- */
.page-main { padding: 150px 0 100px; }
.page-wrap { max-width: 760px; }
.page-wrap h1 { font-size: clamp(2rem, 1.4vw + 1.6rem, 2.8rem); margin-bottom: 30px; }
.page-wrap h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.page-wrap p { color: var(--fg-dim); margin: 0 0 18px; font-size: 1.02rem; }
.page-wrap ul { color: var(--fg-dim); padding-left: 22px; }
.page-wrap li { margin-bottom: 10px; }
.updated { color: var(--fg-faint); font-size: 0.85rem; margin-bottom: 40px; }

@media (max-width: 860px) {
  .section-grid { grid-template-columns: 1fr; }
  .guide-card { grid-template-columns: 1fr; text-align: left; }
  .guide-arrow { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
   