/* Brand tokens: the same palette and type as the Shopify theme
   (Themes/springboard-site, config/settings_data.json color_palette).
   Change a brand color in both places. */
:root {
  color-scheme: light;
  --cream: #faf8f4;     /* page background */
  --navy: #14243a;      /* text */
  --ink-soft: #47566b;  /* secondary text */
  --line: #dfe3e0;      /* borders */
  --midnight: #00042a;  /* header, footer */
  --orange: #c4471c;    /* buttons and accents on light backgrounds */
  --cyan: #04e4ff;      /* announcement text on midnight */
  --white: #ffffff;
  --radius: 14px;
  --font-heading: "Roboto", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

h1, h2, h3, legend { font-family: var(--font-heading); }
a { color: var(--orange); }

/* Header and footer: midnight, like the Shopify site */
.announcement {
  padding: 0.6rem 1rem;
  background: var(--midnight);
  border-bottom: 1px solid #1b2150;
  color: var(--cyan);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.site-header { background: var(--midnight); }
.site-header__inner,
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
.site-header__logo img { display: block; width: 240px; max-width: 60vw; height: auto; }
.site-header__menu { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.site-header__menu a { color: var(--white); text-decoration: none; }
.site-header__menu a:hover { text-decoration: underline; }

.site-footer { margin-top: 4rem; background: var(--midnight); color: var(--white); }
.site-footer__inner { padding-block: 2.5rem; }
.site-footer__brand img { display: block; width: 192px; height: auto; }
.site-footer__brand p { margin: 0.75rem 0 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.875rem; color: #c9cfdc; }
.site-footer__legal a { color: inherit; }

/* Page body */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; }
.intro, .lede { color: var(--ink-soft); margin: 0 0 2rem; }

/* Form */
fieldset {
  border: none;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  margin: 0;
}
fieldset:first-of-type { border-top: none; }

legend {
  font-weight: 500;
  font-size: 1.2rem;
  padding: 0 0 0.6rem;
  width: 100%;
}
.help { color: var(--ink-soft); font-size: 0.95rem; margin: -0.3rem 0 0.6rem; }

label.option {
  display: block;
  padding: 0.45rem 0.25rem;
  cursor: pointer;
}
label.option:hover { color: var(--orange); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--orange); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], input[type="number"], textarea, select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #b9c1bd;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  margin-top: 0.3rem;
}
input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.field { margin: 0.75rem 0; }
.conditional { margin-top: 0.75rem; padding-left: 1rem; border-left: 3px solid var(--line); }
.conditional legend { font-size: 1rem; }
.optional { color: var(--ink-soft); font-weight: 400; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons: orange primary, outlined secondary, as on the Shopify site */
.button, button.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.6rem;
  border: 2px solid var(--orange);
  border-radius: 10px;
  background: var(--orange);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #a93c17; border-color: #a93c17; }
.button--secondary, button.button--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.button--secondary:hover, button.button--secondary:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.button[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* Result page */
.plans { display: grid; gap: 1.5rem; margin: 1.5rem 0; }
.plan {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.plan--primary { border: 2px solid var(--orange); }
.plan__eyebrow {
  margin: 0;
  color: var(--orange);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan h2 { margin: 0.25rem 0; font-size: 1.6rem; }
.plan__price { margin: 0; font-weight: 600; }
.plan__note { color: var(--ink-soft); margin: 0.5rem 0 0; }
.plan__costs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin: 1.25rem 0 0.5rem; }
.plan__costs div { padding: 0.75rem 1rem; border-radius: 10px; background: var(--cream); }
.plan__costs dt { color: var(--ink-soft); font-size: 0.9rem; }
.plan__costs dd { margin: 0; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; }
.plan__fineprint { color: var(--ink-soft); font-size: 0.9rem; margin: 0.5rem 0 1rem; }
.plan__confirm { display: flex; gap: 0.5rem; align-items: center; font-weight: 600; cursor: pointer; }
.result__note { padding: 0.9rem 1rem; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.result__ref { color: var(--ink-soft); font-size: 0.9rem; }

/* Sign-in and dashboard */
.auth form { max-width: 420px; }
.muted { color: var(--ink-soft); font-size: 0.9rem; }
.dash__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1.5rem; }
.dash__bar h1 { margin: 0; }
.dash__signout { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.dash__signout .button { margin-top: 0; padding: 0.5rem 1rem; }
.dash__subhead { margin: 2rem 0 0.75rem; font-size: 1.3rem; }
.dash .plan { margin-bottom: 1.25rem; }
.steps { list-style: none; margin: 1.25rem 0 0; padding: 0; border-left: 3px solid var(--line); }
.step-item { position: relative; display: grid; gap: 0.15rem; padding: 0 0 1rem 1.25rem; color: var(--ink-soft); }
.step-item::before { content: ""; position: absolute; left: -9px; top: 0.45rem; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 3px solid var(--line); }
.step-item__label { font-family: var(--font-heading); font-weight: 500; color: var(--navy); }
.step-item__detail { font-size: 0.95rem; }
.step-item--done::before { background: var(--navy); border-color: var(--navy); }
.step-item--current::before { border-color: var(--orange); }
.owner { display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; vertical-align: middle; }
.owner--us { background: var(--cream); color: var(--navy); border: 1px solid var(--line); }
.owner--you { background: var(--orange); color: var(--white); }
.table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--white); }
.dash-table th, .dash-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dash-table th { font-family: var(--font-heading); font-weight: 500; }
.tag { display: inline-block; margin: 0 0.25rem 0.25rem 0; padding: 0.1rem 0.5rem; border-radius: 6px; background: var(--cream); border: 1px solid var(--line); font-size: 0.8rem; white-space: nowrap; }

/* Project brief */
.step-item__detail .button { display: table; margin-top: 0.6rem; }
.brief-toc { list-style: none; margin: 1.5rem 0; padding: 0; border-top: 1px solid var(--line); }
.brief-toc__item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--line); }
.brief-toc__item a { font-family: var(--font-heading); font-weight: 500; }
.brief-toc__item--done .muted::before { content: "✓ "; }
.brief-field { margin: 1.5rem 0; padding: 0; border: none; }
.brief-field legend { font-weight: 500; font-size: 1.05rem; padding: 0 0 0.4rem; }
.brief-field__heading { font-size: 1.2rem; margin: 0 0 0.25rem; }
.brief-location { margin: 1rem 0; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.brief-location legend { font-family: var(--font-heading); font-weight: 500; padding: 0 0.4rem; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-top: 1rem; }
textarea { resize: vertical; }

.copy-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.copy-row code { padding: 0.15rem 0.4rem; border-radius: 6px; background: var(--cream); border: 1px solid var(--line); font-size: 0.95rem; }
.copy-button.button { margin-top: 0; padding: 0.3rem 0.8rem; font-size: 0.9rem; }
.brief-field--scale { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.brief-field--scale legend { width: 100%; }
.brief-field--scale .option { display: inline-flex; align-items: center; gap: 0.35rem; }

/* Term rewards */
.rewards { margin-top: 1.25rem; padding: 1.25rem; border-radius: var(--radius); background: var(--cream); }
.rewards h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.rewards__perks { margin: 0 0 0.75rem; padding-left: 1.2rem; }
.rewards .brief-field { margin: 0.5rem 0; }


/* Uploads */
.upload input[type="file"] { width: 100%; padding: 0.6rem; border: 2px dashed #b9c1bd; border-radius: 8px; background: var(--white); font: inherit; font-size: 0.95rem; }
.upload__list { list-style: none; margin: 0.25rem 0 0.5rem; padding: 0; }
.upload__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.upload__status { margin: 0.4rem 0 0; font-size: 0.95rem; color: var(--ink-soft); white-space: pre-line; }
.upload__status--error { color: #9b2c12; font-weight: 600; }
.link-button { padding: 0; border: none; background: none; color: var(--orange); font: inherit; font-size: 0.9rem; text-decoration: underline; cursor: pointer; }

/* Messages */
.project-messages { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 1rem 0 0; }
.project-messages .button { margin-top: 0; }
.messages { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 0.75rem; }
.message { padding: 0.9rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); max-width: 90%; }
.message--staff { background: var(--cream); justify-self: end; }
.message__meta { margin: 0 0 0.3rem; color: var(--ink-soft); font-size: 0.85rem; }
.message__body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Staff queue: color shows urgency, and every item also has a text label and
   an icon, so color is never the only signal. */
.queue { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.6rem; }
.queue__item { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: 0.4rem 1rem; align-items: start; padding: 0.8rem 1rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-left-width: 6px; }
.queue__title, .queue__detail { margin: 0; }
.queue__detail { color: var(--ink-soft); font-size: 0.92rem; overflow-wrap: anywhere; }
.queue__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.queue__actions form { margin: 0; }
@media (max-width: 600px) { .queue__item { grid-template-columns: 1fr; } .queue__actions { flex-direction: row; align-items: center; gap: 1rem; } }
.urgency { display: inline-flex; justify-self: start; align-items: center; gap: 0.35rem; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; color: #14243a; }
.urgency--green { background: #cdeccf; }
.urgency--yellow { background: #fbe7a1; }
.urgency--orange { background: #f9c58e; }
.urgency--red { background: #b42318; color: #fff; }
.urgency--blue { background: #cfe6f7; }
.urgency--gray { background: #e3e5e8; color: #3d4652; }
.queue__item--green { border-left-color: #3f9a4b; }
.queue__item--yellow { border-left-color: #d9a400; }
.queue__item--orange { border-left-color: #e07b12; }
.queue__item--red { border-left-color: #b42318; animation: sb-pulse 2.4s ease-in-out infinite; }
.queue__item--blue { border-left-color: #5b9bd5; }
.queue__item--gray { border-left-color: #b5bac1; }
/* A slow, gentle pulse (well under 3 flashes a second), off for anyone who
   asks for reduced motion. */
@keyframes sb-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(180 35 24 / 0); } 50% { box-shadow: 0 0 0 4px rgb(180 35 24 / 0.25); } }
@media (prefers-reduced-motion: reduce) { .queue__item--red { animation: none; } }

/* Support hours */
.support-buy, .support-log { margin: 1.5rem 0; padding: 1.25rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.support-buy .dash__subhead, .support-log .dash__subhead { margin-top: 0; }
.support-buy select { max-width: 8rem; }
.support-log__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0 1rem; }
.owed { color: #9b2c12; font-weight: 600; }
.auth__or { display: flex; align-items: center; gap: 0.75rem; margin: 1.75rem 0 0.5rem; color: var(--ink-soft); font-size: 0.95rem; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

