/* Neurad — internal Google Ads operations desk
   Aesthetic: editorial operations desk. Pine green + warm paper + ochre.
   Display: Fraunces. Body: Hanken Grotesk. Data: Spline Sans Mono. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Hanken+Grotesk:wght@400;500;600;700&family=Spline+Sans+Mono:wght@400;500&display=swap');

:root {
  --pine: #0F3D2E;
  --pine-deep: #0A2A20;
  --pine-soft: #1C5443;
  --paper: #F3EDE1;
  --paper-dim: #E9E1D1;
  --ochre: #C87A2C;
  --ochre-soft: #E2A35A;
  --ink: #1A1A17;
  --ink-soft: #4A4A42;
  --line: rgba(15, 61, 46, 0.16);
  --card: #FBF7EE;
  --maxw: 1140px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(200,122,44,0.06), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(15,61,46,0.05), transparent 38%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---- Typography ---- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; color: var(--pine); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-optical-sizing: auto; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.28rem; letter-spacing: 0; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; }
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ochre); display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--ochre); display: inline-block; }
em { font-style: italic; font-family: var(--serif); color: var(--pine-soft); }

/* ---- Top bar ---- */
header.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,237,225,0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--pine); letter-spacing: -0.01em; }
.brand .glyph {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; background: var(--pine);
  position: relative; flex: none;
}
.brand .glyph::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--ochre-soft); }
nav.main { display: flex; gap: 28px; align-items: center; }
nav.main a { font-size: 0.93rem; color: var(--ink-soft); transition: color .2s; position: relative; }
nav.main a:hover, nav.main a.active { color: var(--pine); }
nav.main a.active::after { content:''; position:absolute; left:0; right:0; bottom:-6px; height:2px; background:var(--ochre); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 600;
  font-size: 0.92rem; padding: 11px 20px; border-radius: 2px; border: 1px solid var(--pine);
  background: var(--pine); color: var(--paper); cursor: pointer; transition: transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 4px 4px 0 var(--ochre); }
.btn.ghost { background: transparent; color: var(--pine); }
.btn.ghost:hover { box-shadow: 4px 4px 0 var(--pine); }

/* ---- Hero ---- */
.hero { padding: 86px 0 64px; position: relative; }
.hero .grid { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 24px; }
.hero h1 .ink { color: var(--ink); }
.hero .cta-row { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-card {
  background: var(--pine); color: var(--paper); border-radius: 4px; padding: 28px; position: relative;
  box-shadow: 14px 14px 0 rgba(15,61,46,0.12);
}
.hero-card h3 { color: var(--paper); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }
.hero-card .row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(243,237,225,0.16); font-size: 0.95rem; }
.hero-card .row:last-child { border-bottom: 0; }
.hero-card .row b { font-family: var(--mono); color: var(--ochre-soft); font-weight: 500; }
.hero-card .tag { position: absolute; top: -14px; right: 22px; background: var(--ochre); color: var(--pine-deep); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; padding: 5px 12px; border-radius: 2px; text-transform: uppercase; }

/* ---- Sections ---- */
section { padding: 72px 0; }
section.alt { background: linear-gradient(180deg, transparent, rgba(15,61,46,0.04)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 64ch; margin-bottom: 46px; }
.section-head h2 { margin: 16px 0 14px; }

/* ---- Stat strip ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.stats .cell { background: var(--paper); padding: 30px 24px; }
.stats .num { font-family: var(--serif); font-size: 2.5rem; color: var(--pine); line-height: 1; }
.stats .num .u { font-family: var(--mono); font-size: 1rem; color: var(--ochre); }
.stats .lbl { margin-top: 10px; font-size: 0.88rem; color: var(--ink-soft); }

/* ---- Cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 28px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 6px 8px 0 rgba(15,61,46,0.08); }
.card .ix { font-family: var(--mono); font-size: 0.78rem; color: var(--ochre); letter-spacing: 0.1em; }
.card h3 { margin: 14px 0 10px; }
.card p { font-size: 0.96rem; color: var(--ink-soft); }
.card ul { margin-top: 14px; list-style: none; }
.card li { font-size: 0.9rem; padding: 6px 0 6px 20px; position: relative; color: var(--ink-soft); border-top: 1px dashed var(--line); }
.card li:first-child { border-top: 0; }
.card li::before { content: '→'; position: absolute; left: 0; color: var(--ochre); }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { padding: 26px 22px; border-left: 1px solid var(--line); position: relative; }
.step:first-child { border-left: 0; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 0.85rem; color: var(--ochre); }
.step h3 { font-size: 1.05rem; margin: 12px 0 8px; }
.step p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---- Callout / quote ---- */
.callout { background: var(--pine); color: var(--paper); border-radius: 6px; padding: 48px; position: relative; overflow: hidden; }
.callout::after { content: '“'; position: absolute; right: 30px; top: -10px; font-family: var(--serif); font-size: 12rem; color: rgba(243,237,225,0.07); }
.callout p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; max-width: 50ch; }
.callout .by { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; margin-top: 20px; color: var(--ochre-soft); }

/* ---- Prose ---- */
.prose { max-width: 72ch; }
.prose h2 { margin: 44px 0 16px; }
.prose h3 { margin: 30px 0 10px; color: var(--pine-soft); }
.prose p { margin: 14px 0; color: var(--ink-soft); }
.prose ul { margin: 14px 0 14px 0; padding-left: 22px; color: var(--ink-soft); }
.prose li { margin: 8px 0; }
.prose strong { color: var(--ink); }
.note { border-left: 3px solid var(--ochre); background: var(--card); padding: 16px 20px; border-radius: 0 4px 4px 0; font-size: 0.95rem; margin: 22px 0; }

/* ---- Dashboard ---- */
.dash { display: grid; grid-template-columns: 220px 1fr; gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; min-height: 560px; background: var(--card); }
.dash aside { background: var(--pine-deep); color: var(--paper); padding: 24px 18px; }
.dash aside .brand { color: var(--paper); font-size: 1.1rem; margin-bottom: 26px; }
.dash aside .brand .glyph { width: 24px; height: 24px; }
.dash nav a { display: block; padding: 9px 12px; border-radius: 3px; font-size: 0.9rem; color: rgba(243,237,225,0.7); margin-bottom: 2px; }
.dash nav a.on, .dash nav a:hover { background: rgba(243,237,225,0.1); color: var(--paper); }
.dash main { padding: 28px; }
.dash .topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.dash .pill { font-family: var(--mono); font-size: 0.72rem; padding: 5px 11px; border-radius: 20px; background: rgba(200,122,44,0.14); color: var(--ochre); letter-spacing: 0.06em; }
.kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 24px; }
.kpi { border: 1px solid var(--line); border-radius: 4px; padding: 16px; background: var(--paper); }
.kpi .k { font-size: 0.78rem; color: var(--ink-soft); }
.kpi .v { font-family: var(--serif); font-size: 1.7rem; color: var(--pine); margin-top: 6px; }
.kpi .d { font-family: var(--mono); font-size: 0.74rem; margin-top: 4px; }
.kpi .d.up { color: #2f7d54; } .kpi .d.down { color: #b1502f; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th { text-align: left; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
table.data td.mono { font-family: var(--mono); color: var(--ink-soft); }
.stat-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; }
.stat-dot.green { background: #2f7d54; } .stat-dot.amber { background: var(--ochre); } .stat-dot.grey { background: #9a958a; }

/* ---- Footer ---- */
footer.site { background: var(--pine-deep); color: rgba(243,237,225,0.72); padding: 56px 0 34px; margin-top: 40px; }
footer.site .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
footer.site .brand { color: var(--paper); }
footer.site a { display: block; padding: 5px 0; font-size: 0.92rem; color: rgba(243,237,225,0.72); }
footer.site a:hover { color: var(--ochre-soft); }
footer.site h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ochre-soft); margin-bottom: 10px; }
footer.site .fine { border-top: 1px solid rgba(243,237,225,0.12); margin-top: 34px; padding-top: 18px; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; } .d4 { animation-delay: .35s; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero .grid, footer.site .grid { grid-template-columns: 1fr; }
  .stats, .cards, .kpis { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  nav.main { display: none; }
  .dash { grid-template-columns: 1fr; }
  .dash aside { display: none; }
}
@media (max-width: 560px) { .stats, .kpis { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr; } }
