/* Clarity Growth Ads — design system
   Warm paper + deep forest + lime. Fraunces for display, DM Sans for text. */

:root {
  --paper: #f6f3ec;
  --paper-2: #ede8db;
  --card: #ffffff;
  --ink: #0d1f1a;
  --forest: #11302a;
  --forest-2: #184238;
  --forest-3: #235a4c;
  --lime: #d6f26b;
  --lime-deep: #b9dc3d;
  --lime-ink: #1d2c00;
  --text: #14221d;
  --muted: #5a6862;
  --line: #ddd7c8;
  --line-soft: #e9e4d7;
  --danger: #b33a26;
  --danger-bg: #fbece8;
  --ok: #2a7a4d;
  --ok-bg: #e6f3ea;
  --warn-bg: #fbf3d9;
  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --shadow: 0 1px 2px rgba(13, 31, 26, .05), 0 12px 32px -12px rgba(13, 31, 26, .18);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
h1 em, h2 em { font-style: italic; font-weight: 500; }

p { margin: 0 0 16px; }
a { color: inherit; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--forest-3);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 4px rgba(185, 220, 61, .28);
}
.on-dark .eyebrow, .hero .eyebrow { color: var(--lime); }
.on-dark .eyebrow::before, .hero .eyebrow::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(214, 242, 107, .2); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 .98rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--lime-deep);
  outline-offset: 2px;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--forest-2); }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { background: #e2f98a; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { background: transparent; border-color: rgba(246, 243, 236, .45); color: var(--paper); }
.btn-ghost-light:hover { background: rgba(246, 243, 236, .1); border-color: var(--paper); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: #efc9c0; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* Google's light "Sign in with Google" button */
.btn-google {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #747775;
  border-radius: 999px;
  padding: 0 18px 0 14px;
  height: 46px;
  font-family: "Roboto", var(--font-body);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .01em;
}
.btn-google:hover { background: #f8faff; box-shadow: 0 1px 3px rgba(60, 64, 67, .3); }

/* ---------- Header: floating pill ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0 6px;
  pointer-events: none;
}
header.site .bar {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 10px 0 18px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border: 1px solid rgba(13, 31, 26, .08);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(13, 31, 26, .05), 0 14px 34px -14px rgba(13, 31, 26, .28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
}
.brand svg { flex: none; }

nav.main { display: contents; }
.nav-links { display: flex; align-items: center; gap: 2px; justify-self: center; }
.nav-actions { display: flex; align-items: center; gap: 6px; justify-self: end; }

.nav-link {
  position: relative;
  text-decoration: none;
  padding: 9px 14px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .15s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 600; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--forest-3);
}
.nav-login { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 14px; }
.nav-login:hover { background: var(--paper-2); }
.nav-login.active::after { display: none; }
.nav-login.active { background: var(--paper-2); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; justify-self: end; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--paper);
  margin-top: -84px; /* slides under the floating header */
  padding: 180px 0 112px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(214, 242, 107, .16);
  pointer-events: none;
}
.hero::before { width: 760px; height: 760px; right: -220px; top: -260px; box-shadow: 0 0 0 90px rgba(214, 242, 107, .03), 0 0 0 180px rgba(214, 242, 107, .02); }
.hero::after { width: 380px; height: 380px; left: -140px; bottom: -200px; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero h1 { color: var(--paper); margin-bottom: 24px; }
.hero h1 em { color: var(--lime); }
.hero .lede { font-size: 1.2rem; color: #c3d2cb; max-width: 560px; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 28px; font-size: .9rem; color: #94aaa1; display: flex; align-items: center; gap: 10px; }
.hero-note svg { color: var(--lime); flex: none; }

/* Product mock (sample data) */
.mock-wrap { position: relative; padding: 18px 0 38px 18px; }
.mock {
  background: var(--paper);
  color: var(--text);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
}
.mock-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mock-title { font-weight: 700; font-size: .95rem; color: var(--ink); }
.mock-tag { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--paper-2); color: var(--muted); border-radius: 999px; padding: 4px 10px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.mock-kpi { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; }
.mock-kpi span { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; }
.mock-kpi b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.mock-kpi i { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--ok); margin-left: 6px; }
.mock-chart { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 14px 10px; margin-bottom: 14px; }
.mock-bars { display: flex; align-items: flex-end; gap: 7px; height: 78px; }
.mock-bars span { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--forest-3); opacity: .22; }
.mock-bars span:nth-last-child(-n+5) { opacity: 1; background: var(--forest-2); }
.mock-bars span:last-child { background: var(--lime-deep); }
.mock-rows { display: grid; gap: 8px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 14px; font-size: .88rem; font-weight: 500; }
.mock-row small { display: block; color: var(--muted); font-weight: 400; font-size: .76rem; }
.mock-toast {
  position: absolute;
  left: -6px; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  background: var(--lime);
  color: var(--lime-ink);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: .86rem;
  font-weight: 600;
  box-shadow: 0 18px 34px -12px rgba(0, 0, 0, .5);
}

/* ---------- Sections ---------- */

section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.on-dark { background: var(--forest); color: #c3d2cb; }
.on-dark h2, .on-dark h3 { color: var(--paper); }
.alt { background: var(--paper-2); }

.trust { background: var(--paper-2); padding: 0; border-bottom: 1px solid var(--line); }
.trust .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust .item { display: flex; align-items: center; gap: 14px; padding: 26px 20px; border-right: 1px solid var(--line); }
.trust .item:last-child { border-right: 0; }
.trust .item svg { flex: none; color: var(--forest-3); }
.trust b { display: block; font-size: .96rem; color: var(--ink); line-height: 1.3; }
.trust span { font-size: .84rem; color: var(--muted); line-height: 1.35; display: block; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card-flat { box-shadow: none; }
.icon-chip {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--lime);
  color: var(--lime-ink);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.link-arrow { font-weight: 600; text-decoration: none; color: var(--forest-3); display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(246, 243, 236, .18); }
.step { padding: 32px 28px 8px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid rgba(246, 243, 236, .12); }
.step .n { font-family: var(--font-display); font-size: 3.6rem; font-weight: 500; font-style: italic; line-height: 1; color: var(--lime); margin-bottom: 14px; }
.step h3 { font-size: 1.2rem; }
.step p { font-size: .98rem; color: #a9bcb3; margin: 0; }

/* Google access panel */
.access-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.scope-list { display: grid; gap: 14px; }
.scope {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 20px 22px;
}
.scope .icon-chip { width: 44px; height: 44px; margin: 0; border-radius: 12px; background: var(--paper-2); color: var(--forest-3); }
.scope b { display: block; color: var(--ink); font-size: 1.02rem; }
.scope p { margin: 4px 0 0; font-size: .94rem; color: var(--muted); }
.scope code { font-size: .78rem; background: var(--paper); padding: 2px 7px; border-radius: 6px; color: var(--forest-3); word-break: break-all; }
.tag { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.tag-read { background: var(--ok-bg); color: var(--ok); }
.tag-write { background: var(--warn-bg); color: #7a5c00; }
.tag-id { background: var(--paper-2); color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: var(--text); }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%231d2c00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}

.cta-band { background: var(--lime); padding: 76px 0; }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: var(--lime-ink); margin: 0; max-width: 640px; }
.cta-band p { color: #3c4f06; margin: 12px 0 0; font-size: 1.08rem; }

/* ---------- Inner pages ---------- */

.page-hero { background: var(--paper-2); padding: 80px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); max-width: 820px; }
.page-hero p { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0; }

.service-detail { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.service-detail:first-child { border-top: 0; padding-top: 0; }
.service-detail h2 { font-size: 2rem; }
.service-detail ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.service-detail li { position: relative; padding-left: 30px; }
.service-detail li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 14px; height: 2px; background: var(--forest-3); border-radius: 2px;
}
.badge { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--lime); color: var(--lime-ink); border-radius: 999px; padding: 5px 12px; margin-bottom: 18px; }
.ideal { background: var(--card); border: 1px solid var(--line-soft); border-left: 4px solid var(--lime-deep); border-radius: 12px; padding: 16px 20px; font-size: .96rem; color: var(--muted); }

.notice { background: var(--warn-bg); border: 1px solid #ecdca0; border-radius: 12px; padding: 14px 18px; font-size: .94rem; color: #6a5200; margin-bottom: 36px; }

.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.case .metric { font-family: var(--font-display); font-size: 3.4rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--forest-2); margin: 6px 0 4px; }
.case .metric-label { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.case dl { margin: auto 0 0; border-top: 1px solid var(--line-soft); padding-top: 16px; display: grid; gap: 8px; font-size: .92rem; }
.case dl div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.case dt { color: var(--muted); font-weight: 600; }
.case dd { margin: 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.timeline { display: grid; gap: 0; }
.timeline .row { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.timeline .row:first-child { border-top: 0; padding-top: 0; }
.timeline .n { font-family: var(--font-display); font-style: italic; font-size: 2rem; color: var(--forest-3); line-height: 1; }
.timeline h3 { font-size: 1.15rem; margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.contact-info .row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-info .row:first-of-type { border-top: 0; padding-top: 0; }
.contact-info .icon { flex: none; width: 24px; height: 24px; margin-top: 2px; stroke: var(--forest-3); }

/* Forms */
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; color: var(--ink); }
.field input[type=text], .field input[type=email], .field input[type=number], .field select, .field textarea, .field input[type=file] {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 13px 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest-3); box-shadow: 0 0 0 4px rgba(35, 90, 76, .12); }
.field textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 14px; }

/* Alerts */
.alert { border-radius: 14px; padding: 16px 20px; margin-bottom: 24px; border: 1px solid; }
.alert strong { display: block; }
.alert p { margin: 4px 0 0; font-size: .96rem; }
.alert ul { margin: 8px 0 0; padding-left: 20px; font-size: .94rem; }
.alert-ok { background: var(--ok-bg); border-color: #bfdcc9; color: #1d5a39; }
.alert-err { background: var(--danger-bg); border-color: #efc9c0; color: #8a2a1a; }
.alert-info { background: var(--paper-2); border-color: var(--line); color: var(--text); }

/* Legal */
.legal { max-width: 800px; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.legal h2 { font-size: 1.55rem; margin: 44px 0 14px; letter-spacing: -.01em; }
.legal p, .legal li { color: #2e3d37; }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--forest-3); text-underline-offset: 3px; }
.legal .meta { color: var(--muted); font-size: .96rem; }
.legal .callout { background: var(--card); border: 1px solid var(--line-soft); border-left: 4px solid var(--lime-deep); border-radius: 12px; padding: 18px 22px; margin: 20px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .96rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.legal td code { font-size: .8rem; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* ---------- Sign-in ---------- */

.signin { min-height: calc(100vh - 76px - 320px); display: grid; align-items: center; padding: 72px 0; }
.signin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.signin-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.signin-card h2 { font-size: 1.7rem; }
.signin-card .scope { background: var(--paper); border-color: var(--line-soft); padding: 14px 16px; grid-template-columns: 1fr auto; }
.signin-card .scope-list { margin: 22px 0 26px; gap: 10px; }

/* ---------- Dashboard ---------- */

.app { padding: 48px 0 96px; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.app-head h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 6px; }
.app-head p { margin: 0; color: var(--muted); }
.tabs { display: inline-flex; gap: 4px; background: var(--paper-2); border-radius: 999px; padding: 5px; margin-bottom: 32px; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: .94rem; color: var(--muted); }
.tabs a:hover { color: var(--ink); }
.tabs a.active { background: var(--ink); color: var(--paper); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.kpi { background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px; padding: 20px 22px; }
.kpi span { display: block; font-size: .82rem; color: var(--muted); font-weight: 500; }
.kpi b { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1.3; }

.panel { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-pad { padding: 28px 30px; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th { text-align: left; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 14px 18px; background: var(--paper); border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
table.data td { padding: 16px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data th.num { text-align: right; }
table.data .name { font-weight: 600; color: var(--ink); }
table.data .sub { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 4px 11px; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-on { background: var(--ok-bg); color: var(--ok); }
.pill-off { background: var(--paper-2); color: var(--muted); }
.pill-other { background: var(--warn-bg); color: #7a5c00; }
.row-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: nowrap; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.inline-form input[type=number] { width: 96px; font: inherit; font-size: .9rem; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; }
.inline-form input[type=number]:focus { outline: none; border-color: var(--forest-3); }
.empty { text-align: center; padding: 56px 24px; }
.empty h3 { margin-bottom: 8px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; background: var(--paper); border: 1px solid var(--line-soft); padding: 12px 14px; border-radius: 10px; overflow-x: auto; white-space: nowrap; color: var(--ink); }
.selector { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.selector label { font-weight: 600; font-size: .92rem; }
.selector select { font: inherit; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; min-width: 260px; max-width: 100%; }

/* ---------- Footer ---------- */

footer.site { background: var(--ink); color: #9db0a8; padding: 72px 0 32px; }
footer.site .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
footer.site .brand { color: var(--paper); margin-bottom: 18px; }
footer.site .blurb { font-size: .96rem; max-width: 340px; color: #8aa097; }
footer.site h4 { color: var(--paper); }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
footer.site a { text-decoration: none; font-size: .96rem; }
footer.site a:hover { color: var(--lime); }
footer.site .bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(246, 243, 236, .12); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .86rem; }
footer.site .gdisclosure { max-width: 620px; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero-grid, .access-grid, .two-col, .contact-grid, .signin-grid, .service-detail { grid-template-columns: 1fr; gap: 40px; }
  .cards, .values { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid rgba(246, 243, 236, .12); margin-top: 24px; }
  .trust .grid { grid-template-columns: 1fr 1fr; }
  .trust .item:nth-child(2) { border-right: 0; }
  .trust .item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .kpis { grid-template-columns: 1fr 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .mock-wrap { max-width: 560px; }
}

@media (max-width: 1080px) {
  header.site .bar { display: flex; justify-content: space-between; }
  .nav-toggle { display: block; }
  nav.main {
    display: none;
    position: absolute;
    left: 0; right: 0; top: calc(100% + 10px);
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid rgba(13, 31, 26, .08);
    border-radius: 24px;
    padding: 12px 14px 16px;
    box-shadow: 0 24px 48px -16px rgba(13, 31, 26, .3);
  }
  nav.main.open { display: flex; }
  .nav-links, .nav-actions { flex-direction: column; align-items: stretch; justify-self: stretch; gap: 2px; }
  .nav-link { padding: 13px 14px; border-radius: 12px; }
  .nav-link:hover { background: var(--paper); }
  .nav-link.active::after { left: 4px; top: 50%; bottom: auto; margin: -2.5px 0 0 0; }
  .nav-actions { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
  .nav-actions .btn { margin-top: 6px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 20px; }
  section { padding: 68px 0; }
  .hero { padding: 136px 0 84px; }
  .cards, .values, .cases, .steps, .kpis { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .step + .step { border-top: 1px solid rgba(246, 243, 236, .12); margin-top: 24px; }
  .trust .grid { grid-template-columns: 1fr; }
  .trust .item { border-right: 0; border-top: 1px solid var(--line); }
  .trust .item:first-child { border-top: 0; }
  .scope { grid-template-columns: 44px 1fr; }
  .scope .tag { grid-column: 2; justify-self: start; }
  .signin-card .scope { grid-template-columns: 1fr; }
  .signin-card { padding: 28px 22px; }
  .mock-kpis { grid-template-columns: 1fr 1fr 1fr; }
  .mock-kpi { padding: 10px; }
  .mock-kpi b { font-size: 1.1rem; }
  footer.site .cols { grid-template-columns: 1fr; gap: 36px; }
    .cta-band .inner { flex-direction: column; align-items: flex-start; }
}

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

/* Grid children must be allowed to shrink below their content on narrow screens. */
.hero-grid > *, .access-grid > *, .two-col > *, .contact-grid > *, .signin-grid > *, .service-detail > *, .cards > *, .cases > *, .values > * { min-width: 0; }
