/* Toothie site: the app's blue gradient, white cards, Roboto Bold for headings (as in the app),
   the system font for text. Single light theme, like the app (UIUserInterfaceStyle Light). */
@font-face {
  font-family: "Roboto";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/roboto-bold.ttf") format("truetype");
}

:root {
  --top: #6e7ce8;
  --bottom: #8cc4ff;
  --ink: #1f2550;
  --muted: #4f5784;
  --violet: #5b6fe0;
  --card: #ffffff;
  --page: #f3f6ff;
  --line: #dde4fb;
  --display: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 var(--text);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }

.wrap {
  /* Grid items shrink to their content without an explicit width; long lines then overflow. */
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* Hero: the screenshots' gradient, with the tooth parade along the bottom. */
.hero {
  background: linear-gradient(160deg, var(--top), var(--bottom));
  color: #fff;
  overflow: hidden;
}
.hero a { color: #fff; }
.topbar {
  max-width: 1080px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px var(--display); }
.brand img { border-radius: 10px; }
.topbar nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-weight: 600; }
.topbar nav a { text-decoration: none; }
.langs { display: flex; gap: 8px; font-size: 14px; }
.langs a { padding: 2px 6px; border-radius: 6px; opacity: 0.85; }
.langs a[aria-current="page"] { background: rgba(255, 255, 255, 0.25); opacity: 1; }
.intro { padding-top: 56px; padding-bottom: 24px; display: grid; gap: 18px; justify-items: start; }
.intro h1 { font-size: clamp(34px, 6vw, 60px); max-width: 16ch; }
.lede { font-size: clamp(17px, 2.2vw, 20px); max-width: 60ch; margin: 0; }
.cta {
  display: inline-block;
  background: #fff;
  color: var(--violet) !important;
  font: 700 18px var(--display);
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(30, 40, 120, 0.2);
}
.cta:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #ffd166; outline-offset: 3px; }
/* The tooth parade (transparent WebP) sits on the hero gradient. */
.parade { width: 100%; max-width: 1200px; margin: 24px auto 0; padding: 0 12px 28px; }
.hero-small .intro { padding-bottom: 56px; }
.contact { margin: 0; font-size: 19px; }

/* minmax(0, 1fr): an auto track would grow to the screenshot rail's full width. */
main { padding: 48px 0 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
main h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 20px; }

/* Screenshots: a horizontal rail, the page itself never scrolls sideways. */
.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
}
.rail figure { margin: 0; flex: 0 0 auto; width: min(240px, 62vw); scroll-snap-align: start; display: grid; gap: 8px; }
.rail img { border-radius: 22px; box-shadow: 0 10px 30px rgba(30, 40, 120, 0.16); }
.rail figcaption { font-size: 14px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.features article { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; min-width: 0; }
.features h3 { font-size: 15px; letter-spacing: 0.06em; color: var(--violet); margin-bottom: 8px; }
.features p { margin: 0; }

.more ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; max-width: 70ch; }
.closing { display: grid; gap: 12px; justify-items: start; }
.closing p { margin: 0; max-width: 65ch; font-size: 19px; }
.closing .cta { background: var(--violet); color: #fff !important; margin-top: 8px; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; max-width: 760px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; }

.footer { background: var(--ink); color: #dfe4ff; padding: 32px 0 max(32px, env(safe-area-inset-bottom)); font-size: 15px; }
.footer a { color: #fff; }
.footer p { margin: 0 0 8px; }
.footer .small { opacity: 0.7; font-size: 13px; }

@media (prefers-reduced-motion: no-preference) {
  .rail { scroll-behavior: smooth; }
}
