/* alvandai.com: one page for dental practices, plus the legal pages.
   Black, gold and red. Geist, self hosted. Static: no framework, no build. */

@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/geist-400.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/geist-500.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/geist-600.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/geist-700.woff2') format('woff2'); }

:root {
  --bg: #ffffff;
  --panel-solid: #ffffff;
  --line: rgba(239,66,66,.25);
  --line-soft: rgba(17,17,17,.18);
  --line-softer: rgba(17,17,17,.10);
  --ink: #111111;
  --ink-2: #111111;
  --ink-3: #111111;
  --gold: #ef4242;
  --gold-2: #ef4242;
  --gold-deep: #ef4242;
  --red: #ef4242;
  --link: #111111;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: clip; background: var(--bg); color: #111111;
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: #111111; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #111111; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

.wrap { position: relative; z-index: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.center { text-align: center; }

/* ---------- Background: the gold constellation, fading out below the form ---------- */
.sky { position: absolute; inset: 0 0 auto 0; height: 1180px; z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%); }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky::before { content: ''; position: absolute; left: 50%; top: -260px; width: min(1100px, 140vw); height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(239,66,66,0.17), rgba(239,66,66,0.05) 55%, transparent 75%); }

/* ---------- Top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; filter: drop-shadow(0 0 12px rgba(212, 164, 44, 0.35)); }
.btn-ghost { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.03); color: #111111; text-decoration: none; font-size: 14px; font-weight: 500;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease); }
.btn-ghost:hover { border-color: var(--line); color: #111111; background: rgba(239,66,66,0.06); }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 6px 13px 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(239,66,66,0.12), rgba(239,66,66,0.03));
  color: #111111; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: 0 0 24px rgba(239,66,66,0.08), inset 0 1px 0 rgba(0,0,0,0.06); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(239,66,66,0.12), 0 0 12px var(--red); }
h1 { margin: 0 auto; max-width: 900px; font-size: clamp(40px, 6.8vw, 76px); line-height: 1.0; font-weight: 700; letter-spacing: -0.05em; }
.gold { background: linear-gradient(100deg, #ef4242 0%, var(--gold-2) 45%, #ef4242 70%, #ef4242 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: #111111; animation: sheen 9s ease-in-out infinite; }
@keyframes sheen { 50% { background-position: 100% 0; } }
.lede { margin: 22px auto 0; max-width: 580px; color: #111111; font-size: clamp(16.5px, 2.2vw, 19px); line-height: 1.55; letter-spacing: -0.01em; }
.h2 { margin: 0 auto; max-width: 780px; text-align: center; font-size: clamp(32px, 4.8vw, 54px); line-height: 1.04; font-weight: 700; letter-spacing: -0.045em; }
.section-sub { margin: 16px auto 0; max-width: 560px; text-align: center; color: #111111; font-size: 17px; letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: 64px; padding-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px auto 0; }
.chip { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 15px 0 8px; border-radius: 999px; border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.6); color: #111111; font-size: 13.5px; font-weight: 500; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.chip .appicon { width: 24px; height: 24px; }

/* The form card: glass with a gold light running round its edge */
.form-card { position: relative; margin: 38px auto 0; max-width: 560px; padding: 22px; border-radius: 24px; text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.94)); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg), 0 0 90px rgba(239,66,66,0.1), inset 0 1px 0 rgba(0,0,0,0.06);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.form-card::before { content: ''; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.form-card::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a), transparent 0 72%, rgba(239,66,66,0.7) 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: orbit 7s linear infinite; }
@keyframes orbit { to { --a: 360deg; } }
.form-head { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; font-size: 13px; color: #111111; }
.form-head .dot { width: 6px; height: 6px; border-radius: 50%; background: #ef4242; box-shadow: 0 0 8px rgba(0,0,0,0.12); }
/* Option A (Nov 13): white form card with a gold glow, homepage audit form only (the /dentists form stays dark) */
.form-card:has([data-alvand-form="ai-opportunity-audit-application"]) { background: #ffffff; border: 1px solid rgba(239,66,66,0.55); box-shadow: 0 0 0 1px rgba(239,66,66,0.12), 0 30px 80px -24px rgba(239,66,66,0.12), 0 18px 50px rgba(0,0,0,0.12); backdrop-filter: none; -webkit-backdrop-filter: none; }
.form-card:has([data-alvand-form="ai-opportunity-audit-application"])::before { background: linear-gradient(90deg, transparent, #ef4242, transparent); }
.form-card:has([data-alvand-form="ai-opportunity-audit-application"]) .form-head { color: #111111; }
[data-alvand-form] { min-height: 360px; }
/* A form with a fixed height holds its space before the frame loads, so the hero does not jump. Matches data-height and data-mobile-height. */
[data-alvand-form][data-height] { min-height: 650px; }
.form-fallback { text-align: center; padding: 18px 0; }
.form-fallback a, .fine a { color: #111111; }
.fine { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: #111111; }

.block { padding-top: 140px; }

/* ---------- App icons: glowing, iOS shaped ---------- */
.appicon { flex: none; position: relative; width: 30px; height: 30px; border-radius: 23%; display: grid; place-items: center; color: #111111;
  box-shadow: 0 0 16px var(--glow, rgba(239,66,66,0.12)), inset 0 1px 0 rgba(0,0,0,0.12), inset 0 -2px 6px rgba(0,0,0,0.12); }
.appicon svg { width: 58%; height: 58%; }
.appicon.alvand { background: linear-gradient(150deg, #ffffff, #ffffff); --glow: rgba(212, 164, 44, 0.6); box-shadow: 0 0 16px var(--glow), inset 0 0 0 1px rgba(239,66,66,0.12), inset 0 1px 0 rgba(0,0,0,0.12); }
.appicon.alvand img { width: 62%; height: 62%; }
.appicon.msg { background: linear-gradient(180deg, #ef4242, #ef4242); --glow: rgba(60, 207, 122, 0.55); }
.appicon.mail { background: linear-gradient(180deg, #ef4242, #ef4242); --glow: rgba(74, 168, 255, 0.5); }
.appicon.cal { background: linear-gradient(180deg, #ffffff, #ffffff); --glow: rgba(255, 255, 255, 0.3); color: #111111; flex-direction: column; gap: 0; line-height: 1; }
.appicon.cal small { font-size: 6.5px; font-weight: 600; color: #111111; letter-spacing: 0.04em; }
.appicon.cal b { font-size: 13px; font-weight: 600; letter-spacing: -0.04em; }
.appicon.bell { background: linear-gradient(180deg, #ef4242, #ef4242); --glow: rgba(208, 64, 44, 0.55); }
.appicon.gold { background: linear-gradient(140deg, var(--gold-2), var(--gold) 55%, var(--gold-deep)); color: #111111; }

/* ---------- Avatars: illustrated profile pictures with a story ring ---------- */
.av { position: relative; display: inline-block; vertical-align: middle; flex: none; width: 28px; height: 28px; border-radius: 50%; }
.av > span { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.av svg { width: 100%; height: 100%; }
.av.ring { padding: 2px; background: conic-gradient(from 200deg, var(--gold-2), var(--gold), var(--red), #ef4242, var(--gold-2)); }
.av.ring > span { border: 2px solid #111111; }
.av .on { position: absolute; right: 0; bottom: 0; width: 22%; height: 22%; min-width: 8px; min-height: 8px; border-radius: 50%; background: #ef4242; border: 2px solid #111111; }

/* ---------- Showcase: laptop with the pipeline, iPhone lock screen ---------- */
.stage-xl { position: relative; max-width: 1080px; margin: 66px auto 0; height: 610px; }
.mac { position: absolute; left: 0; top: 34px; width: 76%; }
.mac-lid { position: relative; border-radius: 20px 20px 8px 8px; padding: 14px 14px 0; background: linear-gradient(180deg, #ffffff, #ffffff 30%, #ffffff);
  border: 1px solid rgba(17,17,17,0.18); box-shadow: var(--shadow-lg), 0 0 120px rgba(239,66,66,0.07), inset 0 1px 0 rgba(0,0,0,0.12); }
.mac-lid::before { content: ''; position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #ffffff; box-shadow: inset 0 0 2px rgba(0,0,0,0.12); }
.mac-base { position: relative; height: 16px; margin: 0 -6%; border-radius: 2px 2px 18px 18px; background: linear-gradient(180deg, #ffffff, #ffffff 40%, #ffffff); box-shadow: 0 24px 40px rgba(0,0,0,0.12); }
.mac-base::before { content: ''; position: absolute; top: 0; left: 50%; width: 16%; height: 6px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #ffffff; }
.screen { position: relative; border-radius: 10px 10px 0 0; overflow: hidden; background: #ffffff; border: 1px solid var(--line-softer); display: grid; grid-template-columns: 168px 1fr; height: 440px; }
.app-side { border-right: 1px solid var(--line-softer); padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; background: #ffffff; }
.app-brand { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 4px 8px 14px; }
.app-brand img { width: 18px; height: 18px; }
.app-brand .mark { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(140deg, var(--gold-2), var(--gold) 55%, var(--gold-deep)); }
.app-nav { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; font-size: 12px; color: #111111; }
.app-nav svg { width: 14px; height: 14px; opacity: 0.85; }
.app-nav.on { background: linear-gradient(90deg, rgba(239,66,66,0.16), rgba(239,66,66,0.03)); color: #111111; box-shadow: inset 2px 0 0 var(--gold); }
.app-nav .badge { margin-left: auto; font-size: 10px; min-width: 17px; text-align: center; padding: 0 5px; border-radius: 999px; background: var(--red); color: #111111; line-height: 17px; box-shadow: 0 0 10px rgba(239,66,66,0.12); }
.app-main { padding: 16px 18px; overflow: hidden; }
.app-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.app-head h4 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #111111; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(255,255,255,0.02); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: #ef4242; box-shadow: 0 0 8px rgba(0,0,0,0.12); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.col { border-radius: 11px; background: #ffffff; border: 1px solid var(--line-softer); padding: 8px; min-height: 350px; }
.col h5 { margin: 2px 4px 9px; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #111111; display: flex; justify-content: space-between; }
.col h5 b { color: #111111; }
.kcard { display: flex; gap: 8px; align-items: flex-start; border-radius: 9px; background: linear-gradient(180deg, #ffffff, #ffffff); border: 1px solid var(--line-softer); padding: 8px; margin-bottom: 7px; font-size: 11px; }
.kcard b { display: block; font-size: 11.5px; font-weight: 600; color: #111111; }
.kcard .m { display: block; color: #111111; }
.kcard .pill { display: inline-block; margin-top: 5px; font-size: 9.5px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: #111111; background: rgba(239,66,66,0.06); }
.kcard.hot { border-color: rgba(239,66,66,0.5); box-shadow: 0 0 22px rgba(239,66,66,0.12), inset 0 0 0 1px rgba(239,66,66,0.12); }
.kcard.new { animation: slide-in 8s var(--ease) infinite; }
@keyframes slide-in { 0% { opacity: 0; transform: translateY(-8px); } 6%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* iPhone */
.iphone { --w: 270px; position: absolute; width: var(--w); height: calc(var(--w) * 2.07); border-radius: calc(var(--w) * 0.17); padding: calc(var(--w) * 0.034);
  background: linear-gradient(145deg, #ffffff, #ffffff 16%, #ffffff 50%, #ffffff 84%, #ffffff);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.06), inset 0 0 0 1px rgba(0,0,0,0.12), 0 0 90px rgba(239,66,66,0.12); }
.iphone::before { content: ''; position: absolute; right: -3px; top: 26%; width: 3px; height: 13%; border-radius: 0 3px 3px 0; background: #ffffff; }
.iphone::after { content: ''; position: absolute; left: -3px; top: 21%; width: 3px; height: 7%; border-radius: 3px 0 0 3px; background: #ffffff; box-shadow: 0 calc(var(--w) * 0.12) 0 rgba(0,0,0,0.12); }
.iscreen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * 0.14); overflow: hidden; background: #ffffff; isolation: isolate; }
.island { position: absolute; top: 2.1%; left: 50%; width: 33%; height: 4.4%; transform: translateX(-50%); border-radius: 999px; background: #ffffff; z-index: 6; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); }
.island::after { content: ''; position: absolute; right: 14%; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffffff, #ffffff 60%); }
.status { position: absolute; top: 2.5%; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 9% 0 11%; z-index: 5; font-size: calc(var(--w) * 0.046); font-weight: 600; color: #111111; letter-spacing: -0.01em; }
.status .r { display: flex; gap: 4px; align-items: center; }
.status svg { height: calc(var(--w) * 0.036); width: auto; }
.home-bar { position: absolute; bottom: 1.5%; left: 50%; width: 35%; height: 4px; transform: translateX(-50%); border-radius: 999px; background: rgba(255,255,255,0.8); z-index: 5; }

/* Lock screen */
.lock { position: absolute; inset: 0; background: radial-gradient(90% 50% at 50% 0%, rgba(239,66,66,0.42), transparent 62%),
  radial-gradient(80% 45% at 100% 100%, rgba(239,66,66,0.36), transparent 62%),
  radial-gradient(70% 60% at 0% 72%, rgba(239,66,66,0.5), transparent 66%), #ffffff; }
.lock .clock { position: absolute; top: 11.5%; left: 0; right: 0; text-align: center; color: #111111; }
.lock .clock small { display: block; font-size: calc(var(--w) * 0.048); font-weight: 500; opacity: 0.88; }
.lock .clock b { display: block; font-size: calc(var(--w) * 0.25); font-weight: 600; line-height: 1; letter-spacing: -0.04em; text-shadow: none; }
.notifs { position: absolute; left: 4.5%; right: 4.5%; bottom: 9%; display: flex; flex-direction: column; gap: 7px; }
.notif { display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px; border-radius: 17px; color: #111111;
  background: rgba(255,255,255,0.55); border: 1px solid rgba(17,17,17,0.18); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12); opacity: 0; transform: translateY(14px) scale(0.97); animation: notif 9s var(--ease) infinite; }
.notif:nth-child(1) { animation-delay: 0.3s; } .notif:nth-child(2) { animation-delay: 1.6s; } .notif:nth-child(3) { animation-delay: 2.9s; }
@keyframes notif { 0% { opacity: 0; transform: translateY(14px) scale(0.97); } 6%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-4px); } }
.notif .t { flex: 1; min-width: 0; }
.notif .h { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; font-weight: 600; }
.notif .h span { font-weight: 400; opacity: 0.65; }
.notif p { margin: 1px 0 0; font-size: 11px; line-height: 1.35; opacity: 0.95; }
.iphone.lockphone { right: 1%; top: 0; --w: 282px; z-index: 3; transform: rotate(2.5deg); }

/* Floating glass cards */
.float { position: absolute; z-index: 4; display: flex; align-items: center; gap: 11px; padding: 11px 16px 11px 11px; border-radius: 16px;
  background: rgba(255,255,255,0.8); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.12), inset 0 1px 0 rgba(0,0,0,0.06); animation: bob 7s ease-in-out infinite; }
.float b { display: block; font-weight: 600; font-size: 13px; letter-spacing: -0.01em; }
.float .m { display: block; color: #111111; font-size: 11.5px; }
.float .appicon { width: 36px; height: 36px; }
.float.f1 { left: -3%; top: -4px; }
.float.f2 { left: 34%; bottom: 4px; animation-delay: -3.5s; }
@keyframes bob { 50% { transform: translateY(-9px); } }

/* ---------- What's included ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 58px; }
.feature { position: relative; overflow: hidden; border-radius: 26px; padding: 28px 28px 0; min-height: 470px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.96)); border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.05); transition: border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.feature:hover { border-color: var(--line); transform: translateY(-3px); }
.feature::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 50% at 50% 100%, rgba(239,66,66,0.12), transparent 70%); }
.feature .copy { position: relative; z-index: 2; max-width: 380px; }
.feature .n { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: #111111; }
.feature h3 { margin: 8px 0 8px; font-size: 25px; line-height: 1.12; font-weight: 600; letter-spacing: -0.035em; }
.feature p { margin: 0; font-size: 15px; line-height: 1.55; color: #111111; }
.feature .viz { position: relative; height: 270px; margin-top: 28px; }
.feature .viz.fade { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }

/* 01: message inbox */
.inbox { position: absolute; left: 0; right: 0; top: 0; border-radius: 18px 18px 0 0; background: #ffffff; border: 1px solid var(--line-soft); border-bottom: 0; overflow: hidden; box-shadow: 0 -10px 40px rgba(0,0,0,0.12); }
.inbox-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line-softer); font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.inbox-top .tabs { display: flex; gap: 5px; font-size: 10.5px; font-weight: 500; }
.inbox-top .tabs span { padding: 3px 9px; border-radius: 999px; color: #111111; border: 1px solid var(--line-softer); }
.inbox-top .tabs span.on { color: #111111; background: var(--gold); border-color: var(--gold); }
.row { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-bottom: 1px solid var(--line-softer); font-size: 12px; }
.row .av { width: 40px; height: 40px; }
.row .t { flex: 1; min-width: 0; }
.row b { display: block; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.row .pv { display: block; color: #111111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 10.5px; color: #111111; }
.row .src { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: #111111; white-space: nowrap; }
.row .unread { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 10px var(--gold); }
.row.fresh { background: linear-gradient(90deg, rgba(239,66,66,0.1), transparent 70%); }

/* 02: iPhone rising out of the card */
.iphone.rise { --w: 248px; left: 50%; top: 0; margin-left: calc(var(--w) / -2); }
.msgs { position: absolute; inset: 0; background: #ffffff; display: flex; flex-direction: column; }
.msgs-head { padding: 17% 8% 3%; text-align: center; background: rgba(255,255,255,0.9); border-bottom: 1px solid rgba(17,17,17,0.18); }
.msgs-head .av { display: block; width: 42px; height: 42px; margin: 0 auto 4px; }
.msgs-head b { font-size: 11px; font-weight: 500; color: #111111; }
.msgs-head small { display: block; font-size: 9px; color: #111111; }
.msgs-body { flex: 1; padding: 9px 9px; display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; }
.msgs-body .ts { align-self: center; font-size: 9px; color: #111111; margin: 2px 0 4px; }
.bub { max-width: 80%; padding: 7px 11px; border-radius: 17px; line-height: 1.32; opacity: 0; animation: bub 8s var(--ease) infinite; }
.bub.me { align-self: flex-end; color: #111111; background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-bottom-right-radius: 5px; }
.bub.them { align-self: flex-start; color: #111111; background: #ffffff; border-bottom-left-radius: 5px; }
.bub.b1 { animation-delay: 0.3s; } .bub.b2 { animation-delay: 1.5s; } .bub.b3 { animation-delay: 2.7s; }
@keyframes bub { 0% { opacity: 0; transform: translateY(8px) scale(0.96); } 5%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
.delivered { align-self: flex-end; font-size: 9px; color: #111111; margin-top: -2px; opacity: 0; animation: bub 8s var(--ease) infinite 3s; }

/* 03: calendar widget */
.calw { position: absolute; left: 50%; top: 0; width: min(330px, 100%); transform: translateX(-50%); border-radius: 24px; padding: 18px;
  background: linear-gradient(180deg, #ffffff, #ffffff); border: 1px solid var(--line-soft); box-shadow: 0 24px 60px rgba(0,0,0,0.12), inset 0 1px 0 rgba(0,0,0,0.05); }
.calw-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.calw-h b { font-size: 14px; font-weight: 600; color: #111111; letter-spacing: 0.04em; text-transform: uppercase; }
.calw-h span { font-size: 11px; color: #111111; }
.calw-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 11px; }
.calw-g .d { color: #111111; font-weight: 600; font-size: 9.5px; }
.calw-g span { height: 24px; display: grid; place-items: center; border-radius: 50%; color: #111111; }
.calw-g span.mute { color: #111111; }
.calw-g span.has { position: relative; }
.calw-g span.has::after { content: ''; position: absolute; bottom: 1px; width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.calw-g span.sel { color: #111111; background: linear-gradient(180deg, var(--gold-2), var(--gold)); font-weight: 700; box-shadow: 0 0 18px rgba(239,66,66,0.12); animation: pop 6s var(--ease) infinite; }
@keyframes pop { 0%, 20% { transform: scale(0.6); opacity: 0.3; } 28%, 100% { transform: none; opacity: 1; } }
.event { margin-top: 14px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 13px; background: rgba(239,66,66,0.09); border: 1px solid rgba(239,66,66,0.32); font-size: 12px; opacity: 0; animation: pop-in 6s var(--ease) infinite; }
.event i { width: 3px; align-self: stretch; border-radius: 2px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.event b { display: block; font-weight: 600; font-size: 12.5px; }
.event .m { color: #111111; font-size: 11px; }
@keyframes pop-in { 0%, 28% { opacity: 0; transform: translateY(6px); } 36%, 100% { opacity: 1; transform: none; } }

/* 04: reminders with switches */
.rems { position: absolute; left: 50%; top: 0; width: min(350px, 100%); transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; }
.rem { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(180deg, #ffffff, #ffffff); border: 1px solid var(--line-soft); box-shadow: inset 0 1px 0 rgba(0,0,0,0.04); }
.rem .t { flex: 1; min-width: 0; }
.rem b { display: block; font-weight: 600; font-size: 13.5px; letter-spacing: -0.01em; }
.rem .m { display: block; color: #111111; font-size: 11.5px; }
.sw { flex: none; width: 42px; height: 25px; border-radius: 999px; background: #ffffff; position: relative; animation: sw-bg 7s var(--ease) infinite; }
.sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%; background: #ffffff; box-shadow: 0 2px 6px rgba(0,0,0,0.12); animation: sw-knob 7s var(--ease) infinite; }
.rem:nth-child(2) .sw, .rem:nth-child(2) .sw::after { animation-delay: 0.5s; }
.rem:nth-child(3) .sw, .rem:nth-child(3) .sw::after { animation-delay: 1s; }
@keyframes sw-bg { 0%, 14% { background: #ffffff; box-shadow: none; } 22%, 94% { background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: 0 0 14px rgba(239,66,66,0.12); } 100% { background: #ffffff; } }
@keyframes sw-knob { 0%, 14% { transform: none; } 22%, 94% { transform: translateX(17px); } 100% { transform: none; } }

/* ---------- Dark band: the follow up sequence ---------- */
.band { position: relative; margin-top: 140px; padding: 110px 0 120px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 55% at 50% 0%, rgba(239,66,66,0.13), transparent 70%), linear-gradient(180deg, #ffffff, #ffffff); overflow: hidden; }
.browser { max-width: 860px; margin: 56px auto 0; border-radius: 18px; overflow: hidden; background: #ffffff; border: 1px solid rgba(17,17,17,0.18); box-shadow: var(--shadow-lg), 0 0 80px rgba(239,66,66,0.06); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: linear-gradient(180deg, #ffffff, #ffffff); border-bottom: 1px solid var(--line-softer); }
.browser-bar > i { width: 11px; height: 11px; border-radius: 50%; }
.browser-bar > i:nth-child(1) { background: #ef4242; } .browser-bar > i:nth-child(2) { background: #ef4242; } .browser-bar > i:nth-child(3) { background: #ef4242; }
.browser-bar .url { margin: 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 16px; border-radius: 8px; background: #ffffff; color: #111111; font-size: 11.5px; border: 1px solid var(--line-softer); }
.browser-bar .url svg { width: 10px; height: 10px; }
.seq { padding: 26px 28px 30px; }
.seq-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.seq-head .who { display: flex; align-items: center; gap: 11px; }
.seq-head .who .av { width: 38px; height: 38px; }
.seq-head b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.seq-head small { display: block; color: #111111; font-size: 12px; }
.track { position: relative; padding-left: 36px; }
.track::before { content: ''; position: absolute; left: 12px; top: 18px; bottom: 34px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--gold), rgba(239,66,66,0.15)); }
.step { position: relative; display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-softer); }
.step:first-child { border-top: 0; }
.step::before { content: ''; position: absolute; left: -31px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #ffffff; border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(239,66,66,0.08); }
.step.done::before { background: var(--gold); box-shadow: 0 0 14px rgba(239,66,66,0.12); }
.step .when { font-size: 12px; font-weight: 600; color: #111111; }
.step .what { font-size: 14.5px; color: #111111; letter-spacing: -0.01em; }
.step .what small { display: block; color: #111111; font-size: 12.5px; }
.step .ch { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line-soft); color: #111111; background: rgba(255,255,255,0.02); }
.step .ch .appicon { width: 22px; height: 22px; box-shadow: 0 0 10px var(--glow); }
.step.booked { margin-top: 8px; padding: 14px 16px 14px 0; border: 1px solid rgba(239,66,66,0.45); border-radius: 14px; background: rgba(239,66,66,0.07); box-shadow: 0 0 30px rgba(239,66,66,0.08); }
.step.booked .when { padding-left: 16px; }

/* ---------- Closing ---------- */
/* A quiet label under every mockup on the audit homepage: the screens show sample data */
.sample-note { margin: 26px auto 0; text-align: center; font-size: 12.5px; color: #111111; letter-spacing: 0.01em; }

.closer { padding-top: 140px; padding-bottom: 30px; text-align: center; }
.btn-gold { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 30px; margin-top: 32px; border-radius: 999px; overflow: hidden;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, #ef4242); color: #111111; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; text-decoration: none;
  box-shadow: 0 16px 44px rgba(239,66,66,0.12), inset 0 1px 0 rgba(0,0,0,0.12), inset 0 -2px 6px rgba(0,0,0,0.12); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.btn-gold::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 85%, 100% { left: 130%; } }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 22px 54px rgba(239,66,66,0.12), inset 0 1px 0 rgba(0,0,0,0.12); }
.btn-gold svg { width: 16px; height: 16px; }

/* ---------- Footer ---------- */
.foot { margin-top: 90px; border-top: 1px solid var(--line-soft); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 34px; font-size: 13px; color: #111111; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: #111111; text-decoration: none; }
.foot a:hover { color: #111111; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal pages ---------- */
.doc { max-width: 720px; margin: 0 auto; padding-top: 40px; padding-bottom: 20px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); text-align: left; margin: 0; letter-spacing: -0.04em; }
.doc .updated { color: #111111; font-size: 14px; margin: 8px 0 30px; }
.doc h2 { font-size: 19px; font-weight: 600; margin: 34px 0 8px; color: #111111; letter-spacing: -0.02em; }
.doc p, .doc li { color: #111111; font-size: 15.5px; }
.doc ul { padding-left: 20px; margin: 8px 0; }
.doc li { margin: 4px 0; }
.doc a { color: #111111; text-underline-offset: 2px; }
.doc .quote { margin: 12px 0; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--panel-solid); display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #111111; }
.doc .quote input { margin-top: 4px; accent-color: var(--gold); }
.doc strong { color: #111111; font-weight: 600; }

/* ---------- Reveal on scroll (visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .stage-xl { height: auto; display: flex; flex-direction: column; align-items: center; gap: 36px; }
  .mac { position: relative; width: 100%; top: 0; }
  .iphone.lockphone { position: relative; right: auto; transform: none; --w: 270px; }
  .float { display: none; }
}
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .feature { min-height: 0; padding: 24px 20px 0; }
  .feature .viz { height: 250px; }
  .screen { grid-template-columns: 1fr; height: 360px; }
  .app-side { display: none; }
  .board { grid-template-columns: 1fr 1fr; }
  .board .col:nth-child(3) { display: none; }
  .col { min-height: 0; }
  .block { padding-top: 100px; }
  .band { margin-top: 100px; padding: 84px 0 92px; }
  .seq { padding: 20px 16px 22px; }
  .step { grid-template-columns: 1fr; gap: 4px; }
  .step .ch { justify-self: start; margin-top: 4px; }
  .step.booked { padding-left: 14px; } .step.booked .when { padding-left: 0; }
  .mac-base { margin: 0 -3%; }
  .form-card { padding: 16px; }
  .chip { font-size: 13px; }
}
@media (max-width: 540px) { [data-alvand-form][data-mobile-height] { min-height: 760px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .notif, .bub, .delivered, .event { opacity: 1; transform: none; }
  .sw { background: var(--gold); } .sw::after { transform: translateX(17px); }
  .js .reveal { opacity: 1; transform: none; }
}
@media (forced-colors: active) { .gold { color: #111111; background: none; } }

/* Fold fix (Nov 13): homepage only (body.home). Tighter hero so Q1 and its first answers show without scrolling at 1280x800 and 390x844. /dentists and legal pages are unchanged. */
.home .top { height: 64px; }
.home .hero { padding-top: 18px; padding-bottom: 16px; }
.home .hero .eyebrow { margin-bottom: 14px; }
.home .hero h1 { max-width: 1040px; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; }
.home .hero h1 .gold { display: block; }
.home .hero .lede { margin-top: 14px; max-width: 660px; font-size: clamp(15.5px, 1.6vw, 18px); line-height: 1.5; }
.home .hero .chips { margin-top: 18px; }
.home .hero .form-card { margin-top: 22px; padding-top: 14px; }
.home .hero .form-head { margin-bottom: 8px; }
@media (max-width: 540px) {
  .home .top { height: 56px; }
  .home .hero { display: flex; flex-direction: column; align-items: center; padding-top: 10px; }
  .home .hero .eyebrow { margin-bottom: 12px; padding: 5px 11px 5px 9px; font-size: 11px; }
  .home .hero h1 { font-size: 33px; letter-spacing: -0.045em; }
  .home .hero .lede { margin-top: 12px; font-size: 15px; }
  .home .hero .form-card { order: 1; width: 100%; margin-top: 18px; padding: 12px 12px 14px; }
  .home .hero .fine { order: 2; }
  .home .hero .chips { order: 3; margin-top: 18px; }
}

/* ---------- Lead magnet guides ----------
   Same shell as the homepage (top bar, eyebrow, card, red button, footer),
   on a white page. Scoped to body.guide so the dark homepage is unchanged. */
body.guide {
  --bg: #ffffff;
  --panel-solid: #ffffff;
  --line: rgba(17, 17, 17, 0.12);
  --line-soft: rgba(17, 17, 17, 0.12);
  --line-softer: rgba(17, 17, 17, 0.08);
  --ink: #111111;
  --ink-2: #3a3a3a;
  --ink-3: #5c5c5c;
  --gold: #ef4242;
  --gold-2: #ef4242;
  --gold-deep: #c42e2e;
  --red: #ef4242;
  --link: #ef4242;
  color-scheme: light;
  background: #ffffff;
}
body.guide .gold { background: none; color: #ef4242; -webkit-text-fill-color: #ef4242; animation: none; }
body.guide .eyebrow {
  border-color: rgba(239, 66, 66, 0.35);
  background: #fff5f5;
  color: #ef4242;
  box-shadow: none;
}
body.guide .eyebrow i,
body.guide .dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4242; box-shadow: none; display: inline-block; }
body.guide .btn-ghost { background: #ffffff; color: #111111; border-color: rgba(17, 17, 17, 0.16); }
body.guide .btn-ghost:hover { border-color: #ef4242; color: #ef4242; background: #fff5f5; }
body.guide .brand img { filter: none; }
body.guide .form-card {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.06);
}
body.guide .form-card::before,
body.guide .form-card::after { display: none; }
body.guide .form-head { color: #5c5c5c; }
body.guide .fine a,
body.guide .legal a,
body.guide .guide-doc a { color: #ef4242; }
body.guide .foot { border-top-color: rgba(17, 17, 17, 0.1); }
.guide-points { list-style: none; padding: 0; margin: 28px auto 0; max-width: 560px; text-align: left; display: grid; gap: 10px; }
.guide-points li { display: flex; gap: 12px; align-items: flex-start; color: #3a3a3a; font-size: 15.5px; line-height: 1.45; }
.guide-points li::before { content: ''; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: #ef4242; flex: none; }
.btn-red, body.guide a.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; background: #ef4242; color: #ffffff !important;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em; text-decoration: none;
  box-shadow: 0 12px 28px rgba(239, 66, 66, 0.28);
}
.btn-red:hover, body.guide a.button:hover { background: #d83636; }
body.guide .guide-doc { max-width: 860px; margin: 0 auto; padding-top: 12px; padding-bottom: 20px; }
body.guide .guide-doc h1 { text-align: left; margin: 8px 0 12px; max-width: none; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; }
body.guide .guide-doc h1 em { font-style: normal; color: #ef4242; }
body.guide .subtitle { margin: 0 0 18px; color: #3a3a3a; font-size: 18px; line-height: 1.5; }
body.guide .guide-download { margin: 0 0 28px; }
body.guide .section-label { display: block; margin: 0 0 8px; color: #ef4242; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
body.guide .guide-section { margin: 0 0 36px; }
body.guide .guide-section h2, body.guide .page-title { margin: 0 0 10px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; line-height: 1.15; color: #111111; }
body.guide .guide-section p { color: #3a3a3a; }
body.guide .numbers, body.guide .rules, body.guide .compare, body.guide .questions { display: grid; gap: 12px; margin: 16px 0; }
body.guide .numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.guide .numbers > div, body.guide .question, body.guide .rules > div, body.guide .compare > div, body.guide .honest, body.guide .howto, body.guide .cta {
  border: 1px solid rgba(17, 17, 17, 0.12); border-radius: 16px; background: #ffffff; padding: 16px;
}
body.guide .numbers b { display: block; font-size: 28px; letter-spacing: -0.04em; color: #111111; }
body.guide .numbers span, body.guide .fine { color: #5c5c5c; font-size: 13px; }
body.guide .guide-doc .fine { text-align: left; }
body.guide .cta, body.guide .cta .fine, body.guide .legal { text-align: center; }
body.guide .questions { grid-template-columns: 1fr; }
body.guide .question b, body.guide .rules h3, body.guide .compare h3 { display: block; margin: 0 0 6px; font-size: 16px; color: #111111; }
body.guide .question p, body.guide .rules p, body.guide .compare li { margin: 0; color: #3a3a3a; font-size: 15px; }
body.guide .write { min-height: 36px; margin-top: 12px; border-bottom: 1px solid rgba(17, 17, 17, 0.2); }
body.guide .rules, body.guide .compare { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.guide .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.guide .check { margin: 8px 0 0; padding-left: 18px; }
body.guide .guide-doc table { width: 100%; min-width: 680px; border-collapse: collapse; margin: 12px 0; font-size: 13.5px; }
body.guide .guide-doc { overflow-x: auto; }
body.guide th, body.guide td { border: 1px solid rgba(17, 17, 17, 0.12); padding: 8px 10px; text-align: left; vertical-align: top; color: #111111; }
body.guide th { background: #fff5f5; font-size: 12px; letter-spacing: 0.02em; }
body.guide td small { display: block; color: #5c5c5c; font-size: 11px; }
body.guide tr.example td { background: #fafafa; }
body.guide .steps { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
body.guide .steps li { color: #3a3a3a; }
body.guide .cta { text-align: center; margin-top: 12px; }
body.guide .cta .pre { margin: 0 0 8px; color: #ef4242; font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
body.guide .cta h2 { margin: 0 auto 8px; max-width: 640px; }
body.guide .cta p { margin: 0 auto 4px; max-width: 560px; }
body.guide .legal { margin-top: 12px; font-size: 13px; color: #5c5c5c; }
@media (max-width: 760px) {
  body.guide .numbers, body.guide .rules, body.guide .compare { grid-template-columns: 1fr; }
  body.guide .guide-doc h1 { font-size: 34px; }
}
