/* ==========================================================================
   Robosix Lab — brand design system
   Palette derived from the logo: crimson red, charcoal gray, amber yellow.
   ========================================================================== */

:root {
  /* Brand */
  --red: #b81f1f;
  --red-dark: #8e1717;
  --red-soft: #fbeaea;
  --charcoal: #2f3237;
  --charcoal-2: #24262b;
  --ink: #16171a;
  --amber: #f5a623;
  --amber-dark: #d98a09;
  --amber-soft: #fff4e0;
  --green: #12915c;
  --green-dark: #0d6e45;
  --green-soft: #e8f5ee;

  /* Neutrals */
  --paper: #ffffff;
  --paper-2: #f6f5f2;
  --paper-3: #ecebe6;
  --line: #e5e3dd;
  --line-dark: #3a3d44;
  --text: #23252a;
  --text-muted: #63666e;
  --text-invert: #f4f3f0;
  --text-invert-muted: #a9adb6;

  /* System */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --radius-btn: 8px;
  --radius-chip: 6px;
  --shadow-sm: 0 2px 8px rgba(22, 23, 26, 0.06);
  --shadow: 0 14px 40px -18px rgba(22, 23, 26, 0.22);
  --shadow-lg: 0 30px 60px -24px rgba(22, 23, 26, 0.32);
  --ring: 0 0 0 4px rgba(184, 31, 31, 0.16);
  --container: 1180px;
  --nav-h: 74px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 10px); }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }

/* --- Layout helpers --------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(64px, 8vw, 118px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--dark { background: var(--charcoal); color: var(--text-invert); }
.section--ink { background: var(--ink); color: var(--text-invert); }
.section--paper2 { background: var(--paper-2); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.grid { display: grid; gap: 26px; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* --- Type ------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--amber); border-radius: 2px; }
.section--dark .eyebrow, .section--ink .eyebrow { color: var(--amber); }
.section--dark .eyebrow::before, .section--ink .eyebrow::before { background: var(--red); }
.display { font-size: clamp(2.1rem, 5.2vw, 3.7rem); }
.h-lg { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.lede { font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--text-muted); max-width: 60ch; }
.section--dark .lede, .section--ink .lede { color: var(--text-invert-muted); }
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; }
.section-head .lede { margin-top: 14px; }
.text-red { color: var(--red); }
.text-amber { color: var(--amber); }
.mono { font-family: var(--font-mono); }

/* --- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: var(--radius-btn); font-weight: 600; font-size: 0.98rem;
  border: 1.5px solid transparent; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap; letter-spacing: 0.01em;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 12px 26px -12px rgba(184, 31, 31, 0.7); }
.btn--primary:hover { background: var(--red-dark); box-shadow: 0 16px 30px -12px rgba(184, 31, 31, 0.8); }
.btn--amber { background: var(--amber); color: #241a02; box-shadow: 0 12px 26px -12px rgba(245, 166, 35, 0.7); }
.btn--amber:hover { background: var(--amber-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
/* .pagehead is a dark band too, so a ghost button there needs the same
   treatment: on charcoal, the default near-black ink is all but invisible. */
.hero .btn--ghost, .section--dark .btn--ghost, .section--ink .btn--ghost, .pagehead .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.28); }
.hero .btn--ghost:hover, .section--dark .btn--ghost:hover, .section--ink .btn--ghost:hover, .pagehead .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--red); }
.link-arrow svg { width: 17px; height: 17px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow, .section--ink .link-arrow { color: var(--amber); }

/* --- Grid / circuit background motif ---------------------------------- */
.bg-grid::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
}
.bg-grid > * { position: relative; z-index: 1; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; z-index: 0; pointer-events: none; }
.glow--red { background: radial-gradient(circle, rgba(184,31,31,0.7), transparent 70%); }
.glow--amber { background: radial-gradient(circle, rgba(245,166,35,0.55), transparent 70%); }

/* ==========================================================================
   Navbar
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.82); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s, background 0.25s;
}
.nav.is-scrolled { box-shadow: var(--shadow-sm); }
/* The header carries more than the page body does (ten links, search, cart and
   the CTA), so on wide screens it is allowed past the content container rather
   than clipping its own right edge. */
.nav__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; gap: 14px; }
@media (min-width: 1341px) { .nav__inner { max-width: 1360px; } }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.brand__text { font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.brand__text b { color: var(--red); }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  padding: 9px 9px; border-radius: var(--radius-btn); font-weight: 500; font-size: 0.93rem; color: var(--text);
  transition: background 0.18s, color 0.18s; position: relative; white-space: nowrap;
}
.nav__links a:hover { background: var(--paper-2); color: var(--red); }
.nav__links a.is-active { color: var(--red); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 3px; height: 2px; background: var(--amber); border-radius: 2px; }

/* Services hover menu: the tab still links to the services index; hovering (or
   keyboard focus) reveals every service, with the list scrolling inside a
   capped panel so it stays usable as more services are added. */
.nav__item { position: relative; display: flex; }
.nav__item > a { display: inline-flex; align-items: center; gap: 5px; }
.nav__caret { width: 12px; height: 12px; opacity: 0.5; transition: transform 0.2s var(--ease), opacity 0.2s; }
.nav__item:hover > a .nav__caret,
.nav__item:focus-within > a .nav__caret,
.nav__item.is-open > a .nav__caret { transform: rotate(180deg); opacity: 0.9; }
.nav__drop {
  position: absolute; top: 100%; left: 50%; z-index: 101;
  padding-top: 18px; /* aligns the panel with the header edge; also the hover bridge */
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 0.18s var(--ease), transform 0.2s var(--ease), visibility 0.18s;
}
.nav__item:hover .nav__drop,
.nav__item:focus-within .nav__drop,
.nav__item.is-open .nav__drop {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.nav__drop-panel {
  width: 340px; max-width: calc(100vw - 44px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.nav__drop-list {
  max-height: min(62vh, 390px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.nav__drop-list::-webkit-scrollbar { width: 8px; }
.nav__drop-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.nav__links .nav__drop-item {
  display: grid; grid-template-columns: 36px 1fr; gap: 11px; align-items: center;
  padding: 10px; border-radius: 10px; white-space: normal;
}
.nav__links .nav__drop-item:hover { background: var(--paper-2); color: inherit; }
.nav__drop-icon {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red);
}
.nav__drop-icon svg { width: 19px; height: 19px; }
.nav__drop-copy strong {
  display: block; font-family: var(--font-display); font-size: 0.95rem;
  line-height: 1.25; color: var(--ink);
}
.nav__drop-copy small { display: block; margin-top: 2px; font-size: 0.78rem; line-height: 1.35; color: var(--text-muted); }
.nav__links .nav__drop-item:hover .nav__drop-copy strong { color: var(--red); }
.nav__drop-empty { padding: 12px; color: var(--text-muted); font-size: 0.9rem; }
.nav__links .nav__drop-all {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-top: 1px solid var(--line); background: var(--paper-2);
  border-radius: 0; font-size: 0.85rem; font-weight: 600; color: var(--red);
}
.nav__links .nav__drop-all:hover { background: var(--paper-3); color: var(--red-dark); }
.nav__drop-all svg { width: 15px; height: 15px; }
/* Below 1180px the tab strip scrolls and clips absolutely positioned
   children, so the panel is pinned to the header instead. JS sets
   --drop-left/--drop-top from the tab's on-screen position as it opens. */
@media (max-width: 1180px) {
  .nav__drop {
    position: fixed;
    top: var(--drop-top, calc(var(--nav-h) - 17px));
    left: var(--drop-left, 50%);
  }
  /* The strip's edge-fade mask would also mask a descendant panel, even a
     fixed one, so lift it for as long as the menu is open. */
  .nav__links.is-menu-open { -webkit-mask-image: none; mask-image: none; }
}
.nav__msub {
  display: grid; gap: 2px; margin: -4px 0 4px 18px; padding-left: 12px;
  border-left: 1px solid var(--line);
}
.nav__mobile .nav__msub a { padding: 8px 12px; font-size: 0.94rem; font-weight: 500; color: var(--text-muted); }
.nav__mobile .nav__msub a:hover { color: var(--red); background: var(--paper-2); }
@media (min-width: 1181px) { .nav__msub { display: none; } }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; align-items: center; justify-content: center; }
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: 0.2s; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: 0.2s; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav__toggle span::after { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; background: var(--charcoal); color: var(--text-invert);
  padding-block: clamp(56px, 8vw, 96px); overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4rem); margin-block: 16px 20px; }
.hero h1 .hl { color: var(--amber); }
.hero .lede { color: var(--text-invert-muted); font-size: clamp(1.05rem, 2.1vw, 1.25rem); max-width: 54ch; }
.hero .btn-row { margin-top: 30px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-chip);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem; font-weight: 500; color: var(--text-invert);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.hero__art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 340px; }
.hero__mascot { max-height: 440px; width: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.45)); z-index: 2; animation: float 6s ease-in-out infinite; }
.hero__ring { position: absolute; inset: 0; margin: auto; width: 360px; height: 360px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,0.16); z-index: 1; }
.hero__ring::after { content: ""; position: absolute; inset: -30px; border-radius: 50%; border: 1px solid rgba(245,166,35,0.18); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero__scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--text-invert-muted); text-transform: uppercase; }

/* ==========================================================================
   Stats bar
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stat { text-align: center; padding: 6px; }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.section--dark .stat__value { color: #fff; }
.stat__value .u { color: var(--red); }
.stat__label { margin-top: 8px; font-size: 0.92rem; color: var(--text-muted); font-weight: 500; }
.section--dark .stat__label { color: var(--text-invert-muted); }
.stats--split { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 34px 20px; box-shadow: var(--shadow-sm); }
.stats--split .stat + .stat, .stats .stat { position: relative; }
.stats--split .stat:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 15%; height: 70%; width: 1px; background: var(--line); }

/* ==========================================================================
   Cards — services & projects
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; position: relative; overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 58px; height: 58px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 18px;
}
.card__icon svg { width: 30px; height: 30px; }
.card[data-accent="amber"] { }
.card[data-accent="amber"]::before { background: var(--amber); }
.card[data-accent="amber"] .card__icon { background: var(--amber-soft); color: var(--amber-dark); }
.card[data-accent="charcoal"]::before { background: var(--charcoal); }
.card[data-accent="charcoal"] .card__icon { background: #eceef1; color: var(--charcoal); }
.card[data-accent="teal"]::before { background: #0f9d8f; }
.card[data-accent="teal"] .card__icon { background: #e0f5f2; color: #0f9d8f; }
.card h3 { font-size: 1.32rem; margin-bottom: 9px; }
.card p { color: var(--text-muted); font-size: 0.98rem; }
.card__link { margin-top: 18px; }
.card__num { position: absolute; top: 22px; right: 24px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); font-weight: 700; z-index: 2; }
/* Service card with a photo header: full-bleed image, icon straddling its edge. */
.card--media { padding-top: 0; }
.card--media .card__media { margin: 0 -30px 22px; height: 190px; overflow: hidden; background: var(--paper-2); }
.card--media .card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s var(--ease); }
.card--media:hover .card__media img { transform: scale(1.06); }
.card--media .card__num { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.card--media .card__icon { margin-top: -47px; position: relative; z-index: 1; border: 4px solid #fff; box-shadow: var(--shadow-sm); }

/* Project cards */
.project { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease); }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project__media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--charcoal), var(--charcoal-2)); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.project:hover .project__media img { transform: scale(1.06); }
.project__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); }
.project__ph svg { width: 54px; height: 54px; }
.project__tag { position: absolute; top: 14px; left: 14px; background: rgba(22,23,26,0.75); color: #fff; font-size: 0.74rem; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-chip); backdrop-filter: blur(6px); letter-spacing: 0.02em; }
.project__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project__body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.project__body p { color: var(--text-muted); font-size: 0.94rem; flex: 1; }
.project__meta { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); }

/* ==========================================================================
   Feature / why-us split
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature-list { display: grid; gap: 18px; margin-top: 26px; }
.feature { display: flex; gap: 16px; }
.feature__ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; }
.feature__ic svg { width: 22px; height: 22px; }
.feature h3, .feature h4 { font-size: 1.08rem; margin-bottom: 4px; }
.feature p { color: var(--text-muted); font-size: 0.95rem; }
.section--dark .feature p { color: var(--text-invert-muted); }
.section--dark .feature__ic { background: rgba(245,166,35,0.14); color: var(--amber); }

.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--paper-2); aspect-ratio: 4/3; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame__ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(140deg, var(--charcoal), var(--charcoal-2)); color: rgba(255,255,255,0.4); }
.media-frame__ph svg { width: 84px; height: 84px; }
.badge-float { position: absolute; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 14px 18px; display: flex; gap: 12px; align-items: center; }
.badge-float svg { width: 26px; height: 26px; color: var(--red); }
.badge-float b { font-family: var(--font-display); display: block; font-size: 1.1rem; color: var(--ink); }
.badge-float span { font-size: 0.78rem; color: var(--text-muted); }

/* Checklist */
.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--red); margin-top: 1px; }
.section--dark .checklist li svg { color: var(--amber); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.quote__mark { font-family: var(--font-display); font-size: 3.4rem; line-height: 0.6; color: var(--amber); height: 26px; }
.quote p { font-size: 1.02rem; color: var(--text); margin-block: 8px 20px; }
.quote__who { display: flex; align-items: center; gap: 13px; }
.quote__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--paper-3); display: grid; place-items: center; color: var(--red); font-weight: 700; font-family: var(--font-display); }
.quote__who b { display: block; font-size: 0.98rem; color: var(--ink); }
.quote__who span { font-size: 0.85rem; color: var(--text-muted); }

/* ==========================================================================
   Partners strip
   ========================================================================== */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.partners img { height: 40px; width: auto; opacity: 0.6; filter: grayscale(1); transition: 0.25s; }
.partners img:hover { opacity: 1; filter: grayscale(0); }
.partner-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text-muted); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta { position: relative; background: var(--red); color: #fff; border-radius: var(--radius-lg); padding: clamp(38px, 6vw, 66px); overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.cta p { color: rgba(255,255,255,0.85); margin-top: 10px; max-width: 46ch; }
.cta .btn--amber { box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field .req, label .req { display: inline; color: var(--red); }
.form-input, .form-textarea, .form-select {
  width: 100%; min-width: 0; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; color: var(--text); background: var(--paper-2); transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: var(--ring); }
.form-textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-errors { color: var(--red); font-size: 0.82rem; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 500; margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; }
.alert--success { background: #e8f6ec; color: #166534; border: 1px solid #bbe6c7; }
.alert--error { background: var(--red-soft); color: var(--red-dark); border: 1px solid #f2c9c9; }
.alert--warning { background: #fdf4e3; color: #8a5a06; border: 1px solid #f2dca6; }

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.pagehead { background: var(--charcoal); color: #fff; padding-block: clamp(50px, 7vw, 84px); position: relative; overflow: hidden; }
.pagehead h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); margin-top: 12px; }
.pagehead .lede { color: var(--text-invert-muted); margin-top: 14px; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em; color: var(--text-invert-muted); text-transform: uppercase; }
.breadcrumb a:hover { color: var(--amber); }

/* Filter pills */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter { padding: 9px 20px; border-radius: var(--radius-btn); border: 1.5px solid var(--line); background: #fff; font-weight: 500; font-size: 0.92rem; color: var(--text); transition: 0.18s; }
.filter:hover { border-color: var(--red); color: var(--red); }
.filter.is-active { background: var(--red); border-color: var(--red); color: #fff; }

/* Service detail */
.svc-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.prose p { margin-bottom: 1rem; color: var(--text-muted); }
.prose p:last-child { margin-bottom: 0; }

/* Answer block: one self-contained, quotable passage per landing page. */
.answer-block { max-width: 72ch; }
.answer-block__q { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: 14px; }
.answer-block p { font-size: 1.02rem; line-height: 1.75; color: var(--text-muted); }
.info-panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; cursor: zoom-in; transition: transform 0.4s var(--ease); }
.gallery__btn:hover img, .gallery__btn:focus-visible img { transform: scale(1.05); }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.member { text-align: center; }
.member__photo { width: 100%; aspect-ratio: 1; border-radius: var(--radius); object-fit: cover; background: linear-gradient(140deg, var(--charcoal), var(--charcoal-2)); display: grid; place-items: center; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.member__photo svg { width: 54px; height: 54px; }
.member h4 { font-size: 1.1rem; }
.member span { color: var(--red); font-size: 0.9rem; font-weight: 600; }
.member p { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }
.member__social { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.member__social a { width: 40px; height: 40px; border-radius: 8px; background: var(--paper-2); display: grid; place-items: center; color: var(--text-muted); transition: 0.18s; }
.member__social a:hover { background: var(--red); color: #fff; }
.member__social svg { width: 16px; height: 16px; }

/* Values / mission-vision */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(255,255,255,0.03); }
.mv__ic { width: 50px; height: 50px; border-radius: 13px; background: rgba(245,166,35,0.14); color: var(--amber); display: grid; place-items: center; margin-bottom: 16px; }
.mv__ic svg { width: 26px; height: 26px; }
.mv p { color: var(--text-invert-muted); }

/* FAQ / accordion */
.faq { max-width: 780px; margin-inline: auto; }
.acc { border-bottom: 1px solid var(--line); }
.acc__q { width: 100%; text-align: left; background: none; border: none; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.acc__q svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--red); transition: transform 0.25s; }
.acc.is-open .acc__q svg { transform: rotate(45deg); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.acc__a-inner { padding-bottom: 22px; color: var(--text-muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: var(--text-invert-muted); padding-top: 70px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid var(--line-dark); }
.footer__brand img { height: 48px; width: auto; margin-bottom: 16px; }
.footer__brand p { font-size: 0.94rem; max-width: 34ch; }
.footer h2 { color: #fff; font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.footer__links { display: grid; gap: 11px; }
.footer__links a { font-size: 0.95rem; transition: color 0.16s; }
.footer__links a:hover { color: var(--amber); }
.footer__contact { display: grid; gap: 12px; font-size: 0.95rem; }
.footer__contact div { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-block: 26px; font-size: 0.88rem; }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a { transition: color 0.16s; }
.footer__legal a:hover { color: var(--amber); }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,0.06); display: grid; place-items: center; color: var(--text-invert); transition: 0.18s; }
.socials a:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
/* Reveal-on-scroll is only hidden when JS is active (html.js). Without JS — or
   if the reveal script fails to run — content stays visible instead of blank. */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
/* Safety net: head script adds this after 3s if reveal never initialised. */
html.reveal-fallback [data-reveal] { opacity: 1 !important; transform: none !important; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__mascot { animation: none; }
  html { scroll-behavior: auto; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,16,18,0.9); display: none; align-items: center; justify-content: center; padding: 30px; backdrop-filter: blur(4px); }
.lightbox.is-open { display: flex; animation: fade 0.2s var(--ease); }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 20px; right: 26px; width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,0.12); color: #fff; font-size: 28px; line-height: 1; }
.lightbox__close:hover { background: var(--red); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Empty state */
.empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty img { width: 120px; margin: 0 auto 20px; opacity: 0.9; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; min-height: 260px; }
  .hero__mascot { max-height: 320px; }
  .hero__ring { width: 280px; height: 280px; }
  .split, .svc-hero { grid-template-columns: 1fr; gap: 34px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta__inner { grid-template-columns: 1fr; }
}
/* Drop the search box below 1340px, where the field itself no longer fits, and
   put a search icon in its place for every width under that. The icon never
   goes away: the hamburger menu does carry a search field, but burying search
   behind a menu on exactly the widths where people shop (laptop windows and
   phones) is how it went missing in the first place.
   Selector is scoped to .nav__cta so it beats the later base .nav__search rule. */
@media (max-width: 1340px) { .nav__cta .nav__search { display: none; } }
@media (max-width: 1340px) { .nav__cta .nav__searchbtn { display: grid; } }
/* Below 1180px the ten links no longer fit beside the logo, cart and CTA, but
   they don't have to disappear: the strip itself becomes a scroller, so every
   tab stays in the header and is swiped (touch) or dragged (mouse) sideways.
   The hamburger stays for what genuinely doesn't fit at that width — search
   and the demo CTA — not for the links, which are now always on screen. */
@media (max-width: 1180px) {
  .nav__links {
    flex: 1 1 auto; min-width: 0;
    overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-block: 4px;
    user-select: none; -webkit-user-select: none;
    /* Fade both ends: a tab half-cut by the edge is the signal that there is
       more to scroll to. Masking the ink (not a white overlay) keeps the
       frosted header see-through. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a { padding: 9px 10px; -webkit-user-drag: none; }
  .nav__links.is-scrollable { cursor: grab; }
  .nav__links.is-dragging { cursor: grabbing; }
  .nav__cta { flex-shrink: 0; }
  .nav__cta .btn, .nav__cta .nav__search { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile {
    position: fixed; inset: var(--nav-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 18px 22px 26px; display: grid; gap: 6px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.22s var(--ease); z-index: 99;
    /* Cap to the space below the nav and scroll internally, so on short or
       landscape phones the lower links (Contact, Book a Demo) stay reachable. */
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  }
  body.menu-open .nav__mobile { transform: none; opacity: 1; pointer-events: auto; }
  .nav__mobile a { padding: 13px 14px; border-radius: 12px; font-weight: 500; font-size: 1.05rem; }
  .nav__mobile a:hover, .nav__mobile a.is-active { background: var(--paper-2); color: var(--red); }
  .nav__mobile .btn { margin-top: 10px; justify-content: center; }
}
/* Phones: trim the chrome so the scrolling strip keeps as many tabs on screen
   as possible. The logo and the two icon buttons are the only fixed costs. */
@media (max-width: 720px) {
  .nav__inner { padding-inline: 14px; gap: 8px; }
  .brand img { height: 36px; }
  .nav__cta { gap: 2px; }
  .nav__toggle { width: 40px; height: 40px; }
  /* Narrower than the 44px tap target used elsewhere, but still 40px tall and
     sitting next to two other targets, so it stays comfortably tappable while
     giving the scrolling tab strip back the width.
     Scoped to an ancestor for the same reason the display rule above is: the
     base .nav__searchbtn and .nav__searchpanel rules are declared ~900 lines
     later, and a media query adds no specificity, so an unscoped override here
     loses to them and silently does nothing. */
  .nav__cta .nav__searchbtn { width: 34px; height: 40px; }
  .nav__cta .nav__searchbtn svg { width: 19px; height: 19px; }
  .nav .nav__searchpanel { padding: 12px 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  /* The About page has three programme facts: keep them on one row instead of
     leaving the odd one alone on a second row. */
  .stats--3 { grid-template-columns: repeat(3, 1fr); gap: 24px 10px; }
  .stats--split .stat::after { display: none !important; }
  .mv-grid, .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  body { font-size: 16px; }
}
/* Keep the decorative hero ring from causing horizontal scroll on tiny phones. */
@media (max-width: 400px) {
  .hero__ring { width: 220px; height: 220px; }
  .hero__ring::after { inset: -18px; }
}
.nav__mobile { display: none; }
@media (max-width: 1180px) { .nav__mobile { display: grid; } }

/* ==========================================================================
   School lab programme — pillars, stages, pricing, data tables
   ========================================================================== */

.ticks { display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text-muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 13px; height: 7px; border-left: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red); transform: rotate(-45deg);
}
.ticks--sm li { font-size: 0.94rem; }
.section--dark .ticks li, .section--ink .ticks li { color: var(--text-invert-muted); }
.section--dark .ticks li::before, .section--ink .ticks li::before { border-color: var(--amber); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillar {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px; box-shadow: var(--shadow-sm);
}
.pillar h3 {
  font-size: 1.22rem; margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 2px solid var(--amber); display: inline-block;
}

.stages { display: grid; gap: 18px; }
.stage {
  display: grid; grid-template-columns: 54px 1fr; gap: 22px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.stage__num {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--red-soft); color: var(--red);
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
}
.stage__grades {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-dark); margin-bottom: 4px;
}
.stage h3 { font-size: 1.3rem; margin-bottom: 8px; }
.stage p { color: var(--text-muted); }
.stage .ticks { margin-top: 14px; }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; align-items: start; }
.plan {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 32px 36px; box-shadow: var(--shadow-sm);
  display: grid; gap: 16px; align-content: start;
}
.plan { border-color: var(--charcoal); box-shadow: var(--shadow); }
.plan--featured { border-color: var(--red); }
.plan__badge {
  position: absolute; top: -13px; left: 32px; background: var(--charcoal); color: #fff;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius-chip);
  max-width: calc(100% - 64px);
}
.plan--featured .plan__badge { background: var(--red); }
.plan h3 { font-size: 1.6rem; }
.plan__tagline { color: var(--text-muted); font-size: 0.98rem; }
.plan__price {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  color: var(--ink); line-height: 1.1; display: grid; gap: 4px;
}
.plan__price span {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; color: var(--text-muted);
  letter-spacing: 0;
}
.plan__sub { color: var(--text-muted); font-size: 0.97rem; }
/* Two payment models per plan — one-time setup vs. trainer-included monthly. */
.payopts { display: grid; gap: 8px; }
.payopt { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 17px; background: var(--paper); display: grid; gap: 5px; }
.payopt--best { border-color: var(--green); background: var(--green-soft); }
.payopts__or {
  justify-self: center; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin: 1px 0;
}
.payopt__label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.payopt--best .payopt__label { color: var(--green-dark); }
.payopt__amt { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.payopt__amt span { font-family: var(--font-body); font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }
.payopt__note { font-size: 0.85rem; color: var(--text-muted); }
.payopt__sub {
  font-size: 0.86rem; line-height: 1.45; color: var(--green-dark);
  border-top: 1px dashed rgba(18, 145, 92, 0.32); padding-top: 8px; margin-top: 2px;
}
.payopt__sub strong { font-weight: 700; }
.payopt__inc {
  display: inline-flex; align-items: center; gap: 4px; background: var(--green); color: #fff;
  padding: 3px 9px 3px 7px; border-radius: var(--radius-chip); font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
}
.payopt__inc svg { width: 12px; height: 12px; }
.plan .btn { justify-content: center; margin-top: 6px; }

.section-head--center { text-align: center; margin-inline: auto; max-width: 640px; }

.two-up { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.two-up h3 { font-size: 1.3rem; margin-bottom: 16px; }
.note { margin-top: 16px; font-size: 0.92rem; color: var(--text-muted); font-style: italic; }

/* --- Data tables -------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.dtable {
  width: 100%; border-collapse: collapse; background: var(--paper);
  font-size: 0.94rem; min-width: 640px;
}
.dtable th, .dtable td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable thead th {
  background: var(--charcoal); color: #fff; font-family: var(--font-display);
  font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: none;
}
.dtable tbody tr:nth-child(even) { background: var(--paper-2); }
.dtable td.center, .dtable th.center { text-align: center; }
.dtable__desc { color: var(--text-muted); }
.dtable__soft td { font-style: italic; }
.dtable--tight th, .dtable--tight td { padding: 10px 13px; }
.print-example { min-width: 0; }
.statband { overflow: hidden; }

.tick {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: var(--radius-chip); background: #e7f4ec; color: #1d6b3f; font-weight: 700; font-size: 0.85rem;
}
.na { color: var(--text-muted); font-size: 0.85rem; }

.dtable--price { min-width: 520px; }
.dtable--price .is-quoted { background: var(--red-soft); }
.dtable--price thead th.is-quoted { background: var(--red); }
.dtable--price .sub { display: block; font-size: 0.76rem; font-weight: 400; color: var(--text-muted); }
.quoted-tag {
  display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em;
  opacity: 0.85; margin-top: 3px;
}

/* Hardware showcase strip above the technology grid. */
.techshots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.techshots figure { margin: 0; }
.techshots img {
  display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.techshots figcaption {
  margin-top: 8px; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
}
@media (max-width: 900px) { .techshots { grid-template-columns: repeat(2, 1fr); } }

/* Wide photo band — a real programme, above the sales copy. */
.labband {
  position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); background: var(--charcoal);
}
.labband img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.labband__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 54px 30px 24px; color: #fff;
  background: linear-gradient(transparent, rgba(12, 13, 15, 0.86));
}
.labband__eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 4px;
}
.labband__text { font-family: var(--font-display); font-size: clamp(1.05rem, 2.4vw, 1.4rem); font-weight: 600; }

/* What a lab does for the school's standing. */
.standing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 42px; }
.standing__item { display: grid; gap: 10px; align-content: start; }
.standing__ic {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--amber-soft); color: var(--amber-dark);
}
.standing__ic svg { width: 24px; height: 24px; }
.standing__item h3 { font-size: 1.12rem; }
.standing__item p { color: var(--text-muted); font-size: 0.97rem; }

@media (max-width: 900px) {
  .standing { grid-template-columns: 1fr; gap: 22px; }
  .labband img { aspect-ratio: 4 / 3; }
  .labband__cap { padding: 40px 20px 18px; }
}

@media (max-width: 900px) {
  .pillars, .plans, .two-up { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .stage { grid-template-columns: 1fr; gap: 14px; }
}

/* ==========================================================================
   Proposal document — screen layout + print-to-PDF
   ========================================================================== */

.doc-bar {
  position: sticky; top: var(--nav-h); z-index: 40;
  background: var(--charcoal); color: var(--text-invert);
}
.doc-bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-block: 13px; flex-wrap: wrap;
}
.doc-bar__warn { color: var(--amber); font-style: normal; }

.doc {
  max-width: 900px; margin: 34px auto 70px; padding-inline: 22px;
  font-size: 0.97rem; color: var(--text);
}
.doc__page {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 46px 48px 52px; margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.doc h2 {
  font-size: 1.55rem; margin: 34px 0 14px; padding-bottom: 11px;
  border-bottom: 2px solid var(--amber);
}
.doc__page > h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.16rem; margin: 28px 0 12px; }
.doc h4 { font-size: 1rem; font-family: var(--font-display); margin-bottom: 6px; color: var(--red); }
.doc p { margin-bottom: 12px; }
.doc__lede { color: var(--text-muted); font-size: 1.03rem; }
.doc__note { font-size: 0.88rem; color: var(--text-muted); font-style: italic; }

.doc__brandrow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 44px; }
.doc__logo { height: 54px; width: auto; }
.doc__ref { font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.06em; }
.doc__title {
  font-size: clamp(2.8rem, 7vw, 4.2rem); line-height: 1; letter-spacing: -0.03em;
  text-transform: uppercase;
}
.doc__subtitle { font-family: var(--font-display); font-size: 1.3rem; color: var(--red); margin-top: 6px; }
.doc__kicker { color: var(--text-muted); margin-top: 10px; max-width: 52ch; }

.doc__meta {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 30px;
  margin: 40px 0 34px; padding: 26px 28px;
  background: var(--paper-2); border-radius: var(--radius); border: 1px solid var(--line);
}
.doc__meta dt {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px;
}
.doc__meta dd { margin: 0; font-weight: 600; font-size: 1.02rem; }

.doc__label {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px;
}
.doc__preparedby { border-top: 1px solid var(--line); padding-top: 22px; }
.doc__preparedby p { margin: 0; line-height: 1.65; }

.doc__grid3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 30px; margin: 22px 0 12px; }
.doc__grid3 p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

.doc__list { display: grid; gap: 8px; margin: 0 0 14px; }
.doc__list li { position: relative; padding-left: 20px; color: var(--text-muted); }
.doc__list li::before {
  content: ""; position: absolute; left: 3px; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
}
.doc__terms { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 9px; list-style: decimal; }
.doc__terms li { color: var(--text-muted); padding-left: 4px; }

.doc__callout {
  background: var(--amber-soft); border: 1px solid #f0dcae; border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm); padding: 22px 26px; margin: 24px 0;
}
.doc__callout h4 { color: var(--ink); margin-bottom: 8px; }
.doc__callout ul { display: grid; gap: 7px; margin-top: 10px; }
.doc__callout li { padding-left: 18px; position: relative; }
.doc__callout li::before { content: "→"; position: absolute; left: 0; color: var(--amber-dark); }
.doc__callout .sub { color: var(--text-muted); font-size: 0.85rem; }

.doc__sign { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin: 34px 0 10px; }
.doc__signline { display: block; border-bottom: 1.5px solid var(--charcoal); height: 58px; margin-bottom: 9px; }
.doc__sign p { font-size: 0.87rem; color: var(--text-muted); margin: 0; }

.doc__foot {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--text-muted);
}
.doc__foot p { margin: 0; line-height: 1.7; }

/* Proposal photography — sized so an A4 page still breaks where it should. */
.doc__shot { margin: 22px 0 26px; }
.doc__shot img {
  display: block; width: 100%; height: 100%; aspect-ratio: 16 / 6.5; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
}
.doc__shot figcaption {
  margin-top: 7px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
}
.doc__shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 18px; }
.doc__shots figure { margin: 0; }
.doc__shots img {
  display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
}

@media (max-width: 700px) {
  .doc__page { padding: 30px 24px 34px; }
  .doc__meta, .doc__grid3, .doc__sign { grid-template-columns: 1fr; }
}

/* --- Print: clean A4 pages, no site chrome ------------------------------ */
@media print {
  @page { size: A4; margin: 14mm 12mm; }

  .nav, .footer, .doc-bar, .no-print, .cta { display: none !important; }
  body { font-size: 10.5pt; background: #fff; }
  main { padding: 0 !important; }

  .doc { max-width: none; margin: 0; padding: 0; font-size: 10.5pt; }
  .doc__page {
    border: none; border-radius: 0; box-shadow: none; padding: 0; margin: 0;
    break-after: page; page-break-after: always;
  }
  .doc__page:last-child { break-after: auto; page-break-after: auto; }

  .doc h2, .doc h3, .doc h4 { break-after: avoid; page-break-after: avoid; }
  .doc__callout, .doc__sign, .doc__meta, .doc__foot { break-inside: avoid; page-break-inside: avoid; }
  table { break-inside: auto; }
  tr, li { break-inside: avoid; page-break-inside: avoid; }
  thead { display: table-header-group; }

  .dtable { min-width: 0; font-size: 9pt; }
  .dtable th, .dtable td { padding: 6px 8px; }
  .dtable thead th { background: var(--charcoal) !important; color: #fff !important; }
  .dtable tbody tr:nth-child(even) { background: var(--paper-2) !important; }
  .dtable--price .is-quoted { background: var(--red-soft) !important; }
  .dtable--price thead th.is-quoted { background: var(--red) !important; }
  .tick { background: #e7f4ec !important; color: #1d6b3f !important; }
  .doc__callout { background: var(--amber-soft) !important; }
  .doc__meta { background: var(--paper-2) !important; }

  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  a { text-decoration: none; color: inherit; }
}

/* ==========================================================================
   Why page — proof bar, reasons, why-us
   ========================================================================== */

.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.proof__item {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--amber);
  border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.proof__num {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700;
  color: var(--red); line-height: 1.05; margin-bottom: 8px;
}
.proof__item p:last-child { color: var(--text-muted); font-size: 0.97rem; }
.proof__item span { display: block; margin-top: 4px; font-size: 0.85rem; opacity: 0.85; }

.reasons { display: grid; gap: 22px; }
.reason {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 36px 36px; box-shadow: var(--shadow-sm);
}
.reason__head { display: grid; grid-template-columns: 60px 1fr; gap: 22px; align-items: start; }
.reason__num {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
  background: var(--charcoal); color: var(--amber);
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
}
.reason__eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red); margin-bottom: 6px;
}
.reason__head h3 { font-size: 1.45rem; margin-bottom: 10px; }
.reason__intro { color: var(--text-muted); max-width: 68ch; }
.reason__points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line);
}
.rpoint h4 {
  font-size: 1rem; margin-bottom: 6px; padding-left: 14px; position: relative; color: var(--ink);
}
.rpoint h4::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
}
.rpoint p { color: var(--text-muted); font-size: 0.93rem; padding-left: 14px; }

.whyus { display: grid; grid-template-columns: 1fr 1.35fr; gap: 44px; align-items: start; }
.whyus__lead h3 { font-size: 1.9rem; margin-bottom: 14px; color: #fff; }
.whyus__lead .reason__eyebrow { color: var(--amber); }
.whyus__points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.rpoint--dark h4 { color: #fff; }
.rpoint--dark h4::before { background: var(--red); }
.rpoint--dark p { color: var(--text-invert-muted); }

@media (max-width: 900px) {
  .proof, .reason__points, .whyus, .whyus__points { grid-template-columns: 1fr; }
  .reason__head { grid-template-columns: 1fr; gap: 14px; }
  .reason { padding: 26px 24px 28px; }
}

/* ==========================================================================
   Filter chips (shop categories, DIY difficulty)
   ========================================================================== */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter {
  padding: 9px 18px; border-radius: var(--radius-btn); border: 1px solid var(--line);
  background: var(--paper); font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: 0.2s var(--ease);
}
.filter:hover { border-color: var(--red); color: var(--red); }
.filter.is-active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }

.tag {
  display: inline-block; padding: 4px 11px; border-radius: var(--radius-chip);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--paper-3); color: var(--text-muted);
}

/* ==========================================================================
   Shop — category tiles, product cards, listing, detail, cart, checkout
   ========================================================================== */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.pagehead--shop .usp {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px;
  font-size: 0.93rem; color: var(--text-muted);
}
.pagehead--shop .usp li { display: flex; align-items: center; gap: 8px; }
.pagehead--shop .usp svg { width: 17px; height: 17px; color: var(--red); flex: none; }
.breadcrumb--inline { padding-top: 22px; }

/* --- Category tiles ----------------------------------------------------- */
.shop-tiles-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.filters__label { color: var(--text-muted); font-size: 0.9rem; align-self: center; margin-right: 2px; }
.ctiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ctile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 28px; box-shadow: var(--shadow-sm); transition: 0.25s var(--ease);
  display: grid; gap: 8px; align-content: start;
}
.ctile:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: var(--shadow); }
.ctile__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--red-soft); color: var(--red); margin-bottom: 6px;
}
.ctile__icon svg { width: 24px; height: 24px; }
.ctile h3 { font-size: 1.16rem; }
.ctile p { color: var(--text-muted); font-size: 0.93rem; }
.ctile__count {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--amber-dark); margin-top: 4px;
}
/* The tile is a <div> now, because the subcategory links inside it cannot sit
   in another <a>. The heading link is stretched back over the whole card so the
   hover lift still tells the truth: the card is clickable, and the sublinks
   (raised above it) take their own clicks. */
.ctile { position: relative; }
.ctile__link { color: inherit; text-decoration: none; }
.ctile__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ctile:hover .ctile__link { color: var(--red); }
/* Subcategory links: the shop's second level, visible from the front page so
   buyers can jump straight to "Servo Motors" instead of paging a 500-item
   aisle. Capped in the view, with a "+N more" link to the full category. */
.ctile__subs {
  list-style: none; margin: 2px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  position: relative; z-index: 1;   /* above the stretched heading link */
}
.ctile__subs li { display: flex; align-items: center; gap: 10px; }
.ctile__subs li + li::before {
  content: ""; width: 1px; height: 11px; background: var(--line); margin-left: -6px;
}
.ctile__subs a {
  font-size: 0.84rem; color: var(--text-muted); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.ctile__subs a:hover { color: var(--red); border-bottom-color: currentColor; }
.ctile__more { color: var(--amber-dark); }

/* --- Product grid & cards ----------------------------------------------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pgrid--4 { grid-template-columns: repeat(4, 1fr); }

.pcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: 0.25s var(--ease);
  display: grid; grid-template-rows: auto 1fr;
}
.pcard:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: var(--shadow); }
.pcard--oos { opacity: 0.72; }
.pcard__media {
  position: relative; aspect-ratio: 4 / 3; background: var(--paper-2);
  display: grid; place-items: center; overflow: hidden;
}
.pcard__media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }

/* Designed placeholder tile — a branded, category-tinted panel with the
   category icon, shown until a real product photo is uploaded. Reads as
   intentional, not as a broken image. */
.ph-tile {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--paper-2), var(--paper-3));
  color: var(--charcoal); position: relative;
}
.ph-tile::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.55), transparent 60%);
}
.ph-tile svg { width: 46px; height: 46px; position: relative; z-index: 1; opacity: 0.9; }
.ph-tile--lg svg { width: 110px; height: 110px; }
.ph-tile[data-cat="robotics-components"] { background: linear-gradient(135deg, #fbeaea, #f6d4d4); color: var(--red); }
.ph-tile[data-cat="electronic-components"] { background: linear-gradient(135deg, #e9edf7, #d3dcf0); color: #33477e; }
.ph-tile[data-cat="diy-kits"] { background: linear-gradient(135deg, #fff4e0, #ffe6bd); color: var(--amber-dark); }
.ph-tile[data-cat="development-boards"] { background: linear-gradient(135deg, #e7f4ec, #cde9d8); color: #1d6b3f; }
.ph-tile[data-cat="drones"] { background: linear-gradient(135deg, #e4eef4, #cddfeb); color: #2c5871; }
.ph-tile[data-cat="3d-printing"] { background: linear-gradient(135deg, #f6f5f2, #e6e4dd); color: var(--charcoal); }
.pcard__off, .pcard__oos {
  position: absolute; top: 10px; font-family: var(--font-mono); font-size: 10.5px;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--radius-chip);
}
.pcard__off { left: 10px; background: #1d6b3f; color: #fff; }
.pcard__oos { right: 10px; background: var(--charcoal); color: #fff; }
.pcard__body { padding: 18px 18px 20px; display: grid; gap: 7px; align-content: start; }
.pcard__brand {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
}
.pcard__body h3 { font-size: 1.02rem; line-height: 1.3; }
.pcard__body h3 a:hover { color: var(--red); }
.pcard__desc {
  color: var(--text-muted); font-size: 0.88rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.pcard__price strong { font-family: var(--font-display); font-size: 1.24rem; color: var(--ink); }
.pcard__price s { color: var(--text-muted); font-size: 0.88rem; }
.pcard__gst { font-size: 0.72rem; color: var(--text-muted); width: 100%; }
.pcard__add { margin-top: 8px; }
.pcard__add .btn { width: 100%; justify-content: center; }
.pcard__add .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
/* Out-of-stock "Check availability" link and the variant/plain fallbacks sit as
   direct children of the body, so match the full-width add-to-cart button. */
.pcard__body > .btn { width: 100%; justify-content: center; margin-top: 8px; }
.pcard__body > .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* --- Listing layout ----------------------------------------------------- */
.shop-layout { display: grid; grid-template-columns: 262px 1fr; gap: 34px; align-items: start; }
.shop-filters { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 20px; }
.shop-filters__form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: grid; gap: 18px; box-shadow: var(--shadow-sm);
}
.ffield { display: grid; gap: 7px; }
.ffield label, .ffield__label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
}
.fcats { display: grid; gap: 3px; }
.fcats a {
  display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px;
  border-radius: 9px; font-size: 0.92rem; color: var(--text-muted); transition: 0.18s var(--ease);
}
.fcats a:hover { background: var(--paper-2); color: var(--red); }
.fcats span { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; }
.frange { display: flex; align-items: center; gap: 8px; }
.frange input { min-width: 0; }
.frange span { color: var(--text-muted); }
.fcheck { display: flex; align-items: center; gap: 9px; font-size: 0.92rem; cursor: pointer; }
.fnote {
  background: var(--amber-soft); border: 1px solid #f0dcae; border-radius: var(--radius);
  padding: 18px 20px; font-size: 0.9rem; display: grid; gap: 6px;
}
.fnote p:first-child { color: var(--ink); }
.fnote p { color: var(--text-muted); }

.shop-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.shop-bar__count { color: var(--text-muted); font-size: 0.93rem; }
.shop-bar__sort { display: flex; align-items: center; gap: 10px; }
.shop-bar__sort label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
}
.pager {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 40px; flex-wrap: wrap;
}
.pager__status { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); }

/* --- Product detail ----------------------------------------------------- */
.pdetail { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.pdetail__main {
  aspect-ratio: 1; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); display: grid; place-items: center; overflow: hidden;
}
.pdetail__main img { width: 100%; height: 100%; object-fit: contain; padding: 26px; }
.pdetail__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pthumb {
  width: 70px; height: 70px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--paper-2); padding: 5px; overflow: hidden; transition: 0.18s var(--ease);
}
.pthumb.is-active, .pthumb:hover { border-color: var(--red); }
.pthumb img { width: 100%; height: 100%; object-fit: contain; }

.pdetail__brand {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.pdetail__info h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.pdetail__sku { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }
.pdetail__lede { color: var(--text-muted); margin-top: 14px; font-size: 1.03rem; }
.pdetail__pricebox {
  margin: 24px 0; padding: 22px 24px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.pdetail__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.pdetail__price strong { font-family: var(--font-display); font-size: 2.2rem; color: var(--ink); }
.pdetail__price s { color: var(--text-muted); font-size: 1.05rem; }
.pdetail__off {
  background: #1d6b3f; color: #fff; font-family: var(--font-mono); font-size: 11px;
  font-weight: 700; padding: 4px 10px; border-radius: var(--radius-chip);
}
.pdetail__gst { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }
.pdetail__stock { margin-top: 10px; font-weight: 600; font-size: 0.92rem; }
.pdetail__stock.is-in { color: #1d6b3f; }
.pdetail__stock.is-out { color: var(--red); }
.pdetail__buy { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.pdetail__qty { width: 92px; text-align: center; }
.pdetail__buy .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.pdetail__from { color: var(--text-muted); font-size: 1rem; align-self: center; }

/* Variant (option) selector on the product page. */
.pvariants { flex-basis: 100%; border: none; padding: 0; margin: 0 0 4px; }
.pvariants legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; padding: 0; }
.pvariants__list { display: flex; flex-wrap: wrap; gap: 10px; }
.pvariant {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 9px 13px;
  font-size: 0.92rem; transition: border-color 0.15s ease, background 0.15s ease;
}
.pvariant:hover { border-color: var(--text-muted); }
.pvariant input { margin: 0; }
.pvariant__name { font-weight: 600; color: var(--text); }
.pvariant__price { color: var(--text-muted); }
.pvariant.is-selected, .pvariant:has(input:checked) { border-color: var(--red); background: var(--paper-2); }
.pvariant.is-oos { opacity: 0.55; cursor: not-allowed; }
.pcard__from { color: var(--text-muted); font-size: 0.85rem; }
.pdetail__assure { margin-top: 24px; }
.pdetail__ship {
  display: flex; align-items: center; gap: 9px; font-size: 0.9rem; color: var(--text-muted);
  margin-bottom: 9px;
}
.pdetail__ship svg { width: 16px; height: 16px; color: #1d6b3f; flex: none; }

/* WhatsApp hand-off strip: "Still have a doubt?" on a product page, and the
   same strip on the order confirmation, where it carries the whole order. */
.wa-strip {
  display: flex; align-items: center; gap: 11px; text-align: left;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--text-muted); font-size: 0.9rem; line-height: 1.5;
  text-decoration: none; transition: border-color 0.15s ease, background 0.15s ease;
}
.wa-strip:hover { border-color: #25d366; background: var(--paper-2); }
.wa-strip svg { width: 22px; height: 22px; color: #25d366; flex: none; }
.wa-strip strong { color: var(--text); font-weight: 600; }
.pdetail__doubt { margin-top: 18px; }
.pdetail__buy--oos { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pdetail__avail-note { color: var(--text-muted); font-size: 0.92rem; max-width: 42ch; }

/* Fixed (non-selectable) payment line on checkout — UPI is the only method. */
.pay-fixed {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem; color: var(--text-muted); line-height: 1.5;
}
.pay-fixed svg { width: 18px; height: 18px; color: #1d6b3f; flex: none; margin-top: 2px; }
.pay-fixed strong { color: var(--text); font-weight: 600; }

/* Payment & trust strip — reused on product, cart and shop landing. */
.paylist { display: grid; gap: 9px; }
.paylist li {
  display: flex; align-items: flex-start; gap: 9px; font-size: 0.9rem; color: var(--text-muted);
}
.paylist li strong { color: var(--text); font-weight: 600; }
.paylist svg { width: 16px; height: 16px; color: #1d6b3f; flex: none; margin-top: 2px; }
.pdetail__bulk {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 0.9rem; color: var(--text-muted); display: grid; gap: 8px;
}
.pdetail__tabs { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; margin-top: 60px; }
.pdetail__tabs h2 {
  font-size: 1.3rem; margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--amber); display: inline-block;
}
.pdetail__desc p { margin-bottom: 14px; color: var(--text-muted); }
.pdetail__specs .dtable { min-width: 0; }
.pdetail__specs th {
  width: 42%; color: var(--text-muted); font-weight: 500;
  font-family: var(--font-body); font-size: 0.9rem;
}
.ptags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }

/* --- Cart --------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 330px; gap: 34px; align-items: start; }
.cart-lines { display: grid; gap: 14px; }
.cline {
  display: grid; grid-template-columns: 92px 1fr auto auto auto; gap: 18px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.cline__media {
  width: 92px; height: 92px; border-radius: 12px; background: var(--paper-2);
  display: grid; place-items: center; overflow: hidden;
}
.cline__media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cline__info h3 { font-size: 1rem; }
.cline__info h3 a:hover { color: var(--red); }
.cline__sku { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }
.cline__unit { font-size: 0.85rem; color: var(--text-muted); margin-top: 5px; }
.cline__qty { display: flex; gap: 8px; align-items: center; }
.cline__qty input { width: 74px; text-align: center; }
.cline__total { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; min-width: 82px; text-align: right; }
.cline__remove button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--text-muted); font-size: 20px; line-height: 1;
  transition: 0.18s var(--ease);
}
.cline__remove button:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }

.cart-summary, .checkout__summary {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 26px 28px; box-shadow: var(--shadow-sm); display: grid; gap: 14px;
  position: sticky; top: calc(var(--nav-h) + 20px);
}
.cart-summary h2, .checkout__summary h2 { font-size: 1.24rem; }
.cart-summary dl, .checkout__summary dl { display: grid; gap: 10px; }
.cart-summary dl > div, .checkout__summary dl > div {
  display: flex; justify-content: space-between; gap: 12px; color: var(--text-muted); font-size: 0.95rem;
}
/* The optional COD-fee row is toggled via the [hidden] attribute; the flex rule
   above (an author rule) would otherwise beat the UA [hidden] display:none and
   leave it visible, so restore the hidden state explicitly. */
.cart-summary dl > div[hidden], .checkout__summary dl > div[hidden] { display: none; }
.cart-summary__total {
  border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink) !important;
}
.cart-summary__nudge {
  background: var(--amber-soft); border-radius: var(--radius-sm); padding: 11px 14px;
  font-size: 0.87rem; color: var(--amber-dark);
}
.cart-summary__gst { font-size: 0.8rem; color: var(--text-muted); }
.cart-summary .btn, .checkout__summary .btn { width: 100%; justify-content: center; }
.cart-summary .link-arrow, .checkout__summary .link-arrow { justify-content: center; }

/* --- Checkout ----------------------------------------------------------- */
/* minmax(0, …) on both the outer grid and the inner form grid stops the
   widest <select> option from setting a min-content floor; without it the
   form column pushes the 340px summary panel past the container's right
   edge (and out of the viewport) on laptop widths. */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.checkout__main { display: grid; gap: 22px; min-width: 0; }
.checkout fieldset { border: 0; padding: 0; margin: 0; }
.checkout legend { padding: 0; margin-bottom: 18px; }
.checkout legend h2 { font-size: 1.2rem; }
.colines { display: grid; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.colines li { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; font-size: 0.9rem; align-items: baseline; }
.colines__qty { font-family: var(--font-mono); color: var(--text-muted); }
.colines__name { color: var(--text); }
.colines__price { font-weight: 600; white-space: nowrap; }

/* --- Confirmation ------------------------------------------------------- */
.confirm { max-width: 760px; margin: 0 auto; display: grid; gap: 22px; }
.confirm__tick {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: #e7f4ec; color: #1d6b3f;
}
.confirm__tick svg { width: 34px; height: 34px; }
.confirm__next {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 28px;
}
.confirm__next h2 { font-size: 1.18rem; margin-bottom: 12px; }
.confirm__next ol { padding-left: 22px; display: grid; gap: 8px; margin-bottom: 14px; color: var(--text-muted); }
.confirm__next p { color: var(--text-muted); font-size: 0.93rem; }
.confirm__table tfoot td { border-top: 1px solid var(--line); }
.confirm__grand td { border-top: 2px solid var(--charcoal); font-size: 1.05rem; }
.confirm__ship h3 { font-size: 1.05rem; margin-bottom: 8px; }
.confirm__ship p { color: var(--text-muted); }

/* --- Cart badge in the nav ---------------------------------------------- */
.nav__cart { position: relative; display: inline-grid; place-items: center; padding: 8px; min-width: 44px; min-height: 44px; color: var(--ink); transition: color 0.18s; }
.nav__cart:hover { color: var(--red); }
.nav__cart svg { width: 22px; height: 22px; }
.nav__cart span {
  position: absolute; top: -1px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 100px; background: var(--red); color: #fff;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}

@media (max-width: 1080px) {
  .pgrid--4 { grid-template-columns: repeat(3, 1fr); }
}
/* Below this the 340px summary leaves the two form columns too narrow to
   read (selects start truncating), so stack the form and the summary. */
@media (max-width: 1080px) {
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .checkout__summary { position: static; }
}
@media (max-width: 980px) {
  .shop-layout, .cart-layout, .checkout { grid-template-columns: 1fr; }
  .shop-filters, .cart-summary, .checkout__summary { position: static; }
  .pdetail, .pdetail__tabs { grid-template-columns: 1fr; gap: 30px; }
  .ctiles { grid-template-columns: repeat(2, 1fr); }
  .pgrid, .pgrid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .ctiles, .pgrid, .pgrid--4 { grid-template-columns: 1fr; }
  .cline { grid-template-columns: 68px 1fr auto; row-gap: 12px; }
  .cline__media { width: 68px; height: 68px; }
  .cline__qty { grid-column: 1 / -1; }
  .cline__total { grid-column: 2; text-align: left; }
}

/* ==========================================================================
   Additions: skip link · nav search · grid min-width guards · invoice
   ========================================================================== */

/* Grid children need min-width:0 or long content (SKUs, unbroken names)
   forces the whole track wider and the sidebar/gallery overflow. */
.shop-main { min-width: 0; }
.pdetail__gallery { min-width: 0; }

/* Keyboard focus for the gallery thumbnails (they are real buttons). */
.pthumb:focus-visible { outline: none; border-color: var(--red); box-shadow: var(--ring); }

/* Skip-to-content link — visible only when focused. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: #fff; color: var(--ink); padding: 10px 16px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow); font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Shop search in the top nav. */
.nav__search { display: flex; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 3px 3px 3px 14px; }
.nav__search input { border: 0; background: transparent; font: inherit; font-size: 0.9rem; width: 130px; padding: 6px 0; color: var(--ink); }
.nav__search input:focus { outline: none; }
.nav__search button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--radius-btn); background: var(--charcoal); color: #fff; cursor: pointer; }
.nav__search button svg { width: 15px; height: 15px; }
.nav__search button:hover { background: var(--red); }

/* Search as an icon, for the widths where the field itself doesn't fit. */
.nav__searchbtn {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; background: none; color: var(--ink); cursor: pointer; transition: color 0.18s;
}
.nav__searchbtn:hover, .nav__searchbtn[aria-expanded="true"] { color: var(--red); }
.nav__searchbtn svg { width: 21px; height: 21px; }
.nav__searchpanel {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 14px 22px;
}
.nav__searchpanel .nav__search { max-width: var(--container); margin-inline: auto; }
.nav__searchpanel .nav__search input { width: 100%; flex: 1; }
/* Above 1340px the header carries the real search field, so the panel is dead
   weight; site.js also closes it when the window crosses back over, so hidden,
   aria-expanded and focus don't go stale. */
@media (min-width: 1341px) { .nav__searchpanel { display: none; } }
.nav__msearch { margin-bottom: 8px; }
.nav__msearch input { width: 100%; }

/* --- Type-ahead product suggestions -------------------------------------
   Attached to every search form on the site. The panel is absolutely placed
   under its form, so the form becomes the positioning context. */
.has-suggest { position: relative; }
/* The header field is ~180px wide; the dropdown is not. Anchor it to the
   field's right edge and give it a readable width of its own, or product
   names arrive truncated to three characters. */
.nav__cta .nav__search .suggest { left: auto; right: 0; width: min(420px, calc(100vw - 40px)); }
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 120;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); max-height: min(70vh, 520px); overflow-y: auto;
  text-align: left;
}
.suggest__item {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.suggest__item:last-of-type { border-bottom: 0; }
.suggest__item:hover, .suggest__item.is-active { background: var(--paper-2); }
.suggest__thumb {
  width: 44px; height: 44px; border-radius: var(--radius-chip); background: var(--paper-2);
  display: grid; place-items: center; overflow: hidden; flex: none;
}
.suggest__thumb img { width: 100%; height: 100%; object-fit: contain; }
.suggest__text { display: grid; gap: 2px; min-width: 0; }
.suggest__text strong {
  font-size: 0.92rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.suggest__meta { font-size: 0.78rem; color: var(--text-muted); }
.suggest__price { font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
.suggest__all {
  /* Sticky so "see all N results" stays reachable without scrolling the
     dropdown to its end. */
  display: block; position: sticky; bottom: 0; padding: 12px 14px;
  background: var(--paper-2); border-top: 1px solid var(--line);
  font-size: 0.86rem; font-weight: 600; color: var(--red); text-decoration: none;
}
.suggest__all:hover { background: var(--red-soft); }
.suggest__empty { padding: 16px 14px; font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* --- Shop search page ---------------------------------------------------- */
.searchbar {
  display: flex; gap: 10px; align-items: center; margin-top: 26px;
  max-width: 640px; background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--radius-btn); padding: 5px 5px 5px 16px;
}
.searchbar input {
  flex: 1; min-width: 0; border: 0; background: transparent; font: inherit;
  font-size: 1rem; padding: 10px 0; color: var(--ink);
}
.searchbar input:focus { outline: none; }
.searchbar .btn { padding: 11px 22px; }
.searchcats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; font-size: 0.88rem; color: var(--text-muted); }
.chip--link { background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; padding: 6px 12px; font-size: 0.86rem; }
.chip--link:hover { border-color: var(--red); color: var(--red); }
.empty--search .empty__hint { max-width: 460px; margin: 10px auto 22px; }
@media (max-width: 520px) {
  .searchbar { flex-wrap: wrap; padding: 10px; }
  .searchbar input { width: 100%; padding: 6px 6px; }
  .searchbar .btn { width: 100%; }
}

/* GST invoice on the order confirmation. */
.confirm__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 26px 0 18px; text-align: left; }
.confirm__parties h3 { font-size: 0.95rem; margin-bottom: 6px; }
.confirm__parties p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }
.confirm__note { color: var(--text-muted); font-size: 0.85rem; margin-top: 12px; text-align: left; }
.field .opt, label .opt { color: var(--text-muted); font-weight: 400; font-size: 0.85em; }

@media (max-width: 620px) {
  .confirm__parties { grid-template-columns: 1fr; }
}

/* ==========================================================================
   UPI payment panel (order confirmation)
   ========================================================================== */

.upi-pay {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper); box-shadow: var(--shadow-sm); overflow: hidden;
}
.upi-pay__intro {
  padding: 22px 26px; background: var(--charcoal); color: var(--text-invert);
}
.upi-pay__intro h2 { color: #fff; font-size: 1.4rem; }
.upi-pay__intro p { color: var(--text-invert-muted); margin: 6px 0 0; font-size: 0.95rem; }
.upi-pay__body {
  display: grid; grid-template-columns: auto 1fr; gap: 30px; padding: 26px;
}
.upi-pay__qr { text-align: center; }
.upi-pay__qr svg {
  width: 210px; height: 210px; display: block; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; background: #fff;
}
.upi-pay__vpa {
  margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.9rem;
}
.upi-copy {
  border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--radius-btn);
  padding: 3px 12px; font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  transition: 0.18s var(--ease);
}
.upi-copy:hover { border-color: var(--red); color: var(--red); }
.upi-pay__side { display: grid; gap: 14px; align-content: start; }
.upi-pay__app { justify-content: center; }
.upi-pay__hint { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.upi-pay__steps { display: grid; gap: 7px; padding-left: 20px; margin: 4px 0; }
.upi-pay__steps li { color: var(--text-muted); font-size: 0.93rem; }
.upi-pay__form label {
  display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px;
}
.upi-pay__submit { display: flex; gap: 10px; }
.upi-pay__submit input { flex: 1; min-width: 0; }
.upi-pay__submit .btn { flex: none; }

@media (max-width: 620px) {
  .upi-pay__body { grid-template-columns: 1fr; gap: 22px; }
  .upi-pay__qr svg { width: 180px; height: 180px; }
}

/* Payment strip inside the cart/checkout summary card */
.cart-summary__pay { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.cart-summary__pay .paylist { gap: 8px; }
.cart-summary__pay .paylist li { font-size: 0.82rem; }

/* ==========================================================================
   Technologies-covered grid (replaces the public kit list)
   ========================================================================== */

.techgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.techtile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 26px; box-shadow: var(--shadow-sm); display: grid; gap: 8px; align-content: start;
}
.techtile__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: var(--red-soft); color: var(--red); margin-bottom: 4px;
}
.techtile__icon svg { width: 24px; height: 24px; }
.techtile h3 { font-size: 1.08rem; }
.techtile p { color: var(--text-muted); font-size: 0.9rem; }

/* Proposal (print) variant — plain, ink-friendly */
.doc__tech { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 30px; margin: 18px 0 14px; }
.doc__techitem h4 { margin-bottom: 3px; }
.doc__techitem p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

@media (max-width: 900px) { .techgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .techgrid, .doc__tech { grid-template-columns: 1fr; } }

@media print {
  .doc__tech { grid-template-columns: repeat(2, 1fr); }
  /* Keep photography from pushing content onto an extra sheet. */
  .doc__shot, .doc__shots { break-inside: avoid; page-break-inside: avoid; }
  .doc__shot { margin: 14px 0 16px; }
  .doc__shot img { aspect-ratio: 16 / 5; }
  .doc__shots { gap: 8px; margin: 14px 0 12px; }
  .doc__shot img, .doc__shots img { border-radius: 4px; }
}

/* ==========================================================================
   Photo gallery (home) — filterable masonry grid; click a photo to open it.
   ========================================================================== */
.photos .gfilter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 30px; }
.gchip {
  padding: 9px 20px; border-radius: var(--radius-btn); font-weight: 600; font-size: 0.92rem;
  background: var(--paper-2); color: var(--text); border: 1.5px solid var(--line);
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.gchip:hover { transform: translateY(-2px); border-color: var(--ink); }
.gchip.is-active { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 10px 22px -12px rgba(184, 31, 31, 0.7); }
.gchip:focus-visible { outline: none; box-shadow: var(--ring); }

.ggrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gcard {
  position: relative; margin: 0;
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--paper-2); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease);
}
.gcard img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.gcard:hover { box-shadow: var(--shadow-lg); }
.gcard:hover img { transform: scale(1.05); }
.gcard:focus-visible { outline: none; box-shadow: var(--ring); }
.gcard__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 36px 16px 14px; color: #fff; font-weight: 600; font-size: 0.98rem; line-height: 1.3; text-align: left;
  background: linear-gradient(transparent, rgba(12, 13, 15, 0.82));
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.gcard:hover .gcard__cap, .gcard:focus-visible .gcard__cap { opacity: 1; transform: none; }
.gcard__tag {
  display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: var(--radius-chip); vertical-align: middle;
  font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #241a02; background: var(--amber);
}
.gcard.is-hidden { display: none; }
.gempty { text-align: center; color: var(--text-muted); padding: 24px; }
@media (max-width: 900px) { .ggrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .ggrid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ==========================================================================
   Stats band (home) — numbers count up on scroll-in.
   ========================================================================== */
.statband .stat__value { color: #fff; }
.statband .stat__value .u { color: var(--amber); }
.statband .stat__label {
  margin-top: 8px; color: var(--text-invert-muted);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
}
@media (max-width: 620px) { .statband .stats { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; } }

/* ==========================================================================
   Legal / long-form pages (privacy, terms)
   ========================================================================== */
.container--narrow { max-width: 820px; }
.legal { font-size: 1.02rem; }
.legal .legal__updated { color: var(--text-muted); font-size: 0.9rem; font-family: var(--font-mono); margin-bottom: 26px; }
.legal h2 { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); margin: 34px 0 12px; }
.legal p { margin-bottom: 1rem; color: var(--text); }
.legal ul { margin: 0 0 1rem 1.2rem; padding: 0; }
.legal li { margin-bottom: 0.5rem; color: var(--text); }
.legal a { color: var(--red); text-decoration: underline; }
.legal a:hover { color: var(--red-dark); }

/* ==========================================================================
   Error pages (404 / 500)
   ========================================================================== */
.errorpage { position: relative; overflow: hidden; text-align: center; padding-block: 96px; }
.errorpage .center { display: flex; flex-direction: column; align-items: center; }
.errorpage__code { font-size: clamp(3.4rem, 12vw, 6rem); font-weight: 700; color: var(--red); line-height: 1; margin-bottom: 10px; }
.errorpage h1 { margin-bottom: 14px; }
.errorpage__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  max-width: 720px; margin-inline: auto;
  background: var(--charcoal); color: var(--text-invert);
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  transform: translateY(140%); opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.cookie.is-visible { transform: translateY(0); opacity: 1; }
.cookie[hidden] { display: none; }
.cookie__text { flex: 1 1 320px; font-size: 0.94rem; color: var(--text-invert-muted); line-height: 1.55; }
.cookie__text strong { color: #fff; }
.cookie__text a { color: var(--amber); text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: 11px 20px; font-size: 0.92rem; }
.cookie .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cookie .btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.55); color: #fff; }
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }
@media (max-width: 520px) {
  .cookie { padding: 16px; }
  .cookie__actions { width: 100%; }
  .cookie__actions .btn { flex: 1 1 auto; justify-content: center; }
}


/* ==========================================================================
   3D printing service (apps.printing)
   ========================================================================== */

/* Pricing tiles on the service landing page */
.pricecards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pricecard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 26px; box-shadow: var(--shadow-sm);
}
.pricecard__label {
  display: inline-block; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 10px;
}
.pricecard__value {
  display: block; font-family: var(--font-display); font-size: 2.1rem; line-height: 1;
  color: var(--ink); margin-bottom: 12px;
}
.pricecard__value span {
  display: block; font-family: var(--font-body); font-size: 0.86rem; font-weight: 500;
  color: var(--text-muted); margin-top: 7px; letter-spacing: 0;
}
.pricecard p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

/* File picker on the upload form. The real <input> sits on top at zero opacity
   so keyboard focus, drag-and-drop and the native picker all still work. */
.filedrop { position: relative; }
.filedrop input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.filedrop__face {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 30px 20px; border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--paper-2); transition: 0.18s var(--ease);
}
.filedrop__face svg { width: 30px; height: 30px; color: var(--text-muted); }
.filedrop__face strong { font-size: 0.98rem; word-break: break-all; }
.filedrop__face span { font-size: 0.85rem; color: var(--text-muted); }
.filedrop input:focus-visible + .filedrop__face,
.filedrop:hover .filedrop__face { border-color: var(--red); background: var(--red-soft); }
.filedrop.has-file .filedrop__face { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.filedrop.has-file .filedrop__face svg { color: var(--green); }

.upload-steps {
  display: grid; gap: 8px; padding-left: 20px; margin: 0 0 18px;
  list-style: decimal; color: var(--text-muted); font-size: 0.93rem;
}

/* The quote panel on the job page */
.quotecard {
  text-align: left; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper); box-shadow: var(--shadow-sm); overflow: hidden;
  margin: 26px 0;
}
.quotecard__head { padding: 22px 26px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.quotecard__head h2 { font-size: 1.3rem; }
.quotecard__head p { color: var(--text-muted); font-size: 0.93rem; margin: 6px 0 0; }
/* Spec list above, price table below. Side by side, the table's min-content
   width (it has six money columns) starves the spec column down to one
   character per line. */
.quotecard__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px 26px; }
.quotecard__flags { padding: 0 26px 22px; display: grid; gap: 10px; }
.quotecard__flags .alert { margin: 0; }

.quotespec {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px; margin: 0;
}
.quotespec > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.quotespec dt { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.quotespec dd { margin: 0; font-size: 0.95rem; word-break: break-word; }
.quotespec__soft { color: var(--text-muted); }
.quotetable { margin: 0; min-width: 320px; }

/* The WhatsApp handover page */
.handover { max-width: 760px; margin-inline: auto; text-align: center; }
.handover__mark {
  display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--green-soft); color: var(--green);
}
.handover__mark svg { width: 32px; height: 32px; }
.handover__cta { margin-top: 24px; }
.handover__num { margin-top: 12px; font-size: 0.92rem; color: var(--text-muted); }
.handover__num a { color: var(--red); font-weight: 700; }
.handover__preview, .handover__after {
  text-align: left; margin-top: 30px; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2);
}
.handover__preview h2, .handover__after h2 { font-size: 1.12rem; margin-bottom: 12px; }
.handover__msg {
  /* Explicitly the body font. Not var(--font-mono) (Space Mono has no rupee
     glyph and this block is mostly prices), and not left unset either, or the
     browser's own `pre { font-family: monospace }` default takes over.
     white-space: pre-wrap alone is enough to read as a verbatim message. */
  font-family: var(--font-body); font-size: 0.88rem; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word; color: var(--text-muted);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; margin: 0 0 10px; max-height: 340px; overflow-y: auto;
}
.handover__after ol { padding-left: 22px; display: grid; gap: 8px; color: var(--text-muted); font-size: 0.94rem; }
.handover .btn-row { justify-content: center; margin-top: 26px; }

@media (max-width: 900px) {
  .pricecards { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .quotespec { grid-template-columns: 1fr; }
  /* Tighten the card so the price table fits a 375px phone outright rather
     than needing a sideways scroll to read the amounts. */
  .quotecard__head, .quotecard__body { padding-inline: 18px; }
  .quotecard__flags { padding-inline: 18px; }
  .quotetable { min-width: 0; }
  .quotetable th, .quotetable td { padding-inline: 10px; }
}

/* Buy-it-now strip on the 3D printing service page */
.svc-offer {
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  padding: 30px 32px; border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius); background: var(--paper-2);
}
.svc-offer h2 { font-size: 1.5rem; margin: 10px 0 10px; }
.svc-offer p { color: var(--text-muted); margin: 0; max-width: 62ch; }
.svc-offer__act { display: grid; gap: 12px; justify-items: start; }
@media (max-width: 860px) {
  .svc-offer { grid-template-columns: 1fr; padding: 24px; }
}

/* ==========================================================================
   DIY projects — paid project packs, public component lists
   ========================================================================== */
.h-sm { font-size: 1.2rem; }
.h-md { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.btn--sm { padding: 8px 15px; font-size: 0.85rem; }
.btn--sm svg { width: 15px; height: 15px; }

/* --- Landing hero ------------------------------------------------------- */
.diyhero { padding-block: clamp(56px, 7vw, 92px); }
.diyhero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) 370px;
  gap: clamp(32px, 5vw, 60px); align-items: center;
}
.diyhero .eyebrow { color: var(--amber); }
.diyhero .eyebrow::before { background: var(--red); }
.diyhero h1 .hl { color: var(--amber); }
.diyhero__cta { margin-top: 28px; }
.diyhero__usp {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px;
  color: var(--text-invert-muted); font-size: 0.88rem;
}
.diyhero__usp li { display: flex; align-items: center; gap: 8px; }
.diyhero__usp svg { width: 17px; height: 17px; color: var(--amber); flex: none; }
.diyhero__panel {
  background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65);
}
.diyhero__chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600;
  padding: 6px 12px; border-radius: var(--radius-chip); background: rgba(245, 166, 35, 0.16);
  color: var(--amber); margin-bottom: 16px;
}
.diyhero__chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.diyhero__mock { display: grid; gap: 2px; background: rgba(0, 0, 0, 0.18); border-radius: var(--radius-sm); padding: 6px 14px; }
.diyhero__mockrow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,0.12); font-size: 0.88rem; color: var(--text-invert-muted); }
.diyhero__mockrow b { color: #fff; font-family: var(--font-mono); font-size: 0.84rem; }
.diyhero__mockrow--total { border-bottom: 0; color: #fff; font-weight: 600; }
.diyhero__mockrow--total b { color: var(--amber); }
.diyhero__unlock {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px;
  background: var(--green); color: #fff; border-radius: var(--radius-sm); font-size: 0.86rem; font-weight: 600;
}
.diyhero__unlock svg { width: 19px; height: 19px; flex: none; }
.diyhero__note { font-size: 0.72rem; color: var(--text-invert-muted); margin-top: 12px; text-align: center; }

/* --- Track cards -------------------------------------------------------- */
.diytracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 36px; }
.diytrack {
  position: relative; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.diytrack::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--green); }
.diytrack--college::before { background: var(--amber); }
.diytrack--rnd::before { background: var(--red); }
.diytrack:hover, .diytrack.is-active { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.diytrack.is-active { outline: 2px solid var(--ink); outline-offset: 2px; }
.diytrack__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.diytrack__label {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.diytrack__label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.diytrack--college .diytrack__label::before { background: var(--amber); }
.diytrack--rnd .diytrack__label::before { background: var(--red); }
.diytrack__count { font-size: 0.76rem; color: var(--text-muted); }
.diytrack__price { font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; line-height: 1; letter-spacing: -0.03em; }
.diytrack__price em { font-family: var(--font-body); font-style: normal; font-size: 0.78rem; font-weight: 500; color: var(--text-muted); margin-left: 8px; letter-spacing: 0; }
.diytrack__blurb { color: var(--text-muted); font-size: 0.92rem; flex: 1; }
.diytrack__go { display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; font-weight: 600; color: var(--red); }
.diytrack__go svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.diytrack:hover .diytrack__go svg { transform: translateX(4px); }

/* --- Browse bar --------------------------------------------------------- */
.diybar {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  flex-wrap: wrap; margin-bottom: 24px;
}
.diysearch {
  display: flex; width: min(360px, 100%); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-btn); overflow: hidden; box-shadow: var(--shadow-sm);
}
.diysearch input {
  flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 0.94rem;
  padding: 11px 15px; outline: none; color: var(--text);
}
.diysearch button { width: 46px; border: 0; background: var(--paper-2); color: var(--text-muted); display: grid; place-items: center; }
.diysearch button:hover { background: var(--red); color: #fff; }
.diysearch button svg { width: 18px; height: 18px; }
.diyfilters { margin-bottom: 28px; }
.filter__price { font-size: 0.76rem; opacity: 0.8; margin-left: 3px; }
.filter--clear { border-style: dashed; }
.diyresult { font-size: 0.9rem; color: var(--text-muted); margin: -8px 0 24px; }
.diyresult a { color: var(--red); font-weight: 600; }
.diymore { text-align: center; margin-top: 34px; color: var(--text-muted); }
.diymore a { color: var(--red); font-weight: 600; }
.diyempty { grid-column: 1 / -1; }
.diyempty a { color: var(--red); font-weight: 600; }

/* --- How it works ------------------------------------------------------- */
.diysteps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 34px; counter-reset: none; }
.diysteps-row li {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.diysteps-row__n {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 700;
  margin-bottom: 14px;
}
.diysteps-row h3 { font-size: 1.02rem; margin-bottom: 7px; }
.diysteps-row p { color: var(--text-muted); font-size: 0.9rem; }

/* --- Proof panel -------------------------------------------------------- */
.diyproof {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 4px;
}
.diyproof__item { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.diyproof__item strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--amber); min-width: 76px; }
.diyproof__item span { color: var(--text-invert-muted); font-size: 0.92rem; }
.diyproof p { color: var(--text-invert-muted); font-size: 0.88rem; margin-top: 16px; }
.diyproof a { color: var(--amber); font-weight: 600; }

/* --- FAQ ---------------------------------------------------------------- */
.diyfaq { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.diyfaq details { border-bottom: 1px solid var(--line); }
.diyfaq summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.diyfaq summary::-webkit-details-marker { display: none; }
.diyfaq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--red); line-height: 1;
}
.diyfaq details[open] summary::after { content: "−"; }
.diyfaq p { color: var(--text-muted); font-size: 0.94rem; padding: 0 0 22px; max-width: 72ch; }
.diyfaq a { color: var(--red); font-weight: 600; }

/* --- Cards -------------------------------------------------------------- */
.diygrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.diycard {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.diycard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.diycard__media { position: relative; display: block; aspect-ratio: 16/10; background: var(--paper-2); overflow: hidden; }
.diycard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.diycard:hover .diycard__media img { transform: scale(1.04); }
.diycard__media .ph-tile { width: 100%; height: 100%; border-radius: 0; }
.diycard__track {
  position: absolute; top: 14px; left: 14px; color: #fff; font-size: 0.73rem; font-weight: 700;
  padding: 6px 11px; border-radius: var(--radius-chip); letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--green);
}
.diycard__track--college { background: var(--amber); color: #241a02; }
.diycard__track--rnd { background: var(--red); }
.diycard__price {
  position: absolute; top: 12px; right: 12px; background: rgba(22, 23, 26, 0.86); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; padding: 6px 11px;
  border-radius: var(--radius-chip); backdrop-filter: blur(6px);
}
.diycard__owned {
  position: absolute; bottom: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--green); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 6px 11px; border-radius: var(--radius-chip);
}
.diycard__owned svg { width: 14px; height: 14px; }
.diycard__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.diycard__complexity { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 600; }
.diycard__body h3 { font-size: 1.12rem; line-height: 1.3; }
.diycard__body h3 a { color: inherit; text-decoration: none; }
.diycard__body h3 a:hover { color: var(--red); }
.diycard__summary { color: var(--text-muted); font-size: 0.94rem; margin: 0; }
.diycard__facts { display: flex; flex-wrap: wrap; gap: 10px 14px; color: var(--text-muted); font-size: 0.83rem; }
.diycard__facts li { display: flex; align-items: center; gap: 6px; }
.diycard__facts svg { width: 15px; height: 15px; }
.diycard__foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.diycard__cost { font-weight: 700; font-size: 0.91rem; }

/* --- Detail page -------------------------------------------------------- */
.diytag {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 7px 12px;
  border-radius: var(--radius-chip); background: rgba(18, 145, 92, 0.16); color: #7ee2b0;
}
.diytag svg { width: 15px; height: 15px; }
.diytag--college { background: rgba(245, 166, 35, 0.18); color: var(--amber); }
.diytag--rnd { background: rgba(184, 31, 31, 0.2); color: #ffb3b3; }
.diyfacts { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 24px; }
.diyfacts li { display: grid; gap: 2px; }
.diyfacts span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-invert-muted); }
.diyfacts strong { font-size: 1.05rem; color: #fff; }
.diyfacts strong.mono { font-size: 0.95rem; }
/* min-width:0 on the column AND the article: without it the code blocks (long
   lines, overflow-x:auto) set the column's minimum width and push the whole
   page into a horizontal scroll on a phone. */
.diylayout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.diybody { min-width: 0; }
.diybody .prose h2 { font-size: 1.5rem; margin: 28px 0 12px; }
.diybody .prose h4 { font-size: 1rem; margin: 14px 0 6px; }
.diybody .prose ul { margin: 0 0 1rem 1.1rem; list-style: disc; color: var(--text-muted); }
.diybody .prose li { margin-bottom: 6px; }
.diysteps { display: grid; gap: 22px; counter-reset: diystep; list-style: none; }
.diystep {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 24px 68px; min-width: 0;
}
.diystep::before {
  counter-increment: diystep; content: counter(diystep);
  position: absolute; left: 22px; top: 24px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
}
.diystep h3 { font-size: 1.1rem; margin-bottom: 8px; }
.codeblock {
  margin-top: 14px; background: var(--ink); color: var(--text-invert); border-radius: var(--radius-sm);
  padding: 16px 18px; max-width: 100%; overflow-x: auto; font-family: var(--font-mono, monospace); font-size: 0.85rem; line-height: 1.6;
}
.diyparts { position: sticky; top: 96px; }
.diyparts__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.diyparts__card h2 { font-size: 1.2rem; margin-bottom: 14px; }
.diyparts__list { display: grid; gap: 12px; margin-bottom: 16px; }
.diyparts__list li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; font-size: 0.92rem; }
.diyparts__qty { font-weight: 700; color: var(--text-muted); }
.diyparts__name a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
.diyparts__name a:hover { color: var(--red); border-bottom-color: currentColor; }
.diyparts__name em { display: block; font-size: 0.8rem; color: var(--text-muted); font-style: normal; }
.diyparts__price { font-weight: 600; white-space: nowrap; }
.diyparts__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 16px; font-size: 0.92rem; color: var(--text-muted);
}
.diyparts__total strong { font-size: 1.25rem; color: var(--ink); }
.diyparts__note { font-size: 0.82rem; color: var(--text-muted); margin-top: 12px; }
.diyparts__note a { color: var(--red); font-weight: 600; }

/* --- Public component table -------------------------------------------- */
.diycomponents { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--line); }
.diycomponents__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.diycomponents__head .eyebrow { margin-bottom: 8px; }
.diycomponents__head p { color: var(--text-muted); font-size: 0.92rem; margin-top: 6px; max-width: 60ch; }
.diycomponents__sum { text-align: right; display: grid; gap: 2px; }
.diycomponents__sum span { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.diycomponents__sum strong { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.diyctable { width: 100%; min-width: 540px; }
.diyctable a { color: var(--red); font-weight: 600; text-decoration: none; }
.diyctable a:hover { text-decoration: underline; }
.diyctable__note { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.diyctable__out { display: inline-block; font-size: 0.72rem; font-weight: 600; color: var(--red); margin-top: 3px; }
.diyctable__total td { background: var(--paper-2); font-weight: 700; border-top: 2px solid var(--charcoal); }
.diycomponents__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 16px; }
.diycomponents__foot .diyparts__note { margin: 0; }

/* --- Locked content panel ---------------------------------------------- */
.diyinside {
  position: relative; overflow: hidden; margin-top: 34px; padding: clamp(24px, 4vw, 36px);
  background: linear-gradient(160deg, #fff 0%, var(--paper-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.diyinside__top { display: flex; gap: 16px; align-items: flex-start; }
.diyinside__lock {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red);
}
.diyinside__lock svg { width: 24px; height: 24px; }
.diyinside__top .eyebrow { margin-bottom: 6px; }
.diyinside__top p:last-child { color: var(--text-muted); font-size: 0.92rem; margin-top: 5px; }
.diyinside__list { display: grid; gap: 12px; margin: 24px 0; }
.diyinside__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; color: var(--text-muted); }
.diyinside__list svg { width: 19px; height: 19px; flex: none; color: var(--green); margin-top: 1px; }
.diyinside__list strong { color: var(--text); }
.diyinside__steps { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
.diyinside__label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 700; margin-bottom: 10px; }
.diyinside__steps ol { display: grid; gap: 8px; }
.diyinside__steps li { display: flex; align-items: center; gap: 10px; font-size: 0.91rem; color: var(--text-muted); }
.diyinside__steps li span {
  width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); color: var(--text-muted); font-size: 0.74rem; font-weight: 700;
}
.diyinside__more { font-style: italic; }
.diyinside__blur { position: relative; height: 62px; overflow: hidden; margin-bottom: 22px; opacity: 0.5; }
.diyinside__blur span { display: block; height: 9px; border-radius: 3px; background: var(--paper-3); margin-bottom: 9px; }
.diyinside__blur span:nth-child(1) { width: 82%; }
.diyinside__blur span:nth-child(2) { width: 64%; }
.diyinside__blur span:nth-child(3) { width: 74%; }
.diyinside__blur span:nth-child(4) { width: 45%; }
.diyinside__fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, var(--paper-2) 100%); }
.diyinside__fine { font-size: 0.82rem; color: var(--text-muted); margin-top: 12px; }
.diyinside__contents { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 20px; }
.diyinside__contentslist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.diyinside__contentslist li { position: relative; padding-left: 18px; font-size: 0.88rem; color: var(--text-muted); }
.diyinside__contentslist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* --- Project feature grid ---------------------------------------------- */
.diyfeatures { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.diyfeatures .eyebrow { margin-bottom: 8px; }
.diyfeatures__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.diyfeatures__item { display: flex; gap: 12px; align-items: flex-start; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 16px; }
.diyfeatures__item p { font-size: 0.9rem; color: var(--text-muted); }
.diyfeatures__dot { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

/* --- Buy card ----------------------------------------------------------- */
.diybuycard { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.diybuycard__price { font-family: var(--font-display); font-weight: 700; font-size: 2.9rem; line-height: 1; letter-spacing: -0.03em; margin: 16px 0 10px; }
.diybuycard__price span { font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; letter-spacing: 0; color: var(--text-muted); margin-left: 8px; }
.diybuycard__lede { color: var(--text-muted); font-size: 0.9rem; }
.diybuycard__ticks { margin: 20px 0; }
.diybuycard__ticks li { font-size: 0.88rem; }
.diybuycard__pay { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.diybuycard__pay svg { width: 17px; height: 17px; color: var(--green); flex: none; }
.diybuycard__note { font-size: 0.82rem; color: var(--text-muted); margin-top: 10px; }
.diybuycard--quiet { margin-top: 16px; border-top: 1px solid var(--line); box-shadow: none; background: var(--paper-2); padding: 20px; }
.diybuycard--quiet p { font-size: 0.87rem; color: var(--text-muted); }
.diybuycard--quiet p strong { color: var(--text); }
.diybuycard--quiet a { color: var(--red); font-weight: 600; }
.diybuycard--quiet .btn { margin-top: 14px; }

/* --- Checkout (buy page) ------------------------------------------------ */
.diycheckout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 34px; align-items: start; }
.diycheckout__main { display: grid; gap: 22px; min-width: 0; }
.diycheckout__assure { display: grid; gap: 12px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.diycheckout__assure div { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--text-muted); }
.diycheckout__assure svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 1px; }
.diycheckout__assure strong { color: var(--text); }
.diycheckout__meta { color: var(--text-muted); font-size: 0.86rem; margin-top: 4px; }
.diycheckout .checkout__summary { position: sticky; top: 96px; }

/* --- Order / payment page ---------------------------------------------- */
.diyorder { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.diyorder__main { min-width: 0; }
.diyorder__next { margin-top: 24px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.diyorder__next h2 { margin-bottom: 12px; }
.diyorder__ref { display: grid; gap: 2px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 16px; }
.diyorder__ref span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.diyorder__ref strong { font-size: 1.05rem; }
.diyorder__ref small { font-size: 0.76rem; color: var(--text-muted); }
.diyorder .checkout__summary { position: sticky; top: 96px; }

/* --- Access link box + receipt ----------------------------------------- */
.diyaccessbox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; box-shadow: var(--shadow-sm); text-align: left; }
.diyaccessbox label { font-size: 0.84rem; color: var(--text-muted); font-weight: 600; }
.diyaccessbox__row { display: flex; gap: 10px; }
.diyaccessbox__row input { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 0.82rem; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); color: var(--text); }
.diyaccessbox .btn { justify-content: center; }
.diyreceipt { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; width: 100%; }
.diyreceipt div { background: #fff; padding: 14px 16px; display: grid; gap: 2px; }
.diyreceipt span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.diyreceipt strong { font-size: 0.95rem; }
.confirm__tick--warn { background: var(--red-soft); color: var(--red); }

/* --- Owner bar ---------------------------------------------------------- */
.diyownerbar { background: var(--green-soft); border-bottom: 1px solid #bbe6c7; color: #166534; }
.diyownerbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.diyownerbar p { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; }
.diyownerbar p svg { width: 18px; height: 18px; flex: none; }
.diyownerbar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.diyownerbar .btn--ghost { color: #166534; border-color: #bbe6c7; background: rgba(255,255,255,0.5); }
.diyownerbar .btn--ghost:hover { background: #166534; color: #fff; border-color: #166534; }

/* --- Downloads ---------------------------------------------------------- */
.diyres { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.diyres__head { display: flex; gap: 14px; align-items: flex-start; }
.diyres__icon { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-dark); }
.diyres__icon svg { width: 23px; height: 23px; }
.diyres__head .eyebrow { margin-bottom: 5px; }
.diyres__head p:last-child { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.diyres__list { display: grid; gap: 10px; margin-top: 18px; }
.diyres__list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; }
.diyres__ext { display: grid; place-items: center; height: 40px; border-radius: 8px; background: var(--paper-2); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; color: var(--text-muted); }
.diyres__meta { display: grid; gap: 2px; min-width: 0; }
.diyres__meta strong { font-size: 0.94rem; }
.diyres__meta span { font-size: 0.82rem; color: var(--text-muted); }
.diylicense { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 18px 20px; background: var(--paper-2); border: 1px dashed var(--line); border-radius: var(--radius); }
.diylicense svg { width: 21px; height: 21px; color: var(--text-muted); flex: none; margin-top: 1px; }
.diylicense p { font-size: 0.86rem; color: var(--text-muted); }
.diylicense strong { color: var(--text); }

/* --- Find link page ----------------------------------------------------- */
.diyfind { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 34px; align-items: start; max-width: 960px; margin-inline: auto; }
.diyfind__form { display: grid; gap: 16px; }
.diyfind__form .btn { justify-self: start; }
.diyfind__side { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start; }
.diyfind__side p { color: var(--text-muted); font-size: 0.9rem; }
.diyfind__side a { color: var(--red); font-weight: 600; }
.diyfind__again { margin-top: 18px; color: var(--text-muted); }
.diyfind__again a { color: var(--red); font-weight: 600; }

@media (max-width: 1040px) {
  .diylayout { grid-template-columns: minmax(0, 1fr); }
  .diyparts { position: static; }
  .diyorder .checkout__summary, .diycheckout .checkout__summary { position: static; }
  .diycheckout, .diyorder { grid-template-columns: minmax(0, 1fr); }
  .diyhero__inner { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 900px) {
  .diygrid { grid-template-columns: repeat(2, 1fr); }
  .diyhero__inner { grid-template-columns: minmax(0, 1fr); }
  .diyhero__panel { max-width: 440px; }
  .diysteps-row { grid-template-columns: repeat(2, 1fr); }
  .diyfind { grid-template-columns: minmax(0, 1fr); }
  .diyfeatures__grid { grid-template-columns: 1fr; }
  .diyinside__contentslist { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .diygrid { grid-template-columns: 1fr; }
  .diystep { padding: 20px 18px 20px 58px; }
  .diysteps-row { grid-template-columns: 1fr; }
  .diycomponents__head { align-items: flex-start; }
  .diycomponents__sum { text-align: left; }
  .diyaccessbox__row { flex-direction: column; }
  .diyreceipt { grid-template-columns: 1fr; }
  .diyres__list li { grid-template-columns: 48px 1fr; }
  .diyres__list li .btn { grid-column: 2; justify-self: start; }
  .diycard__facts { font-size: 0.8rem; }
}
@media (max-width: 520px) {
  .diytrack { padding: 22px; }
  .diyhero__usp { display: grid; gap: 8px; }
}


/* Home: the 3D printing service numbers. Prices never go in a .mono block —
   Space Mono has no rupee glyph and renders ₹ as an empty box. */
.printfacts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 16px 34px; margin-top: 26px; }
@media (max-width: 560px) { .printfacts { grid-template-columns: repeat(2, auto); } }
.printfacts div { display: grid; gap: 2px; }
.printfacts strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.printfacts span { font-size: 0.86rem; color: var(--text-muted); max-width: 22ch; }

/* Customer account pages share the storefront design tokens. */
.account-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:40px;padding-top:48px;padding-bottom:64px}
.account-nav{display:flex;flex-direction:column;gap:14px;align-self:start;padding:24px;background:var(--paper-2);border-radius:var(--radius)}
.account-content h1,.account-auth h1{margin-bottom:24px}.account-content h2{margin:20px 0 12px}
.account-card{border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin:18px 0;overflow-wrap:anywhere}
.account-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.account-stats article{padding:20px;background:var(--paper-2);border-radius:var(--radius)}.account-stats strong{display:block;font-size:28px;color:var(--red)}
.account-form p{margin:16px 0}.account-form label{display:block;font-weight:600;margin-bottom:6px}.account-form input:not([type=checkbox]),.account-form select,.account-form textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:var(--radius-btn);font:inherit}.account-form .errorlist{color:var(--red);margin:12px 0}.account-thumb{width:100px;height:100px;object-fit:contain}.account-auth{max-width:680px;padding-top:40px;padding-bottom:60px}
@media(max-width:760px){.account-shell{grid-template-columns:1fr;gap:24px}.account-nav{flex-direction:row;flex-wrap:wrap}.account-nav h2{width:100%}.account-stats{grid-template-columns:1fr}}

@media(max-width:760px){.nav__cta .nav__account{display:none}}

/* --- Sign in / sign up (allauth) --------------------------------------
   allauth renders straight into <main>, so on auth pages <main> itself is
   the card, centred on a soft paper background. */
body.auth-page { background: var(--paper-2); }
.auth-page main#main {
  width: min(500px, calc(100% - 32px)); margin: 48px auto 72px; padding: 40px 40px 32px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.auth-page main#main > .container { padding: 0 !important; width: auto; }
.auth__eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin: 0 0 8px; }
.auth__title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 1.95rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
.auth__subtitle { font-family: var(--font-display); font-size: 1.1rem; margin: 24px 0 8px; }
.auth__lead { color: var(--text-muted); font-size: 0.97rem; line-height: 1.55; margin: 0 0 24px; }
.auth__lead a, .auth__switch a, .auth-field__help a, .auth-check a { color: var(--red); font-weight: 600; }
.auth__lead a:hover, .auth__switch a:hover, .auth-field__help a:hover, .auth-check a:hover { text-decoration: underline; }
.auth__switch { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; font-size: 0.94rem; color: var(--text-muted); }
.auth__rule { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.auth-providers { display: grid; gap: 10px; }
.auth-provider {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-btn); background: var(--paper);
  font-weight: 600; color: var(--ink); transition: border-color 0.18s, background 0.18s;
}
.auth-provider:hover { border-color: var(--ink); background: var(--paper-2); }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--text-muted); font-size: 0.84rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-form { display: grid; gap: 18px; }
.auth-form__group { padding-top: 18px; margin-top: 4px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; min-width: 0; }
.auth-form__legend { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); margin: 0 0 -4px; }
.auth-form__group .auth-field { grid-column: 1 / -1; }
.auth-form__group .auth-field--city, .auth-form__group .auth-field--state { grid-column: auto; }
.auth-field { display: grid; gap: 7px; min-width: 0; }
.auth-field > label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.auth-field__opt { font-weight: 400; color: var(--text-muted); }
.auth-field input, .auth-field select, .auth-field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 0.97rem; color: var(--text);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-btn);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.auth-field input::placeholder { color: #9a9ca3; }
.auth-field input:hover, .auth-field select:hover { border-color: #cfccc4; }
.auth-field input:focus, .auth-field select:focus, .auth-field textarea:focus { outline: none; border-color: var(--red); box-shadow: var(--ring); }
.auth-field.has-error input, .auth-field.has-error select { border-color: var(--red); }
.auth-field__help { font-size: 0.84rem; color: var(--text-muted); line-height: 1.45; margin: 0; }
.auth-field__help ul { margin: 0; padding-left: 18px; }
.auth-field--password .auth-field__help { text-align: right; }
.auth-field__error { font-size: 0.85rem; color: var(--red); margin: 0; }
.auth-field__error ul { list-style: none; margin: 0; padding: 0; }

.auth-check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-size: 0.93rem; color: var(--text); }
.auth-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); cursor: pointer; }
.auth-check label { cursor: pointer; line-height: 1.45; }
.auth-check .auth-field__error { grid-column: 2; }

.auth-form__actions { display: grid; gap: 10px; margin-top: 4px; }
.auth-form__actions .btn, .auth-btn--block { width: 100%; justify-content: center; min-height: 50px; }
.auth-form__actions .btn:hover { transform: none; }
.auth-btngroup { display: grid; gap: 10px; margin: 16px 0; }

/* Show/Hide sits inside the password field, right edge (set up in site.js). */
.password-field { position: relative; display: block; }
.password-field input { padding-right: 72px; }
.password-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  min-height: 36px; padding: 6px 12px; border: 0; border-radius: var(--radius-chip); background: transparent;
  font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); cursor: pointer;
}
.password-toggle:hover { background: var(--paper-2); color: var(--ink); }
.password-toggle:focus-visible { outline: none; box-shadow: var(--ring); }

@media (max-width: 520px) {
  .auth-page main#main { margin: 20px auto 48px; padding: 28px 20px 24px; }
  .auth-form__group { grid-template-columns: 1fr; }
}
.auth-form + .auth__lead { margin: 20px 0 0; font-size: 0.9rem; }
