:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0d1c2e;
  --panel-2: #11263c;
  --text: #f4f8fc;
  --muted: #a8b7c8;
  --line: rgba(172, 203, 226, .18);
  --teal: #55e6c1;
  --blue: #62a9ff;
  --red: #ff8b88;
  --focus: #ffd166;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 75% 5%, rgba(56, 147, 167, .16), transparent 30rem), var(--bg);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 10; padding: 10px 14px; color: #06121f; background: var(--focus); }
.skip-link:focus { top: 12px; }

.site-header, footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1.08rem; font-weight: 750; text-decoration: none; }
.brand strong, .eyebrow, .step-kicker, .pack-label { color: var(--teal); }
.brand-mark { position: relative; display: block; width: 34px; height: 34px; }
.brand-mark span { position: absolute; left: 2px; width: 29px; height: 11px; border: 2px solid var(--teal); border-radius: 4px; background: var(--bg); }
.brand-mark span:nth-child(1) { top: 1px; }
.brand-mark span:nth-child(2) { top: 10px; left: 4px; border-color: #69cfd9; }
.brand-mark span:nth-child(3) { top: 19px; left: 6px; border-color: var(--blue); }
.test-badge, .complete-badge { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: #d9e3ec; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

.app-shell { width: min(1180px, calc(100% - 40px)); margin: 56px auto 90px; display: grid; grid-template-columns: .78fr 1.45fr; gap: 42px; align-items: start; }
.context-panel { position: sticky; top: 24px; padding: 12px 16px 12px 0; }
.eyebrow, .step-kicker, .pack-label { margin: 0 0 12px; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.context-panel h1 { margin: 0; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1.02; letter-spacing: -.055em; }
.context-panel > p:not(.eyebrow):not(.small-note) { margin: 24px 0; color: var(--muted); font-size: 1.05rem; }
.product-facts { margin: 30px 0 18px; border-top: 1px solid var(--line); }
.product-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.product-facts dt { color: var(--muted); }
.product-facts dd { margin: 0; text-align: right; font-weight: 700; }
.small-note { color: #8093a7; font-size: .82rem; }

.workspace { min-width: 0; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 20px; background: rgba(13, 28, 46, .88); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.progress-copy { display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; }
.progress-track { height: 6px; margin: 9px 0 35px; overflow: hidden; border-radius: 999px; background: #20354a; }
.progress-track span { display: block; width: 33.333%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--blue)); transition: width .25s ease; }
.form-step h2, .results h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.08; letter-spacing: -.04em; }
.form-step h2:focus, .results h2:focus { outline: none; }
.step-intro { margin: 12px 0 26px; color: var(--muted); }
.field-grid { display: grid; gap: 18px; }
.field-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { margin: 0 0 20px; }
.field label { display: block; margin-bottom: 8px; color: #dfe8f0; font-size: .9rem; font-weight: 700; }
.field label span { color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #29435b; border-radius: 9px; padding: 12px 13px; color: var(--text); background: #091726; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6f8294; }
.field small { display: block; margin-top: 7px; color: #8295a8; font-size: .78rem; }
.social-choice { padding: 0; border: 0; }
.social-choice legend { margin-bottom: 8px; color: #dfe8f0; font-size: .9rem; font-weight: 700; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice-grid .check-row { margin: 0; padding: 11px 12px; border: 1px solid #29435b; border-radius: 9px; background: #091726; }
.select-all-social { width: fit-content; margin: 0 0 10px; padding: 9px 12px; border: 1px solid rgba(85,230,193,.35); border-radius: 9px; background: rgba(85,230,193,.08); font-weight: 750; }
.field .field-error { color: var(--red); }
[aria-invalid="true"] { border-color: var(--red) !important; }

.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.button { min-height: 47px; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; color: var(--text); background: transparent; font-weight: 750; }
.button.primary { color: #03201c; background: var(--teal); }
.button.primary:hover { background: #79f2d3; }
.button.secondary { border-color: #3b5870; background: #14283b; }
.button.quiet { color: #c5d2de; }
.button.danger { color: #ffaaa7; }
.alert { margin: 0 0 24px; padding: 13px 15px; border: 1px solid rgba(255,139,136,.45); border-left: 4px solid var(--red); border-radius: 8px; color: #ffd0ce; background: rgba(121,38,38,.18); }
.check-row { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; margin: 26px 0; color: #d5e0e9; }
.check-row input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--teal); }
.test-notice { padding: 15px 17px; border: 1px solid rgba(98,169,255,.3); border-radius: 9px; color: #c6d9ec; background: rgba(35,87,132,.18); }
.test-notice strong { display: block; color: var(--blue); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.review-grid div { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #091827; }
.review-grid strong, .review-grid span { display: block; }
.review-grid strong { margin-bottom: 5px; color: var(--blue); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.review-grid span { overflow-wrap: anywhere; color: #d6e0e9; font-size: .9rem; }

.result-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 28px; }
.complete-badge { color: var(--teal); border-color: rgba(85,230,193,.3); }
.pack-section { margin: 0 0 18px; padding: 23px; border: 1px solid var(--line); border-radius: 12px; background: #091827; }
.pack-section h3 { margin: 0 0 11px; font-size: 1.35rem; line-height: 1.25; }
.pack-section p { color: #c1cfda; }
.pack-section h4 { margin: 19px 0 8px; font-size: 1rem; }
.pack-section.approved { border-left: 4px solid var(--teal); }
.strategy-section { border-top: 3px solid var(--teal); background: linear-gradient(145deg, #0c2031, #091827); }
.start-section { border-top: 3px solid var(--blue); background: linear-gradient(145deg, #102940, #091827); }
.readiness { display: flex; gap: 13px; align-items: center; margin: 16px 0 8px; }
.readiness strong { display: inline-grid; place-items: center; min-width: 82px; min-height: 58px; border-radius: 9px; color: #06201c; background: var(--teal); font-size: 1.45rem; }
.readiness span { max-width: 330px; color: var(--muted); font-size: .82rem; }
.readiness-label { color: #e8f1f7 !important; font-weight: 700; }
.start-section article { margin-top: 13px; padding: 12px 15px; border-left: 3px solid var(--blue); background: rgba(98,169,255,.07); }
.start-section article h4 { margin-top: 0; }
.start-section article ul { margin-bottom: 0; }
.export-centre { border-color: rgba(98,169,255,.35); }
.export-centre ul { margin-bottom: 0; }
.copy-control { margin: 10px 0 2px; padding: 7px 10px; border: 1px solid #3b5870; border-radius: 7px; color: #cfe0ed; background: #14283b; font-size: .76rem; font-weight: 750; }
.copy-control:hover { border-color: var(--blue); color: #fff; }
.clipboard-fallback { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; }
.brand-studio { margin: 0 0 22px; padding: clamp(20px, 4vw, 32px); border: 2px solid rgba(85,230,193,.42); border-radius: 14px; background: linear-gradient(145deg, #102b3b, #091827); }
.studio-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.studio-heading h3 { margin: 0; font-size: 1.8rem; }
.brand-studio > p { color: #c3d1dc; }
.studio-layout { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(300px, 1.25fr); gap: 24px; align-items: start; margin-top: 22px; }
.studio-controls { display: grid; gap: 8px; }
.studio-controls label { margin-top: 7px; color: #dfe8f0; font-size: .875rem; font-weight: 750; }
.studio-controls label small { display: block; color: #8da0b2; font-weight: 500; }
.studio-controls input, .studio-controls textarea, .studio-controls select { width: 100%; padding: 10px 11px; border: 1px solid #35526b; border-radius: 8px; color: var(--text); background: #081521; }
.studio-controls input[type="file"] { font-size: .8rem; }
.studio-colours { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.studio-colours label { display: grid; gap: 6px; }
.studio-colours input { height: 45px; padding: 4px; }
.studio-canvas-wrap { position: sticky; top: 20px; min-width: 0; }
.studio-dimensions { margin: 0 0 8px; color: #9eb2c3; font-size: .78rem; }
.studio-preview { position: relative; display: grid; align-content: center; gap: clamp(6px, 2vw, 14px); width: 100%; max-height: 620px; padding: 9%; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; color: #fff; background-color: var(--studio-main); background-size: cover; background-position: center; box-shadow: 0 18px 45px rgba(0,0,0,.28); }
.studio-preview::after { content: ''; position: absolute; width: 48%; aspect-ratio: 1; right: -15%; top: -20%; border-radius: 50%; background: var(--studio-accent); opacity: .2; }
.studio-preview > * { position: relative; z-index: 1; }
.studio-preview[data-font="classic"] { font-family: Georgia, "Times New Roman", serif; }
.studio-preview[data-font="friendly"] { font-family: "Trebuchet MS", Arial, sans-serif; }
.studio-mark { display: grid; place-items: center; width: clamp(45px, 12%, 85px); aspect-ratio: 1; overflow: hidden; border-radius: 12%; color: var(--studio-main); background: var(--studio-accent); font-weight: 900; }
.studio-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.studio-preview b { max-width: 84%; overflow-wrap: anywhere; font-size: clamp(1.4rem, 4.8vw, 3.8rem); line-height: 1; letter-spacing: -.04em; }
.studio-preview > span { max-width: 75%; overflow-wrap: anywhere; color: rgba(255,255,255,.88); font-size: clamp(.75rem, 1.6vw, 1.15rem); }
.studio-preview > strong { justify-self: end; align-self: end; max-width: 35%; padding: 8px 11px; overflow-wrap: anywhere; border-radius: 6px; color: var(--studio-main); background: var(--studio-accent); font-size: clamp(.65rem, 1.5vw, 1rem); text-align: center; }
.studio-downloads { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.studio-canvas-wrap > small { display: block; margin-top: 9px; color: #8fa2b3; }
.studio-open { justify-self: start; margin-top: 4px; }
.goal-line { display: inline-block; margin-bottom: 13px; padding: 6px 9px; border-radius: 6px; color: #bcd8f2; background: rgba(98,169,255,.12); font-size: .82rem; }
.opportunity-grid, .service-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opportunity-grid article, .service-card-grid article { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: rgba(5,17,29,.5); }
.opportunity-grid p, .service-card-grid p { margin-bottom: 0; }
.service-card-grid h4 { margin-top: 0; color: var(--blue); }
.headline-list { display: grid; gap: 10px; padding-left: 27px; }
.headline-list li { padding: 10px 13px; color: #e5edf4; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.pack-section.hero-draft { padding: clamp(25px, 5vw, 42px); background: linear-gradient(145deg, #0d2635, #0a1929); }
.draft-eyebrow { display: block; margin-bottom: 12px; color: var(--blue); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.hero-draft h3 { max-width: 600px; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.055em; }
.fake-button { display: inline-block; margin-top: 9px; padding: 10px 14px; border-radius: 7px; color: #05221d; background: var(--teal); font-weight: 800; }
.page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.page-grid article { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 9px; }
.page-grid h4 { margin: 4px 0 6px; font-size: 1.15rem; }
.page-grid p, .page-grid li, .pack-section li { color: var(--muted); }
.page-grid .page-draft { color: #d8e3ec; }
.page-grid ul { padding-left: 19px; }
.page-number { color: var(--teal); font-size: .75rem; font-weight: 800; }
.seo-entry { margin-top: 12px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.seo-entry strong { color: var(--blue); }
.seo-entry p { margin: 4px 0; color: var(--text); }
.seo-entry small { color: var(--muted); }
.pack-section.warning { border-color: rgba(255,209,102,.3); background: rgba(101,75,17,.13); }
.handoff-section { border-color: rgba(98,169,255,.35); background: linear-gradient(145deg, rgba(23,61,93,.45), #091827); }
.handoff-intro { font-size: 1.04rem; color: #e2ecf4 !important; }
.builder-steps { display: grid; gap: 12px; padding-left: 28px; }
.builder-steps li { padding-left: 5px; color: #cad7e1; }
.handoff-copy { padding: 13px 15px; border-left: 3px solid var(--blue); background: rgba(98,169,255,.08); }
.social-kit { border-color: rgba(85,230,193,.35); }
.channel-grid, .calendar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.channel-grid article, .calendar-grid article { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: rgba(5,17,29,.5); }
.channel-grid h4, .calendar-grid h4 { margin: 8px 0 6px; }
.channel-grid p, .calendar-grid p { margin: 5px 0 9px; }
.channel-grid small, .calendar-grid small { color: #8fa4b7; }
.channel-role { display: inline-block; padding: 4px 8px; border-radius: 999px; color: #061b18; background: var(--teal); font-size: .68rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.channel-role.supporting { background: var(--blue); }
.channel-role.maintenance { color: #d8e3ec; background: #334a60; }
.brand-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.brand-swatches span { padding: 9px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; font-size: .8rem; font-weight: 750; text-shadow: 0 1px 3px rgba(0,0,0,.65); }
.social-platform { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(5,17,29,.5); }
.social-platform > h4 { margin-top: 0; color: var(--blue); font-size: 1.2rem; }
.social-copy { padding: 12px 14px; border-left: 3px solid var(--teal); white-space: pre-line; background: rgba(85,230,193,.06); }
.social-design { position: relative; display: grid; min-height: 190px; align-content: center; gap: 8px; margin-top: 16px; padding: 28px; overflow: hidden; border-radius: 10px; color: #fff; background: var(--brand-main); }
.social-design::after { content: ''; position: absolute; width: 180px; height: 180px; right: -50px; top: -70px; border-radius: 50%; background: var(--brand-accent); opacity: .2; }
.social-design small, .social-design b, .social-design span, .social-design button { position: relative; z-index: 1; }
.social-design small { color: rgba(255,255,255,.72); font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.social-design b { max-width: 80%; font-size: clamp(1.4rem, 4vw, 2.2rem); line-height: 1.05; }
.social-design span { color: rgba(255,255,255,.82); }
.social-download { justify-self: start; margin-top: 10px; background: var(--brand-accent) !important; color: var(--brand-main) !important; }
.results-actions { position: sticky; bottom: 0; padding-bottom: 12px; background: linear-gradient(transparent, var(--panel) 25%); }

footer { padding: 30px 0 45px; border-top: 1px solid var(--line); color: #7f92a5; font-size: .78rem; }
footer p { margin: 4px 0; }
footer a { display: inline-block; margin-top: 7px; color: #b5c5d4; }

@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; margin-top: 34px; }
  .context-panel { position: static; padding: 0; }
  .context-panel h1 { max-width: 700px; }
  .studio-layout { grid-template-columns: 1fr; }
  .studio-canvas-wrap { position: static; }
}

@media (max-width: 580px) {
  .site-header, .app-shell, footer { width: min(100% - 26px, 1180px); }
  .site-header { min-height: 74px; }
  .test-badge { font-size: .66rem; }
  .app-shell { gap: 26px; margin-bottom: 55px; }
  .workspace { padding: 21px 16px; border-radius: 14px; }
  .field-grid.two-col, .review-grid, .page-grid, .opportunity-grid, .service-card-grid, .choice-grid, .channel-grid, .calendar-grid { grid-template-columns: 1fr; }
  .form-actions { justify-content: stretch; }
  .form-actions .button { flex: 1 1 42%; }
  .results-actions { position: static; background: none; }
  .result-heading { display: block; }
  .complete-badge { display: inline-block; margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
