:root {
  --ink: #1b2430;
  --muted: #5b6675;
  --line: #d8dee6;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --brand: #1f5e3f;
  --brand-ink: #ffffff;
  --error-bg: #fdeceb;
  --error-ink: #8a2a20;
  --focus: #0b63c5;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

.dev-banner {
  background: #3a3120;
  color: #f4e6c1;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--panel);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 1.1rem; color: var(--brand); text-decoration: none; }
.logout-form { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0 auto; }
.signed-in-as { color: var(--muted); font-size: 0.9rem; }

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.92rem;
}
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--brand); }
.site-nav-cta {
  font-weight: 700;
  color: var(--brand) !important;
  border: 1px solid var(--brand);
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
}

.link-button {
  background: none;
  border: none;
  color: var(--focus);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
}

.site-main { max-width: 960px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.panel.narrow { max-width: 480px; margin: 0 auto; }

h1 { font-size: 1.4rem; margin-top: 0; }
h2 { font-size: 1.1rem; }

.hint { color: var(--muted); font-size: 0.92rem; }

.stacked-form { display: flex; flex-direction: column; gap: 0.35rem; }
.stacked-form label { font-weight: 600; margin-top: 0.75rem; }

input[type="text"], input[type="email"], select, textarea {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
  max-width: 480px;
}

.field-row { margin-bottom: 1rem; }
.field-row > label { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.magic-ai-unavailable { border-style: dashed; }
.field-help { color: var(--muted); font-size: 0.85rem; margin: 0.15rem 0; }
.required-mark { color: #a0271b; }

.primary-button, .secondary-button {
  display: inline-block;
  border-radius: 8px;
  padding: 0.65rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
}
.primary-button { background: var(--brand); color: var(--brand-ink); margin-top: 1.25rem; }
.secondary-button { background: var(--panel); color: var(--brand); border-color: var(--brand); }
.primary-button:hover { background: #174a32; }
button.primary-button:disabled {
  background: #cdd3da;
  color: #6b7583;
  cursor: not-allowed;
}

.form-actions { margin-top: 0.5rem; }

.form-error {
  background: var(--error-bg);
  color: var(--error-ink);
  border: 1px solid #f0b8b1;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

.intake-layout { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.section-nav { flex: 0 0 220px; }
.section-nav ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.section-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}
.section-nav a.active { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.intake-form { flex: 1 1 480px; }

.order-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.order-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  flex-wrap: wrap;
}
.order-message { margin: 0.35rem 0 0; color: var(--muted); }

.status-pill {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: #e6e9ee;
  color: var(--ink);
}
.status-draft { background: #e6e9ee; }
.status-awaiting-payment { background: #f3e9d6; color: #7a5006; }
.status-market-not-yet-available { background: #f3e9d6; color: #7a5006; }
.status-processing, .status-submitted { background: #dfe9fb; color: #163b73; }
.status-in-review { background: #fdf1d6; color: #7a5b06; }
.status-needs-your-attention { background: var(--error-bg); color: var(--error-ink); }
.status-completed { background: #dff3e6; color: #1c5c34; }

.status-message { font-size: 1.05rem; }

.order-product { margin: 0.25rem 0; color: var(--ink); font-weight: 600; font-size: 0.92rem; }

.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  max-width: 480px;
}
.product-card h2 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.product-price { font-weight: 700; font-size: 1.1rem; margin: 0.5rem 0; }
.product-market { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.5rem; }

.download-list { margin: 1.25rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.download-list h2 { margin: 0 0 0.25rem; }
.download-button { margin-top: 0; width: 100%; text-align: center; }

.review-section { margin-top: 1.75rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.review-section dl { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 0.3rem 1rem; margin: 0.5rem 0 0; }
.review-section dt { color: var(--muted); }
.review-section dd { margin: 0; }
.review-section dd.unanswered { color: #6b7280; font-style: italic; }
.edit-link { font-size: 0.85rem; font-weight: 500; margin-left: 0.5rem; }

.site-footer { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 1.5rem 1rem; }

/* --- Landing / marketing page (Phase 10.1) ------------------------------- */

.hero { text-align: center; padding: 2.5rem 1rem 3rem; }
.hero h1 { font-size: 2.1rem; line-height: 1.2; max-width: 720px; margin: 0 auto 1rem; }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 620px; margin: 0 auto; }
.hero-cta { display: inline-block; font-size: 1.05rem; padding: 0.85rem 1.75rem; }

.landing-section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.landing-section:first-of-type { border-top: none; }
.landing-section h2 { font-size: 1.5rem; text-align: center; margin: 0 0 1.75rem; }
.section-intro { text-align: center; color: var(--muted); margin-top: -1.25rem; margin-bottom: 1.75rem; }

.feature-grid, .step-grid, .package-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.feature-card, .step-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.feature-card h3, .step-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.feature-card p, .step-card p { margin: 0; color: var(--muted); }

.step-card { position: relative; padding-top: 2.25rem; }
.step-number {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 0.9rem;
}

.package-grid { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; }
.package-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.package-card h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.package-card-unavailable h3 { padding-right: 5.5rem; }
.package-card .product-market { margin: 0 0 0.75rem; }
.package-card .product-price { font-size: 1.3rem; margin: 0.75rem 0; }
.package-cta { margin-top: auto; text-align: center; }
.package-card-unavailable { background: #fbfbfa; border-style: dashed; }
.coming-soon-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f3e9d6;
  color: #7a5006;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.trust-disclosure { background: var(--bg); border-radius: var(--radius); padding: 1.75rem; }
.trust-disclosure h2 { font-size: 1.15rem; }
.trust-disclosure p { max-width: 700px; margin: 0 auto; color: var(--muted); text-align: center; }

.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.25rem; }
.faq-item h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.faq-item p { margin: 0; color: var(--muted); }

.eyebrow { color: var(--muted); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 0.5rem; }
.get-started-panel .back-link { display: inline-block; margin-top: 1.25rem; }

@media (max-width: 700px) {
  .intake-layout { flex-direction: column; }
  .section-nav { flex: 1 1 auto; width: 100%; }
  .section-nav ol { flex-direction: row; flex-wrap: wrap; }
  .review-section dl { grid-template-columns: 1fr; }
  .feature-grid, .step-grid, .package-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .hero-sub { font-size: 1rem; }
}

/* Policy pages, checkout consent, footer links */
.legal { max-width: 46rem; }
.legal h2 { margin-top: 1.6rem; font-size: 1.15rem; }
.legal ul { padding-left: 1.2rem; }
.consent { margin: .75rem 0; font-size: .95rem; }
.consent input[type="checkbox"] { margin-right: .5rem; }
.footer-links { margin-bottom: .4rem; }
.footer-links a { margin: 0 .2rem; }

/* Signed-in confirmation and account bar (dashboard) */
.signed-in-banner { margin: 0 0 1rem; padding: 0.85rem 1rem; border: 2px solid #1a6b3a; border-radius: 8px; background: #e7f6ec; color: #124d29; font-size: 1.05rem; }
.account-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0 0 1.25rem; padding: 0.7rem 1rem; border: 1px solid #1a6b3a; border-radius: 8px; background: #f2faf5; color: #124d29; font-size: 1rem; }
.account-bar form { margin: 0; }

@media (max-width: 700px) {
  .site-nav a, .site-footer a, .brand { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .25rem; }
}
