/* Hive | Med Spa masterclass pages. Brand Standards No. 2, Med Spa edition: quiet paper, a touch of gold.
   Three inks, Mona Sans (expanded for display), square corners, hairline and heavy rules. */
:root {
  color-scheme: light;
  --yellow: #fdd803;
  --ink: #0d0c0a;
  --paper: #f4efe2;
  --paper-2: #eae3d2;
  --graphite: #5e5a52;
  --ash: #a9a396;
  --display: "Mona Sans", "Helvetica Neue", Arial, sans-serif; /* always with font-stretch: 125% */
  --sans: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --g: clamp(16px, 4vw, 56px);
  --mark: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible, .on-yellow :focus-visible { outline-color: var(--ink); }
.on-ink :focus-visible { outline-color: var(--yellow); }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--g); }
.wrap.narrow { max-width: 800px; }

.label { margin: 0; font: 600 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.cap { margin: 0; font: 400 14px/1.45 var(--sans); color: var(--graphite); }
.on-ink .cap { color: var(--ash); }

/* ---------- Lockup ---------- */
.top { display: flex; justify-content: center; padding: 22px var(--g) 6px; }
.lockup { display: inline-flex; align-items: center; gap: .32em; font-size: 32px; color: var(--ink); text-decoration: none; }
.lockup .tile { width: 1em; height: 1em; flex: none; overflow: hidden; border-radius: 22%; background: var(--yellow); }
.lockup .tile img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.lockup b { font: 900 1em/1 var(--display); font-stretch: 125%; letter-spacing: -.055em; }
.lockup small { margin-left: .3em; padding-left: .7em; border-left: 1px solid currentColor; font: 600 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; }
h1 { font: 700 clamp(38px, 6.2vw, 72px)/1.02 var(--display); font-stretch: 125%; letter-spacing: -.025em; text-wrap: balance; }
h2 { font: 800 clamp(30px, 4vw, 48px)/1.04 var(--display); font-stretch: 125%; letter-spacing: -.03em; text-wrap: balance; }
h1 em, h2 em { font-style: normal; background: var(--mark); background-repeat: no-repeat; background-size: 100% 100%; padding-inline: .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.on-ink h2 em { background: none; padding: 0; color: var(--yellow); }

/* Signature moment: the marker draws across the one marked phrase. Content is complete without it. */
.js .reveal em { background-size: 0% 100%; transition: background-size .7s cubic-bezier(.2, .7, .2, 1) .25s; }
.js .reveal.in em { background-size: 100% 100%; }
@media (prefers-reduced-motion: reduce) { .js .reveal em { background-size: 100% 100%; transition: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 24px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .18s ease-out, background-color .18s ease-out, color .18s ease-out; }
.btn.big { min-width: 260px; padding: 20px 32px; font-size: 18px; }
.btn.y { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn[disabled] { cursor: progress; opacity: .7; }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn.ghost:hover { background: var(--ink); color: var(--paper); }
}
.btn:active { transform: none; }

/* ---------- Event line ---------- */
.when { display: inline-flex; flex-wrap: wrap; justify-content: center; border: 1px solid currentColor; font: 600 15px/1.2 var(--sans); }
.when span { padding: 10px 14px; }
.when span + span { border-left: 1px solid currentColor; }
@media (max-width: 560px) {
  .when { flex-direction: column; width: 100%; }
  .when span + span { border-left: 0; border-top: 1px solid currentColor; }
}

/* ---------- Ink halftone treatment (brand) ---------- */
.engrave { position: relative; overflow: hidden; background: var(--plate, var(--yellow)); }
.engrave img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.5); mix-blend-mode: multiply; }
.engrave.inv img { filter: grayscale(1) contrast(1.2) brightness(1.1); mix-blend-mode: normal; }
.engrave canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .4s; }
.engrave.ready canvas { opacity: 1; }
.engrave.ready img { opacity: 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(24px, 4vw, 48px) 0 clamp(32px, 5vw, 56px); text-align: center; }
.hero .wrap { display: grid; justify-items: center; gap: clamp(16px, 2vw, 24px); }
.hero h1 { max-width: 17ch; }
.sub { margin: 0; max-width: 52ch; color: var(--graphite); font-size: clamp(17px, 1.7vw, 20px); text-wrap: pretty; }
.vsl { position: relative; width: min(100%, 720px); aspect-ratio: 16 / 9; margin: 10px 0 6px; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 6px; background: var(--ink); }
.vsl .engrave { position: absolute; inset: 0; --plate: var(--ink); }
.vsl iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vsl figcaption { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 8px 12px; background: var(--paper); color: var(--ink); font: 600 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.play { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 84px; height: 84px; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: var(--yellow); color: var(--ink); cursor: pointer; }
.play svg { width: 28px; height: 28px; margin-left: 5px; fill: currentColor; }
.hero .cta { display: grid; justify-items: center; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.paper-2 { background: var(--paper-2); }
.on-ink { background: var(--ink); color: var(--paper); }
.head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); padding-top: 18px; border-top: 4px solid currentColor; }
.head p { margin: 0; max-width: 58ch; color: var(--graphite); font-size: 18px; }

.learn { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--ink); }
.learn li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--g); padding-block: 24px; border-top: 1px solid var(--ink); }
.learn b { font: 700 22px/1.15 var(--display); font-stretch: 125%; letter-spacing: -.01em; }
.learn span { max-width: 52ch; color: var(--graphite); font-size: 18px; }
@media (max-width: 700px) { .learn li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); }
.proof > div { display: grid; align-content: start; gap: 12px; padding: 24px 22px 22px; border-right: 1px solid var(--ink); }
.proof > div:last-child { border-right: 0; }
.proof p { margin: 0; font-size: 17px; }
.proof .fig { font: 900 clamp(44px, 5.4vw, 68px)/.9 var(--display); font-stretch: 125%; letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.fine { margin-top: 16px; }
@media (max-width: 900px) {
  .proof { grid-template-columns: minmax(0, 1fr); }
  .proof > div { border-right: 0; border-bottom: 1px solid var(--ink); }
  .proof > div:last-child { border-bottom: 0; }
}

.teach { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--g); align-items: center; }
.teach .engrave { aspect-ratio: 4 / 5; --plate: var(--ink); }
.teach .copy { display: grid; gap: 18px; }
.teach .copy p { margin: 0; max-width: 52ch; font-size: 18px; }
.teach .copy .role { color: var(--graphite); }
.bring { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--ink); }
.bring p { font-size: 17px; }
@media (max-width: 800px) {
  .teach { grid-template-columns: minmax(0, 1fr); }
  .teach .engrave { aspect-ratio: 16 / 10; }
}

.fit { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-top: 1px solid var(--ink); }
.fit > div { padding: 22px 24px 8px 0; }
.fit > div + div { padding-left: 24px; border-left: 1px solid var(--ink); }
.fit h3 { margin: 0 0 14px; font: 800 26px/1 var(--display); font-stretch: 125%; letter-spacing: -.02em; }
.fit ul { margin: 0; padding: 0; list-style: none; }
.fit li { padding-block: 14px; border-top: 1px solid var(--ink); font-size: 17px; }
.fit .no li { color: var(--graphite); }
@media (max-width: 760px) {
  .fit { grid-template-columns: minmax(0, 1fr); }
  .fit > div + div { padding-left: 0; border-left: 0; }
}

.close { text-align: center; }
.close .wrap { display: grid; justify-items: center; gap: 22px; }
.close h2 { max-width: 16ch; }

/* ---------- Footer ---------- */
.foot { padding: 32px 0 40px; background: var(--ink); color: var(--ash); font-size: 13px; border-top: 1px solid #2b2924; }
.foot .wrap { display: grid; gap: 14px; }
.foot .row1 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.foot .lockup { color: var(--paper); font-size: 26px; }
.foot a { color: var(--paper); }
.foot p { margin: 0; max-width: 80ch; }

/* ---------- Registration dialog ---------- */
dialog.reg { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); overflow: auto; }
dialog.reg::backdrop { background: rgba(13, 12, 10, .62); }
.reg-in { position: relative; display: grid; gap: 18px; padding: 28px clamp(20px, 4vw, 32px); }
.reg-head { display: grid; gap: 8px; padding-right: 44px; }
.reg-head h2 { font-size: clamp(28px, 4vw, 36px); }
.x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; }
.x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) { .x:hover { border-color: var(--ink); } }
@media (max-width: 560px) {
  dialog.reg { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; }
}

.field { display: grid; gap: 6px; }
.field > label, .legend { font: 600 14px/1.3 var(--sans); }
.field input, .field select { width: 100%; padding: 13px 14px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.3 var(--sans); appearance: none; -webkit-appearance: none; }
.field select { padding-right: 42px; 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='%230d0c0a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .two { grid-template-columns: minmax(0, 1fr); } }
.err { display: none; font: 600 13px/1.3 var(--sans); color: var(--ink); }
.err::before { content: "! "; }
.field.bad input, .field.bad select { border-width: 2px; padding: 12px 13px; }
.field.bad select { padding-right: 41px; }
.field.bad .err { display: block; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--graphite); font-size: 13px; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.form-msg { margin: 0; padding: 12px 14px; border: 2px solid var(--ink); font: 600 14px/1.4 var(--sans); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reg-form { display: grid; gap: 16px; }
.reg-form .btn { width: 100%; }
.reg-form .cap, dialog.reg .cap { color: var(--graphite); }

/* ---------- Register band: the form sits inline here, and moves into the dialog when a CTA opens it ---------- */
.reg-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--g); align-items: start; }
.reg-copy { display: grid; justify-items: start; gap: 20px; }
.reg-copy h2 { max-width: 12ch; }
.reg-copy .when { flex-direction: column; width: 100%; max-width: 380px; }
.reg-copy .when span + span { border-left: 0; border-top: 1px solid currentColor; }
.reg-panel { padding: clamp(20px, 3vw, 28px); background: var(--paper); color: var(--ink); }
.reg-panel :focus-visible { outline-color: var(--ink); }
.reg-panel .moved { margin: 0; font-size: 16px; }
@media (max-width: 860px) { .reg-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Thank-you page ---------- */
.ty-hero { padding: clamp(24px, 4vw, 48px) 0 clamp(32px, 5vw, 48px); text-align: center; }
.ty-hero .wrap { display: grid; justify-items: center; gap: 16px; }
.ty-hero h1 { max-width: 16ch; }
.section.flush-top { padding-top: 0; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 4px solid var(--ink); }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--ink); }
.step.hl { padding-inline: 20px; background: var(--yellow); }
.step .n { font: 900 48px/.8 var(--display); font-stretch: 125%; letter-spacing: -.05em; }
.step h2 { font-size: clamp(24px, 3vw, 32px); }
.step .body { display: grid; gap: 14px; min-width: 0; }
.step .body > p { margin: 0; max-width: 58ch; }
.step:not(.hl) .body > p { color: var(--graphite); }
.cal { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 480px) { .step { grid-template-columns: minmax(0, 1fr); gap: 10px; } .cal .btn { width: 100%; } }

.note { display: grid; gap: 12px; max-width: 60ch; padding: 20px 22px; border: 1px solid var(--ink); font-size: 18px; line-height: 1.6; }
.note p { margin: 0; }
.note .sig { font: 700 22px/1 var(--display); font-stretch: 125%; }
.mini-vid { position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; border: 4px solid var(--yellow); background: var(--ink); }
.mini-vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.survey { display: grid; gap: 18px; max-width: 620px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
legend { padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; padding: 10px 14px; border: 1px solid var(--ink); font-size: 15px; cursor: pointer; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label:has(input:checked) { background: var(--ink); color: var(--paper); }
.choices label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }

.faq details { border-top: 1px solid var(--ink); }
.faq details:last-child { border-bottom: 1px solid var(--ink); }
.faq summary { position: relative; padding: 20px 44px 20px 0; font: 700 21px/1.2 var(--display); font-stretch: 125%; letter-spacing: -.01em; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 28px/1 var(--sans); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 20px; max-width: 60ch; color: var(--graphite); font-size: 17px; }
