:root {
  color-scheme: light;
  --blue: #4272b4;
  --blue-dark: #285487;
  --blue-soft: #eaf5fb;
  --cyan: #81c6e3;
  --ink: #17324d;
  --muted: #587087;
  --line: #d7e4ed;
  --surface: #ffffff;
  --background: #f4f8fb;
  --danger: #b33a36;
  --danger-bg: #fff0ef;
  --warning: #855d0b;
  --warning-bg: #fff8e8;
  --success: #236b4c;
  --radius: 18px;
  --shadow: 0 14px 38px rgba(26, 67, 106, .09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--background); }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 15% 0%, #fff 0, #f6fbfe 34%, var(--background) 72%); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, select, input[type="checkbox"], input[type="radio"] { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(66,114,180,.3); outline-offset: 2px; }
[hidden], .hidden { display: none !important; }

.home-page { min-height: 100vh; min-height: 100svh; }
.home-shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom)); }
.brand { text-align: center; }
.brand-logo { display: block; width: min(260px, 68vw); height: auto; max-height: 190px; object-fit: contain; margin: 0 auto 10px; }
.brand-fallback { color: var(--blue); font-size: 1.35rem; font-weight: 800; letter-spacing: .05em; margin: 38px auto 28px; }
.eyebrow { margin: 0 0 4px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.home-brand h1 { margin: 0; font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; }
.home-intro { margin: 12px 0 0; color: var(--muted); font-size: 1.04rem; }
.tool-grid { display: grid; gap: 14px; margin: 38px 0 20px; }
.tool-card { min-height: 126px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 22px; border: 1px solid rgba(66,114,180,.14); border-radius: var(--radius); background: rgba(255,255,255,.94); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.tool-card:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: 0 18px 46px rgba(26,67,106,.14); }
.tool-number { align-self: start; color: var(--cyan); font-size: .74rem; font-weight: 900; letter-spacing: .12em; }
.tool-copy { display: grid; gap: 5px; }
.tool-copy strong { font-size: clamp(1.18rem, 5vw, 1.5rem); line-height: 1.15; }
.tool-copy small { color: var(--muted); font-size: .92rem; }
.tool-arrow { color: var(--blue); font-size: 1.7rem; }
.privacy-note { margin: 24px auto 0; max-width: 560px; color: var(--muted); font-size: .84rem; text-align: center; }

@media (min-width: 700px) {
  .home-shell { padding-top: 56px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .tool-card { grid-template-columns: 1fr auto; align-items: end; min-height: 190px; }
  .tool-number { grid-column: 1 / -1; }
}

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