/* Gamma Solution: our own site. Plain CSS, no build step.
   The colours and the font are the app's own (src/app/globals.css): the default teal accent, calm neutrals, IBM Plex Sans. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --canvas: #f5f7f9;
  --surface: #ffffff;
  --sunken: #fafbfc;
  --line: #e4e8ec;
  --line-soft: #edf0f3;
  --ink: #101b26;
  --ink-2: #2b3743;
  --muted: #5a6775;
  --accent: #0b6e8a;
  --accent-hover: #0a6179;
  --on-accent: #ffffff;
  --tint: #edf5f7;
  --tint-strong: #e0ecf0;
  --tint-line: #cce1e6;
  --shadow-raised: 0 1px 2px rgb(16 27 38 / 0.05), 0 6px 16px rgb(16 27 38 / 0.06);
  --shadow-frame: 0 2px 4px rgb(16 27 38 / 0.04), 0 18px 40px rgb(16 27 38 / 0.10);
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* room for the sticky button on phones */
  padding-bottom: 76px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.brand:hover {
  color: var(--ink);
}
.brand svg {
  width: 32px;
  height: 32px;
  flex: none;
}
.brand b {
  font-weight: 600;
}
.brand span span {
  font-weight: 400;
  color: var(--muted);
}

.nav {
  display: none;
  gap: 26px;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav a:hover {
  color: var(--accent);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn-small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9375rem;
  border-radius: 9px;
}
.btn-quiet {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgb(16 27 38 / 0.04);
}
.btn-quiet:hover {
  background: var(--sunken);
  color: var(--ink);
  border-color: var(--tint-line);
}
.btn-light {
  background: #fff;
  color: var(--accent);
}
.btn-light:hover {
  background: var(--tint);
  color: var(--accent-hover);
}

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

.hero {
  padding: 44px 0 56px;
  background:
    radial-gradient(1100px 420px at 85% -10%, var(--tint-strong), transparent 70%),
    linear-gradient(var(--tint), var(--surface) 92%);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.125rem, 7.4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
}
h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  margin: 20px 0 0;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 1.1875rem;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-shot {
  margin-top: 44px;
}

/* ---------- Product screenshots, in a quiet frame ---------- */

.frame {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-frame);
  overflow: hidden;
}
.frame::before {
  content: "";
  display: block;
  height: 26px;
  background:
    radial-gradient(circle at 16px 13px, #d5dbe1 4px, transparent 4.5px),
    radial-gradient(circle at 32px 13px, #d5dbe1 4px, transparent 4.5px),
    radial-gradient(circle at 48px 13px, #d5dbe1 4px, transparent 4.5px),
    var(--sunken);
  border-bottom: 1px solid var(--line-soft);
}
.frame img {
  width: 100%;
}
.frame-plain::before {
  display: none;
}

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

section {
  padding: 64px 0;
}
.band {
  background: var(--canvas);
}
.section-head {
  max-width: 40em;
  margin-bottom: 36px;
}
.section-head p {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 1.125rem;
}

/* A day at the clinic */

.steps {
  display: grid;
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: grid;
  gap: 20px;
  align-items: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--tint-strong);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
}
.step p {
  margin: 10px 0 0;
  color: var(--ink-2);
}

/* Everything it does */

.groups {
  display: grid;
  gap: 16px;
}
.group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px 22px;
  box-shadow: var(--shadow-raised);
}
.group h3 {
  margin-bottom: 12px;
}
.group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.group li {
  position: relative;
  padding: 7px 0 7px 22px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.5;
}
.group li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tint-line);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.feature-shot {
  margin-top: 40px;
  max-width: 860px;
}
.feature-shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Your clinic, your name */

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}
.domains {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-raised);
  overflow: hidden;
}
.domain-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 20px;
}
.domain-row + .domain-row {
  border-top: 1px solid var(--line-soft);
}
.domain-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.0625rem;
  color: var(--accent);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.domain-row span {
  color: var(--muted);
  font-size: 0.9375rem;
}
.plain-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.plain-list li {
  padding: 6px 0;
  color: var(--ink-2);
}
.plain-list strong {
  color: var(--ink);
  font-weight: 600;
}

/* Privacy and safety */

.safety {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.safety li {
  padding: 20px 20px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.safety h3 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}
.safety p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
}
.note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Used at */

.used {
  padding: 40px 0;
  background: var(--tint);
  border-top: 1px solid var(--tint-line);
  border-bottom: 1px solid var(--tint-line);
}
.used p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.125rem, 3.6vw, 1.375rem);
  font-weight: 500;
  line-height: 1.4;
  text-wrap: balance;
}

/* How it starts */

.how {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
}
.how li {
  counter-increment: how;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.how li::before {
  content: counter(how);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--tint-strong);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
}
.how h3 {
  margin-bottom: 4px;
}
.how p {
  margin: 0;
  color: var(--ink-2);
}

/* Last call to action */

.final {
  padding: 64px 0;
  background: var(--accent);
  color: #fff;
  text-align: center;
}
.final h2 {
  color: #fff;
}
.final p {
  margin: 14px auto 0;
  max-width: 32em;
  color: #fff;
  font-size: 1.125rem;
}
.final .btn {
  margin-top: 26px;
}

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

.site-footer {
  padding: 28px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-footer a {
  color: var(--ink-2);
}

/* ---------- Sticky WhatsApp button on phones ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn {
  width: 100%;
  min-height: 52px;
}

/* ---------- Text pages (privacy, 404) ---------- */

.doc {
  padding: 48px 0 72px;
}
.doc .wrap {
  max-width: 720px;
}
.doc h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
}
.doc h2 {
  margin-top: 40px;
  font-size: 1.375rem;
}
.doc p,
.doc li {
  color: var(--ink-2);
}
.doc .lead {
  margin-top: 16px;
}
.doc ul {
  padding-left: 1.2em;
}

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
  body {
    padding-bottom: 0;
  }
  .sticky-cta {
    display: none;
  }
  .nav {
    display: flex;
  }
  .hero {
    padding: 72px 0 80px;
  }
  .groups {
    grid-template-columns: repeat(2, 1fr);
  }
  .safety {
    grid-template-columns: repeat(2, 1fr);
  }
  .how {
    grid-template-columns: repeat(3, 1fr);
  }
  section {
    padding: 88px 0;
  }
  .step {
    grid-template-columns: 1fr 1.35fr;
    gap: 48px;
  }
  .step:nth-child(even) {
    grid-template-columns: 1.35fr 1fr;
  }
  .step:nth-child(even) .step-text {
    order: 2;
  }
  .steps {
    gap: 72px;
  }
  .split {
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
  }
}

@media (min-width: 1040px) {
  .hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
  }
  .hero-shot {
    margin-top: 0;
    margin-right: -120px;
  }
  .hero h1 {
    font-size: 3.375rem;
  }
}

@media print {
  .site-header,
  .sticky-cta {
    display: none;
  }
}
