/* DentalSnap marketing site. Single stylesheet, no build step.
   Colours come from the app theme (see the README files under design_handoff):
   primary #185FA5, primary-light #378ADD, container #E6F1FB, border #B5D4F4,
   canvas #F4F4F6, text #2C2C2A, muted #888780, outline #E5E4DE. */

:root {
  --primary: #185FA5;
  --primary-light: #378ADD;
  --primary-dark: #124B84;
  --container: #E6F1FB;
  --border: #B5D4F4;
  --canvas: #F4F4F6;
  --surface: #FFFFFF;
  --outline: #E5E4DE;
  --outline-strong: #D3D1C7;
  --text: #2C2C2A;
  --muted: #888780;
  --faint: #B4B2A9;
  --success: #3B6D11;
  --success-bg: #EAF3DE;
  --warn: #8A5A00;
  --warn-bg: #FBF1DC;
  --radius: 14px;
  --radius-lg: 18px;
  --maxw: 1080px;
  --font: Roboto, "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 500; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.3px; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }
small, .small { font-size: .9rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: #4a4a47; max-width: 42rem; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .6em;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* ---------- header ---------- */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand img { height: 58px; width: auto; }
@media (max-width: 560px) { .brand img { height: 46px; } }
.brand { display: inline-flex; align-items: center; padding: 10px 0; }
.nav-toggle {
  display: none;
  background: rgba(255,255,255,.14);
  border: 0;
  color: #fff;
  font: inherit;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .95rem;
}
.site-nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.site-nav a[aria-current="page"] { background: rgba(255,255,255,.2); }
.site-nav a.cta { background: #fff; color: var(--primary); font-weight: 500; }
.site-nav a.cta:hover { background: var(--container); }

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 12px;
  }
  .site-nav.open { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 48px 0 56px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero .lead { color: #E6F1FB; }
.hero .eyebrow { color: var(--border); }
.hero .actions { margin-top: 24px; }
.hero .fineprint { color: var(--border); font-size: .9rem; margin-top: 18px; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  border: 2px solid transparent;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}
.btn-primary { background: #fff; color: var(--primary); border-color: #fff; }
.btn-primary:hover { background: var(--container); color: var(--primary-dark); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-blue { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-blue:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--container); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--canvas); }
section.tint { background: var(--container); }
.section-head { max-width: 46rem; margin-bottom: 32px; }
.page-head { padding: 48px 0 24px; }
.page-head h1 { margin-bottom: .3em; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* steps */
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

/* feature rows */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--outline);
}
.feature:first-of-type { border-top: 0; }
.feature.flip .feature-media { order: -1; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 20px; }
  .feature.flip .feature-media { order: 0; }
}

/* guide outline tiles */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.guide-tile {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}
.guide-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin-bottom: 6px;
}
.guide-tile.blank {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3;
  color: var(--faint);
  border-style: dashed;
}

/* ---------- real screenshots ---------- */
.shot {
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline);
  box-shadow: 0 8px 28px rgba(24, 95, 165, .12);
  background: #fff;
}
.phone-shot { max-width: 300px; margin: 0 auto; }
.phone-pair { display: flex; gap: 16px; justify-content: center; align-items: flex-start; }
.phone-pair .phone-shot { max-width: 260px; margin: 0; }
@media (max-width: 560px) { .phone-pair { flex-direction: column; align-items: center; } }
.hero .shot { border-color: rgba(255,255,255,.35); box-shadow: 0 12px 36px rgba(0,0,0,.25); }
.page-shot { max-width: 520px; margin: 0 auto; }
.shot-caption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 10px; }
.strip { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 20px; align-items: start; margin-top: 32px; }
.strip .shot { width: 100%; }
.strip .phone-shot { max-width: 240px; }
@media (max-width: 820px) { .strip { grid-template-columns: 1fr; } }

/* ---------- placeholders: every one of these needs a real asset ---------- */
.placeholder {
  border: 2px dashed var(--border);
  background: repeating-linear-gradient(135deg, #f7fafd 0 12px, #eef4fa 12px 24px);
  border-radius: var(--radius-lg);
  color: var(--primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-size: .95rem;
  min-height: 220px;
}
.placeholder strong { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; color: var(--primary); }
.placeholder.portrait { aspect-ratio: 3 / 4; max-width: 300px; margin: 0 auto; min-height: 0; }
.placeholder.wide { aspect-ratio: 16 / 9; min-height: 0; }
.placeholder.square { aspect-ratio: 1; min-height: 0; }
.placeholder.inline { min-height: 0; padding: 12px 16px; display: block; text-align: left; }
.hero .placeholder { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.1); color: #fff; }
.hero .placeholder strong { color: var(--border); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--outline); border-radius: var(--radius-lg); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; background: var(--surface); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--outline); vertical-align: top; }
th { background: var(--canvas); font-weight: 500; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
}
.status-tested { background: var(--success-bg); color: var(--success); }
.status-untested { background: var(--canvas); color: var(--muted); border: 1px solid var(--outline); }
.status-planned { background: var(--warn-bg); color: var(--warn); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- callouts ---------- */
.callout {
  border-left: 4px solid var(--primary);
  background: var(--container);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: .5em; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: .3em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='black'/><path fill='white' d='M9.5 16.2 5.8 12.5l-1.4 1.4 5.1 5.1 10-10-1.4-1.4z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='black'/><path fill='white' d='M9.5 16.2 5.8 12.5l-1.4 1.4 5.1 5.1 10-10-1.4-1.4z'/></svg>") center / contain no-repeat;
}
.where-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .where-list { grid-template-columns: 1fr; } }
.where-list .card { text-align: center; }
.where-list .big { font-size: 1.1rem; font-weight: 500; color: var(--primary); margin-bottom: 8px; letter-spacing: .04em; text-transform: uppercase; }
.where-list .no { opacity: .6; }
.where-list .no .big { color: var(--muted); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-size: .95rem; font-weight: 500; }
.form input, .form select, .form textarea {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--outline-strong);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--primary-light); border-color: var(--primary); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form .hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
.form .consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.form .consent input { width: auto; margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary); color: #fff; padding: 48px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--container); max-width: 40rem; margin: 0 auto 20px; }
.cta-band .actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--outline);
  padding: 32px 0;
  font-size: .9rem;
  color: var(--muted);
}
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer nav a { margin-right: 14px; color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--primary); }
.site-footer .legal { max-width: 48rem; }

/* ---------- Home: the two function panels ---------- */
.fn-grid { align-items: stretch; }
.fn-panel { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.fn-panel:hover { border-color: var(--primary-light); }
.fn-panel .shot { width: 100%; height: 300px; object-fit: cover; object-position: top; margin-bottom: 18px; }
.fn-panel .eyebrow { margin-bottom: 6px; }
.fn-panel h3 { margin: 0 0 8px; }
.fn-panel p { flex: 1; }
.fn-panel .more { color: var(--primary); font-weight: 600; }
.fn-panel .more::after { content: " \2192"; }
.fn-panel .fn-ph { height: 300px; min-height: 0; margin-bottom: 18px; }
.hero-shot { width: 100%; height: auto; display: block; }
.feature h3 { font-size: 1.35rem; margin: 0 0 10px; }

/* ---------- Capture: the two workflow headings ---------- */
.workflow-head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 36px; padding-bottom: 26px; border-bottom: 2px solid var(--border); }
.workflow-head > div { max-width: 46rem; }
.wf-num { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 2.3rem; font-weight: 600; display: grid; place-items: center; line-height: 1; }
.workflow-head .eyebrow { font-size: .95rem; }
.workflow-head h2 { font-size: clamp(2rem, 4.6vw, 2.9rem); letter-spacing: -0.6px; margin-bottom: .35em; }
.workflow-head p { font-size: 1.1rem; margin: 0; }
@media (max-width: 560px) { .workflow-head { gap: 14px; } .wf-num { width: 52px; height: 52px; font-size: 1.7rem; } }

/* ---------- Capture: the four-step summary of workflow 2 ---------- */
.flow { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.flow li { position: relative; }
.flow a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px 12px 20px; background: var(--container); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); text-decoration: none; height: 100%; }
.flow a:hover { border-color: var(--primary-light); }
.flow svg { width: 40px; height: 40px; fill: none; stroke: var(--primary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.flow strong { font-weight: 600; font-size: 1.05rem; }
.flow-num { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 600; font-size: .95rem; display: grid; place-items: center; }
.flow li:not(:last-child)::after { content: "\2192"; position: absolute; right: -27px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 1.5rem; line-height: 1; }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; gap: 30px; }
  .flow a { flex-direction: row; justify-content: flex-start; padding: 14px 18px; gap: 14px; text-align: left; }
  .flow svg { width: 30px; height: 30px; }
  .flow li:not(:last-child)::after { content: "\2193"; right: auto; left: 50%; top: auto; bottom: -27px; transform: translateX(-50%); }
}
/* anchored sections clear the sticky header */
[id] { scroll-margin-top: 100px; }

/* ---------- screen recordings ---------- */
video.shot { display: block; width: 100%; height: auto; background: #0d0d0d; }
video.phone-shot { max-width: 300px; margin-left: auto; margin-right: auto; }
.phone-pair video.phone-shot { max-width: 260px; margin: 0; }
.fn-panel video.shot { height: auto; margin-bottom: 18px; }
.tablet-portrait { display: block; max-width: 340px; margin: 0 auto; }
