/* ============================================================
   DaltonianFlux-ready site foundation
   Edit colors here — everything derives from these variables.
   ============================================================ */
:root {
  --paper: #f6f8f9;      /* page background */
  --ink: #131a21;        /* main text */
  --muted: #5b6773;      /* secondary text */
  --line: #d7dde2;       /* borders */
  --accent: #0e7c86;     /* buttons / links — change one value to retheme */
  --accent-dark: #0a5d65;
  --white: #ffffff;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- header / nav ---------- */
header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.nav {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* small spectrum mark next to the brand name */
.brand svg { display: block; }

nav.links { display: flex; gap: 26px; }

nav.links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

nav.links a:hover,
nav.links a:focus-visible { color: var(--ink); }

nav.links a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---------- main layout ---------- */
main { flex: 1; }

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- hero (index) ---------- */
.hero {
  text-align: center;
  padding: 20px 24px 64px; /* eyebrows sit this far from the top */
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* top eyebrow: bold, display font, slightly larger */
.eyebrow-top {
  font-family: var(--font-display); /* EDIT: swap font here */
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 40px;
}

/* second eyebrow keeps the mono style */
.eyebrow-sub {
  margin-bottom: 0;
  font-family: var(--font-body);
  max-width: 570px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.5;
  color: #5b6773;
  font-weight: 700;
  font-size: 1rem;
}

/* gap between eyebrows and headline — this keeps the headline low */
.hero h1 {
  margin-top: 20px; /* EDIT: raise/lower headline block */
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 720px;
  margin: 0 auto 16px;
}

.hero p.sub {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ---------- order block: big button + quantity ---------- */
.order-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
}

.qty button {
  font-family: var(--font-display);
  font-size: 1.3rem;
  width: 52px;
  height: 52px;
  border: none;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.qty button:hover { background: var(--paper); }
.qty button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.qty input {
  width: 72px;
  height: 52px;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--white);
}

.qty input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }

/* hide number-input spinners */
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.qty-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.big-button {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  background: var(--accent);
  border: none;
  border-radius: 14px;
  padding: 26px 72px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 18px rgba(14, 124, 134, 0.28);
}

.big-button:hover { background: var(--accent-dark); }
.big-button:active { transform: translateY(1px); }
.big-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- inner pages (about / contact) ---------- */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.page h1 { text-align: left; margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); }

.page .eyebrow { margin-bottom: 12px; }

.page h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 40px 0 10px;
}

.page p { color: var(--ink); margin-bottom: 16px; }
.page p.muted { color: var(--muted); }

.page a { color: var(--accent); }

.contact-line {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-line .k {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 90px;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- responsive ---------- */
@media (max-width: 600px) {
  nav.links { gap: 16px; }
  .big-button { padding: 22px 48px; width: 100%; }
  .order-block { width: 100%; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .big-button { transition: none; }
}
.price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.price-unit {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}
.hero-card {
  max-width: 640px;            /* width of the box */
  margin: 0 auto;              /* centered */
  padding: 48px 32px 56px;     /* space between line and content */
  border: 1px solid var(--accent);  /* thin teal line — try var(--line) for subtle gray */
  border-radius: 18px;         /* corner roundness */
}
.fine-print {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);        /* grey, overrides the teal link color */
  text-decoration: none;
  margin-top: 2px;
}

.fine-print:hover {
  text-decoration: underline; /* signals it's clickable — delete if unwanted */
}
.hero p.sub { margin-bottom: 6px; }
.hero p.sub:last-of-type { margin-bottom: 48px; }
.hero p.sub-small {
  font-size: 0.8rem;
  color: var(--muted);
}
.about-img {
  width: 700px;
  height: auto;
  display: block;
  margin: -12px auto 24px;   /* first value: negative pulls it up */
  border-radius: 12px;
}
.modal-overlay {
  display: none;                 /* hidden by default */
  position: fixed;
  inset: 0;
  background: rgba(19, 26, 33, 0.55);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open { display: flex; }   /* JS adds this class to show it */

.modal {
  background: var(--white);
  border-radius: 18px;
  padding: 36px 32px 32px;
  width: 100%;
  max-width: 460px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.modal textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
}

.modal textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.modal-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
  margin-top: 6px;
}

.modal-submit { margin-top: 20px; width: 100%; padding: 18px; }
.modal-text {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.ack {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.45;
  margin: 18px 0 4px;
  cursor: pointer;
  background: #fff8dd;
  border: 1px solid #f0dfa0;
  border-radius: 10px;
  padding: 12px 14px;
}

.ack input {
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.ack.warn { color: #b3402f; }
.ack.warn input { outline: 2px solid #b3402f; outline-offset: 2px; }
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px 26px;
  margin: 0;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(14, 124, 134, 0.10);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.steps h2 { margin: 0 0 6px; font-size: 1.05rem; }
.steps p  { color: var(--muted); font-size: 0.92rem; margin: 0; }

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}
.page h2.section-head {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  font-family: var(--font-display);
  line-height: 1.12;
  text-align: left;
  margin-top: 10px;
  margin-bottom: 20px;
  clear: both;
}
.steps { margin-bottom: 0px; }
.page { padding-top: 24px; }
.steps-wrap {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-tight { padding-bottom: 12px !important; }
.steps-wrap { margin-top: 0; }
.steps { margin-top: 0px; }
.page p.section-sub {
  color: var(--muted);
  font-size: 1.1rem;
  text-align: left;
  max-width: 560px;
  margin: 0 0 28px;
}
.page h3.para-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 26px 0 6px;
}
.page p.para-body {
  font-size: 0.98rem;
  color: var(--muted) !important;
}
.figure-right {
  float: right;
  width: 340px;
  height: auto;
  border-radius: 12px;
  margin: 4px -40px 16px 40px;
}

@media (max-width: 720px) {
  .figure-right {
    float: none;
    width: 100%;
    margin: 16px 0;
  }
}


.page-inset { padding-left: 10px; }
.page-wide { max-width: 960px; }


.page-wide { max-width: 960px; }

.split {
  display: grid;
  grid-template-columns: 1fr 600px;
  gap: 40px;
  align-items: start;
  margin-top: 28px;
}

.split img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; }
}
.split h2:first-child { margin-top: 0; }
.disclaimer {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 620px;
  margin: 26px auto 0;
  text-align: center;
}
/* ---------- success / cancel status pages ---------- */
.status-page {
  padding-top: 40px;
  padding-bottom: 64px;
}
.status-card {
  text-align: center;
}
.status-card h1 {
  margin-top: 8px;
  margin-bottom: 12px;
}
.status-card .sub {
  margin-bottom: 28px !important;
  max-width: 480px;
}
.cancel-title {
  color: #b3402f;
}
.barcode-wrap {
  margin: 8px auto 28px;
}
.barcode-img {
  display: block;
  margin: 0 auto 12px;
  max-width: 100%;
  height: auto;
  background: #fff;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.order-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
  line-height: 1.5;
}
.ship-block {
  margin: 0 auto 24px;
  max-width: 360px;
  text-align: center;
}
.ship-address {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.next-steps {
  text-align: left;
  max-width: 420px;
  margin: 0 auto 28px;
  background: rgba(14, 124, 134, 0.06);
  border: 1px solid rgba(14, 124, 134, 0.22);
  border-radius: 14px;
  padding: 20px 22px;
}
.next-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 10px;
}
.next-steps ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink);
}
.next-steps li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.next-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.status-cta {
  display: inline-block;
  text-decoration: none;
  padding: 18px 48px;
  font-size: 1.1rem;
}
.modal-total {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 14px;
  color: var(--ink);
}
.disclaimer {
  max-width: 640px;
  margin: 28px auto 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}
.big-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
