/* ==========================================================================
   BentoCoder — components.css
   Shared building blocks used on both pages.
   ========================================================================== */

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(15, 15, 16, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
  background: rgba(15, 15, 16, 0.9);
  border-bottom-color: var(--line);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { width: 44px; height: auto; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--rice);
}
.brand__word span { color: var(--orange); }

.nav__panel {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav__links {
  display: flex;
  gap: 2rem;
  margin-inline: auto;
}
.nav__links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--rice); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

/* Audience switch: Clients | Businesses */
.audience-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}
.audience-switch a {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s, background 0.25s;
}
.audience-switch a:hover { color: var(--rice); }
.audience-switch a[aria-current='page'] {
  background: var(--rice);
  color: var(--ink);
  font-weight: 500;
}

/* Hamburger */
.nav__toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.nav__toggle .bar {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--rice);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__toggle .bar:nth-child(2) { top: 14px; }
.nav__toggle .bar:nth-child(3) { top: 21px; background: var(--orange); }
.nav__toggle .bar:nth-child(4) { top: 28px; }
.nav-open .nav__toggle .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav__toggle .bar:nth-child(3) { opacity: 0; }
.nav-open .nav__toggle .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1199px) {
  .nav__toggle { display: block; }

  .nav__panel {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    height: calc(100dvh - var(--nav-h));
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    padding: 2rem var(--gutter) 2.5rem;
    background: var(--tray);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav-open .nav__panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav-open { overflow: hidden; }

  .nav__links {
    flex-direction: column;
    gap: 0;
    margin: 0;
  }
  .nav__links a {
    display: block;
    padding: 1rem 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--rice);
    border-bottom: 1px solid var(--line);
  }
  .nav__links a::after { display: none; }

  .audience-switch { align-self: flex-start; }
  .audience-switch a { padding: 0.6rem 1.2rem; font-size: 0.8rem; }
  .nav__cta { align-self: stretch; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--orange);
  color: var(--ink);
}
/* Offset outline, like a lid slightly off the box */
.btn--primary::after {
  content: '';
  position: absolute; inset: 0;
  border: 1.5px solid var(--orange);
  border-radius: inherit;
  transform: translate(5px, 5px);
  transition: transform 0.2s var(--ease);
  pointer-events: none;
}
.btn--primary:hover { transform: translate(-2px, -2px); }
.btn--primary:hover::after { transform: translate(4px, 4px); }

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--rice);
}
.btn--ghost:hover { border-color: var(--rice); }

.btn--dark {
  background: var(--ink);
  color: var(--rice);
}
.btn--dark:hover { background: var(--rice); color: var(--ink); }

.btn--sm { padding: 0.65rem 1.2rem; font-size: 0.72rem; }
.btn--sm.btn--primary::after { transform: translate(3px, 3px); }

/* ---------- Hero (shared skeleton) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 4rem;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  width: min(700px, 120vw);
  aspect-ratio: 1;
  top: 5%; left: -15%;
  background: radial-gradient(circle, rgba(235, 100, 52, 0.16) 0%, transparent 65%);
  pointer-events: none;
  animation: glow 7s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.7; }
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero__grid > * { min-width: 0; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(235, 100, 52, 0.35);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}
.hero__tag .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(124, 171, 58, 0.6);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(124, 171, 58, 0.6); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(124, 171, 58, 0); }
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: 1.5rem;
}
.hero__title--sm { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
.hero__title .line-accent { color: var(--orange); }
.hero__title .line-dim { color: var(--text-dim); }

.hero__lead {
  max-width: 34rem;
  margin-bottom: 2.5rem;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--text-muted);
}
.hero__lead strong { color: var(--rice); font-weight: 500; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.hero__note {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

@media (max-width: 899px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 2.5rem); }
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- Ticker (rotating row) ---------- */
.ticker {
  position: relative;
  overflow: hidden;
  padding-block: 1.1rem;
  border-block: 1px solid var(--line);
  background: var(--tray-2);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group {
  display: flex;
  flex-shrink: 0;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
}
.ticker__item::after {
  content: '';
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--orange);
}
.ticker__item:nth-child(4n + 2)::after { background: var(--green); }
.ticker__item:nth-child(4n + 3)::after { background: var(--yellow); }
.ticker__item:nth-child(4n + 4)::after { background: var(--rice); }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--orange);
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-lead {
  grid-column: 2;
  max-width: 40rem;
  margin-top: 1rem;
  color: var(--text-muted);
}
@media (max-width: 599px) {
  .section-head { grid-template-columns: 1fr; }
  .section-num { margin-bottom: 0.6rem; }
  .section-lead { grid-column: 1; }
}

/* ---------- Compartment colours ---------- */
.c-rice   { --c: var(--rice);   --c-soft: rgba(242, 237, 230, 0.1); }
.c-orange { --c: var(--orange); --c-soft: var(--orange-soft); }
.c-green  { --c: var(--green);  --c-soft: var(--green-soft); }
.c-yellow { --c: var(--yellow); --c-soft: var(--yellow-soft); }
.c-steel  { --c: var(--steel);  --c-soft: var(--steel-soft); }

/* ---------- Cards ---------- */
/* Default compartment colour; :where() keeps specificity at zero so .c-* classes win */
:where(.card, .stat, .perk, .pantry__box, .kitchen) {
  --c: var(--orange);
  --c-soft: var(--orange-soft);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--tray-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 0% 0%, var(--c-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

.card__glyph {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  background: var(--c);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 6px 18px -6px var(--c);
  transition: transform 0.4s var(--spring);
}
.card:hover .card__glyph { transform: rotate(-6deg) scale(1.06); }

.card__kicker {
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c);
}
.card__title {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.card__text em { font-style: normal; color: var(--rice); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.4rem;
}
.tag {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ---------- Menu grid (bento layout of cards) ----------
   Pattern: [feature feature][card] / [card][card][card] / [wide wide wide] */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.menu-grid .card--feature { grid-column: span 2; }
.menu-grid .card--wide { grid-column: 1 / -1; }

.card--feature .card__title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.card--feature .card__text { max-width: 36rem; font-size: 1rem; }

.card--wide {
  flex-direction: row;
  align-items: center;
  gap: 1.75rem;
}
.card--wide .card__glyph { margin-bottom: 0; flex-shrink: 0; }
.card--wide .card__body { flex: 1; }
.card--wide .tags { margin-top: 0; padding-top: 0; justify-content: flex-end; max-width: 300px; }

.card__meta {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.card__meta b { color: var(--c); font-weight: 500; }

@media (max-width: 899px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 699px) {
  .card--wide { flex-direction: column; align-items: flex-start; }
  .card--wide .card__glyph { margin-bottom: 0.25rem; }
  .card--wide .tags { justify-content: flex-start; max-width: none; padding-top: 0.5rem; }
}
@media (max-width: 599px) {
  .menu-grid { grid-template-columns: 1fr; }
  .menu-grid .card--feature { grid-column: auto; }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  counter-reset: step;
}
.step {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  border-right: 1px solid var(--line);
  background: var(--tray-2);
}
.step:last-child { border-right: 0; }
.step__num {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}
.step:hover .step__num { color: var(--orange); -webkit-text-stroke-color: var(--orange); }
.step__title {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rice);
}
.step__sub {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.step__text { font-size: 0.92rem; color: var(--text-muted); }

@media (max-width: 899px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 599px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat {
  padding: 1.6rem;
  background: var(--tray-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c, var(--orange));
}
.stat__label {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Band (full-width CTA strip) ---------- */
.band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  background: linear-gradient(120deg, var(--orange) 0%, #d4552a 100%);
  color: var(--ink);
}
.band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.band__kicker {
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
}
.band__title { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 20ch; }
.band__text { max-width: 34rem; margin-top: 0.9rem; opacity: 0.8; }
.band__deco {
  position: absolute;
  right: -2rem; bottom: -3rem;
  font-family: var(--font-mono);
  font-size: clamp(8rem, 22vw, 16rem);
  line-height: 1;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}

/* ---------- About the chef ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about__text p { color: var(--text-muted); max-width: 36rem; }
.about__text p + p { margin-top: 1rem; }
.about__text strong { color: var(--rice); font-weight: 600; }
.about__hello {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--rice) !important;
}
.about__links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.kitchens-title {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.kitchens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kitchen {
  padding: 1.3rem 1.3rem 1.4rem;
  background: var(--tray-2);
  border: 1px solid var(--line);
  border-top: 4px solid var(--c);
  border-radius: 14px;
}
.kitchen__title {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.kitchen__text { font-size: 0.88rem; color: var(--text-muted); }

@media (max-width: 899px) {
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
  .kitchens { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 52rem; }
.faq__item {
  background: var(--tray-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}
.faq__item[open] { border-color: rgba(235, 100, 52, 0.4); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--tray-3);
  font-family: var(--font-mono);
  color: var(--orange);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  padding: 0 1.5rem 1.4rem;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1.25rem;
}
.contact__text { color: var(--text-muted); margin-bottom: 2rem; max-width: 30rem; }

.contact__links { display: grid; gap: 10px; }
.contact__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--tray-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
a.contact__link:hover { border-color: var(--orange); transform: translateX(4px); }
.contact__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--c, var(--orange));
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
}
.contact__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact__value { font-weight: 500; word-break: break-word; }

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

/* ---------- Form ---------- */
.form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--tray-2);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
}
.form__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  font-size: 1.4rem;
  font-weight: 700;
}
.form__title img { width: 34px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
@media (max-width: 599px) {
  .form__row { grid-template-columns: 1fr; }
}

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field label .req { color: var(--orange); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--tray);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem; /* 16px stops iOS from zooming in on focus */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--orange) 50%), linear-gradient(135deg, var(--orange) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field select option { background: var(--tray-2); }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}
/* Browser autofill: keep the dark field instead of Chrome's light blue.
   The background can't be overridden, so a large inset shadow paints over it. */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field textarea:-webkit-autofill,
.field select:-webkit-autofill {
  -webkit-text-fill-color: var(--rice);
  caret-color: var(--rice);
  -webkit-box-shadow: 0 0 0 100px var(--tray) inset;
  box-shadow: 0 0 0 100px var(--tray) inset;
  transition: background-color 9999s ease-out 0s;
}
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px var(--tray) inset, 0 0 0 3px var(--orange-soft);
  box-shadow: 0 0 0 100px var(--tray) inset, 0 0 0 3px var(--orange-soft);
}
/* Firefox */
.field input:autofill { box-shadow: 0 0 0 100px var(--tray) inset; }
.field input:autofill:focus { box-shadow: 0 0 0 100px var(--tray) inset, 0 0 0 3px var(--orange-soft); }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #ff4d4d; }
.field__error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #ff7a7a;
}
.field.has-error .field__error { display: block; }

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}
.form__note { font-size: 0.82rem; color: var(--text-dim); }
.form__note a { color: inherit; }
/* Spam trap: hidden from people, visible to bots */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}
.form__status:empty { display: none; }
.form__status.is-success { background: var(--green-soft); color: #b9dd88; border: 1px solid rgba(124, 171, 58, 0.4); }
.form__status.is-error { background: rgba(255, 77, 77, 0.1); color: #ff9a9a; border: 1px solid rgba(255, 77, 77, 0.35); }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 3rem 2rem;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.footer__tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}
.footer__links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--orange); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}
.footer__bottom .ok { color: var(--green); }
.footer__bottom a { color: var(--text-muted); transition: color 0.2s; }
.footer__bottom a:hover { color: var(--orange); }

/* ---------- Simple text pages (privacy, 404) ---------- */
.page {
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 5rem));
  padding-bottom: var(--section-y);
}
.page__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0.75rem 0 1rem;
}
.page__lead { max-width: 40rem; color: var(--text-muted); }

.prose { max-width: 46rem; margin-top: 3rem; }
.prose h2 {
  margin: 2.75rem 0 0.9rem;
  font-size: 1.4rem;
}
.prose p, .prose ul { margin-bottom: 1rem; color: var(--text-muted); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--orange); }
.prose strong { color: var(--rice); font-weight: 500; }
.prose a { color: var(--orange); }

.not-found {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 4rem;
}
.not-found__tray {
  display: grid;
  grid-template-columns: repeat(3, 56px);
  gap: 8px;
  justify-content: center;
  margin-bottom: 2.5rem;
  padding: 10px;
  width: max-content;
  margin-inline: auto;
  background: var(--tray-3);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
}
.not-found__tray span {
  height: 56px;
  border-radius: 10px;
  border: 2px dashed var(--line-strong);
}
.not-found__tray span.full { border: 0; background: var(--c); }
.not-found .page__lead { margin: 0 auto 2.5rem; }
.not-found .hero__actions { justify-content: center; }
