/* Colors, fonts and radii come from brand/theme.js as CSS variables.
   Layout language: iPhone-style. Flat rounded tiles on a warm grey ground,
   two tiles to a row on a phone, system font, safe-area aware. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1 { font-family: var(--font-heading); font-weight: 500; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: 1.375rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.25; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font-family: inherit; letter-spacing: inherit; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right)); }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }

/* ---------- logo ---------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand [data-logo="monogram"] { width: 42px; height: 42px; flex: none; }
.brand [data-logo="monogram"] svg { width: 100%; height: 100%; display: block; }
.wordmark { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; line-height: 1; letter-spacing: -0.015em; color: var(--ink); white-space: nowrap; }
.form-top .wordmark { font-size: 1.25rem; }
@media (max-width: 420px) { .form-top .wordmark { font-size: 1rem; } .form-top .time { font-size: 0.8125rem; } }
.wordmark em { font-style: italic; color: var(--ember); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: var(--radius-button);
  background: var(--ink); color: #fff; font-size: 1.0625rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.97); }
.btn-light { background: #fff; color: var(--ink); }
.btn-quiet { background: var(--fill); color: var(--ink); }
.btn-small { min-height: 38px; padding: 0 18px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn:focus-visible, .option:focus-visible, .slot:focus-visible, .nav-back:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ---------- top bar (blurred, like an iPhone navigation bar) ---------- */
.nav {
  position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; }

/* ---------- tiles ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; overflow: hidden; min-width: 0; padding: 18px; background: var(--card); border-radius: var(--radius-tile); }
.t-full { grid-column: 1 / -1; }
.sq { aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; }
/* compact fact tiles (20 min, 60 min, report, $75): short, not square */
.fact { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 18px 16px; min-height: 180px; }
.tile.fact .big { font-size: clamp(1.375rem, 6vw, 1.75rem); }
.tile-ink { background: var(--ink); color: #fff; }
.tile-ink .eyebrow, .tile-ink .muted { color: rgba(255, 255, 255, 0.66); }
/* gradient tiles: white text, colors defined once in theme.js */
.grad { color: #fff; background: var(--grad-both); }
.grad-coaching { background: var(--grad-coaching); }
.grad-matchmaking { background: var(--grad-matchmaking); }
.grad .eyebrow, .grad .muted { color: rgba(255, 255, 255, 0.72); }
.tile.grad .sub { color: rgba(255, 255, 255, 0.9); }
.grad .dot { background: #fff; }
.grad .placeholder-note { color: rgba(255, 255, 255, 0.82); }
.grad .statement { font-family: var(--font-heading); font-size: clamp(1.75rem, 7vw, 2.5rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
/* the two service tiles: large title so the text fills the tile */
.tile.service { justify-content: flex-end; }
.service .dot { display: none; }
.tile.service .label { font-family: var(--font-heading); font-size: clamp(1.25rem, 5.3vw, 2.5rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
.tile.service .sub { font-size: clamp(0.8125rem, 3.4vw, 1.125rem); line-height: 1.35; margin-top: 8px; max-width: 26rem; }
.statement-tile { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 220px; padding: 22px; }
.tile-plain { background: transparent; padding: 6px 4px; }
.tile .big { font-size: clamp(1.75rem, 8vw, 2.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.tile .label { font-size: 0.9375rem; font-weight: 600; line-height: 1.25; }
.tile .sub { font-size: 0.8125rem; color: var(--ink-2); line-height: 1.3; margin-top: 2px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--track, var(--ink)); flex: none; }
.track-coaching { --track: var(--teal); }
.track-matchmaking { --track: var(--ember); }
.group-title { grid-column: 1 / -1; padding: 22px 4px 0; }
.group-title p { margin-top: 4px; }

/* inset grouped list, as in iPhone Settings */
.list { padding: 0; }
.list .row { display: flex; gap: 14px; align-items: flex-start; padding: 15px 18px; }
.list .row + .row { border-top: 1px solid var(--line); }
.list .num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--fill); font-size: 0.875rem; font-weight: 700; }
.list .row p { font-size: 0.9375rem; color: var(--ink-2); margin-top: 2px; }

/* ---------- image slots ---------- */
.slot {
  position: relative; overflow: hidden; display: block; border-radius: var(--radius-tile);
  background: radial-gradient(120% 90% at 10% 0%, var(--teal-soft) 0%, transparent 60%), radial-gradient(120% 90% at 100% 100%, var(--ember-soft) 0%, transparent 62%), var(--fill);
}
.tile.slot { padding: 0; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* subtle warm overlay so any photo sits with the palette */
.slot.has-image::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(170deg, rgba(246, 225, 214, 0.16), rgba(196, 81, 45, 0.07) 60%, rgba(28, 26, 24, 0.12)); mix-blend-mode: multiply; }
.slot-hint { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 14px; text-align: center; font-size: 0.75rem; line-height: 1.3; color: var(--ink); }
.slot-hint strong { font-size: 0.9375rem; font-weight: 600; }
.slot-hint span { opacity: 0.7; }
.slot.has-image .slot-hint { opacity: 0; transition: opacity 0.2s ease; background: rgba(255, 255, 255, 0.84); }
.is-mockup .slot { cursor: pointer; }
.is-mockup .slot:not(.has-image) { outline: 1.5px dashed rgba(28, 26, 24, 0.28); outline-offset: -9px; }
.is-mockup .slot.has-image:hover .slot-hint, .slot.is-over .slot-hint { opacity: 1; }
.is-presenting .slot { cursor: default; outline: 0 !important; }
.is-presenting .slot-hint, html:not(.is-mockup) .slot-hint { display: none; }

.mock-bar { position: fixed; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 14px; background: rgba(28, 26, 24, 0.92); color: #fff; border-radius: 999px; font-size: 0.8125rem; }
.mock-bar button { border: 0; border-radius: 999px; padding: 7px 12px; background: rgba(255, 255, 255, 0.16); color: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.has-cta .mock-bar { bottom: calc(92px + env(safe-area-inset-bottom)); }
.is-presenting .mock-bar { opacity: 0.2; }
.is-presenting .mock-bar:hover { opacity: 1; }
.is-presenting .mock-bar span, .is-presenting .mock-bar [data-act="reset"] { display: none; }
@media print { .mock-bar { display: none; } }

/* ---------- landing ---------- */
.landing { padding: 4px 0 calc(120px + env(safe-area-inset-bottom)); }
.hero-tile { padding: 0; min-height: min(460px, 62svh); display: flex; align-items: flex-end; color: #fff; }
.hero-tile .slot { position: absolute; inset: 0; border-radius: 0; background: var(--grad-both); }
.hero-tile .slot-hint { justify-content: flex-start; padding-top: 26px; color: #fff; }
.hero-tile .slot.has-image .slot-hint { color: var(--ink); }
.hero-copy { position: relative; z-index: 2; width: 100%; padding: 80px 22px 24px; pointer-events: none; background: linear-gradient(to top, rgba(20, 16, 14, 0.86) 0%, rgba(20, 16, 14, 0.6) 55%, transparent 100%); }
.hero-copy > * { max-width: 34rem; }
.hero-copy .eyebrow { color: rgba(255, 255, 255, 0.78); }
.hero-copy h1 { margin: 10px 0 12px; }
.hero-copy h1 em { font-style: italic; }
.hero-copy p.lede { font-size: 1.0625rem; color: rgba(255, 255, 255, 0.9); }
.hero-copy .btn { pointer-events: auto; margin-top: 20px; }
.fee-tile { text-align: center; padding: 34px 22px; }
.fee-tile .amount { font-family: var(--font-heading); font-size: clamp(3.4rem, 16vw, 5rem); font-weight: 500; line-height: 1; margin: 8px 0 6px; }
.fee-tile .promise { max-width: 26rem; margin: 14px auto 22px; color: rgba(255, 255, 255, 0.86); }
/* pricing tiles: full width on a phone so the details are readable, side by side on desktop */
.price-tile { grid-column: 1 / -1; padding: 22px; }
.price-tile .price { font-family: var(--font-heading); font-size: clamp(2.75rem, 12vw, 3.5rem); font-weight: 500; line-height: 1; margin-top: 10px; }
.price-tile .period { font-size: 0.9375rem; font-weight: 600; margin-top: 4px; color: rgba(255, 255, 255, 0.85); }
.price-tile .intro { margin-top: 14px; font-size: 1rem; line-height: 1.4; }
.price-tile ul { list-style: none; margin: 14px 0 0; padding: 0; font-size: 0.9375rem; }
.price-tile li { padding: 9px 0 9px 26px; border-top: 1px solid rgba(255, 255, 255, 0.22); position: relative; }
.price-tile li::before { content: ''; position: absolute; left: 4px; top: 14px; width: 11px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
@media (min-width: 900px) { .price-tile { grid-column: span 2; padding: 28px; } }
.price-line { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.placeholder-note { font-size: 0.8125rem; color: var(--ink-2); line-height: 1.35; }
.landing-foot { padding-top: 26px; text-align: center; font-size: 0.8125rem; color: var(--ink-2); }
.landing-foot .brand { justify-content: center; margin-bottom: 10px; }

/* FAQ: tap a question to open it */
.faq { padding: 0; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; font-size: 0.9375rem; font-weight: 500; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); transition: transform 0.2s ease; margin: -4px 4px 0 0; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { padding: 0 18px 16px; font-size: 0.875rem; line-height: 1.55; color: var(--ink-2); }
.faq summary:focus-visible { outline: 2px solid var(--ember); outline-offset: -2px; }

/* testimonials page: one visual per row on a phone so the words stay readable */
.stories-head { padding: 18px 4px 20px; }
.stories-head h1 { margin: 8px 0 8px; }
.stories { display: grid; gap: 12px; }
.story { aspect-ratio: 4 / 5; }
.story.has-image::after { display: none; } /* testimonial visuals carry their own text: no tint over them */
.is-presenting .story:not(.has-image)::before { content: 'Client story coming soon'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
html:not(.is-mockup) .story:not(.has-image) { display: none; }
@media (min-width: 620px) { .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 900px) { .stories { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* bottom call-to-action bar on phones, like an App Store "Get" bar */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 80%, transparent); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.nav .btn { display: none; }

@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .t-wide { grid-column: span 2; }
  .tile { padding: 22px; }
  .hero-tile { min-height: 400px; padding: 0; }
  .hero-copy { padding: 90px 40px 36px; }
  .t-wide.sq { aspect-ratio: auto; min-height: 220px; }
  .landing { padding-bottom: 80px; }
  .cta-bar { display: none; }
  .nav .btn { display: inline-flex; }
  .has-cta .mock-bar { bottom: 12px; }
  .list .row { padding: 18px 22px; }
}

/* ---------- assessment ---------- */
.form-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.form-top .wrap { display: block; height: auto; max-width: 720px; }
.form-top .bar-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 52px; }
.nav-back { justify-self: start; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 8px 0 0; border: 0; background: none; color: var(--ember); font-size: 1.0625rem; cursor: pointer; }
.nav-back::before { content: ''; width: 11px; height: 11px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); margin-right: 3px; }
.nav-back[disabled] { opacity: 0.3; cursor: default; }
.form-top .brand [data-logo="monogram"] { width: 38px; height: 38px; }
.form-top .time { justify-self: end; font-size: 0.875rem; font-weight: 600; color: var(--ember); white-space: nowrap; transition: opacity 0.3s ease; }
.progress { height: 5px; margin-bottom: 8px; background: var(--fill); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--ember); border-radius: 999px; transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }

.stage { flex: 1; display: flex; align-items: flex-start; padding: 22px 0 calc(28px + env(safe-area-inset-bottom)); }
.screen { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right)); }
.screen.enter { animation: rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.screen.leave { animation: fall 0.2s ease-in both; }
@keyframes rise { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes fall { to { opacity: 0; transform: translateX(-20px); } }
@media (prefers-reduced-motion: reduce) { .screen.enter, .screen.leave { animation: none; } }
@media (min-width: 700px) { .stage { align-items: center; } }

.section-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--card); font-size: 0.8125rem; font-weight: 600; }
.section-tag::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--track, var(--ink-2)); }
.q-text { font-size: clamp(1.4375rem, 6vw, 1.875rem); font-weight: 700; line-height: 1.22; letter-spacing: -0.025em; margin: 16px 0 22px; text-wrap: pretty; }
.q-help { margin: -12px 0 20px; color: var(--ink-2); font-size: 0.9375rem; }

.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 16px;
  background: var(--card); border: 2px solid transparent; border-radius: var(--radius-row);
  font-size: 1.0625rem; font-weight: 500; color: var(--ink); text-align: left; cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.option:active { transform: scale(0.98); }
.option .key { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--fill); font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); }
.option .txt { flex: 1; }
.option::after { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); }
.option.is-selected { border-color: var(--ember); background: var(--ember-soft); }
.option.is-selected::after { border-color: var(--ember); background: var(--ember) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
@media (hover: hover) { .option:hover { border-color: var(--line); } .option.is-selected:hover { border-color: var(--ember); } }
@media (pointer: coarse) { .option .key, .kbd-hint { display: none; } }

.scale10 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.scale10 .option { justify-content: center; aspect-ratio: 1; min-height: 0; padding: 0; font-size: 1.375rem; font-weight: 700; }
.scale10 .option::after { display: none; }
.scale10 .option.is-selected { background: var(--ember); color: #fff; }
.scale-ends { display: flex; justify-content: space-between; margin-top: 12px; font-size: 0.8125rem; color: var(--ink-2); }
@media (min-width: 700px) { .scale10 { grid-template-columns: repeat(10, 1fr); } }

/* 17px+ text in fields stops iPhone Safari zooming in on focus */
.field { width: 100%; padding: 15px 16px; background: var(--card); border: 2px solid transparent; border-radius: var(--radius-row); font-size: 1.0625rem; color: var(--ink); -webkit-appearance: none; appearance: none; }
textarea.field { min-height: 150px; resize: vertical; line-height: 1.45; }
.field:focus { outline: 0; border-color: var(--ember); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--card); border-radius: var(--radius-row); cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin-top: 1px; accent-color: var(--ember); }
.screen .btn { margin-top: 22px; }
.intro-art { aspect-ratio: 16 / 10; margin-bottom: 22px; border-radius: var(--radius-tile); display: flex; align-items: flex-end; padding: 20px; }
.intro-art span { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
@media (min-width: 700px) { .intro-art { aspect-ratio: 16 / 7; } }
.intro h1 { margin: 14px 0 10px; }
.intro p { font-size: 1.125rem; color: var(--ink-2); max-width: 30rem; }
.kbd-hint { margin-top: 18px; font-size: 0.8125rem; color: var(--ink-2); }
@media (max-width: 699px) { .intro .btn, .screen > .btn { width: 100%; } }
