/* Dental Pictures website. One stylesheet, no framework.
   Colours: the app's accent blue and the teal of its intraoral tiles, darkened where white text
   sits on them so it stays readable (WCAG AA). */

@font-face {
  color-scheme: light dark;
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0062cc;            /* iOS system blue, darkened for white text */
  --teal: #30b0c7;            /* iOS system teal */
  --teal-dark: #0e8478;       /* mint teal, as dark as white text needs (4.6:1) */
  /* Blue to mint; the mint takes the whole second half. */
  --gradient: linear-gradient(120deg, var(--blue) 0%, var(--teal-dark) 55%, var(--teal-dark) 100%);
  --text: #16242a;
  --muted: #56686e;
  --line: #dde8eb;
  --bg: #ffffff;
  --bg-tint: #f2f8fa;
  --surface: #ffffff;         /* cards, buttons and controls on the page */
  --accent: var(--blue);      /* links and accent-coloured text on the page background */
  --gradient-text: var(--gradient);
  --header-bg: rgba(255, 255, 255, 0.86);
  --shadow: rgba(0, 50, 80, 0.1);
  --dot: rgba(48, 176, 199, 0.35);
  --banner-bg: #fff6e0;
  --banner-line: #f1dfae;
  --banner-text: #5c4500;
  --header-h: 56px;
  --radius: 14px;
  /* The carousel picture: as wide as fits and fully on screen below the header, but never so
     small that the screenshot becomes unreadable on short phones (they scroll a little instead). */
  --slide-w: max(170px, min(clamp(180px, 60vw, 270px), calc((100svh - var(--header-h) - 9rem) * 390 / 845)));
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);   /* ease-out: quick start, gentle landing */
  --duration: 450ms;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Dark mode follows the device's setting, like the app. Apple's dark system colours: background
   black, grouped cells #1C1C1E, separator #38383A, secondary label, systemBlue #0A84FF and
   systemTeal #40C8E0. The gradients behind white text stay as they are (readable in both). */
@media (prefers-color-scheme: dark) {
  :root {
    --text: #ffffff;
    --muted: #a1a1aa;         /* secondaryLabel on black */
    --line: #38383a;
    --bg: #000000;
    --bg-tint: #111113;
    --surface: #1c1c1e;
    --accent: #0a84ff;
    --teal: #40c8e0;
    --gradient-text: linear-gradient(120deg, #0a84ff 0%, #3dd1b5 55%);
    --header-bg: rgba(22, 22, 24, 0.8);
    --shadow: rgba(0, 0, 0, 0.5);
    --dot: rgba(64, 200, 224, 0.35);
    --banner-bg: #2a2208;
    --banner-line: #4a3b0a;
    --banner-text: #ffd666;
  }

  .slide img, .download-card .product-icon { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6); }
  .carousel-dots button[aria-current="step"]::before { background: var(--teal); }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body { margin: 0; line-height: 1.55; overflow-wrap: break-word; }

h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
/* Long German compounds (Datenschutz-Aufsichtsbehörde) break instead of widening narrow phones. */
.legal p, .legal li { hyphens: auto; -webkit-hyphens: auto; }

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 46rem; }

/* ---- Buttons --------------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 200ms, color 200ms, box-shadow 200ms, transform 200ms var(--ease);
}

.button:active { transform: scale(0.97); }
.button:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.button-small { min-height: 2.1rem; padding: 0 1rem; font-size: 0.9rem; }
.button-primary { background: var(--gradient); color: #fff; }
.button-light { background: #fff; color: var(--blue); box-shadow: 0 6px 20px rgba(0, 40, 80, 0.2); }
.button-light:hover { box-shadow: 0 8px 26px rgba(0, 40, 80, 0.3); }
.button-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.6); }
.button-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.button-outline { color: var(--accent); border: 1.5px solid var(--accent); }
.button-outline:hover { background: var(--accent); color: #fff; }

/* ---- Pre-release banner (above the header, scrolls away) ------------------------------------ */

.prerelease-banner {
  padding: 0.55rem 0;
  background: var(--banner-bg);
  border-bottom: 1px solid var(--banner-line);
  color: var(--banner-text);
  font-size: 0.88rem;
  text-align: center;
  text-wrap: balance;
}

.prerelease-banner a { display: inline-block; padding: 0.5rem 0; margin: -0.5rem 0; color: var(--banner-text); font-weight: 700; }   /* larger tap area, same look */

/* On phones the label says it already; the banner stays one or two lines. */
@media (max-width: 600px) { .banner-status { display: none; } }

.banner-label {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--banner-text);
  color: var(--banner-bg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}

/* ---- Header ---------------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}

.header-nav { display: flex; align-items: center; gap: 1.25rem; }

.nav-link { padding: 0.75rem 0; color: var(--muted); font-size: 0.92rem; font-weight: 500; text-decoration: none; }
.nav-link:hover { color: var(--text); }

.lang-switch { display: flex; gap: 0.15rem; padding: 0.15rem; border-radius: 999px; background: var(--bg-tint); }

.lang-switch a {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.lang-switch a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.lang-switch a:focus-visible { outline: 2px solid var(--teal); }

@media (max-width: 720px) {
  .nav-link { display: none; }
  .header-nav { gap: 0.75rem; }
}

/* The smallest iPhones: the wordmark keeps one line; contact stays in the hero and the footer. */
@media (max-width: 380px) {
  .header-nav .button { display: none; }
}

.brand span { white-space: nowrap; }

/* ---- Hero ------------------------------------------------------------------------------------ */

.hero { background: var(--gradient); color: #fff; }

.hero-inner { padding-top: 4.5rem; padding-bottom: 4rem; max-width: 52rem; text-align: center; }

.eyebrow {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero h1 { margin: 0 0 1.25rem; font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 900; }

.hero-summary { margin: 0 auto 2rem; max-width: 40rem; font-size: clamp(1.05rem, 2.2vw, 1.2rem); opacity: 0.95; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

.hero-status { display: inline-flex; align-items: center; gap: 0.5rem; margin: 2rem 0 0; font-size: 0.9rem; opacity: 0.9; }

@media (max-width: 600px) {
  .hero-inner { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .eyebrow { margin-bottom: 1rem; }
  .hero h1 { margin-bottom: 1rem; }
  .hero-summary { margin-bottom: 1.5rem; }
  .hero-status { margin-top: 1.5rem; }
  .section { padding: 3.5rem 0; }
}

.status-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #7cf0b0; box-shadow: 0 0 0 4px rgba(124, 240, 176, 0.25); }

/* ---- Sections -------------------------------------------------------------------------------- */

.section { padding: 5rem 0; border-top: 1px solid var(--line); }
.section-tinted { background: var(--bg-tint); }

.section-title { margin: 0 0 0.75rem; text-align: center; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
.section-lead { margin: 0 auto 2.5rem; max-width: 38rem; text-align: center; color: var(--muted); }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.icon-tile, .step-icon, .section-icon {
  display: inline-grid;
  place-items: center;
  background: var(--gradient);
  color: #fff;
}

.icon-tile svg, .step-icon svg, .section-icon svg {
  width: 55%;
  height: 55%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow 250ms var(--ease), transform 250ms var(--ease);
}

.card:hover { box-shadow: 0 10px 30px var(--shadow); transform: translateY(-2px); }
.card .icon-tile { width: 2.75rem; height: 2.75rem; border-radius: 10px; }
.card h3 { margin: 1rem 0 0.4rem; font-size: 1.1rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Downloads: the Windows software and the iPhone app */
.download-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 52rem; margin: 0 auto; }
@media (min-width: 720px) { .download-grid { grid-template-columns: repeat(2, 1fr); } }

.download-card { display: flex; flex-direction: column; align-items: center; padding: 2.25rem 1.75rem 1.75rem; text-align: center; }
.download-card:hover { transform: none; }
.download-card .product-icon { width: 5rem; height: 5rem; border-radius: 22%; box-shadow: 0 8px 20px rgba(0, 50, 80, 0.15); }
.download-card h3 { margin-top: 1.25rem; font-size: 1.25rem; }
.download-card p { max-width: 22rem; }
.download-card .button { margin-top: 1.5rem; }
.download-card .download-note { margin-top: 0.75rem; font-size: 0.85rem; }

.button-disabled { background: var(--bg-tint); color: var(--muted); border: 1.5px dashed var(--line); cursor: default; }
.button-disabled:active { transform: none; }

/* Supported practice software, under the download cards */
.software-panel {
  max-width: 52rem;
  margin: 1rem auto 0;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-tint);
}

.software-panel h3 { margin: 0 0 1rem; font-size: 1.05rem; }
.software-list { margin: 0; padding: 0; list-style: none; }

.software-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.software-name { font-weight: 700; }
.software-vendor { color: var(--muted); font-size: 0.9rem; }
.software-status { margin-left: auto; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 600px) { .software-status { margin-left: 0; flex-basis: 100%; } }

.badge-supported {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--teal-dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.software-more { margin: 0.75rem 0 0; padding-top: 0.85rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

/* Setup steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.step-icon { position: relative; width: 3.5rem; height: 3.5rem; border-radius: 50%; }

.step-badge {
  position: absolute;
  top: -0.3rem;
  right: -0.3rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
}

.steps h3 { margin: 1rem 0 0.4rem; font-size: 1.15rem; }
.steps p { margin: 0 auto; max-width: 20rem; color: var(--muted); }

/* Check lists (privacy, requirements) */
.section-icon { display: grid; width: 3rem; height: 3rem; margin: 0 auto 1rem; border-radius: 12px; }

.check-list { margin: 0 auto; padding: 0; max-width: 38rem; list-style: none; }

.check-list li { position: relative; margin: 0 0 0.8rem; padding-left: 2rem; }

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--teal-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5 5.5-6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.pricing-note {
  margin: 2rem auto 0;
  max-width: 38rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-tint);
  color: var(--muted);
}

/* Closing call to action */
.section-cta { border-top: 0; padding-top: 1rem; }

.cta-card {
  padding: 3.5rem 1.5rem;
  border-radius: 24px;
  background: var(--gradient);
  color: #fff;
  text-align: center;
}

.cta-card h2 { margin: 0 0 0.75rem; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
.cta-card p { margin: 0 auto 1.75rem; max-width: 36rem; opacity: 0.95; }
.cta-card .cta-mail { margin: 1rem auto 0; font-size: 0.9rem; opacity: 0.85; }

/* ---- Footer ---------------------------------------------------------------------------------- */

.site-footer { padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }

.footer-copy { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links { row-gap: 0; }
.footer-links a { display: inline-block; padding: 0.7rem 0; color: var(--muted); text-decoration: none; }   /* 44 px tap height */
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-note { margin: 1.25rem 0 0; font-size: 0.8rem; opacity: 0.85; }

/* ---- Legal pages ----------------------------------------------------------------------------- */

.legal { padding-top: 3rem; padding-bottom: 4rem; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; }
.legal h2 { margin-top: 2rem; font-size: 1.2rem; }
.legal-meta { color: var(--muted); font-size: 0.9rem; }
.not-found { text-align: center; padding-top: 6rem; padding-bottom: 6rem; }

/* ---- Carousel -------------------------------------------------------------------------------- */

.carousel { padding: 1rem 0 3rem; }

.slide { margin: 0; }

.slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7%/3.2%;     /* roughly an iPhone screen's corner radius */
  box-shadow: 0 18px 40px rgba(0, 50, 80, 0.18), 0 4px 10px rgba(0, 50, 80, 0.08);
}

/* Without JavaScript: a plain scrollable row of all six steps. */
.carousel-stage {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 1.5rem 2rem;
}

.carousel-stage .slide { flex: 0 0 var(--slide-w); scroll-snap-align: center; }

.slide figcaption { margin-top: 0.9rem; text-align: center; color: var(--muted); }

.step {
  display: inline-grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  margin-right: 0.35em;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
}

/* With JavaScript: one picture in the middle, its neighbours small and blurred. */
.carousel.is-enhanced .carousel-stage {
  position: relative;
  display: block;
  overflow: hidden;
  height: calc(var(--slide-w) * 845 / 390 + 5rem);   /* room for the shadow below */
  padding: 0;
  outline: none;
  touch-action: pan-y;        /* vertical scrolling stays with the page, horizontal swipes are ours */
}

.carousel.is-enhanced .carousel-stage:focus-visible { box-shadow: inset 0 0 0 3px var(--teal); }

.carousel.is-enhanced .slide {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  width: var(--slide-w);
  transform-origin: center center;
  transition:
    transform var(--duration) var(--ease),
    filter var(--duration) var(--ease),
    opacity var(--duration) var(--ease);
  will-change: transform, filter, opacity;
  user-select: none;
  -webkit-user-select: none;
}

.carousel.is-enhanced .slide img { pointer-events: none; -webkit-user-drag: none; }
.carousel.is-enhanced .slide figcaption { display: none; }
.carousel.is-enhanced .slide.is-neighbour { cursor: pointer; }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 0.5rem; }
@media (max-width: 400px) { .carousel-controls { gap: 0.5rem; padding: 0 1rem; } }
.carousel-controls[hidden], .carousel-dots[hidden] { display: none; }

.carousel-prev, .carousel-next {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 200ms, color 200ms, opacity 200ms, transform 200ms var(--ease);
}

.carousel-prev svg, .carousel-next svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-prev:hover:not(:disabled), .carousel-next:hover:not(:disabled) { background: var(--accent); color: #fff; }
.carousel-prev:active:not(:disabled), .carousel-next:active:not(:disabled) { transform: scale(0.94); }
.carousel-prev:disabled, .carousel-next:disabled { opacity: 0.3; cursor: default; }
.carousel-prev:focus-visible, .carousel-next:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.carousel-caption { flex: 0 1 15rem; min-width: 0; margin: 0; text-align: center; font-size: 1.05rem; font-weight: 500; transition: opacity 200ms; }
.carousel-caption.is-changing { opacity: 0; }

.carousel-dots { display: flex; justify-content: center; gap: 0.25rem; margin-top: 0.75rem; }

.carousel-dots button {
  width: 1.5rem;              /* a comfortable hit area around a small dot */
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.carousel-dots button::before {
  content: "";
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  margin: auto;
  border-radius: 0.25rem;
  background: var(--dot);
  transition: width var(--duration) var(--ease), background var(--duration) var(--ease);
}

.carousel-dots button[aria-current="step"]::before { width: 1.25rem; background: var(--teal-dark); }
.carousel-dots button:focus-visible { outline: 2px solid var(--teal); border-radius: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* No sliding or scaling: the pictures swap places at once and only fade. */
  .carousel.is-enhanced .slide { transition: opacity 200ms linear; }
  .carousel-dots button::before, .card, .button { transition: none; }
}
