:root {
  --ink: #172230;
  --muted: #5f6d7b;
  --paper: #f4f7f1;
  --panel: #ffffff;
  --line: #d9e1dc;
  --blue: #1c4ed8;
  --blue-dark: #12378f;
  --lime: #d7ed63;
  --orange: #ff936c;
  --shadow: 0 18px 45px rgba(23, 34, 48, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(28, 78, 216, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 78, 216, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: var(--blue-dark); }
a:hover { color: var(--blue); }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 241, .91);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 10px 3px 10px 3px;
  font-size: .78rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-links a {
  padding: 7px 11px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 3px 12px rgba(23, 34, 48, .08);
}

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: center;
  gap: 72px;
  padding: 86px 0 76px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.045em; }
h1 { max-width: 760px; font-size: clamp(3.1rem, 8vw, 6.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.25rem; }

.hero h1 em { color: var(--blue); font-style: normal; }
.lead { max-width: 650px; margin: 26px 0 0; color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.3rem); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 8px 3px 8px 3px; font-weight: 800; text-decoration: none; }
.button.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.button.primary:hover { color: #fff; background: var(--blue-dark); }
.button.secondary { color: var(--ink); background: transparent; }
.button.secondary:hover { color: var(--ink); background: var(--lime); }

.diagram {
  position: relative;
  min-height: 360px;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px 5px 18px 5px;
  box-shadow: var(--shadow);
}

.diagram::before { content: "FLOW / INFORMATION ONLY"; position: absolute; top: 17px; right: 22px; color: var(--muted); font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.node { padding: 19px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfb; }
.node strong { display: block; font-size: 1.05rem; }
.node span { display: block; margin-top: 4px; color: var(--muted); font-size: .88rem; }
.node.google { border-left: 7px solid var(--blue); }
.node.accounting { border-left: 7px solid var(--orange); }
.arrow { color: var(--blue); font-size: 1.4rem; font-weight: 900; text-align: center; }

.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section-intro { max-width: 680px; margin-bottom: 34px; }
.section-intro p { margin: 16px 0 0; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 25px; background: rgba(255,255,255,.84); border: 1px solid var(--line); border-radius: 12px 4px 12px 4px; }
.card p { margin: 12px 0 0; color: var(--muted); }
.card .tag { display: inline-block; margin-bottom: 24px; color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: start; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { position: relative; padding: 0 0 18px 30px; color: var(--muted); }
.list li::before { content: ""; position: absolute; top: .56em; left: 2px; width: 11px; height: 11px; background: var(--lime); border: 2px solid var(--ink); border-radius: 50%; }
.note { padding: 18px 20px; color: var(--ink); background: #eef4c4; border-left: 5px solid var(--lime); border-radius: 5px; }

.page-hero { padding: 82px 0 48px; }
.page-hero h1 { max-width: 850px; font-size: clamp(2.8rem, 7vw, 5.5rem); }
.page-hero p { max-width: 700px; margin: 22px 0 0; color: var(--muted); font-size: 1.16rem; }
.prose { max-width: 800px; padding-bottom: 84px; }
.prose section { padding: 30px 0; border-top: 1px solid var(--line); }
.prose h2 { margin-bottom: 14px; font-size: 1.65rem; letter-spacing: -.03em; }
.prose h3 { margin: 22px 0 8px; font-size: 1.05rem; letter-spacing: -.02em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 22px; }
.prose strong { color: var(--ink); }

.site-footer { padding: 30px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 16px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

@media (max-width: 760px) {
  .nav { width: min(100% - 28px, 1120px); min-height: 92px; align-items: flex-start; padding: 18px 0; flex-direction: column; gap: 12px; }
  .wrap { width: min(100% - 28px, 1120px); }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 5px 8px; font-size: .82rem; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 42px; padding: 66px 0 62px; }
  .diagram { min-height: 300px; }
  .grid-3, .split { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .page-hero { padding: 60px 0 34px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
