/* DSSI concept: one Frisco day of Texas sun. Spec work by Pina Studios. */
:root {
  --day: #F8FAFA;
  --day-2: #EDF2F2;
  --day-3: #E2EAEA;
  --ink: #3A2234;
  --ink-2: #5F4A5A;
  --shade: #3A2234;
  --shade-2: #4B2F45;
  --on-shade: #F8FAFA;
  --on-shade-2: #DCCFD8;
  --action: #04787C;
  --action-hover: #03676A;
  --sun: #F39A1E;
  --sun-core: #FFC25A;
  --line: rgba(58, 34, 52, .18);
  --line-strong: rgba(58, 34, 52, .42);
  --sky-am: #E3EDF1;
  --sky-noon: #F3F7F8;
  --sky-pm: #F7EAD8;
  --font-display: 'Marcellus', 'Times New Roman', serif;
  --font-text: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --sx: 10px;
  --sy: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--ink-2) var(--day-2); }
.reduce { scroll-behavior: auto; }
body { margin: 0; background: var(--day); color: var(--ink); font: 400 1.125rem/1.6 var(--font-text); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--action); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--action-hover); text-decoration-thickness: 2px; }
::selection { background: var(--sky-pm); color: var(--ink); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 2px; }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.5rem, 4.2vw + .6rem, 4.75rem); }
h2 { font-size: clamp(2rem, 2.4vw + .9rem, 3.1rem); }
h3 { font: 700 1.2rem/1.3 var(--font-text); margin: 0; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--day); color: var(--ink); padding: 10px 16px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.concept-ribbon { background: var(--sky-pm); color: var(--ink); font-size: .875rem; line-height: 1.4; padding: 8px var(--gutter); text-align: center; }

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 3px; border: 0; font: 700 1rem/1 var(--font-text); text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease-out), transform .2s var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn-action { background: var(--action); color: #fff; }
.btn-action:hover { background: var(--action-hover); color: #fff; }
.btn-day { background: var(--day); color: var(--shade); }
.btn-day:hover { background: #fff; color: var(--shade); }
.btn-wide { width: 100%; }
input[type="text"], input[type="tel"], input[type="search"], select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 3px; background: #fff; color: var(--ink); font: 400 1.0625rem/1.3 var(--font-text); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%233A2234' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
input::placeholder { color: #6E5A69; opacity: 1; }
label { display: block; font-weight: 700; font-size: 1rem; margin: 0 0 6px; }

/* Header: the shade */
.site-head { background: var(--shade); color: var(--on-shade); position: relative; z-index: 5; }
.head-inner { max-width: 1320px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { flex: none; display: block; }
.brand img { width: 214px; height: auto; }
.nav { flex: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 24px; flex-wrap: wrap; justify-content: center; }
.nav a, .head-phone { color: var(--on-shade); text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav a:hover, .head-phone:hover { color: #fff; text-decoration: underline; text-underline-offset: .3em; }
.head-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.site-head :focus-visible { outline-color: var(--day); }

/* Hero: the day */
.day { position: relative; background: var(--day); overflow: hidden; isolation: isolate; }
.sky { position: absolute; inset: 0; z-index: -1; }
.dial { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.dial-now.is-night { transform: translate(calc(var(--now-x, 50vw) - 50%), var(--now-y, 40px)); }
.dial-arc { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 6; }
.dial-horizon { stroke: var(--line-strong); stroke-width: 1; }
.dial-ticks line { stroke: var(--ink-2); stroke-width: 1.2; }
.dial-ticks text { font: 400 15px var(--font-display); fill: var(--ink-2); text-anchor: middle; dominant-baseline: middle; }
.sun-disc { fill: var(--sun); }
.sun-halo { fill: var(--sun-core); opacity: .28; }
.dial-now, .dial-rise, .dial-set { position: absolute; margin: 0; font-size: .9375rem; color: var(--ink-2); line-height: 1.3; }
.dial-now { left: 0; top: 0; transform: translate(var(--now-x, 50vw), var(--now-y, 40px)); font-weight: 700; color: var(--ink); white-space: nowrap; }
.dial-now.is-left { transform: translate(calc(var(--now-x, 50vw) - 100%), var(--now-y, 40px)); }
.dial-ticks text.is-covered { opacity: 0; }
.mohs-ticks line { stroke: var(--ink-2); stroke-width: 1.2; }
.mohs-ticks line.is-on { stroke: var(--ink); stroke-width: 2; }
.dial-rise, .dial-set { bottom: 70px; }
.dial-rise { left: var(--gutter); }
.dial-set { right: var(--gutter); text-align: right; }
.dial-rise span, .dial-set span { display: block; font-family: var(--font-display); font-size: .9375rem; }
.dial-rise b, .dial-set b { font-weight: 700; color: var(--ink); }
.land { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; }
.land svg { width: 100%; height: 100%; display: block; }
.land-far { fill: var(--day-2); }
.land-near { fill: var(--day-3); }

.day { min-height: clamp(660px, calc(100svh - 122px), 860px); }
.sky { height: 100%; }
.day-inner { position: relative; max-width: 1120px; min-height: clamp(660px, calc(100svh - 122px), 860px); margin: 0 auto; padding: clamp(118px, 15vh, 160px) var(--gutter) 128px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.day-inner h1 { max-width: 12.5ch; font-size: clamp(2.5rem, 3.1vw + .8rem, 3.9rem); }
.lede { font-size: 1.1875rem; max-width: 40em; margin: 20px 0 30px; color: var(--ink); text-wrap: balance; }
.lede q { quotes: "\201C" "\201D"; font-style: normal; font-weight: 700; }

.request { width: min(100%, 860px); text-align: left; background: var(--day); border: 1px solid var(--line-strong); border-radius: 3px; padding: 18px; box-shadow: var(--sx) var(--sy) 34px rgba(58, 34, 52, .13); transition: box-shadow 1.2s var(--ease-out); }
.bar { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) auto; gap: 14px; align-items: end; }
.bar label, .when legend, .more label { display: block; font-weight: 700; font-size: .9375rem; margin: 0 0 6px; padding: 0; }
.when { border: 0; margin: 0; padding: 0; min-width: 0; }
.when-options { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); border-radius: 3px; overflow: hidden; }
.when-options label { margin: 0; position: relative; font-weight: 600; font-size: 1rem; }
.when-options input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.when-options span { display: flex; align-items: center; justify-content: center; min-height: 46px; background: #fff; transition: background-color .2s, color .2s; }
.when-options label + label span { border-left: 1px solid var(--line-strong); }
.when-options input:checked + span { background: var(--shade); color: var(--on-shade); }
.when-options input:focus-visible + span { outline: 3px solid var(--action); outline-offset: -3px; }
.bar .btn { min-height: 48px; white-space: nowrap; }
.more { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.more[hidden] { display: none; }
.field-error { grid-column: 1 / -1; margin: 0; color: #8A1C3A; font-weight: 600; font-size: 1rem; }
.sent { margin-top: 14px; padding: 14px 16px; border: 1px solid rgba(4, 120, 124, .55); background: #E3F1F1; border-radius: 3px; }
.sent-title { font-weight: 700; margin-bottom: 4px; }
.sent p:last-child { margin: 0; }

.ins-check { width: min(100%, 860px); margin-top: 18px; text-align: left; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; align-items: center; }
.ins-check label { margin: 0; }
.verdict { grid-column: 1 / -1; display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 3px; background: rgba(255, 255, 255, .72); font-size: 1rem; }
.verdict b { font-weight: 700; }
.verdict[data-state="yes"] { border-color: rgba(4, 120, 124, .55); background: #E3F1F1; }
.verdict[data-state="no"] { border-color: rgba(58, 34, 52, .5); background: #F1E9EE; }
.verdict[data-state="maybe"] { border-color: var(--line-strong); background: #fff; }

/* Mohs day: the sky */
.mohs { background: var(--sky, var(--sky-noon)); transition: background-color .3s linear; }
.mohs-pin { max-width: 1320px; margin: 0 auto; padding: clamp(64px, 9vh, 104px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 28px clamp(40px, 6vw, 96px); align-items: start; }
.is-pinned .mohs-pin { min-height: 100svh; align-content: center; }
.mohs-sky { grid-column: 1; grid-row: 2; }
.mohs-dial { width: 100%; max-width: 520px; overflow: visible; display: block; }
.dial-arc-done { fill: none; stroke: var(--sun); stroke-width: 2.5; stroke-linecap: round; }
.mohs-head { grid-column: 1; grid-row: 1; }
.mohs-head h2 { margin-bottom: 20px; max-width: 16ch; }
.mohs-head p { max-width: 34em; }
.mohs-steps { grid-column: 2; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.mohs-steps li { padding: 18px 0 16px; border-bottom: 1px solid var(--line-strong); transition: opacity .35s var(--ease-out); }
.mohs-steps h3 .t { font: 400 1.2rem/1.3 var(--font-display); color: var(--ink-2); }
.mohs-steps h3 { margin-bottom: 6px; }
.mohs-steps p:last-child { margin: 0; }
.is-pinned .mohs-steps li { opacity: .36; }
.is-pinned .mohs-steps li.is-on { opacity: 1; }

/* Team */
.team { padding: clamp(80px, 11vh, 128px) 0; }
.team h2 { margin-bottom: 40px; }
.clinicians { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.clinicians img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; box-shadow: var(--sx) var(--sy) 30px rgba(58, 34, 52, .16); margin-bottom: 20px; transition: box-shadow 1.2s var(--ease-out); }
.clinicians h3 { font: 400 1.6rem/1.15 var(--font-display); margin-bottom: 8px; }
.cred { font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.clinicians p:last-child { margin: 0; color: var(--ink-2); font-size: 1.0625rem; }

/* What we treat */
.care { background: var(--day-2); padding: clamp(80px, 11vh, 128px) 0; }
.care h2 { margin-bottom: 36px; }
.care-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 40px); }
.care h3 { font: 400 1.45rem/1.2 var(--font-display); padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.care ul { list-style: none; margin: 0; padding: 0; }
.care li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
.care-link { margin: 14px 0 0; font-weight: 700; }

/* Family-owned: the shade */
.shade { background: var(--shade); color: var(--on-shade); padding: clamp(80px, 11vh, 128px) 0; }
.shade a { color: #fff; }
.shade :focus-visible { outline-color: var(--day); }
.shade-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 88px); align-items: center; }
.shade h2 { margin-bottom: 22px; max-width: 14ch; }
.shade-copy > p { color: var(--on-shade-2); max-width: 34em; }
.facts { margin: 28px 0 0; border-top: 1px solid rgba(248, 250, 250, .25); }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(248, 250, 250, .25); }
.facts dt { font-family: var(--font-display); font-size: 1.15rem; }
.facts dd { margin: 0; color: var(--on-shade-2); }
.crew { margin: 0; }
.crew img { width: 100%; }
.crew figcaption { margin-top: 10px; font-size: .9375rem; color: var(--on-shade-2); }

/* A patient's words */
.words { padding: clamp(88px, 12vh, 140px) 0; }
.words blockquote { margin: 0; max-width: 980px; }
.words blockquote p { font: 400 clamp(1.7rem, 1.6vw + 1rem, 2.5rem)/1.3 var(--font-display); margin: 0 0 20px; text-wrap: pretty; }
.words footer { font-size: 1rem; color: var(--ink-2); }

/* Insurance: a ruled grid */
.insurance { background: var(--day-2); padding: clamp(80px, 11vh, 128px) 0; }
.ins-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 32px; }
.ins-head h2 { grid-row: 1 / span 2; max-width: 12ch; }
.ins-head p { margin: 0; }
.ins-filter { font-weight: 700; }
.ins-filter input { margin-top: 6px; }
.plans { list-style: none; margin: 0; padding: 0; columns: 3 16rem; column-gap: 40px; border-top: 1px solid var(--line-strong); }
.plans li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.plans li[hidden] { display: none; }
.plans-empty { padding: 16px 0; color: var(--ink-2); }

/* Visit */
.visit { padding: clamp(80px, 11vh, 128px) 0; }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 88px); }
.visit h2 { margin-bottom: 16px; }
.addr { font: 400 1.6rem/1.35 var(--font-display); margin-bottom: 24px; }
.visit-facts { margin: 0; border-top: 1px solid var(--line-strong); }
.visit-facts div { display: grid; grid-template-columns: 10rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.visit-facts dt { font-weight: 700; }
.visit-facts dd { margin: 0; }

/* Footer */
.site-foot { background: var(--shade); color: var(--on-shade-2); padding: 64px 0 120px; }
.site-foot a { color: #fff; }
.site-foot :focus-visible { outline-color: var(--day); }
.foot-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; }
.foot-brand img { width: 240px; margin-bottom: 14px; }
.foot-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.foot-facts dt { font-family: var(--font-display); color: var(--on-shade); }
.foot-facts dd { margin: 4px 0 0; }
.foot-note { max-width: var(--wrap); margin: 48px auto 0; padding: 20px var(--gutter) 0; border-top: 1px solid rgba(248, 250, 250, .2); font-size: .9375rem; }

/* 404 */
.lost { max-width: 760px; margin: 0 auto; padding: 120px var(--gutter) 160px; }
.lost-sun { width: 220px; color: var(--ink-2); margin-bottom: 32px; }
.lost h1 { margin-bottom: 18px; }

/* Mobile quick actions */
.mobile-cta { display: none; }

@media (max-width: 1100px) {
  .head-phone { display: none; }
}
@media (max-width: 960px) {
  .head-inner { flex-wrap: wrap; gap: 10px 16px; }
  .brand img { width: 176px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .nav ul { flex-wrap: nowrap; justify-content: flex-start; gap: 20px; padding-bottom: 6px; }
  .nav a { white-space: nowrap; }
  .head-actions { margin-left: auto; }
  .day { min-height: 0; }
  .sky { inset: 0 0 auto 0; height: 300px; }
  .land { height: 54px; }
  .dial-rise, .dial-set { bottom: 64px; font-size: .875rem; }
  .sun-halo { transform: scale(.7); }
  .day-inner { min-height: 0; padding-top: 320px; padding-bottom: 64px; align-items: stretch; text-align: left; }
  .day-inner h1 { max-width: 15ch; }
  .lede { text-wrap: pretty; }
  .bar { grid-template-columns: 1fr 1fr; }
  .bar .btn { grid-column: 1 / -1; }
  .nav { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  .mohs-pin { grid-template-columns: 1fr; min-height: 0; }
  .mohs-steps { grid-column: 1; grid-row: auto; }
  .clinicians { grid-template-columns: 1fr; max-width: 460px; }
  .care-cols { grid-template-columns: 1fr 1fr; }
  .shade-grid, .visit-grid, .ins-head, .foot-inner { grid-template-columns: 1fr; }
  .ins-head h2 { grid-row: auto; }
}
@media (max-width: 700px) {
  body { font-size: 1.0625rem; }
  .head-actions .btn { display: none; }
  .bar, .more { grid-template-columns: 1fr; }
  .ins-check { grid-template-columns: 1fr; }
  .care-cols, .foot-facts { grid-template-columns: 1fr; }
  .facts div, .visit-facts div { grid-template-columns: 1fr; gap: 2px; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--shade); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; min-height: 48px; color: var(--on-shade); font-weight: 700; text-decoration: none; border: 1px solid rgba(248, 250, 250, .4); border-radius: 3px; font-size: .9375rem; }
  .mobile-cta a.is-primary { background: var(--day); color: var(--shade); border-color: var(--day); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
