/* ============================================================================
   Guitar Toolbelt — guitartoolbelt.com
   The app imitates studio hardware: a cream analogue meter face set into dark
   brushed metal, with LED indicators. The site is the faceplate that gear
   would have come mounted in. Palette values are lifted from
   app/lib/src/theme/gt_theme.dart so the two never drift apart.
   ========================================================================= */

:root {
  color-scheme: dark;

  /* Case and chassis */
  --chassis-top: #3a3a3a;
  --chassis-bot: #141414;
  --panel: #1b1b1b;
  --panel-edge: #0a0a0a;
  --bezel: #2e2e2e;
  --well: #101010;
  --well-mid: #1a1a1a;

  /* Meter face — cream, warm, printed */
  --face-high: #fcfaf3;
  --face-low: #e9e3d4;
  --face-edge: #b9b4a8;

  /* Ink on the face. Warm greys, never black — printed dials never are. */
  --ink-strong: #3c3930;
  --ink: #56534a;
  --ink-muted: #85806f;

  /* Text on the chassis */
  --tx-bright: #e8e8e8;
  --tx: #cfcfcf;
  --tx-dim: #afafaf;
  --tx-faint: #838383;

  /* Indicators */
  --lamp-green: #3fd16b;
  --lamp-red: #e0402c;
  --lamp-amber: #d8c22e;
  --led-red: #ff3b24;

  /* Hardware */
  --nickel: #9ba3aa;
  --string: #c9bfa6;
  --rule: #2f2f2f;

  --shadow-deep: 0 28px 60px -18px rgb(0 0 0 / 0.85);
  --shadow-mid: 0 10px 28px -10px rgb(0 0 0 / 0.7);

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --rhythm: clamp(4.5rem, 11vw, 9rem);

  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--chassis-bot);
  color: var(--tx);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(1.0625rem, 0.35vw + 1rem, 1.1875rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain. A printed faceplate is never perfectly smooth. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
}

/* --------------------------------------------------------------------------
   Type
   ----------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.55rem, 5.2vw, 4.25rem);
  font-stretch: 118%;
  line-height: 0.96;
}
h2 {
  font-size: clamp(2rem, 4.3vw, 3.15rem);
}
h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-stretch: 105%;
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 1.15em;
  max-width: var(--measure);
}
p:last-child {
  margin-bottom: 0;
}

/* Faceplate legend: the tracked-out caps engraved beside a control. */
.legend {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 650;
  font-stretch: 108%;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tx-faint);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.legend::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--rule), transparent);
}
.legend--center {
  justify-content: center;
}
.legend--center::after,
.legend--plain::after {
  display: none;
}

@media (max-width: 560px) {
  .legend {
    letter-spacing: 0.16em;
    font-size: 0.625rem;
  }
}

.lede {
  font-size: clamp(1.19rem, 0.6vw + 1.05rem, 1.45rem);
  line-height: 1.5;
  color: var(--tx-bright);
}

.face .lede {
  color: var(--ink-strong);
}

/* --------------------------------------------------------------------------
   Surfaces
   ----------------------------------------------------------------------- */

.chassis {
  position: relative;
  background:
    repeating-linear-gradient(
      90deg,
      rgb(255 255 255 / 0.014) 0 1px,
      transparent 1px 3px
    ),
    linear-gradient(180deg, var(--chassis-top) 0%, var(--panel) 34%, var(--chassis-bot) 100%);
}

/* Cream meter face. Everything the reader has to actually read sits on one. */
.face {
  position: relative;
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 30% 0%, var(--face-high) 0%, var(--face-low) 100%);
  border: 1px solid var(--face-edge);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.8),
    var(--shadow-deep);
}
.face h1,
.face h2,
.face h3,
.face h4 {
  color: var(--ink-strong);
}
.face a {
  color: var(--ink-strong);
}

/* Recessed well — where a screenshot or a control is sunk into the case. */
.well {
  background: linear-gradient(180deg, var(--well) 0%, var(--well-mid) 100%);
  border: 1px solid var(--panel-edge);
  border-radius: 6px;
  box-shadow:
    inset 0 2px 10px rgb(0 0 0 / 0.85),
    0 1px 0 rgb(255 255 255 / 0.045);
}

/* Screws, for the plates that are genuinely bolted on. */
.screw {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, #4a4a4a, #1d1d1d);
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / 0.22),
    0 1px 2px rgb(0 0 0 / 0.6);
}
.screw::after {
  content: "";
  position: absolute;
  inset: 45% 20%;
  height: 1.5px;
  background: rgb(0 0 0 / 0.55);
  border-radius: 1px;
  transform: rotate(-28deg);
  transform-origin: center;
}
.screw--tl { top: 12px; left: 12px; }
.screw--tr { top: 12px; right: 12px; }
.screw--bl { bottom: 12px; left: 12px; }
.screw--br { bottom: 12px; right: 12px; }

/* --------------------------------------------------------------------------
   Indicator lamps
   ----------------------------------------------------------------------- */

.lamp {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 34% 30%, #fff6, transparent 58%),
    var(--lamp-c, var(--lamp-green));
  box-shadow:
    0 0 10px 1px color-mix(in srgb, var(--lamp-c, var(--lamp-green)) 55%, transparent),
    inset 0 -1px 2px rgb(0 0 0 / 0.45);
}
.lamp--off {
  background: var(--lamp-c, #4a1a14);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.6);
}
.lamp--red { --lamp-c: var(--lamp-red); }
.lamp--amber { --lamp-c: var(--lamp-amber); }

.lamp--pulse {
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.lamp-row {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  align-items: center;
  padding: 1.1rem 0 0.2rem;
}
.lamp-row .lamp {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   LED level bar — the app's input meter, used here as a section rule.
   Two identical segment patterns; the lit one is clipped by an animated inset.
   ----------------------------------------------------------------------- */

.ledbar {
  position: relative;
  height: 11px;
  overflow: hidden;
  --segments: repeating-linear-gradient(
    90deg,
    #000 0 13px,
    transparent 13px 17px
  );
  -webkit-mask-image: var(--segments);
  mask-image: var(--segments);
  background: linear-gradient(
    90deg,
    #1c2a1c 0%, #1c2a1c 62%, #2a2718 62%, #2a2718 80%, #2a1815 80%
  );
}
.ledbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #35c63f 0%, #35c63f 62%, #c9b520 62%, #c9b520 80%, #c2331f 80%
  );
  box-shadow: 0 0 14px rgb(53 198 63 / 0.35);
  clip-path: inset(0 62% 0 0);
  animation: level 5.2s cubic-bezier(0.32, 0, 0.2, 1) infinite;
}
@keyframes level {
  0%   { clip-path: inset(0 74% 0 0); }
  9%   { clip-path: inset(0 18% 0 0); }
  17%  { clip-path: inset(0 46% 0 0); }
  26%  { clip-path: inset(0 24% 0 0); }
  38%  { clip-path: inset(0 55% 0 0); }
  47%  { clip-path: inset(0 12% 0 0); }
  60%  { clip-path: inset(0 63% 0 0); }
  72%  { clip-path: inset(0 34% 0 0); }
  86%  { clip-path: inset(0 70% 0 0); }
  100% { clip-path: inset(0 74% 0 0); }
}

/* --------------------------------------------------------------------------
   Layout
   ----------------------------------------------------------------------- */

.wrap {
  width: min(100% - (var(--gutter) * 2), 1180px);
  margin-inline: auto;
}
.wrap--narrow {
  width: min(100% - (var(--gutter) * 2), 760px);
}

section {
  position: relative;
}

.band {
  padding-block: var(--rhythm);
}

/* --------------------------------------------------------------------------
   Top rail
   ----------------------------------------------------------------------- */

.rail {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #2a2a2a, #171717);
  border-bottom: 1px solid var(--panel-edge);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 6px 18px rgb(0 0 0 / 0.45);
  backdrop-filter: saturate(1.2);
}
.rail__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.55rem;
}
.brand {
  display: flex;
  white-space: nowrap;
  flex: none;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 750;
  font-stretch: 112%;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--tx-bright);
}
.brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(255 255 255 / 0.08);
}
.rail nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.3vw, 1.9rem);
  min-width: 0;
}

/* Below this the rail cannot hold four items beside the wordmark. The two
   that go are the in-page anchors, which the page scrolls past anyway; the
   two that stay are the ones people arrive looking for. */
@media (max-width: 680px) {
  .rail nav a[href*="#"] {
    display: none;
  }
  .brand {
    font-size: 0.88rem;
  }
}
@media (max-width: 380px) {
  .brand span,
  .brand {
    font-size: 0.82rem;
  }
  .rail nav {
    gap: 1.05rem;
  }
}
.rail nav a {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  font-stretch: 106%;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--tx-dim);
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.rail nav a:hover,
.rail nav a[aria-current="page"] {
  color: var(--tx-bright);
  border-bottom-color: var(--lamp-green);
}

/* --------------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------- */

.hero {
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 880px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
}

.hero h1 .l {
  display: block;
}
.hero h1 {
  color: var(--face-high);
}

.hero__lede {
  margin-top: 1.65rem;
  max-width: 46ch;
}

/* A single lit lamp on the eyebrow, instead of a lamp row that repeated the
   one already visible inside the screenshot beside it. */
.legend .lamp {
  width: 9px;
  height: 9px;
}

/* Store badges, built as chassis controls rather than borrowed artwork. */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}
.badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem 1.15rem;
  border-radius: 7px;
  background: linear-gradient(180deg, #343434, #202020);
  border: 1px solid #464646;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.09),
    0 4px 12px rgb(0 0 0 / 0.5);
  font-family: var(--sans);
  cursor: default;
}
.badge svg {
  width: 22px;
  height: 22px;
  fill: var(--tx-dim);
  flex: none;
}
.badge__t {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  font-stretch: 108%;
  color: var(--tx-bright);
  line-height: 1.15;
}
.badge__s {
  display: block;
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lamp-amber);
  margin-top: 0.22rem;
}

.hero__shot {
  position: relative;
  justify-self: center;
  padding: clamp(0.9rem, 2vw, 1.4rem);
  max-width: 306px;
  width: 100%;
}
.hero__shot img {
  border-radius: 20px;
  box-shadow: var(--shadow-deep), 0 0 0 1px rgb(255 255 255 / 0.07);
}

/* --------------------------------------------------------------------------
   The argument panel — one cream face carrying the central claim.
   ----------------------------------------------------------------------- */

.claim {
  padding: clamp(2.25rem, 5vw, 4rem);
  text-align: center;
}
.claim h2 {
  max-width: 18ch;
  margin-inline: auto;
}
.claim p {
  margin-inline: auto;
  margin-top: 1.5rem;
  max-width: 56ch;
  font-size: clamp(1.08rem, 0.5vw + 1rem, 1.25rem);
}
.claim .legend {
  color: var(--ink-muted);
}

/* A feature spread: copy and a screenshot sharing one cream face. The phone
   sits in a dark well, so the darkest thing on the page is framed by the
   lightest — which is what makes this the section the eye stops on. */
.spread {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 4.5vw, 3.5rem);
}
.spread__shot {
  padding: clamp(0.7rem, 1.6vw, 1.1rem);
  max-width: 268px;
  width: 100%;
  justify-self: center;
}
.spread__shot img {
  border-radius: 16px;
  box-shadow: var(--shadow-mid), 0 0 0 1px rgb(255 255 255 / 0.07);
}
.spread h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
}
.spread p {
  margin-top: 1.25rem;
}
@media (max-width: 780px) {
  .spread {
    grid-template-columns: 1fr;
  }
  .spread__shot {
    order: -1;
    max-width: 230px;
  }
}

/* --------------------------------------------------------------------------
   Tool rows — screenshot beside copy, alternating.
   ----------------------------------------------------------------------- */

.tool {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5.5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.75rem, 6vw, 4.75rem);
  border-top: 1px solid var(--rule);
}
.tool:first-of-type {
  border-top: 0;
}
.tool--flip .tool__shots {
  order: 2;
}
@media (max-width: 880px) {
  .tool {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .tool--flip .tool__shots {
    order: 0;
  }
}

.tool__shots {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  justify-content: center;
}
.tool__shots img {
  border-radius: 16px;
  box-shadow: var(--shadow-mid), 0 0 0 1px rgb(255 255 255 / 0.06);
  width: 100%;
  max-width: 250px;
}
.tool__shots img:nth-child(2) {
  max-width: 190px;
  margin-top: 2.75rem;
  opacity: 0.92;
}
@media (max-width: 520px) {
  .tool__shots img:nth-child(2) {
    display: none;
  }
}

.tool__num {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--lamp-green);
  display: block;
  margin-bottom: 0.85rem;
}
.tool h3 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--tx-bright);
  margin-bottom: 1.1rem;
}
.tool p {
  color: var(--tx-dim);
}

/* --------------------------------------------------------------------------
   Spec plate
   ----------------------------------------------------------------------- */

.specs {
  position: relative;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, #262626, #191919);
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), var(--shadow-mid);
}
.spec {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.spec dt {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tx-faint);
  order: 2;
  margin-top: 0.5rem;
}
.spec dd {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--face-high);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
/* --------------------------------------------------------------------------
   Tuning chips
   ----------------------------------------------------------------------- */

/* Five in a row on a wide plate; two-up on a phone, with "0 data collected"
   taking the full last row rather than being left hanging as an orphan. */
@media (max-width: 640px) {
  .specs {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec:last-child {
    grid-column: 1 / -1;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 1.9rem 0 0;
}
.chips li {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  padding: 0.46rem 0.86rem;
  border-radius: 4px;
  color: var(--tx);
  background: linear-gradient(180deg, #2c2c2c, #1e1e1e);
  border: 1px solid #3d3d3d;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.face .chips li {
  color: var(--ink-strong);
  background: linear-gradient(180deg, #fffdf7, #ece6d7);
  border-color: var(--face-edge);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgb(0 0 0 / 0.08);
}

/* --------------------------------------------------------------------------
   Three-up cards
   ----------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.4rem;
  margin-top: 2.75rem;
}
.card {
  padding: clamp(1.6rem, 3vw, 2.15rem);
  background: linear-gradient(180deg, #242424, #1a1a1a);
  border: 1px solid #343434;
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.card h3 {
  color: var(--tx-bright);
  margin-bottom: 0.85rem;
  font-size: 1.22rem;
}

/* Four cards want two roomy columns, not four narrow ones: auto-fit would
   fit three across at this width and leave the fourth stranded on its own
   row. */
.cards--four {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 720px) {
  .cards--four {
    grid-template-columns: 1fr;
  }
}

/* Platform scope on a feature that only exists on one of them. */
.tag {
  display: inline-block;
  vertical-align: 0.22em;
  margin-left: 0.5rem;
  font-size: 0.58rem;
  font-weight: 650;
  font-stretch: 100%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lamp-amber);
  border: 1px solid color-mix(in srgb, var(--lamp-amber) 45%, transparent);
  border-radius: 3px;
  padding: 0.2rem 0.42rem;
}
.card p {
  color: var(--tx-dim);
  font-size: 1.03rem;
  line-height: 1.58;
}

/* --------------------------------------------------------------------------
   Prose (privacy, support)
   ----------------------------------------------------------------------- */

.prose {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4.5vw, 3.75rem);
}
.prose h2 {
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  margin-top: 2.9rem;
  margin-bottom: 0.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--face-edge);
}
.prose h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.prose h3 {
  font-size: 1.12rem;
  margin-top: 1.9rem;
  margin-bottom: 0.55rem;
}
.prose ul {
  max-width: var(--measure);
  padding-left: 1.15rem;
  margin: 0 0 1.15em;
}
.prose li {
  margin-bottom: 0.55em;
}
.prose li::marker {
  color: var(--ink-muted);
}
.prose a {
  color: var(--ink-strong);
  text-decoration-color: var(--ink-muted);
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-color: var(--ink-strong);
}
.prose__meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.9rem;
}
.prose strong {
  color: var(--ink-strong);
  font-weight: 600;
}

.page-head {
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.page-head h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.9rem);
}

/* --------------------------------------------------------------------------
   Contact form
   ----------------------------------------------------------------------- */

.form {
  display: grid;
  gap: 1.15rem;
  margin-top: 2rem;
  max-width: 34rem;
}
.field {
  display: grid;
  gap: 0.42rem;
}
.field label {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field input,
.field textarea {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink-strong);
  background: #fffdf6;
  border: 1px solid var(--face-edge);
  border-radius: 3px;
  padding: 0.7rem 0.85rem;
  box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.07);
  width: 100%;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.field textarea {
  min-height: 8.5rem;
  resize: vertical;
  line-height: 1.55;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #6f9b78;
  box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.07), 0 0 0 3px rgb(63 209 107 / 0.22);
}

/* Honeypot. Hidden from people, not from the accessibility tree removal. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--tx-bright);
  background: linear-gradient(180deg, #3c3c3c, #232323);
  border: 1px solid #4d4d4d;
  border-radius: 5px;
  padding: 0.92rem 1.7rem;
  cursor: pointer;
  justify-self: start;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.1),
    0 3px 8px rgb(0 0 0 / 0.35);
  transition: transform 0.1s, box-shadow 0.16s, filter 0.16s;
}
.btn:hover:not(:disabled) {
  filter: brightness(1.18);
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.5);
}
.btn:disabled {
  opacity: 0.55;
  cursor: progress;
}
.btn:focus-visible {
  outline: 2px solid var(--lamp-green);
  outline-offset: 3px;
}

.form__note {
  font-size: 0.93rem;
  color: var(--ink-muted);
  max-width: 34rem;
  margin: 0;
}

.form__status {
  display: none;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.98rem;
  padding: 0.85rem 1rem;
  border-radius: 3px;
  border: 1px solid var(--face-edge);
  background: #fffdf6;
  max-width: 34rem;
}
.form__status[data-state="ok"],
.form__status[data-state="err"] {
  display: flex;
}
.form__status[data-state="ok"] {
  border-color: #7fb98e;
  background: #f2faf3;
  color: #24502f;
}
.form__status[data-state="err"] {
  border-color: #cf8c80;
  background: #fdf3f1;
  color: #75291c;
}
.form__status .lamp {
  margin-top: 0.36rem;
}

/* --------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--panel-edge);
  background: linear-gradient(180deg, #191919, #0c0c0c);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.foot__in {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.foot a {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--tx-dim);
  text-decoration: none;
}
.foot a:hover {
  color: var(--tx-bright);
}
.foot__legal {
  font-size: 0.88rem;
  color: var(--tx-faint);
  margin: 0;
}
.foot__legal a {
  font-family: var(--serif);
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: var(--tx-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Reveal on scroll. The app honours Reduce Motion; so does its site.
   ----------------------------------------------------------------------- */

.rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.75s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.rise.in {
  opacity: 1;
  transform: none;
}

.hero .stagger > * {
  animation: rise-in 0.85s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.hero .stagger > *:nth-child(1) { animation-delay: 0.05s; }
.hero .stagger > *:nth-child(2) { animation-delay: 0.13s; }
.hero .stagger > *:nth-child(3) { animation-delay: 0.21s; }
.hero .stagger > *:nth-child(4) { animation-delay: 0.29s; }
.hero h1 .l { animation: rise-in 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
.hero h1 .l:nth-child(1) { animation-delay: 0.14s; }
.hero h1 .l:nth-child(2) { animation-delay: 0.22s; }
.hero h1 .l:nth-child(3) { animation-delay: 0.30s; }
.hero h1 .l:nth-child(4) { animation-delay: 0.38s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rise { opacity: 1; transform: none; }
  .ledbar::after { clip-path: inset(0 45% 0 0); }
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--face-high);
  color: var(--ink-strong);
  padding: 0.6rem 1rem;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.85rem;
}

:focus-visible {
  outline: 2px solid var(--lamp-green);
  outline-offset: 2px;
}
