/* Ometz AI dental funnel. Tokens match the Ometz site (ometz-ai/app/globals.css, v4.1):
   white ground, navy type, cobalt as the one accent, Hanken Grotesk, radius 0, no shadows. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-orange: #e8621a; /* the logo only */
  --background: #ffffff;
  --foreground: #0b1b33;
  --accent: #1f4bff;
  --accent-hover: #1638c9;
  --muted: #f1f4f9;
  --muted-foreground: #46566e;
  --border: rgba(11, 27, 51, 0.16);
  --input: rgba(11, 27, 51, 0.3);
  --error: #b3261e;
  --ink: #0b1b33;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
p { margin: 0; }
a { color: var(--accent); }
img, video, iframe { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -48px; padding: 8px 12px;
  background: var(--ink); color: #fff; z-index: 10; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; color: var(--brand-orange); }
.logo-img { display: block; width: 98px; height: 32px; background-color: currentColor; -webkit-mask: url("/assets/ometz-logo.png") center / contain no-repeat; mask: url("/assets/ometz-logo.png") center / contain no-repeat; }
.site-header .note { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }

.site-footer { background: var(--ink); color: #b6c2d6; margin-top: 96px; padding: 48px 0; font-size: 0.875rem; line-height: 1.25rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer a { color: #ffffff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav { display: flex; gap: 24px; }

/* Type */
.eyebrow {
  font-size: 0.75rem; line-height: 1rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.display {
  font-size: 2.25rem; line-height: 2.5rem; font-weight: 800; letter-spacing: -0.035em;
  max-width: 680px;
}
@media (min-width: 768px) { .display { font-size: 3.75rem; line-height: 1; } }
.lede { font-size: 1.125rem; line-height: 1.75rem; color: var(--muted-foreground); max-width: 680px; }
.h2 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 800; letter-spacing: -0.03em; }
@media (min-width: 768px) { .h2 { font-size: 2.25rem; line-height: 2.5rem; } }
.h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; letter-spacing: -0.01em; }
.small { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section + .section { border-top: 1px solid var(--border); }
.hero { padding: 48px 0 64px; }
@media (min-width: 768px) { .hero { padding: 80px 0 96px; } }
.stack > * + * { margin-top: 24px; }
.stack-sm > * + * { margin-top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 8px 24px; border: 1px solid var(--accent);
  background: var(--accent); color: #ffffff; font: inherit; font-weight: 600;
  font-size: 1rem; line-height: 1.5rem; text-decoration: none; cursor: pointer;
  transition: background-color 300ms var(--ease), transform 300ms var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--foreground); border-color: var(--input); }
.btn-ghost:hover { background: var(--muted); border-color: var(--input); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Video */
.video {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--ink);
  border: 1px solid var(--border);
}
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-pending {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; color: #ffffff; gap: 8px;
}
.video-pending strong { font-size: 1.25rem; line-height: 1.75rem; }
.video-pending span { color: #b6c2d6; font-size: 0.875rem; line-height: 1.25rem; }

/* Grids and cards */
.grid-3 { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--border); padding: 24px; }
.card .num { font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; color: var(--accent); }

.fit { display: grid; gap: 24px; }
@media (min-width: 768px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit ul { margin: 0; padding-left: 20px; }
.fit li + li { margin-top: 8px; }

/* Tagline reveal: words move from muted to full colour as they cross the trigger line. */
.tagline { font-size: 2.25rem; line-height: 2.5rem; font-weight: 800; letter-spacing: -0.035em; max-width: 760px; }
@media (min-width: 768px) { .tagline { font-size: 3rem; line-height: 1; } }
.tagline .w { color: rgba(11, 27, 51, 0.28); transition: color 700ms var(--ease); }
.tagline .w.on { color: var(--foreground); }

/* FAQ */
.faq details { border-top: 1px solid var(--border); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.125rem; line-height: 1.75rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 12px; color: var(--muted-foreground); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(32px); filter: blur(8px); transition: opacity 800ms var(--ease), transform 800ms var(--ease), filter 800ms var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .tagline .w { color: var(--foreground); transition: none; }
}

/* Survey */
.progress { height: 4px; background: var(--muted); margin-top: 24px; }
.progress span { display: block; height: 100%; background: var(--accent); width: 25%; transition: width 500ms var(--ease); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }
.step legend { padding: 0; margin-bottom: 24px; }
.field { margin-top: 24px; }
.field:first-of-type { margin-top: 0; }
.field > label, .field > .label { display: block; font-weight: 700; margin-bottom: 8px; }
.field .hint { font-weight: 400; color: var(--muted-foreground); font-size: 0.875rem; }
.row-2 { display: grid; gap: 24px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } .row-2 .field { margin-top: 0; } }
.row-2 + .field { margin-top: 24px; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--input); border-radius: 0;
  font: inherit; color: var(--foreground); background: #ffffff;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.choices { display: grid; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: block; padding: 12px 16px; border: 1px solid var(--input); cursor: pointer;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}
.choice span:hover { background: var(--muted); }
.choice input:checked + span { border-color: var(--accent); background: rgba(31, 75, 255, 0.06); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.error { color: var(--error); font-size: 0.875rem; line-height: 1.25rem; margin-top: 8px; }
.error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.choices[aria-invalid="true"] .choice span { border-color: var(--error); }
.form-actions { margin-top: 32px; display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Calendar embed */
.calendar { border: 1px solid var(--border); min-height: 720px; background: var(--muted); position: relative; }
.calendar iframe { width: 100%; min-height: 720px; border: 0; background: #ffffff; }
.skeleton { position: absolute; inset: 0; padding: 24px; display: grid; gap: 12px; align-content: start; }
.skeleton i { display: block; height: 16px; background: rgba(11, 27, 51, 0.08); }
.skeleton i:nth-child(1) { width: 40%; height: 24px; }
.skeleton i:nth-child(2) { width: 70%; }
.skeleton i:nth-child(3) { height: 280px; }

/* Lists on the confirmation page */
.chapters { margin: 0; padding-left: 20px; }
.chapters li + li { margin-top: 8px; }
.notice { border: 1px solid var(--border); background: var(--muted); padding: 16px; }
