/* Shared styles for /guide and /guide/thanks. Tokens match index.html. */
:root {
  --color-gallery-white: #ffffff;
  --color-studio-mist: #f5f5f7;
  --color-hairline-silver: #d6d6d6;
  --color-control-gray: #e6e6e8;
  --color-ink: #1d1d1f;
  --color-slate: #707070;
  --color-steel: #86868b;
  --color-apple-blue: #0066cc;
  --color-pricing-blue: #0071e3;
  --color-error: #b3261e;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-cards: 28px; --radius-pills: 9999px; --radius-input: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-gallery-white); color: var(--color-ink);
  font-family: var(--font); font-size: 17px; line-height: 1.47;
  letter-spacing: -0.374px; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--color-pricing-blue); color: #fff; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--color-pricing-blue); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
h1, h2 { font-weight: 600; margin: 0; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pills); font-family: var(--font);
  font-size: 12px; line-height: 16px; letter-spacing: -0.12px;
  padding: 10px 20px; white-space: nowrap; cursor: pointer; border: 1px solid transparent;
}
.pill-filled { background: var(--color-pricing-blue); color: #fff; }
.pill-filled:hover { background: #0077ed; }
.pill-filled:disabled { opacity: 0.6; cursor: wait; }
.pill-outline { background: transparent; color: var(--color-ink); border-color: var(--color-steel); }
.pill-outline:hover { background: var(--color-control-gray); }
.pill-big { font-size: 17px; line-height: 1; padding: 16px 30px; font-weight: 500; }

/* Nav */
.local-nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.86); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--color-hairline-silver); }
.local-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { height: 22px; width: auto; }
.brand-name { font-weight: 600; font-size: 19px; line-height: 1.21; letter-spacing: 0.228px; }

.kicker { display: block; font-weight: 600; font-size: 17px; letter-spacing: 0.231px; color: var(--color-pricing-blue); margin-bottom: 14px; }

/* Hero */
.guide-hero { padding: 72px 0 88px; }
.guide-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.guide-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.06; letter-spacing: -0.02em; max-width: 13ch; }
.hero-sub { font-size: 20px; line-height: 1.43; letter-spacing: -0.02em; color: var(--color-slate); max-width: 40ch; margin: 20px 0 0; }

/* Form */
.signup { margin-top: 32px; max-width: 520px; }
.field-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.signup label span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; letter-spacing: -0.224px; }
.signup input {
  width: 100%; font: inherit; font-size: 17px; color: var(--color-ink);
  padding: 13px 14px; border: 1px solid var(--color-steel); border-radius: var(--radius-input);
  background: #fff;
}
.signup input:focus { outline: none; border-color: var(--color-pricing-blue); box-shadow: 0 0 0 3px rgba(0,113,227,0.2); }
.signup input[aria-invalid="true"] { border-color: var(--color-error); }
.signup button { margin-top: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { font-size: 13px; line-height: 1.4; color: var(--color-slate); margin: 12px 0 0; letter-spacing: -0.12px; }
.form-msg { font-size: 15px; margin: 10px 0 0; min-height: 1.4em; }
.form-msg.error { color: var(--color-error); }
.signup-center { margin-left: auto; margin-right: auto; text-align: left; }

/* Preview of the real PDF pages */
.preview { position: relative; aspect-ratio: 8.5 / 11; max-width: 420px; justify-self: center; width: 100%; }
.preview img { position: absolute; width: 86%; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.12); background: #fff; }
.preview-back { top: 0; right: 0; transform: rotate(3deg); opacity: 0.9; }
.preview-front { bottom: 0; left: 0; transform: rotate(-2deg); }

/* What's inside */
.inside { background: var(--color-studio-mist); padding: 88px 0; }
.inside h2, .who h2, .closing h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.01em; }
.section-sub { color: var(--color-slate); max-width: 56ch; margin: 14px 0 0; }
.inside-list { list-style: none; counter-reset: tip; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.inside-list li { counter-increment: tip; background: #fff; border-radius: 20px; padding: 18px 20px 18px 58px; position: relative; }
.inside-list li::before { content: counter(tip); position: absolute; left: 20px; top: 17px; font-weight: 600; color: var(--color-pricing-blue); font-size: 17px; width: 24px; }
.inside-list b { display: block; font-weight: 600; }
.inside-list span { display: block; color: var(--color-slate); font-size: 15px; margin-top: 2px; }

/* Who */
.who { padding: 96px 0; }
.who p { margin: 18px 0 0; }

/* Closing */
.closing { padding: 0 0 104px; text-align: center; }
.closing .signup { margin-top: 28px; }
.closing .signup button { width: 100%; }

footer { background: var(--color-studio-mist); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { font-size: 12px; color: var(--color-slate); }
footer a:hover { color: var(--color-apple-blue); }

/* Thanks page */
.thanks { padding: 80px 0 104px; }
.thanks h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; }
.thanks .hero-sub { max-width: 46ch; }
.thanks .pill-big { margin-top: 28px; }
.bridge-note { margin: 28px 0 0; font-size: 15px; line-height: 1.5; color: var(--color-slate); max-width: 56ch; }
.bridge-note a { color: var(--color-apple-blue); font-weight: 500; white-space: nowrap; }
.bridge-note a:hover { text-decoration: underline; }
.segment { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--color-hairline-silver); }
.segment h2 { font-size: 24px; letter-spacing: -0.01em; }
.segment p { color: var(--color-slate); margin: 8px 0 0; }
.segment-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.segment-options .pill { font-size: 15px; padding: 12px 20px; }
.segment-options .pill[aria-pressed="true"] { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }

@media (max-width: 860px) {
  .guide-hero { padding: 44px 0 64px; }
  .guide-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .preview { max-width: 340px; }
  .inside-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .signup button { width: 100%; }
}

/* Thanks page: multi-select answers + gold download */
.thanks .thanks-download { width: auto; margin-top: 28px; }
.seg-opt[aria-pressed="true"]::before { content: "\2713"; margin-right: 8px; font-weight: 700; }
.seg-save { margin-top: 20px; font-size: 15px; padding: 12px 24px; }
.seg-save:disabled { opacity: 0.4; cursor: not-allowed; }
