:root {
  --bg: #ffffff;
  --surface: #f8f9fb;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --accent: #1a73e8;
  --accent-dark: #1765cc;
  --accent-soft: #e8f0fe;
  --green: #188038;  --green-soft: #e6f4ea;
  --yellow: #e37400; --yellow-soft: #fef7e0;
  --red: #d93025;
  --radius: 24px;
  --max: 1160px;
  --font: "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 500; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.muted { color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { font-family: "Outfit", var(--font); font-weight: 500; font-size: 1.5rem; text-decoration: none; letter-spacing: -0.01em; color: var(--ink); }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--muted); padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 500 1rem var(--font); text-decoration: none; cursor: pointer;
  background: var(--accent); color: #fff;
  transition: background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-dark); box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px rgba(60,64,67,.15); }
.btn-ghost { background: #fff; color: var(--accent); border-color: var(--line); }
.btn-ghost:hover { background: var(--accent-soft); box-shadow: none; }
.nav a.btn, .nav a.btn[aria-current="page"] { color: #fff; background: var(--accent); margin-left: 8px; }
.nav a.btn:hover { background: var(--accent-dark); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; gap: 48px; grid-template-columns: 1.1fr 1fr; align-items: center; }
.eyebrow { display: inline-block; font-size: .9rem; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(1.1rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 56ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-blob { display: none; }
.hero-visual { background: var(--accent-soft); border-radius: 32px; padding: clamp(20px, 3vw, 36px); }

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.dark { background: var(--surface); }
.dark .section-head p, .dark .muted { color: var(--muted); }

/* Service cards */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; text-decoration: none;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover { border-color: transparent; box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 6px 16px rgba(60,64,67,.15); }
.card .icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px; background: var(--accent-soft); color: var(--accent); }
.card:nth-child(2) .icon { background: var(--green-soft); color: var(--green); }
.card:nth-child(3) .icon { background: var(--yellow-soft); color: var(--yellow); }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 600; color: var(--accent); }

/* Steps */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 600; margin-bottom: 16px;
}

/* Lists */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.checklist li { padding-left: 36px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23188038' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.two-col { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: start; }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; border-radius: 32px; padding: clamp(36px, 6vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0; max-width: 22ch; }
.cta-band .btn { background: #fff; color: var(--accent); }
.cta-band .btn:hover { background: var(--accent-soft); }

/* Form */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; box-shadow: 0 1px 2px rgba(60,64,67,.1), 0 4px 12px rgba(60,64,67,.08); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); outline: none; }
.field textarea { min-height: 140px; resize: vertical; }
.choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 8px; }
.choice-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice-options label { position: relative; display: flex; }
.choice-options input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice-options span {
  flex: 1; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px;
  font-size: .92rem; line-height: 1.3; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.choice-options label:hover span { border-color: var(--accent); }
.choice-options input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; box-shadow: 0 0 0 1px var(--accent); }
.choice-options input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 520px) { .choice-options { grid-template-columns: 1fr; } .choice-options span { justify-content: flex-start; min-height: 46px; padding: 8px 14px; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.form-note { margin: -6px 0 0; font-size: .95rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.form-note span { font-size: 1.15rem; }
.form-status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Prose (legal) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: .95rem; color: var(--muted); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr; margin-bottom: 32px; }
.site-footer h3 { font-size: 1rem; color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* Mobile */
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; color: var(--ink); }
  .nav a.btn { justify-content: center; margin: 8px 0 0; }
  .hero-grid, .two-col, .footer-grid { grid-template-columns: 1fr; }
}

/* Hero illustration animations (play once on load) */
.hero-visual .arc { stroke-dasharray: var(--len) 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-visual .fade-up { animation: fadeUp .7s cubic-bezier(.2,.8,.2,1) both; }
  .hero-visual .pop { transform-box: fill-box; transform-origin: center; animation: pop .55s cubic-bezier(.3,1.5,.5,1) both; }
  .hero-visual .grow { transform-box: fill-box; transform-origin: bottom; animation: grow .7s cubic-bezier(.2,.8,.2,1) both; }
  .hero-visual .grow-x { transform-box: fill-box; transform-origin: left; animation: growX .7s cubic-bezier(.2,.8,.2,1) both; }
  .hero-visual .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.4,0,.2,1) forwards; }
  .hero-visual .arc { animation: arc 1s cubic-bezier(.4,0,.2,1) both; }
}
@keyframes arc { from { stroke-dasharray: 0 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes pop { from { opacity: 0; transform: scale(.3); } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes growX { from { transform: scaleX(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

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

/* Header logo image (brand wordmark) */
.site-header .logo { display: block; width: 144px; height: 48px; background: url("/img/nomi-logo.png") left center / contain no-repeat; font-size: 0; color: transparent; }
@media (max-width: 600px) { .site-header .logo { width: 120px; height: 40px; } }
