/* ============================================================
   Stitch Official — royal-blue brand, thread motif, motion pass
   ============================================================ */
:root {
  --blue: #1c4fc3;        /* brand royal blue (from stitchofficial.com) */
  --blue-bright: #2e63e6;
  --blue-deep: #123a94;
  --blue-ink: #0a1f52;    /* deepest blue for dark surfaces */
  --canvas: #f6f2e9;      /* ecru canvas */
  --canvas-2: #ece7da;
  --gold: #e8a33d;        /* marigold thread */
  --gold-soft: #f3c37a;
  --red: #cd4737;         /* thread red */
  --teal: #2e8c87;        /* spool teal */
  --text: #1b2440;
  --text-soft: #56607a;
  --text-inverse: #f3efe6;
  --text-inverse-soft: #b6c2e4;

  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --measure: 62ch;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(10, 31, 82, .4);
}

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

html { scroll-behavior: smooth; }
section[id], .proof { scroll-margin-top: 92px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  color: inherit;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.22rem; font-weight: 700; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.mono { font-family: var(--font-mono); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9rem;
}
.section--ink .eyebrow, .cta .eyebrow, .hero .eyebrow, .band .eyebrow { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* shine sweep */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
}
.btn:hover::after { transition: transform .55s ease; transform: translateX(130%); }

.btn--gold {
  background: var(--gold);
  color: var(--blue-ink);
  box-shadow: 0 8px 20px -10px rgba(232, 163, 61, .8);
}
.btn--gold:hover { background: var(--gold-soft); }

.btn--blue {
  background: linear-gradient(120deg, var(--blue), var(--blue-bright));
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(28, 79, 195, .8);
}
.btn--blue:hover { background: linear-gradient(120deg, var(--blue-deep), var(--blue)); }

.btn--ghost {
  border-color: currentColor;
  color: var(--text-inverse);
}

.btn--ink {
  background: var(--blue);
  color: #fff;
}
.btn--ink:hover { background: var(--blue-deep); }

/* ---------- Top bar (royal blue, like stitchofficial.com) ---------- */
.topbar {
  background: linear-gradient(100deg, var(--blue-deep), var(--blue) 45%, var(--blue-bright));
  background-size: 200% 100%;
  animation: topbar-flow 14s ease infinite alternate;
  color: rgba(255, 255, 255, .92);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .05em;
}
@keyframes topbar-flow {
  from { background-position: 0% 0; }
  to { background-position: 100% 0; }
}
.topbar__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: .55rem 1.5rem;
  display: flex;
  gap: 1.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__link { text-decoration: none; }
.topbar__link:hover { color: var(--gold-soft); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot--gold { background: var(--gold); }
.dot--red { background: #ffb3a8; }
.dot--teal { background: #7fe0da; }
.topbar__account {
  margin-left: .4rem;
  padding-left: 1.4rem;
  border-left: 1px dashed rgba(255, 255, 255, .3);
}
.topbar__account svg { width: 13px; height: 13px; }
@media (max-width: 560px) {
  .topbar__account { display: none; }
}
/* Mirror of .topbar__account, but living in the hamburger menu instead of
   the topbar — hidden everywhere except the exact width where the topbar's
   own version disappears, so phones always have a way to reach it and
   nothing is ever shown twice. Two-class selector is deliberate: the
   existing `a.nav__item { display: block }` rule inside the ≤860px nav
   block below has higher specificity than a single class and would
   otherwise win outside the 560px window regardless of source order. */
.nav__links .nav__item--mobile-account { display: none; }
@media (max-width: 560px) {
  .nav__links .nav__item--mobile-account { display: block; }
}
.topbar__account-drop { position: relative; }
.topbar__account-drop .caret { color: rgba(255, 255, 255, .75); margin-left: .1rem; }
.topbar__account-drop .drop {
  top: calc(100% + .7rem);
  left: auto;
  right: -.6rem;
  min-width: 170px;
  padding: .6rem .7rem;
}
.topbar__right {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}
.topbar__cart { position: relative; }
.topbar__cart svg { width: 15px; height: 15px; }
.topbar__cart-badge {
  position: absolute;
  top: -.6rem;
  right: -.7rem;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--blue-ink);
  font-size: .62rem;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}
@media (max-width: 560px) {
  .topbar__right { display: none; }
}
.topbar__account-drop:hover .drop,
.topbar__account-drop:focus-within .drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Nav (white, like stitchofficial.com — sharper) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fffdf8;
  color: var(--text);
  border-bottom: 1px solid rgba(28, 79, 195, .12);
  transition: box-shadow .25s ease;
}
.nav.is-stuck { box-shadow: 0 10px 30px -12px rgba(10, 31, 82, .28); }
.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: .55rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo {
  height: 56px;
  width: auto;
  transition: transform .25s ease;
}
.brand:hover .brand__logo { transform: scale(1.05) rotate(-2deg); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
.nav__item > a, a.nav__item {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: .3rem 0;
  border-bottom: 2px dashed transparent;
  transition: color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.nav__item > a:hover, a.nav__item:hover { color: var(--blue); border-bottom-color: var(--gold); }
.caret { font-size: .7em; color: var(--gold); }

/* dropdowns */
.nav__item--drop { position: relative; }
.drop {
  position: absolute;
  top: calc(100% + .9rem);
  left: -1rem;
  min-width: 220px;
  background: #fffdf8;
  border: 1px solid rgba(28, 79, 195, .14);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 26px 50px -20px rgba(10, 31, 82, .4);
  padding: 1rem 1.2rem;
  display: grid;
  gap: .1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 60;
}
.drop::before {
  content: "";
  position: absolute;
  top: -1rem; left: 0; right: 0;
  height: 1rem;
}
.nav__item--drop:hover .drop,
.nav__item--drop:focus-within .drop,
.nav__item--drop.is-open .drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.drop a {
  text-decoration: none;
  font-size: .87rem;
  color: var(--text-soft);
  padding: .32rem .4rem;
  border-radius: 6px;
  border-bottom: 0;
  transition: color .12s ease, background .12s ease, padding-left .15s ease;
  white-space: nowrap;
}
.drop a:hover { color: var(--blue); background: rgba(28, 79, 195, .07); padding-left: .7rem; }
.drop__head {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 .35rem .4rem;
}
.nav__inner { position: relative; }
.nav__item--mega { position: static; }
.drop--mega {
  left: 1.5rem;
  right: 1.5rem;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
  padding: 1.4rem 1.7rem 1.5rem;
}
.drop__col { display: grid; gap: .1rem; align-content: start; }

/* search */
.nav__search { position: relative; flex: 1; min-width: 170px; max-width: 330px; margin-left: auto; }
.search {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: #fff;
  border: 1.5px solid rgba(28, 79, 195, .25);
  border-radius: 999px;
  padding: .35rem .45rem .35rem .8rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(28, 79, 195, .12);
}
.search__icon { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--text);
}
.search input:focus { outline: none; }
.search input::placeholder { color: #9aa3bd; }
.search__go {
  border: 0;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  border-radius: 999px;
  padding: .42rem .85rem;
  transition: background .15s ease;
}
.search__go:hover { background: var(--blue-deep); }
.search__results {
  position: absolute;
  top: calc(100% + .6rem);
  left: 0; right: 0;
  min-width: 300px;
  background: #fffdf8;
  border: 1px solid rgba(28, 79, 195, .14);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 26px 50px -20px rgba(10, 31, 82, .4);
  padding: .5rem;
  z-index: 70;
  max-height: 380px;
  overflow-y: auto;
}
.search__result {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  padding: .6rem .7rem;
  border-radius: 8px;
  transition: background .12s ease;
}
.search__result:hover, .search__result:focus-visible { background: rgba(28, 79, 195, .08); }
.search__result-title {
  display: block;
  font-weight: 600;
  font-size: .87rem;
  color: var(--blue-deep);
}
.search__result-snippet {
  display: block;
  font-size: .78rem;
  color: var(--text-soft);
  margin-top: .1rem;
}
.search__empty {
  padding: .8rem .7rem;
  font-size: .84rem;
  color: var(--text-soft);
}
.search__empty strong { color: var(--blue-deep); }

/* section highlight after search jump */
@keyframes flash-outline {
  0% { outline-color: var(--gold); }
  100% { outline-color: transparent; }
}
.flash {
  outline: 4px dashed transparent;
  outline-offset: -4px;
  animation: flash-outline 1.8s ease-out;
}

.nav__cta { padding: .6rem 1.3rem; font-size: .88rem; }
.nav__burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .4rem;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--blue-deep);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero (deep royal blue, ambient motion) ---------- */
.hero {
  position: relative;
  background: linear-gradient(155deg, #1b46ab, var(--blue-deep) 55%, var(--blue-ink));
  color: var(--text-inverse);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero::before {
  width: 640px; height: 640px;
  right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(46, 99, 230, .55), transparent 65%);
  animation: drift-a 16s ease-in-out infinite alternate;
}
.hero::after {
  width: 520px; height: 520px;
  left: -180px; bottom: -200px;
  background: radial-gradient(circle, rgba(205, 71, 55, .35), transparent 65%);
  animation: drift-b 20s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-70px, 50px) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, -40px) scale(1.1); }
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) 1.5rem clamp(5rem, 10vw, 8rem);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 1.4rem;
}
.stitched { display: block; position: relative; }
.stitched__svg { width: min(100%, 560px); height: auto; display: block; overflow: visible; }
.stitched__text {
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 800;
  letter-spacing: -.02em;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-dasharray: 7 5;
  stroke-linecap: round;
}
.hero__sub {
  max-width: 52ch;
  color: var(--text-inverse-soft);
  font-size: 1.06rem;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.hero__formats {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .72rem;
  letter-spacing: .08em;
}
.hero__formats span {
  border: 1px dashed rgba(243, 239, 230, .38);
  color: var(--text-inverse-soft);
  border-radius: 6px;
  padding: .28rem .6rem;
}
.hero__media { position: relative; margin: 0; }
.hero__frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  outline: 2px dashed rgba(232, 163, 61, .6);
  outline-offset: 10px;
  transform: rotate(1.5deg);
  transition: transform .4s ease;
}
.hero__media:hover .hero__frame { transform: rotate(0deg) scale(1.015); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.hero__tag {
  position: absolute;
  left: -1rem;
  bottom: -1.2rem;
  background: var(--canvas);
  color: var(--text);
  font-size: .78rem;
  padding: .7rem 1.1rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  animation: tag-bob 5s ease-in-out infinite;
}
@keyframes tag-bob {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-6px); }
}
.hero__tag-num { color: var(--red); font-weight: 600; }
.hero__thread {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  pointer-events: none;
  z-index: 1;
}
.hero__thread svg { width: 100%; height: 70px; display: block; opacity: .9; }
.hero__thread path {
  animation: thread-run 1.4s linear infinite;
}
@keyframes thread-run {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -16; }
}

/* ---------- Marquee ticker ---------- */
.marquee {
  background: var(--gold);
  color: var(--blue-ink);
  overflow: hidden;
  transform: rotate(-1.2deg) scale(1.02);
  margin: -1rem 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 30px -16px rgba(10, 31, 82, .45);
}
.marquee__track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  padding: .78rem 0;
  animation: marquee-scroll 28s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
}
.marquee__track span::after {
  content: "✦";
  color: var(--red);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Brands strip ---------- */
.brands {
  background: #fffdf8;
  border-bottom: 1px solid rgba(28, 79, 195, .1);
  padding: 1.9rem 0 1.6rem;
  overflow: hidden;
}
.brands__inner { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.brands__label {
  text-align: center;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.1rem;
}
.brands__row {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brands__track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.brands__row:hover .brands__track { animation-play-state: paused; }
.brandchip {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-soft);
  white-space: nowrap;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .25s ease, opacity .25s ease, color .25s ease;
}
.brandchip:hover { filter: none; opacity: 1; color: var(--blue-deep); }
.brandchip img { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; }
.brandchip__mono {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--blue-deep);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
}

/* ---------- Craft video ---------- */
.craft { padding-top: clamp(3rem, 6vw, 4.5rem); }
.craft__player {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  outline: 2px dashed rgba(28, 79, 195, .45);
  outline-offset: 10px;
}
.craft__player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.craft__tag {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  background: rgba(10, 31, 82, .85);
  color: var(--text-inverse);
  font-size: .74rem;
  letter-spacing: .06em;
  padding: .55rem .95rem;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

/* ---------- Showcase carousel (image + quote, arrow-driven) ---------- */
.showcase { position: relative; padding: 0 2.6rem; }
.showcase__viewport {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px -18px rgba(10, 31, 82, .25);
  border: 1px solid rgba(28, 79, 195, .12);
}
.showcase__track {
  display: flex;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  touch-action: pan-y;
}
.showcase__slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 300px;
  background: #fffdf8;
}
.showcase__media { overflow: hidden; position: relative; }
.showcase__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.showcase__content {
  padding: clamp(1.6rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  justify-content: center;
}
.showcase__content blockquote {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  border-left: 2px dashed rgba(232, 163, 61, .6);
  padding-left: .9rem;
}
.showcase__content footer { display: grid; gap: .1rem; }
.showcase__content footer strong { font-family: var(--font-display); font-size: .98rem; color: var(--blue-deep); }
.showcase__content footer span { font-size: .8rem; color: var(--text-soft); }
.showcase__stars { color: var(--gold); letter-spacing: .2em; font-size: .95rem; }

.showcase__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(28, 79, 195, .25);
  background: #fffdf8;
  color: var(--blue-deep);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -14px rgba(10, 31, 82, .35);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.showcase__arrow:hover { background: var(--blue); color: #fff; transform: translateY(-50%) scale(1.08); }
.showcase__arrow--prev { left: 0; }
.showcase__arrow--next { right: 0; }

.showcase__dots {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: 1.3rem;
}
.showcase__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(28, 79, 195, .25);
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.showcase__dot.is-active { background: var(--blue); transform: scale(1.3); }

@media (max-width: 720px) {
  .showcase { padding: 0; }
  .showcase__slide { grid-template-columns: 1fr; }
  .showcase__media { aspect-ratio: 16 / 10; }
  .showcase__arrow { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section__inner, .proof__inner, .footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section--canvas { background: var(--canvas); }
.section--ink {
  background: linear-gradient(160deg, #16409e, var(--blue-deep) 50%, var(--blue-ink));
  color: var(--text-inverse);
}
.section__head { max-width: var(--measure); margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section__lead { color: var(--text-soft); margin-top: .8rem; font-size: 1.05rem; }
.section--ink .section__lead { color: var(--text-inverse-soft); }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.6rem;
}
.card {
  background: #fffdf8;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px -18px rgba(10, 31, 82, .25);
  border: 1px solid rgba(28, 79, 195, .1);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(28, 79, 195, .35);
  box-shadow: 0 24px 44px -20px rgba(10, 31, 82, .35);
}
.card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card__media img { transform: scale(1.045); }
.card__body {
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  flex: 1;
}
.card__body p { color: var(--text-soft); font-size: .93rem; }
.card__spec {
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--blue-deep);
  background: rgba(28, 79, 195, .08);
  border-radius: 7px;
  padding: .45rem .7rem;
  align-self: flex-start;
}
.card__link {
  margin-top: auto;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  color: var(--blue);
}
.card__link:hover { text-decoration: underline; color: var(--red); }

/* ---------- Intro services (post-hero, 3-up) ---------- */
.svc3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.7rem;
}
.svc3-card {
  background: #fffdf8;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px -18px rgba(10, 31, 82, .25);
  border: 1px solid rgba(28, 79, 195, .1);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.svc3-card:hover {
  transform: translateY(-6px);
  border-color: rgba(28, 79, 195, .35);
  box-shadow: 0 24px 44px -20px rgba(10, 31, 82, .35);
}
.svc3-card__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--canvas), var(--canvas-2));
  border-bottom: 1px solid rgba(28, 79, 195, .1);
}
.svc3-card__visual svg,
.svc3-card__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.svc3-card__visual svg { object-fit: contain; padding: .6rem; }
.svc3-card__visual img { object-fit: cover; }
.svc3-card__body {
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  flex: 1;
}
.svc3-card__body p { color: var(--text-soft); font-size: .93rem; }
.svc3-card__link {
  margin-top: auto;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  color: var(--blue);
}
.svc3-card__link:hover { text-decoration: underline; color: var(--red); }

.diagram-garment { fill: var(--canvas-2); stroke: var(--text); stroke-opacity: .55; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.diagram-seam { fill: none; stroke: var(--text); stroke-opacity: .3; stroke-width: 1.1; }
.diagram-box { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 4 3; }
.diagram-lead { fill: none; stroke: var(--gold); stroke-width: 1; stroke-dasharray: 2 2; }
.diagram-dot { fill: var(--gold); }
.diagram-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  fill: var(--blue-deep);
  text-transform: uppercase;
}

/* ---------- Process steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem 1.8rem;
}
.step {
  position: relative;
  padding-top: 1.1rem;
  border-top: 2px dashed rgba(232, 163, 61, .55);
}
.step__num {
  color: var(--gold);
  font-size: .8rem;
  letter-spacing: .18em;
  display: block;
  margin-bottom: .6rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--text-inverse-soft); font-size: .93rem; }
.steps__note {
  margin-top: 2.6rem;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--gold-soft);
  text-align: center;
}

/* ---------- Patches band (parallax) ---------- */
.band {
  position: relative;
  color: var(--text-inverse);
  overflow: hidden;
  display: grid;
}
.band__img {
  grid-area: 1 / 1;
  width: 100%; height: 115%;
  object-fit: cover;
  min-height: 520px;
  will-change: transform;
}
.band__scrim {
  grid-area: 1 / 1;
  background: linear-gradient(100deg, rgba(10, 31, 82, .95) 30%, rgba(10, 31, 82, .76) 58%, rgba(18, 58, 148, .35));
}
.band__inner {
  grid-area: 1 / 1;
  align-self: center;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
  position: relative;
  z-index: 1;
}
.band__inner h2 { max-width: 15ch; margin-bottom: 1.4rem; }
.band__types {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1.4rem;
}
.band__types li {
  border: 1px dashed rgba(243, 239, 230, .5);
  border-radius: 999px;
  padding: .32rem .85rem;
  font-size: .74rem;
  letter-spacing: .07em;
  transition: background .2s ease, border-color .2s ease;
}
.band__types li:hover { background: rgba(232, 163, 61, .18); border-color: var(--gold); }
.band__copy { max-width: 46ch; color: var(--text-inverse-soft); margin-bottom: 1.8rem; }

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  align-items: stretch;
}
.price {
  background: #fffdf8;
  border: 1px solid rgba(28, 79, 195, .12);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform .22s ease, box-shadow .22s ease;
}
.price:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px -22px rgba(10, 31, 82, .3);
}
.price--featured {
  background: linear-gradient(160deg, #16409e, var(--blue-deep) 60%, var(--blue-ink));
  color: var(--text-inverse);
  border: 0;
  box-shadow: var(--shadow);
  position: relative;
}
.price__flag {
  position: absolute;
  top: -0.85rem;
  left: 1.8rem;
  background: var(--red);
  color: #fff;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .32rem .8rem;
  border-radius: 999px;
}
.price__name { font-size: 1.05rem; }
.price__fig { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.price__fig .mono:first-child {
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: -.03em;
}
.price--featured .price__fig .mono:first-child { color: var(--gold); }
.price__per { font-size: .85rem; color: var(--text-soft); }
.price--featured .price__per { color: var(--text-inverse-soft); }
.price__list {
  list-style: none;
  display: grid;
  gap: .55rem;
  font-size: .92rem;
  color: var(--text-soft);
  flex: 1;
}
.price--featured .price__list { color: var(--text-inverse-soft); }
.price__list li { padding-left: 1.3rem; position: relative; }
.price__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 12px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.price .btn { align-self: flex-start; }

/* ---------- Monthly plans ---------- */
.plans {
  margin-top: 2.6rem;
  background: var(--canvas-2);
  border: 1px dashed rgba(28, 79, 195, .35);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.plans__intro { max-width: 30ch; }
.plans__intro p { color: var(--text-soft); font-size: .93rem; margin-top: .4rem; }
.plans__intro strong { color: var(--red); }
.plans__tiers {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.plans__tiers li {
  background: #fffdf8;
  border-radius: 10px;
  padding: .9rem 1.3rem;
  display: grid;
  gap: .15rem;
  min-width: 128px;
  border: 1px solid rgba(28, 79, 195, .12);
  transition: transform .2s ease, border-color .2s ease;
}
.plans__tiers li:hover { transform: translateY(-4px); border-color: var(--blue); }
.plans__tier {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
}
.plans__tiers .mono { color: var(--blue); font-weight: 600; font-size: .95rem; }
.plans__qty { font-size: .78rem; color: var(--text-soft); }

/* ---------- Proof strip ---------- */
.proof {
  background: var(--canvas-2);
  border-top: 2px dashed rgba(28, 79, 195, .3);
  border-bottom: 2px dashed rgba(28, 79, 195, .3);
  padding: 2.4rem 0;
}
.proof__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.proof__item dt {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  color: var(--blue-deep);
  letter-spacing: -.02em;
}
.proof__item dt::after { content: "+"; color: var(--red); }
.proof__item:nth-child(3) dt::after { content: ""; }
.proof__item dd {
  font-size: .85rem;
  color: var(--text-soft);
  margin-top: .2rem;
}

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(800px 400px at 50% -20%, rgba(232, 163, 61, .22), transparent 60%),
    linear-gradient(160deg, #16409e, var(--blue-deep) 50%, var(--blue-ink));
  color: var(--text-inverse);
  padding: clamp(4.5rem, 9vw, 7rem) 1.5rem;
  text-align: center;
}
.cta__inner { max-width: 720px; margin: 0 auto; }
.cta h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
.cta__sub { color: var(--text-inverse-soft); margin-bottom: 2.2rem; }
.cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer (light, like stitchofficial.com — sharper) ---------- */
.footer {
  background: #fffdf8;
  color: var(--text-soft);
  padding: 0 0 1.6rem;
  font-size: .9rem;
  border-top: 1px solid rgba(28, 79, 195, .12);
}

/* newsletter panel */
.footer__signup {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  transform: translateY(-3.2rem);
}
.signup {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 55%, var(--blue-bright));
  background-size: 180% 100%;
  animation: topbar-flow 12s ease infinite alternate;
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.signup__intro h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.signup__intro p { color: rgba(255, 255, 255, .75); font-size: .9rem; }
.signup__form {
  display: flex;
  gap: .6rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.signup__form input {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  min-width: 240px;
}
.signup__form input::placeholder { color: rgba(255, 255, 255, .65); }
.signup__form input:focus-visible { outline-color: var(--gold); background: rgba(255, 255, 255, .2); }

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-top: .5rem;
}
.footer__brand p { margin-top: 1rem; max-width: 36ch; font-size: .88rem; }
.brand--footer { color: var(--blue-deep); }
.footer__questions {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.footer__questions-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(28, 79, 195, .1);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.footer__questions-label { font-size: .78rem; }
.footer__questions a {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .95rem;
  color: var(--blue-deep);
  text-decoration: none;
}
.footer__questions a:hover { color: var(--red); }
.footer__col { display: grid; gap: .55rem; align-content: start; }
.footer__col h4 {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: .4rem;
}
.footer__col a {
  text-decoration: none;
  color: var(--text-soft);
  transition: color .15s ease, transform .15s ease;
}
.footer__col a:hover { color: var(--blue); }
.footer__hours { font-size: .85rem; }
.footer__social {
  display: flex;
  gap: .6rem;
  margin-top: .6rem;
}
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(28, 79, 195, .25);
  color: var(--blue);
  display: grid;
  place-items: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer__social a:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-3px);
}
.footer__social svg { width: 16px; height: 16px; fill: currentColor; }
.footer__legal {
  max-width: 1180px;
  margin: 3rem auto 0;
  padding: 1.4rem 1.5rem 0;
  border-top: 1px dashed rgba(28, 79, 195, .25);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .72rem;
  letter-spacing: .06em;
}
.footer__pay {
  list-style: none;
  display: flex;
  gap: .5rem;
  margin-left: auto;
}
.footer__pay li {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--blue-deep);
  border: 1px solid rgba(28, 79, 195, .25);
  border-radius: 5px;
  padding: .25rem .55rem;
  background: #fff;
}

/* ---------- Sub-page: hero ---------- */
.page-hero .hero__inner {
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem clamp(4rem, 8vw, 6rem);
}
.page-hero__title { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
.underline-stitch {
  position: relative;
  color: var(--gold);
}
.underline-stitch::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.12em;
  height: 3px;
  background-image: linear-gradient(90deg, var(--gold) 60%, transparent 60%);
  background-size: 14px 3px;
  border-radius: 2px;
}
.page-hero__frame img { aspect-ratio: 4 / 4.4; }
.breadcrumb {
  display: flex;
  gap: .6rem;
  align-items: center;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-inverse-soft);
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--text-inverse-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span[aria-current] { color: var(--gold); }
.check-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.8rem;
}
.check-list li {
  border: 1px dashed rgba(243, 239, 230, .4);
  border-radius: 999px;
  padding: .38rem .9rem .38rem .75rem;
  font-size: .82rem;
  color: var(--text-inverse-soft);
}
.check-list li::before {
  content: "✓ ";
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Sub-page: features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}
.feature {
  background: #fffdf8;
  border: 1px solid rgba(28, 79, 195, .12);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  transition: transform .22s ease, box-shadow .22s ease;
}
.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px -22px rgba(10, 31, 82, .3);
}
.feature__num {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px dashed var(--gold);
  color: var(--blue-deep);
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: .9rem;
}
.feature h3 { margin-bottom: .5rem; font-size: 1.08rem; }
.feature p { color: var(--text-soft); font-size: .92rem; }

/* ---------- Sub-page: placements ---------- */
.placement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
}
.placement {
  border-top: 2px dashed rgba(232, 163, 61, .55);
  padding-top: 1rem;
}
.placement__price {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: .4rem;
}
.placement h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.placement p { color: var(--text-inverse-soft); font-size: .9rem; }

/* ---------- Sub-page: techniques ---------- */
.tech-list {
  list-style: none;
  display: grid;
  gap: 0;
  margin-bottom: 1.6rem;
  max-width: 760px;
}
.tech-list li {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: .95rem .2rem;
  border-bottom: 1px dashed rgba(28, 79, 195, .25);
  transition: background .15s ease, padding-left .2s ease;
}
.tech-list li:hover { background: rgba(28, 79, 195, .05); padding-left: .8rem; }
.tech-list strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--blue-deep);
  flex: 0 0 11rem;
}
.tech-list span { color: var(--text-soft); font-size: .92rem; }
/* .tech-list is also used inside dark .section--ink sections (e.g. dtf.php,
   bopp.php, bullioncrest.php) — the default colors above are tuned for the
   light canvas background and are nearly unreadable on navy. Override just
   that context, matching the gold/inverse palette used elsewhere on ink
   sections (.step, .band__types). */
.section--ink .tech-list li { border-bottom-color: rgba(232, 163, 61, .3); }
.section--ink .tech-list strong { color: var(--text-inverse); }
.section--ink .tech-list span { color: var(--text-inverse-soft); }
.section--ink .tech-list li:hover { background: rgba(232, 163, 61, .08); }

/* ---------- Sub-page: formats table ---------- */
.formats {
  margin-top: 2.6rem;
  background: #fffdf8;
  border: 1px dashed rgba(28, 79, 195, .35);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
}
.formats__title { margin-bottom: 1.1rem; }
.formats__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
}
.formats__table th {
  text-align: left;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  padding: .5rem .6rem;
  border-bottom: 2px dashed rgba(28, 79, 195, .3);
}
.formats__table td {
  padding: .55rem .6rem;
  border-bottom: 1px dashed rgba(28, 79, 195, .18);
  color: var(--text);
}
.formats__table td:first-child { font-weight: 600; color: var(--blue-deep); }
.formats__table tr:hover td { background: rgba(28, 79, 195, .05); }
.formats__note { margin-top: 1rem; font-size: .85rem; color: var(--text-soft); }

/* ---------- Sub-page: FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px dashed rgba(28, 79, 195, .3);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem .2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  transition: color .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--gold);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq details[open] summary { color: var(--blue); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue); }
.faq details p {
  padding: 0 .2rem 1.2rem;
  color: var(--text-soft);
  font-size: .95rem;
  max-width: 70ch;
}

/* ---------- Account (sign in / register) ---------- */
.account { max-width: 440px; }
.account__tabs {
  display: flex;
  gap: .4rem;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}
.account__tab {
  flex: 1;
  border: 1px solid rgba(243, 239, 230, .25);
  border-bottom: 0;
  background: rgba(243, 239, 230, .06);
  color: var(--text-inverse-soft);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  padding: .8rem 1rem;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.account__tab.is-active {
  background: #fffdf8;
  color: var(--blue-deep);
}
.account__card {
  background: #fffdf8;
  border: 1px solid rgba(28, 79, 195, .12);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 1.8rem 1.8rem 1.6rem;
}
.account__panel { display: grid; gap: 1.1rem; }
.account__panel[hidden] { display: none; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--blue-deep); }
.field input {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .7rem .9rem;
  border-radius: 9px;
  border: 1.5px solid rgba(28, 79, 195, .22);
  background: #fff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(28, 79, 195, .12);
}
.field select, .field textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .7rem .9rem;
  border-radius: 9px;
  border: 1.5px solid rgba(28, 79, 195, .22);
  background: #fff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
  resize: vertical;
}
.field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(28, 79, 195, .12);
}
.field input[type="file"] { border-style: dashed; padding: .55rem .9rem; }
.field__help { font-size: .78rem; color: var(--text-soft); margin: 0; }
.field__required { color: var(--gold-deep, #b8791f); }
.field__honeypot { position: absolute; left: -9999px; }
.form-message {
  padding: .9rem 1.1rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.form-message--success { background: #dcf5e3; color: #1c6b35; border: 1px solid #a9e4bb; }
.form-message--error { background: #fbdede; color: #942222; border: 1px solid #f2b3b3; }
.contact-info__card {
  background: #fffdf8;
  border: 1px solid rgba(28, 79, 195, .12);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: grid;
  gap: 1.2rem;
  align-content: start;
}
.contact-info__item strong { display: block; color: var(--blue-deep); font-size: .85rem; margin-bottom: .2rem; }
.contact-info__item a { color: var(--blue); font-weight: 600; }
.contact-info__item small { display: block; color: var(--text-soft); font-size: .78rem; margin-top: .15rem; }
.contact-info__divider { border: 0; border-top: 1px solid rgba(28, 79, 195, .12); margin: 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 { color: var(--blue-deep); font-size: 1.3rem; margin: 2.2rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--blue-deep); font-size: 1.05rem; margin: 1.4rem 0 .6rem; }
.prose p { color: var(--text); line-height: 1.7; margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.3rem; line-height: 1.7; }
.prose li { margin-bottom: .5rem; }
.prose strong { color: var(--blue-deep); }
.prose .prose__meta { font-style: italic; color: var(--text-soft); text-align: center; margin-bottom: 2rem; }
.account__submit { width: 100%; text-align: center; }
.account__note { font-size: .82rem; color: var(--text-soft); line-height: 1.5; }
.account__link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.account__result {
  margin-top: 1rem;
  font-size: .88rem;
  color: var(--blue-deep);
  background: rgba(28, 79, 195, .08);
  border-radius: 8px;
  padding: .8rem 1rem;
}
.account-hero .breadcrumb { color: var(--text-inverse-soft); margin-bottom: 1.4rem; }
.account-hero .breadcrumb a { color: var(--text-inverse-soft); }
.account-hero .breadcrumb a:hover { color: var(--gold); }

/* ---------- Related services (cross-link module) ---------- */
.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.related__card {
  display: block;
  background: #fffdf8;
  border: 1px solid rgba(28, 79, 195, .12);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.related__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px -22px rgba(10, 31, 82, .3);
  border-color: rgba(28, 79, 195, .35);
}
.related__label {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}
.related__card h3 { margin-bottom: .4rem; font-size: 1.05rem; color: var(--blue-deep); }
.related__card p { color: var(--text-soft); font-size: .9rem; }
.related__card:hover h3 { color: var(--blue); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--stagger, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Stitch draw-on for hero word ---------- */
@keyframes sew {
  from { stroke-dashoffset: 900; }
  to { stroke-dashoffset: 0; }
}
.stitched__text { stroke-dashoffset: 0; }
.js .stitched__text { animation: sew 2.4s ease-out .3s both; stroke-dasharray: 7 5; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav__cta { display: none; }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 480px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .signup__form { margin-left: 0; }
}

@media (max-width: 860px) {
  .topbar__item--hide-sm { display: none; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fffdf8;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .6rem 1.5rem 1.2rem;
    display: none;
    box-shadow: 0 18px 30px -12px rgba(10, 31, 82, .25);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .nav__links.is-open { display: flex; }
  .nav__item > a, a.nav__item {
    display: block;
    padding: .8rem 0;
    border-bottom: 1px dashed rgba(28, 79, 195, .18);
    font-size: 1rem;
  }
  /* dropdowns become inline expanded lists on mobile */
  .drop, .drop--mega {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px dashed rgba(232, 163, 61, .6);
    border-radius: 0;
    padding: .4rem 0 .6rem 1rem;
    grid-template-columns: 1fr;
    gap: .1rem;
    min-width: 0;
  }
  .drop::before { display: none; }
  .drop a { white-space: normal; }
  /* ...except the topbar account menu, which isn't part of the nav__links
     mobile burger system — it's a small utility popup that should keep
     behaving as a real hover/focus popup down to the width where the
     whole topbar__right group hides (560px), not become an always-open
     inline list in this 560–860px range. */
  .topbar__account-drop .drop {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    box-shadow: 0 26px 50px -20px rgba(10, 31, 82, .4);
    border: 1px solid rgba(28, 79, 195, .14);
    border-top: 3px solid var(--gold);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: .6rem .7rem;
    min-width: 170px;
  }
  .topbar__account-drop:hover .drop,
  .topbar__account-drop:focus-within .drop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav__search { order: 5; flex-basis: 100%; max-width: none; margin: .2rem 0; }
  .nav__inner { gap: .8rem; flex-wrap: wrap; padding-bottom: .7rem; }
  .brand__logo { height: 46px; }
  .nav__burger { display: block; margin-left: auto; }
  .nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .plans__tiers { margin-left: 0; }
  .signup { padding: 1.6rem; }
  .signup__form input { min-width: 0; flex: 1; }
}

@media (max-width: 520px) {
  .footer__inner { grid-template-columns: 1fr; }
  .hero__tag { left: .5rem; }
  .footer__pay { margin-left: 0; }
}

/* ======= Account dashboard (customer account pages) ======= */
.dash {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
}
.dash__sidebar {
  background: #fffdf8;
  border: 1px solid rgba(28, 79, 195, .12);
  border-radius: var(--radius);
  padding: 1.2rem;
  position: sticky;
  top: 90px;
}
.dash__group + .dash__group { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid rgba(28, 79, 195, .1); }
.dash__group-title { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); margin: 0 0 .5rem .6rem; }
.dash__link {
  display: block;
  padding: .6rem .7rem;
  border-radius: 9px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.dash__link:hover { background: rgba(28, 79, 195, .06); }
.dash__link.is-active { background: var(--blue); color: #fff; font-weight: 600; }
.dash__link--danger { color: #a13a3a; }
.dash__link--danger:hover { background: rgba(161, 58, 58, .08); }
.dash__content {
  background: #fffdf8;
  border: 1px solid rgba(28, 79, 195, .12);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.dash__content h1, .dash__content h2 { color: var(--blue-deep); }
.dash__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.dash__head h1 { font-size: 1.3rem; margin: 0; }
.dash-card {
  background: #fff;
  border: 1px solid rgba(28, 79, 195, .1);
  border-radius: 12px;
  padding: 1.3rem 1.4rem;
}
.dash-card + .dash-card { margin-top: 1rem; }
.dash-card__title { font-size: .82rem; font-weight: 700; color: var(--blue-deep); margin: 0 0 .9rem; text-transform: uppercase; letter-spacing: .04em; }
.dash-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(28, 79, 195, .07); font-size: .92rem; }
.dash-row:last-child { border-bottom: 0; }
.dash-row__label { color: var(--text-soft); }
.dash-row__value { color: var(--text); font-weight: 600; text-align: right; }

.status-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .85rem; border-radius: 999px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.status-pill--good { background: #dcfce7; color: #0f7a3d; }
.status-pill--warn { background: #fef3c7; color: #92600a; }
.status-pill--bad { background: #fee2e2; color: #b91c1c; }
.status-pill--neutral { background: #eef1f8; color: var(--blue-deep); }

.download-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.download-item { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border: 1.5px solid rgba(28, 79, 195, .18); border-radius: 9px; text-decoration: none; color: var(--blue-deep); font-size: .85rem; font-weight: 600; background: #fff; transition: border-color .15s ease, background .15s ease; }
.download-item:hover { border-color: var(--blue); background: rgba(28, 79, 195, .04); }

.btn--sm { padding: .45rem .95rem; font-size: .8rem; }

.dash-table-wrap { overflow-x: auto; border: 1px solid rgba(28, 79, 195, .1); border-radius: var(--radius); }
.dash-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.dash-table th {
  text-align: left;
  padding: .8rem 1rem;
  background: rgba(28, 79, 195, .05);
  color: var(--blue-deep);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  white-space: nowrap;
}
.dash-table td { padding: .8rem 1rem; border-top: 1px solid rgba(28, 79, 195, .07); white-space: nowrap; color: var(--text); }
.dash-table tbody tr:hover td { background: rgba(28, 79, 195, .025); }

.dash-split { display: grid; grid-template-columns: 2fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 780px) { .dash-split { grid-template-columns: 1fr; } }
.cart-summary__line { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid rgba(28, 79, 195, .07); font-size: .92rem; }
.cart-summary__line:last-of-type { border-bottom: 0; }
.cart-summary__total { font-weight: 700; font-size: 1.1rem; color: var(--blue-deep); }
.cart-progress { height: 8px; border-radius: 999px; background: rgba(28, 79, 195, .1); overflow: hidden; margin: .6rem 0; }
.cart-progress__bar { height: 100%; background: var(--gold); }
.remove-link { color: var(--red); text-decoration: none; font-size: .85rem; font-weight: 600; }
.remove-link:hover { text-decoration: underline; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.stat-tile {
  display: block;
  background: #fff;
  border: 1px solid rgba(28, 79, 195, .1);
  border-radius: 14px;
  padding: 1.6rem 1.4rem;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stat-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgba(10, 31, 82, .3); border-color: rgba(28, 79, 195, .28); }
.stat-tile__label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--red); margin: 0 0 .5rem; }
.stat-tile__value { font-size: 2.6rem; font-weight: 800; color: var(--blue-deep); line-height: 1; margin: 0 0 .5rem; }
.stat-tile__note { font-size: .85rem; color: var(--text-soft); margin: 0; }
.dash-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(20,32,58,.15); }
.dash-progress { height: 6px; border-radius: 4px; background: rgba(28, 79, 195, .1); overflow: hidden; margin-top: .35rem; }
.dash-progress__bar { height: 100%; background: var(--blue); border-radius: 4px; }
.dash-progress__label { font-size: .8rem; color: var(--text-soft); margin: .9rem 0 0; }
@media (max-width: 860px) {
  .dash__sidebar { position: static; top: auto; }
}
.dash-fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; }
.dash-fieldset legend { font-size: .78rem; font-weight: 700; color: var(--blue-deep); text-transform: uppercase; letter-spacing: .04em; padding: 0 0 .7rem; margin-bottom: .9rem; border-bottom: 2px solid rgba(28,79,195,.1); width: 100%; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.toggle-group { display: flex; gap: .6rem; }
.toggle-group input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-group label { flex: 1; text-align: center; padding: .65rem; border: 1.5px solid rgba(28,79,195,.22); border-radius: 9px; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--text-soft); background: #fff; transition: all .15s ease; }
.toggle-group input[type="radio"]:checked + label { background: var(--blue); color: #fff; border-color: var(--blue); }
.upload-zone { position: relative; border: 2px dashed rgba(28,79,195,.28); border-radius: 10px; background: #fff; padding: 1.4rem 1rem; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.upload-zone:hover { border-color: var(--blue); background: rgba(28,79,195,.03); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-zone__title { color: var(--blue); font-size: .9rem; font-weight: 600; margin-bottom: .2rem; }
.upload-zone__hint { color: var(--text-soft); font-size: .78rem; }
.upload-zone__name { margin-top: .5rem; font-size: .78rem; color: var(--blue-deep); font-weight: 600; }
.dash-notice { background: #fffbec; border: 1.5px solid var(--gold); border-radius: 8px; padding: .9rem 1rem; font-size: .85rem; color: #6b5200; line-height: 1.6; margin-bottom: 1.4rem; }
