/* Keptridge finance site. Mobile first, no external assets. */
:root {
  --paper: #f6f8f7;
  --white: #ffffff;
  --mist: #e9efed;
  --ink: #101c22;
  --muted: #4a5960;
  --line: #d3dcd9;
  --line-strong: #a9b7b3;
  --accent: #3fb89c;
  --accent-wash: #e3f4ef;
  --accent-deep: #0d5c4f;
  --btn: #12695b;
  --btn-hover: #0d5247;
  --night: #101c22;
  --night-2: #1a2a32;
  --night-3: #23363f;
  --night-text: #c2ced2;
  --night-border: #4f646d;
  --accent-bright: #7fdcc6;
  --s1: #12695b;
  --s2: #3fb89c;
  --s3: #a3b1b5;
  --s4: #e0a33a;
  --focus: #0d5c4f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 750; letter-spacing: -0.015em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.25rem, 5.2vw + 0.8rem, 4rem); max-width: 14ch; }
h2 { font-size: clamp(1.75rem, 2.6vw + 0.8rem, 2.5rem); margin-bottom: 28px; }
h3 { font-size: 1.25rem; }
p { margin: 0; overflow-wrap: anywhere; }
a { color: var(--accent-deep); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
svg { display: block; max-width: 100%; }
img, video { display: block; max-width: 100%; height: auto; }
section, div.band { scroll-margin-top: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero :focus-visible, .band-dark :focus-visible { outline-color: var(--accent-bright); }

.skip { position: absolute; left: 12px; top: -120px; z-index: 100; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 4px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(960px, 100% - 32px); }

/* Header */
.site-header { background: var(--night); color: #fff; border-bottom: 1px solid #22343c; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 10px 0; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.5rem; font-weight: 800; letter-spacing: 0.01em; color: #fff; text-decoration: none; margin-right: auto; }
.wordmark::before { content: ""; width: 10px; height: 10px; margin-right: 10px; background: var(--accent); border-radius: 2px; }
.site-nav { width: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--night-text); text-decoration: none; font-weight: 600; font-size: 0.9375rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: #fff; border-bottom-color: var(--accent); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; background: var(--btn); color: #fff; font-weight: 700; font-size: 1rem; line-height: 1.3; text-align: center; text-decoration: none; border: 2px solid var(--btn); border-radius: 6px; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, transform 0.15s; }
.button:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.button.small { min-height: 44px; padding: 8px 14px; font-size: 0.9375rem; }
.hero .button, .header-cta { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.hero .button:hover, .header-cta:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.hero .button.ghost { background: transparent; color: #fff; border-color: var(--night-border); }
.hero .button.ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--night-text); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-icon { width: 16px; height: 16px; flex: none; }
.header-cta { display: none; }

/* Hero */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% 10%, rgba(63, 184, 156, 0.16), transparent 60%), linear-gradient(180deg, var(--night) 0%, #13232b 100%); color: #fff; padding: 44px 0 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(180deg, #000 30%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 36px; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 18px; }
.kicker::before { content: ""; flex: none; width: 28px; height: 3px; background: var(--accent); }
.lead { font-size: 1.1875rem; line-height: 1.6; max-width: 34rem; margin-top: 22px; color: var(--night-text); }
.hero-buttons { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 0.9375rem; color: var(--night-text); letter-spacing: 0.01em; }

/* Difference card */
.diff-card { margin: 0; background: var(--white); color: var(--ink); border-radius: 12px; padding: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2); align-self: center; }
.diff-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.diff-title { font-weight: 750; font-size: 1.0625rem; }
.diff-totals { margin: 14px 0 0; display: grid; gap: 6px; font-size: 0.9375rem; }
.diff-totals div { display: flex; justify-content: space-between; gap: 12px; }
.diff-totals dt { color: var(--muted); }
.diff-totals dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.diff-total { border-top: 2px solid var(--ink); padding-top: 8px; margin-top: 4px; }
.diff-total dt { color: var(--ink); font-weight: 700; }
.diff-total dd { font-size: 1.375rem; font-weight: 800; }
.diff-bar { display: flex; height: 18px; margin: 16px 0 14px; border-radius: 5px; overflow: hidden; background: var(--mist); gap: 2px; }
.seg { display: block; width: var(--w); transform-origin: left center; animation: grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.seg.s2 { animation-delay: 0.15s; } .seg.s3 { animation-delay: 0.3s; } .seg.s4 { animation-delay: 0.45s; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.s1 { background: var(--s1); } .s2 { background: var(--s2); } .s3 { background: var(--s3); } .s4 { background: var(--s4); }
.diff-causes { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.9375rem; }
.diff-causes li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.dot { width: 12px; height: 12px; border-radius: 3px; transform: translateY(1px); }
.amt { font-variant-numeric: tabular-nums; font-weight: 700; }
.tag { display: inline-block; margin-left: 4px; padding: 0 6px; font-size: 0.75rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 3px; vertical-align: 1px; }
.diff-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; background: var(--accent-wash); color: var(--accent-deep); font-weight: 700; font-size: 0.9375rem; border-radius: 6px; }
.diff-foot svg { width: 20px; height: 20px; flex: none; color: var(--btn); }

/* Chips */
.chip { display: inline-block; padding: 4px 9px; background: var(--accent-wash); border: 1px solid var(--accent); color: var(--ink); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 3px; white-space: nowrap; }

/* Proof strip */
.proof { background: var(--white); border-bottom: 1px solid var(--line); }
.proof-list { list-style: none; margin-block: 0; padding: 22px 0; display: grid; gap: 14px; }
.proof-list li { display: flex; align-items: center; gap: 12px; font-size: 0.9375rem; color: var(--muted); }
.proof-list strong { color: var(--ink); }
.proof-list svg { width: 26px; height: 26px; flex: none; color: var(--btn); }

/* Bands and shared layout */
.band { padding: 60px 0; }
.band-mist { background: var(--mist); }
.band-dark { background: var(--night); color: #fff; }
.band-dark h2, .band-dark h3 { color: #fff; }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 46rem; }
.section-head h2 { margin-bottom: 0; }
.section-head p { color: var(--muted); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.two-col { display: grid; gap: 40px; }

/* Video */
.video-frame { border-radius: 12px; overflow: hidden; background: var(--night); box-shadow: 0 18px 50px rgba(16, 28, 34, 0.25); border: 1px solid #22343c; }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; background: var(--night); }
.video-note { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; font-size: 0.875rem; color: var(--muted); text-align: center; }

/* Services */
.service-grid { display: grid; gap: 24px; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: grid; gap: 14px; align-content: start; box-shadow: 0 1px 2px rgba(16, 28, 34, 0.04); }
.service-kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }
.service h3 { font-size: 1.5rem; }
.service > p { color: var(--muted); }
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { padding: 6px 12px; background: var(--accent-wash); color: var(--accent-deep); border-radius: 999px; font-size: 0.875rem; font-weight: 650; }
.service-limit { font-size: 0.875rem; color: var(--muted); }
.mini { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: var(--paper); }
.mini-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 0.8125rem; color: var(--muted); margin-bottom: 8px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.mini-table th { text-align: left; font-weight: 500; color: var(--ink); padding: 4px 0; }
.mini-table td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; padding: 4px 0 4px 12px; white-space: nowrap; }
.mini-diff th, .mini-diff td { border-top: 2px solid var(--ink); padding-top: 7px; font-weight: 800; }
.mini-diff td { color: #a23c18; }
.mini-sub th { padding-left: 14px; color: var(--muted); font-weight: 500; }
.mini-sub td { color: var(--muted); font-weight: 500; }

/* Price */
.price-grid { display: grid; gap: 32px; align-items: center; }
.price-card { background: var(--night); color: #fff; border-radius: 12px; padding: 30px; background-image: radial-gradient(500px 220px at 100% 0%, rgba(63, 184, 156, 0.22), transparent 70%); }
.price-card h2 { color: #fff; font-size: clamp(1.5rem, 2vw + 0.8rem, 2rem); margin-bottom: 18px; }
.price-range { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.price-amount { font-size: clamp(2.25rem, 4vw + 1rem, 3.25rem); font-weight: 800; letter-spacing: -0.02em; color: var(--accent-bright); line-height: 1.1; }
.price-unit { font-size: 1.125rem; color: var(--night-text); font-weight: 600; }
.price-text { margin-top: 14px; color: var(--night-text); max-width: 30rem; }
.price-refund { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #2c414a; color: #fff; font-weight: 650; max-width: 30rem; }
.price-refund svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: none; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.step-number { width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-deep); font-weight: 800; font-size: 1.125rem; border-radius: 50%; border: 2px solid var(--accent); }
.steps h3 { font-size: 1.125rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 0.9375rem; }

/* Samples */
.sample-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 0.9375rem; color: var(--ink); font-weight: 600; }
.sample-grid { display: grid; gap: 24px; }
.sample-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; align-content: start; transition: transform 0.2s, box-shadow 0.2s; }
.sample-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16, 28, 34, 0.12); }
.sample-shot { display: block; background: #fff; border-bottom: 1px solid var(--line); }
.browser-dots { display: flex; gap: 6px; padding: 10px 12px; background: var(--mist); border-bottom: 1px solid var(--line); }
.browser-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.sample-body { padding: 20px 22px 16px; display: grid; gap: 8px; }
.sample-body h3 { font-size: 1.1875rem; }
.sample-body p { color: var(--muted); }
.sample-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.sample-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Questions and rules */
.rules-head { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); margin: -8px 0 14px; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 0.9375rem; color: var(--muted); }
.rules li { padding-left: 26px; position: relative; }
.rules li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); background: radial-gradient(circle, var(--accent) 35%, transparent 40%); }
.faq { display: grid; gap: 10px; align-content: start; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-wash); color: var(--accent-deep); font-weight: 800; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 18px 16px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: 36px; }
.contact-intro p { color: var(--night-text); margin-top: 14px; max-width: 34rem; }
.contact-address { display: inline-block; padding: 10px 0; margin: -10px 0; color: var(--accent-bright); font-weight: 700; overflow-wrap: anywhere; }
.check-form { display: grid; gap: 18px; min-width: 0; align-content: start; background: var(--night-2); border: 1px solid #2c414a; border-radius: 12px; padding: 22px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; gap: 18px; }
.field label, .field legend { font-weight: 600; font-size: 0.9375rem; }
.optional { font-weight: 400; color: var(--night-text); }
.field input[type="text"], .field input[type="email"], .field textarea { width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; color: #fff; background: var(--night-3); border: 1px solid var(--night-border); border-radius: 6px; }
.field input::placeholder, .field textarea::placeholder { color: #93a5ab; opacity: 1; }
.field textarea { resize: vertical; }
fieldset.choice { margin: 0; padding: 0; border: 0; gap: 2px; }
fieldset.choice legend { padding: 0; margin-bottom: 6px; }
.choice-item { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; cursor: pointer; }
.choice-item input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.form-note { font-size: 0.875rem; color: var(--night-text); }
.form-error { padding: 12px 14px; background: var(--accent-wash); color: var(--ink); border-left: 4px solid var(--accent); border-radius: 0 4px 4px 0; font-size: 0.9375rem; }
.check-form .button { width: 100%; background: var(--accent); border-color: var(--accent); color: var(--ink); }
.check-form .button:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.prepared { margin-top: 4px; padding: 20px; background: var(--night-3); border: 1px solid var(--night-border); border-radius: 8px; }
.prepared > * + * { margin-top: 14px; }
.prepared h3 { font-size: 1.125rem; }
.prepared-to { color: var(--night-text); font-size: 0.9375rem; }
.prepared pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 0.9375rem; line-height: 1.6; background: var(--night); padding: 14px; border-radius: 6px; }
.prepared-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.prepared-actions .button { flex: 1 1 200px; width: auto; }
.band-dark .button.secondary, .check-form .button.secondary { background: transparent; color: #fff; border-color: var(--night-border); }
.band-dark .button.secondary:hover { background: rgba(255, 255, 255, 0.08); }

/* Footer */
.site-footer { background: var(--night); border-top: 1px solid #22343c; padding: 26px 0; font-size: 0.9375rem; color: var(--night-text); }
.site-footer p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.site-footer .sep { display: none; }
.wordmark-small { font-weight: 800; color: #fff; }
.site-footer a { color: var(--accent-bright); font-weight: 600; overflow-wrap: anywhere; }

@media (min-width: 30em) {
  .check-form .button { width: auto; justify-self: start; }
  .header-cta { display: inline-flex; }
}

@media (min-width: 48em) {
  .wrap { width: min(1160px, 100% - 64px); }
  .wrap.narrow { width: min(960px, 100% - 64px); }
  .band { padding: 88px 0; }
  .hero { padding: 72px 0 84px; }
  .site-nav ul { gap: 0 6px; }
  .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .sample-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr 1.3fr; gap: 56px; }
  .site-footer .sep { display: inline; }
  .diff-card { padding: 26px; }
}

@media (min-width: 64em) {
  .hero { padding: 96px 0 104px; }
  .header-row { flex-wrap: nowrap; gap: 24px; }
  .wordmark { margin-right: 0; }
  .site-nav { width: auto; margin-left: auto; }
  .header-cta { order: 3; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 56px; }
  .proof-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
