/* =========================================================================
   /audit: the quiz the SEO plans page opens. One question per screen, then a
   15-minute call on Noah's calendar. Standalone on purpose: it loads only this
   file (not site.css), so a phone in an in-app browser paints it fast. Same
   brand as the site: cream paper, ink, coral as the one accent, EB Garamond
   questions over Figtree UI. Answers sit on white cards so they read as
   things to tap.
   The question, the fields, the buttons, the calendar and the confirmation are
   css/book.css (shared with /thanks, loaded right after this file).
   ========================================================================= */

@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/figtree-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/eb-garamond-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* metric-matched fallbacks (same numbers as site.css): no reflow when the webfonts arrive */
@font-face { font-family: 'Figtree Fallback'; src: local('Arial'); size-adjust: 109.31%; ascent-override: 86.91%; descent-override: 22.87%; line-gap-override: 0%; }
@font-face { font-family: 'EB Garamond Fallback'; src: local('Times New Roman'); size-adjust: 109.05%; ascent-override: 92.34%; descent-override: 27.33%; line-gap-override: 0%; }

:root {
  --bg: #fffdf4;
  --bg-2: #f7f5ec;
  --card: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #5f5f59;
  --muted: #6d6d64;
  --line: rgba(26, 26, 26, 0.13);
  --line-2: rgba(26, 26, 26, 0.26);
  --accent: #d65a3c;
  --accent-hover: #c14a30;
  --accent-soft: rgba(214, 90, 60, 0.09);
  --dark: #1a1a1a;
  --on-dark: #fffdf4;
  --on-dark-2: #b3b3a8;
  --font-display: 'EB Garamond', 'EB Garamond Fallback', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', 'Figtree Fallback', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --top: 60px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 160ms ease-out;
  --shadow: 0 1px 2px rgba(26, 26, 26, 0.05), 0 4px 14px rgba(26, 26, 26, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: clip; }
body {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- header + progress */
.qz-top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--top); padding: 0 var(--gutter); padding-top: env(safe-area-inset-top);
  background: rgba(255, 253, 244, 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.qz-logo { font-size: 14px; font-weight: 800; letter-spacing: 0.02em; text-decoration: none; }
.qz-logo span { color: var(--accent); margin: 0 1px; }
.qz-close {
  display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; border-radius: 50%;
  color: var(--ink-2); transition: background var(--t), color var(--t);
}
.qz-close:hover { background: var(--bg-2); color: var(--ink); }
.qz-prog { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 4px; padding: 0 var(--gutter); }
.qz-prog i { flex: 1; height: 4px; border-radius: 4px; background: rgba(26, 26, 26, 0.09); overflow: hidden; }
.qz-prog i::after {
  content: ''; display: block; height: 100%; border-radius: inherit; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.qz-prog i.is-done::after { transform: scaleX(1); }
.qz-prog i.is-now::after { transform: scaleX(0.4); }

/* ---------------------------------------------------------------- layout */
.qz { flex: 1; display: flex; }
.qz-main {
  flex: 1; display: flex; flex-direction: column;
  width: 100%; max-width: 640px; margin: 0 auto;
  padding: 26px var(--gutter) calc(24px + env(safe-area-inset-bottom));
}
.qz-stage { flex: 1; }
.qz-stage.is-in { animation: qz-in 0.42s var(--ease) both; }
.qz-stage.is-in.is-back { animation-name: qz-in-back; }
@keyframes qz-in-back { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
.qz-foot { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-top: 28px; }
.qz-back {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; margin-left: -10px; padding: 0 12px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink-2); transition: background var(--t), color var(--t);
}
.qz-back:hover { background: var(--bg-2); color: var(--ink); }
.qz-count { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* the desktop side: Noah, one line from him, one real number */
.qz-side { display: none; }
@media (min-width: 1024px) {
  :root { --gutter: 40px; --top: 72px; }
  .qz-top { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .qz-logo { color: var(--on-dark); }
  .qz-prog { left: 42%; padding: 0 40px; bottom: auto; top: calc(var(--top) - 2px); }
  .qz { min-height: 100vh; min-height: 100dvh; }
  .qz-side {
    display: flex; flex-direction: column; justify-content: space-between; position: sticky; top: 0;
    width: 42%; height: 100vh; height: 100dvh; padding: calc(var(--top) + 48px) 48px 0; overflow: hidden;
    background: var(--dark); color: var(--on-dark);
  }
  .qz-side__in { position: relative; z-index: 1; max-width: 440px; }
  .qz-side__q { font-family: var(--font-display); font-size: clamp(28px, 2.4vw, 36px); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
  .qz-side__by { margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--on-dark-2); }
  .qz-side__stat { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 253, 244, 0.16); }
  .qz-side__num { display: flex; align-items: baseline; gap: 10px; font-weight: 800; letter-spacing: -0.03em; }
  .qz-side__num span { font-size: 24px; color: var(--on-dark-2); }
  .qz-side__num i { font-style: normal; font-size: 22px; color: var(--accent); }
  .qz-side__num b { font-size: 48px; line-height: 1; }
  .qz-side__cap { margin-top: 8px; max-width: 34ch; font-size: 14px; line-height: 1.5; color: var(--on-dark-2); }
  .qz-side__me { align-self: flex-end; width: min(62%, 300px); height: auto; margin: 24px -10px 0 0; filter: saturate(0.95); }
  .qz-main { justify-content: center; max-width: 680px; padding: calc(var(--top) + 40px) 56px 40px; }
  .qz-stage { flex: 0 0 auto; }
}
@media (min-width: 1024px) and (max-height: 760px) { .qz-side__me { width: min(44%, 220px); } .qz-side__stat { margin-top: 24px; } }

/* ---------------------------------------------------------------- the question: css/book.css (shared with /thanks) */
.qz-plan-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 12px 7px 9px; border-radius: 999px;
  background: var(--accent-soft); font-size: 14px; font-weight: 600; color: var(--ink);
}
.qz-plan-chip svg { color: var(--accent); }

/* ---------------------------------------------------------------- choices (the option card itself, .qz-opt, is css/book.css) */
.qz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qz-opts--list { grid-template-columns: 1fr; }

/* the click sizes: five bars, the size filled in */
.qz-bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; flex: none; }
.qz-bars i { width: 5px; border-radius: 2px; background: rgba(26, 26, 26, 0.12); }
.qz-bars i:nth-child(1) { height: 6px; } .qz-bars i:nth-child(2) { height: 10px; } .qz-bars i:nth-child(3) { height: 14px; }
.qz-bars i:nth-child(4) { height: 18px; } .qz-bars i:nth-child(5) { height: 22px; }
.qz-bars i.on { background: var(--accent); }
.qz-opts--bars .qz-opt { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 92px; }
.qz-opts--bars .qz-opt.is-wide { flex-direction: row; align-items: center; min-height: 60px; }
.qz-opts--bars .qz-opt__label { margin-top: auto; }

/* the business kinds: an icon over the name */
.qz-opts--icons .qz-opt { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 96px; }
@media (min-width: 600px) { .qz-opts--icons { grid-template-columns: repeat(3, 1fr); } .qz-opts--bars { grid-template-columns: repeat(3, 1fr); } }
.qz-other { margin-top: 16px; animation: qz-in 0.35s var(--ease) both; }


/* ---------------------------------------------------------------- plan cards (the plans page's three) */
.qz-plans { display: grid; gap: 10px; }
.qz-plan {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px;
  padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow);
  text-align: left; transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.qz-plan:hover { border-color: var(--line-2); }
.qz-plan:active { transform: scale(0.985); }
.qz-plan__name { font-family: var(--font-display); font-size: 25px; line-height: 1.1; letter-spacing: -0.01em; }
.qz-plan__tag {
  display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 999px; vertical-align: 4px;
  background: var(--accent); color: #fff; font-family: var(--font-body); font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.qz-plan__price { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.qz-plan__price small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.qz-plan__pace { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.qz-plan__strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; margin-top: 10px; }
.qz-plan__strip i { aspect-ratio: 1; border-radius: 3px; background: rgba(26, 26, 26, 0.08); }
.qz-plan__strip i.on { background: var(--accent); }
.qz-plan__strip b { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--ink); }
.qz-plan--pick { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.qz-plan--pick .qz-plan__pace, .qz-plan--pick .qz-plan__price small { color: var(--on-dark-2); }
.qz-plan--pick .qz-plan__strip i { background: rgba(255, 253, 244, 0.14); }
.qz-plan--pick .qz-plan__strip i.on { background: var(--accent); }
.qz-plan--pick .qz-plan__strip b { background: var(--on-dark); }
.qz-plan[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214, 90, 60, 0.2); }
.qz-plan .qz-opt__tick { top: -8px; right: -8px; width: 24px; height: 24px; box-shadow: 0 0 0 3px var(--bg); }
.qz-plan[aria-pressed="true"] .qz-opt__tick { transform: scale(1); }
@media (min-width: 720px) {
  .qz-plans { grid-template-columns: repeat(3, 1fr); }
  .qz-plan { grid-template-columns: 1fr; align-content: start; padding: 20px; }
  .qz-plan__price { grid-row: auto; grid-column: auto; text-align: left; margin: 10px 0 6px; font-size: 36px; }
  .qz-plan__price small { display: inline; margin-left: 4px; }
  .qz-plan__strip { grid-template-columns: repeat(10, 1fr); }
}
.qz-plans + .qz-opt { width: 100%; margin-top: 10px; min-height: 54px; justify-content: center; box-shadow: none; background: transparent; border-style: dashed; }

/* ---------------------------------------------------------------- the honeypot */
.qz-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}
