/* Alchemy Flow Revenue Systems
   White, minimal, black + metallic gold brand system.
   Direction: Nike-level directness, Apple-level restraint. */

:root {
  --white: #ffffff;
  --paper: #f7f5f0;
  --paper-2: #efebe2;
  --black: #050505;
  --ink: #111111;
  --muted: #6d6d6d;
  --soft: #dcd7cd;
  --line: #e8e4dc;
  --gold: #b78b35;
  --gold-2: #e7cc82;
  --gold-3: #7b5a1e;
  --metal: linear-gradient(110deg, #5e4212 0%, #b3832f 24%, #d7b15a 44%, #8f661f 64%, #cda24c 82%, #5e4212 100%);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1180px;
  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 24px 80px rgba(17, 17, 17, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

::selection {
  background: var(--black);
  color: var(--white);
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.scrolled {
  box-shadow: 0 12px 40px rgba(17, 17, 17, 0.06);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  line-height: 1;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.brand-text span {
  margin-top: 0.14rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0.72;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
}

.nav-links a.btn {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--black);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.88rem 1.35rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--black);
  color: var(--white) !important;
  box-shadow: 0 16px 40px rgba(5, 5, 5, 0.18);
}

.btn-line {
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  padding: clamp(4rem, 8vw, 8rem) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(231, 204, 130, 0.24), transparent 26rem),
    linear-gradient(180deg, var(--white), #fbfaf7);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.68fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.eyebrow {
  margin: 0 0 1.35rem;
  color: var(--gold-3);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.4rem;
  font-size: clamp(4rem, 9.2vw, 8.2rem);
  line-height: 0.94;
  letter-spacing: -0.062em;
  font-weight: 900;
}

h2 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.91;
  letter-spacing: -0.075em;
  font-weight: 900;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 900;
}

p {
  color: var(--muted);
}

.metallic,
.price,
.offer-number {
  background: var(--metal);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-sub {
  max-width: 55ch;
  margin-bottom: 2.2rem;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: #3b3b3b;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-logo-card {
  position: relative;
  padding: clamp(1.2rem, 2vw, 2rem);
  border-radius: 44px;
  background: linear-gradient(180deg, #fff, #f6f3eb);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-logo-card::after {
  content: "";
  position: absolute;
  inset: 1.3rem;
  border-radius: 34px;
  border: 1px solid rgba(183, 139, 53, 0.18);
  pointer-events: none;
}

.hero-logo-card img {
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 36px;
  margin-inline: auto;
}

.logo-caption {
  margin-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-caption span {
  color: var(--gold-3);
}

.statement {
  padding: clamp(4rem, 8vw, 8rem) 0;
  background: var(--black);
}

.statement p {
  max-width: 13ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.08em;
}

section {
  padding: clamp(5rem, 9vw, 9rem) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.section-copy p:not(.eyebrow),
.section-head p:not(.eyebrow) {
  max-width: 62ch;
  font-size: 1.1rem;
  line-height: 1.7;
}

.offer-card {
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow);
}

.offer-card p {
  color: rgba(255, 255, 255, 0.72);
}

.offer-kicker,
.offer-window {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.offer-kicker {
  color: var(--gold-2);
}

.offer-number {
  display: block;
  margin: 0.8rem 0 0.25rem;
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: 0.84;
  font-weight: 900;
  letter-spacing: -0.1em;
}

.offer-window {
  margin-bottom: 1.5rem;
  color: var(--white);
}

.system {
  background: var(--paper);
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center h2,
.section-head.center p {
  margin-inline: auto;
}

.system-grid,
.focus-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.system-card,
.focus-item,
.price-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 50px rgba(17, 17, 17, 0.05);
}

.system-card {
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

.system-card span {
  display: inline-flex;
  margin-bottom: 4rem;
  color: var(--gold-3);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.system-card p,
.focus-item p,
.price-card li {
  color: var(--muted);
}

.dentist-focus {
  background: var(--white);
}

.focus-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.focus-item {
  min-height: 230px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.focus-item strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--black);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 900;
}

.pricing {
  background: var(--paper);
}

.pricing-grid {
  align-items: stretch;
}

.price-card {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: var(--black);
  color: var(--white);
  transform: translateY(-1rem);
}

.price-card.featured p,
.price-card.featured li {
  color: rgba(255, 255, 255, 0.72);
}

.tag {
  margin-bottom: 1rem;
  color: var(--gold-3);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.price-card.featured .tag {
  color: var(--gold-2);
}

.price {
  margin: 1.4rem 0 0.2rem;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: -0.09em;
}

.price span {
  margin-left: 0.25rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--muted);
  -webkit-text-fill-color: currentColor;
}

.price-card.featured .price span {
  color: rgba(255, 255, 255, 0.62);
}

.term {
  margin-bottom: 1.7rem;
  font-weight: 800;
}

.price-card ul {
  flex: 1;
  display: grid;
  gap: 0.72rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.96rem;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
}

.cta {
  text-align: center;
  background:
    radial-gradient(circle at center top, rgba(231, 204, 130, 0.22), transparent 28rem),
    var(--white);
}

.cta h2 {
  margin-inline: auto;
}

.cta p:not(.eyebrow) {
  max-width: 58ch;
  margin: 0 auto 2rem;
  font-size: 1.16rem;
}

.cta-actions {
  justify-content: center;
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand strong {
  display: block;
  color: var(--gold-3);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-contact a:hover {
  color: var(--black);
}

.footer-legal {
  padding-top: 1.2rem;
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.legal-sep {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0.4rem;
}

.tos-link {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.tos-link:hover {
  color: var(--black);
}

.tos-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.tos-overlay.open {
  opacity: 1;
  visibility: visible;
}

.tos-panel {
  position: relative;
  width: min(92vw, 640px);
  max-height: 80vh;
  overflow-y: auto;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
  transform: translateY(20px);
  transition: transform 0.3s var(--ease);
}

.tos-overlay.open .tos-panel {
  transform: translateY(0);
}

.tos-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 1.2rem;
}

.tos-panel p {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.tos-panel p:last-child {
  margin-bottom: 0;
}

.tos-panel ul {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

.tos-panel ul li {
  margin-bottom: 0.3rem;
}

.tos-panel a {
  color: var(--gold-3);
  font-weight: 700;
}

.tos-panel a:hover {
  color: var(--black);
}

.tos-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--paper);
  color: var(--black);
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s;
}

.tos-close:hover {
  background: var(--line);
}

.contact-hero {
  min-height: 72vh;
  display: grid;
  align-items: center;
  padding: clamp(4rem, 8vw, 8rem) 0;
  background:
    radial-gradient(circle at 80% 16%, rgba(231, 204, 130, 0.24), transparent 24rem),
    var(--white);
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.contact-hero h1 {
  max-width: 11ch;
}

.contact-panel {
  padding: 2rem;
}

.contact-panel img {
  width: 180px;
  border-radius: 28px;
  margin-bottom: 1.5rem;
}

.contact-panel h2 {
  max-width: 12ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.contact-panel a {
  display: block;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.contact-panel a:hover {
  color: var(--black);
}


.reveal {
  opacity: 1;
}

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js-reveal .reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
.contact-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo-card {
    max-width: 520px;
  }

  .system-grid,
  .pricing-grid,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  h1 {
    max-width: 9.5ch;
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: 74px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-text {
    font-size: 0.82rem;
  }

  .brand-text span {
    font-size: 0.54rem;
    letter-spacing: 0.17em;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    display: grid;
    gap: 0;
    padding: 1rem 1.25rem 1.4rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(17, 17, 17, 0.08);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links li:last-child {
    border-bottom: 0;
  }

  .nav-links a {
    display: flex;
    padding: 1rem 0;
    font-size: 1.05rem;
  }

  .nav-cta-desktop {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 3.6rem;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .statement p {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-contact {
    justify-content: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
