/* ─────────────────────────────────────────────────────────────────────────
   OmniDental — the landing page's own sections (frontend/public/landing.html). The fonts,
   tokens, buttons, header and footer are the site's, in marketing/site.css, loaded first.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: calc(var(--header) + 2.5rem) 0 3.5rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 64rem) { .hero { padding: calc(var(--header) + 4.5rem) 0 5.5rem; } }
/* Side by side only where the chart still gets the room to be read; below that it goes under. */
@media (min-width: 72rem) {
  .hero-grid { grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); gap: clamp(3rem, 5vw, 6rem); }
}
/* On a large monitor the hero takes more of the screen than the sections below it, so the chart
   grows with the page instead of sitting small in a column (the sign-in page's lesson). */
@media (min-width: 100rem) {
  .hero .wrap { max-width: 116rem; }   /* the header widens with it: site.css */
  .hero-grid { grid-template-columns: minmax(0, 37rem) minmax(0, 1fr); }
}
.pill {
  display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); font-size: .85rem; font-weight: 600;
}
.pill svg { color: var(--brand); }
.hero h1 { margin-top: 1.25rem; font-size: clamp(2.5rem, 7vw, 3.4rem); line-height: 1.04; color: var(--ink); }
@media (min-width: 64rem) { .hero h1 { font-size: clamp(3.1rem, 3.6vw, 4.5rem); } }
.hero h1 em { font-style: italic; }
.lede { margin-top: 1.25rem; font-size: 1.12rem; color: var(--ink-2); max-width: 36rem; }
@media (min-width: 100rem) { .lede { font-size: 1.22rem; } }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.trust { margin-top: 1.25rem; font-size: .88rem; color: var(--ink-3); }
/* "Your demo is with <partner>, who sent you here." — only when a partner's ?ref= named one. */
.partner-note {
  display: inline-block; margin-top: 1rem; padding: .55rem .85rem; border-radius: .65rem;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-size: .95rem; color: var(--ink-2);
}
.partner-note[hidden] { display: none; }
.partner-note b { color: var(--ink); }
.closing .partner-note { margin-top: 1.25rem; }
@media (max-width: 30rem) { .hero .cta-row .btn { flex: 1 1 100%; } }

/* The chart scene: the sign-in pages' chart (chart-geometry.ts), drawn into the page by
   `npm run landing:sync`. These rules are chart-scene.component.ts's, for the same markup. */
.scene { display: grid; gap: 1.5rem; min-width: 0; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .rule { stroke: #94a3b8; stroke-width: 1; stroke-dasharray: 3 5; opacity: .7; }
.chart .crown { opacity: 0; animation: fade-in .5s ease-out forwards; }
.chart text.num { font-size: 13px; font-weight: 500; fill: #64748b; opacity: 0; animation: fade-in .5s ease-out forwards; }
.chart .line { fill: none; stroke: #94a3b8; stroke-width: 1.3; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s ease-out forwards; }
.chart .mark { opacity: 0; animation: fade-in .5s ease-out forwards; }
.chart .mark.treated { animation: fade-in .5s ease-out forwards, treat .7s ease-in-out forwards; }

.plan {
  justify-self: start; width: 100%; max-width: 28rem; padding: 1rem 1.1rem; border-radius: .9rem;
  background: rgb(255 255 255 / .88); box-shadow: inset 0 0 0 1px var(--line-2);
  opacity: 0; animation: fade-in .6s ease-out 1.6s forwards;
}
.plan-title { font-size: .92rem; font-weight: 600; }
.plan ul { list-style: none; margin: .4rem 0 0; padding: 0; }
.plan li { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; font-size: .9rem; border-top: 1px solid var(--line); }
.plan li:first-child { border-top: 0; }
.plan li .num { width: 6.2rem; flex: none; color: var(--ink-3); white-space: nowrap; font-size: .85rem; }
.plan li .work { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.plan .state { position: relative; flex: none; }
.chip { display: inline-block; border-radius: 999px; padding: .1rem .55rem; font-size: .75rem; font-weight: 500; white-space: nowrap; }
.chip-todo { background: #eeefeb; color: var(--ink-3); animation: fade-out .3s ease-out forwards; }
.chip-done { position: absolute; right: 0; top: 0; background: var(--sky-50); color: var(--sky-800); box-shadow: inset 0 0 0 1px var(--sky-200); opacity: 0; animation: fade-in .4s ease-out forwards; }
.chip-next { background: var(--amber-50); color: var(--amber-800); box-shadow: inset 0 0 0 1px var(--amber-200); }

.scene-key { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; font-size: .82rem; color: var(--ink-3); }
.scene-key i { display: inline-block; width: .75rem; height: .75rem; border-radius: .2rem; box-shadow: inset 0 0 0 1px rgb(15 23 42 / .15); margin-left: .25rem; }
.scene-key i:first-child { margin-left: 0; }
.scene-key span { margin-left: .6rem; }
.k-need { background: var(--rose); } .k-plan { background: var(--amber); } .k-done { background: var(--sky); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes treat { to { fill: var(--sky); } }
@media (prefers-reduced-motion: reduce) {
  .chart .crown, .chart text.num, .chart .line, .chart .mark, .chart .mark.treated, .plan, .chip-done { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .chip-todo { animation: none; opacity: 0; }
  .chart .mark.treated { fill: var(--sky); }
}
/* On a phone the chart alone is enough, as on the sign-in page. */
@media (max-width: 40rem) { .plan { display: none; } }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: 3.5rem 0; }
@media (min-width: 64rem) { .section { padding: 5.5rem 0; } }
.section-canvas { background: var(--canvas); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin: 0 auto 2.25rem; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; text-wrap: balance; }
.section-head p { margin-top: 1rem; font-size: 1.08rem; color: var(--ink-2); }
@media (min-width: 64rem) { .section-head { margin-bottom: 3rem; } }

.role {
  display: inline-block; padding: .15rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  color: var(--ink-2); background: #fff; box-shadow: inset 0 0 0 1px var(--line-2);
}
.more { display: inline-block; margin-top: 1rem; font-weight: 600; font-size: .95rem; color: var(--brand-ink); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Why: four white panels, one moment each, icons in neutral tiles (colour is for signals, not furniture). */
.cards-4 { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 80rem) { .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* On a phone the icon sits beside the heading rather than above it: four cards stacked are long enough. */
@media (max-width: 39.99rem) {
  .cards-4 .card { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: .9rem; padding: 1.25rem; }
  .cards-4 .card .icon { grid-row: span 2; }
  .cards-4 .card h3 { margin-top: 0; align-self: center; }
}
.card { background: #fff; border-radius: 1rem; padding: 1.6rem; box-shadow: inset 0 0 0 1px var(--line); }
.card h3 { margin-top: 1.1rem; font-size: 1.12rem; }
.card p { margin-top: .6rem; color: var(--ink-2); font-size: .97rem; }
.icon { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .7rem; background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }

/* How a visit runs: six cards, words only. The screens are the tour's job — at a third of a card's
   width a whole app screen had 4px text and showed only that an app exists — so each card opens the
   tour at its own screen instead (2026-11-20). */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.step { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 1.3rem 1.4rem 1.4rem;
  border-radius: 1rem; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
/* The whole card opens the tour: its link is stretched over it, and its words stay the link's name. */
.step .more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.step .more:focus-visible { outline: none; }
.step:has(.more:hover) { box-shadow: inset 0 0 0 1px var(--brand); }
.step:has(.more:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.step h3 { margin-top: .8rem; font-size: 1.15rem; display: flex; align-items: baseline; gap: .55rem; }
.step h3 .n { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .85em; font-weight: 500; color: var(--ink-4); }
.step p { margin-top: .5rem; color: var(--ink-2); font-size: .95rem; }
.step .more { margin-top: auto; padding-top: .9rem; }
/* On a phone the six are rows of one panel, which is how a list is read there. */
@media (max-width: 39.99rem) {
  .steps { gap: 0; border-radius: 1rem; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
  .step { padding: 1.05rem 2.6rem 1.1rem 1.1rem; border-radius: 0; background: none; box-shadow: none; }
  .step:first-child { border-radius: 1rem 1rem 0 0; }
  .step:last-child { border-radius: 0 0 1rem 1rem; }
  .step + .step { border-top: 1px solid var(--line); }
  .step:has(.more:hover) { box-shadow: none; background: var(--canvas); }
  .step .role { display: none; }
  .step h3 { margin-top: 0; font-size: 1.04rem; }
  .step p { margin-top: .35rem; font-size: .92rem; }
  /* A row that opens something: a chevron, not a line of link text under every row. */
  .step .more { position: static; margin: 0; padding: 0; font-size: 0; }
  .step .more::before { content: "›"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
    font-size: 1.6rem; line-height: 1; color: var(--ink-4); }
}
.tour-band {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding: 1.5rem 1.75rem; border-radius: 1rem; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
}
.tour-band p { font-size: 1.05rem; color: var(--ink-2); max-width: 44rem; }
.tour-band b { color: var(--ink); }

/* Closing: back on the sheet, as the page began. */
.closing { padding: 5rem 0; text-align: center; border-top: 1px solid var(--line); }
@media (min-width: 64rem) { .closing { padding: 7rem 0; } }
.closing h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.08; max-width: 40rem; margin: 0 auto; }
.closing p { margin: 1.1rem auto 0; max-width: 40rem; font-size: 1.08rem; color: var(--ink-2); }
.closing .cta-row { justify-content: center; }
.closing .signin-note { margin-top: 1.5rem; font-size: .95rem; color: var(--ink-3); }
