/* Tokens mirror the app's light theme (src/theme/index.jsx) and the welcome
   screen's bead colors (app/welcome.jsx BEADS). */
:root {
  --primary: #0241EE;
  --primary-deep: #010F21;
  --primary-bg: #D7E2FC;
  --coral: #FF7F50;
  --coral-soft: #F2845C;
  --gold: #F4CC52;
  --teal: #3E9C88;
  --teal-deep: #2E7D67;
  --navy: #1B2A6B;
  --mint-deep: #1A8C7D;
  --ink: #2A2620;
  --ink-soft: #54493C;
  --ink-mute: #8A7E6E;
  --linen: #FBFAF7;
  --linen-deep: #EFEDE6;
  --paper: #FFFFFF;
  --board: #F4EFE3;
  --shadow-sm: 0 1px 2px rgba(33, 28, 43, 0.06), 0 2px 8px rgba(33, 28, 43, 0.05);
  --shadow-md: 0 4px 12px rgba(33, 28, 43, 0.08), 0 12px 32px rgba(33, 28, 43, 0.08);
  --radius: 18px;

  /* The two hand-drawn strokes the underlines are painted through (see the
     "Hand-drawn underlines" block below). Both are a tapered brush stroke in a
     200×12 box: thickness fades to nothing at either tip, peaks just past the
     middle, and the whole stroke lifts slightly to the right the way a
     right-handed line does. --stroke-double adds the short second pass a hand
     makes when it underlines something twice; it is the block variant, used
     under headings where there is room for it. */
  --stroke-single: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none' fill='%23000'%3E%3Cpath d='M1.2,6.2 10.2,5.9 19.2,5.6 28.1,5.4 37.1,5.1 46.1,4.9 55.1,4.6 64.1,4.4 73.1,4.3 82.0,4.1 91.0,4.0 100.0,4.0 109.0,3.9 118.0,4.0 126.9,4.0 135.9,4.1 144.9,4.2 153.9,4.2 162.9,4.3 171.9,4.4 180.8,4.5 189.8,4.5 198.8,4.5 189.8,4.9 180.8,5.4 171.9,5.8 162.9,6.3 153.9,6.7 144.9,7.0 135.9,7.3 126.9,7.6 118.0,7.9 109.0,8.1 100.0,8.3 91.0,8.4 82.0,8.5 73.1,8.5 64.1,8.5 55.1,8.4 46.1,8.2 37.1,7.9 28.1,7.6 19.2,7.2 10.2,6.8 1.2,6.2Z'/%3E%3C/svg%3E");
  --stroke-double: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none' fill='%23000'%3E%3Cpath d='M1.2,6.0 10.2,5.7 19.2,5.4 28.1,5.2 37.1,4.9 46.1,4.7 55.1,4.4 64.1,4.2 73.1,4.1 82.0,3.9 91.0,3.8 100.0,3.8 109.0,3.7 118.0,3.8 126.9,3.8 135.9,3.9 144.9,4.0 153.9,4.0 162.9,4.1 171.9,4.2 180.8,4.3 189.8,4.3 198.8,4.3 189.8,4.7 180.8,5.2 171.9,5.6 162.9,6.1 153.9,6.5 144.9,6.8 135.9,7.1 126.9,7.4 118.0,7.7 109.0,7.9 100.0,8.1 91.0,8.2 82.0,8.3 73.1,8.3 64.1,8.3 55.1,8.2 46.1,8.0 37.1,7.7 28.1,7.4 19.2,7.0 10.2,6.6 1.2,6.0Z'/%3E%3Cpath d='M96.0,10.0 100.0,9.9 104.0,9.8 108.0,9.6 112.0,9.5 116.0,9.4 120.0,9.3 124.0,9.3 128.0,9.2 132.0,9.2 136.0,9.2 140.0,9.3 144.0,9.3 148.0,9.4 152.0,9.4 156.0,9.5 160.0,9.5 164.0,9.5 168.0,9.5 172.0,9.5 176.0,9.5 180.0,9.5 184.0,9.4 190.0,9.3 184.0,9.6 180.0,9.8 176.0,10.0 172.0,10.1 168.0,10.3 164.0,10.4 160.0,10.5 156.0,10.6 152.0,10.7 148.0,10.8 144.0,10.8 140.0,10.8 136.0,10.7 132.0,10.7 128.0,10.7 124.0,10.6 120.0,10.6 116.0,10.5 112.0,10.5 108.0,10.3 104.0,10.2 100.0,10.1 96.0,10.0Z'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--linen);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Handwritten accent — Caveat, mirroring the app's in-product flourishes
   (welcome screen, empty states). Use sparingly, one note per section. */
.script {
  font-family: "Caveat", "Outfit", cursive;
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Hand-drawn underlines

   The stroke is painted, not drawn: an element is filled with the accent colour
   and then masked by --stroke-single / --stroke-double, so one shape serves
   every size and inherits nothing from the markup. Two rules earn their keep:

   - An underline is sized by what it underlines. The old fixed 200px swash sat
     under a 700px headline and read as a stray pencil mark. The block .swash is
     a fraction of its column; the inline .marker is exactly as wide as the word
     it belongs to.
   - The stroke is a mask, so its colour is a plain background and never touches
     the text colour — .marker can be coral under ink-coloured type.

   Browsers without mask support paint nothing rather than a solid bar, which is
   why the fill lives inside the @supports block below.
--------------------------------------------------------------------------- */
.swash {
  display: block;
  width: min(300px, 52%);
  height: 13px;
  margin: 8px 0 0;
}

/* Inline: underlines the word it wraps, ends overshooting it slightly the way a
   drawn stroke does. Kept on one line — a wrapped span would leave the stroke
   under the first fragment only. */
.marker {
  position: relative;
  white-space: nowrap;
}

.marker::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: -0.2em;
  height: 0.38em;
  pointer-events: none;
}

.swash-coral,
.marker-coral { --stroke-color: var(--coral); }

.swash-teal,
.marker-teal { --stroke-color: var(--teal-deep); }

.swash-center {
  margin-left: auto;
  margin-right: auto;
}

@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .swash {
    background: var(--stroke-color, var(--coral));
    -webkit-mask: var(--stroke-double) left center / 100% 100% no-repeat;
            mask: var(--stroke-double) left center / 100% 100% no-repeat;
  }

  .marker::after {
    background: var(--stroke-color, var(--coral));
    -webkit-mask: var(--stroke-single) center / 100% 100% no-repeat;
            mask: var(--stroke-single) center / 100% 100% no-repeat;
  }
}

a {
  color: var(--primary);
  text-decoration: none;
}

/* Links inside running text keep a real underline — offset below the baseline
   and lighter than the type, so it reads as an underline rather than a rule
   through the descenders — and darken to full strength on hover. */
p a:not(.btn),
li a,
.footer-bottom a,
.legal-wrap a:not(.back-link) {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(2, 65, 238, 0.38);
  text-decoration-color: color-mix(in srgb, currentColor 38%, transparent);
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

p a:not(.btn):hover,
li a:hover,
.footer-bottom a:hover,
.legal-wrap a:not(.back-link):hover {
  text-decoration-color: currentColor;
}

/* Navigation is chrome, not prose: no resting underline, and one that wipes in
   from the left on hover or keyboard focus. */
.nav-links > a,
.footer-links a,
.back-link {
  position: relative;
}

.nav-links > a::after,
.footer-links a::after,
.back-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}

.nav-links > a:hover::after,
.nav-links > a:focus-visible::after,
.footer-links a:hover::after,
.footer-links a:focus-visible::after,
.back-link:hover::after,
.back-link:focus-visible::after {
  transform: scaleX(1);
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

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

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--linen-deep);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

/* The "bead / board" logotype lives in the header. Size by height; width
   follows the SVG's aspect ratio. Overrides the .brand img icon sizing above. */
.brand .wordmark {
  width: auto;
  height: 34px;
  border-radius: 0;
  box-shadow: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Language switch — a two-up segmented pill; the page you are on is the filled
   half. Links, not a <select>, so both languages are crawlable and the switch
   works with JavaScript off. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.05);
  border: 1px solid rgba(28, 26, 23, 0.08);
}

.lang-switch a {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.2;
}

.lang-switch a:hover {
  color: var(--ink);
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Defensive: the switch is a control, not a nav link, and must never pick up
   the wipe-in underline if the nav selector is ever loosened. */
.lang-switch a::after {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(2, 65, 238, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(2, 65, 238, 0.34);
}

/* The closing band is centre-aligned, so its button row has to centre too —
   .hero-cta alone would leave it hanging off to the left. */
.cta-buttons {
  justify-content: center;
  margin-top: 4px;
}

/* Quieter companion to .btn-primary. The CTA rows now hold three things — the
   live demo, the disabled App Store badge, and a jump down the page — and two
   blue buttons would compete for the one click that matters. */
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px rgba(137, 127, 149, 0.35);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(137, 127, 149, 0.55);
}

/* Coming-soon / disabled App Store badge */
.btn-comingsoon {
  background: var(--linen-deep);
  color: var(--ink-mute);
  cursor: not-allowed;
  box-shadow: inset 0 0 0 1px rgba(137, 127, 149, 0.25);
  position: relative;
  flex-direction: column;
  gap: 2px;
  padding: 12px 28px;
  line-height: 1.2;
}

.btn-comingsoon .badge-small {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.btn-comingsoon .badge-main {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* Hero — copy on the left, bead-board illustration on the right, like the
   app's landscape welcome layout. */
.hero {
  padding: 76px 0 84px;
  background:
    radial-gradient(900px 500px at 78% -120px, var(--primary-bg) 0%, rgba(215, 226, 252, 0) 70%),
    var(--linen);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.06;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero .swash {
  width: min(360px, 62%);
  height: 16px;
}

.hero .script-accent {
  display: block;
  font-size: 1.55rem;
  color: var(--coral);
  margin: 2px 0 0;
}

.hero .tagline {
  font-size: 1.24rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 26px 0 14px;
}

.hero .subline {
  font-size: 1.02rem;
  color: var(--ink-mute);
  max-width: 520px;
  margin: 0 0 34px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--ink-mute);
}

/* The designing heroine (website/assets/illo-designing.svg) — the same
   illustration the app's welcome step 2 draws. */
.hero-illo {
  justify-self: center;
  width: min(380px, 100%);
}

/* Section */
.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--paper);
  border-top: 1px solid var(--linen-deep);
  border-bottom: 1px solid var(--linen-deep);
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 52px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.16;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: 14px 0 0;
}

/* Section heads with a heroine illustration anchored beside the copy.
   Compound selector so it outranks .section-head's centered default. */
.section-head.section-head-split {
  display: flex;
  align-items: center;
  gap: 48px;
  text-align: left;
  max-width: none;
}

.section-head-copy {
  flex: 1;
  min-width: 0;
  max-width: 620px;
}

.section-illo {
  flex: 0 0 240px;
  width: 240px;
}

.section-illo-sm {
  flex-basis: 180px;
  width: 180px;
}

/* Carpet-search interlude: art on the left, one-liner on the right */
.illo-band {
  background: var(--linen-deep);
  padding: 44px 0;
}

.illo-band-grid {
  display: flex;
  align-items: center;
  gap: 52px;
}

.illo-band-grid img {
  flex: 0 0 min(460px, 52%);
  width: min(460px, 52%);
}

.illo-band-copy {
  flex: 1;
  min-width: 0;
}

.illo-caption {
  font-size: 1.7rem;
  line-height: 1.25;
  color: var(--mint-deep);
  margin: 0 0 10px;
}

.illo-band-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--linen-deep);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Solid color tiles with white glyphs — the same treatment as the feature
   rows on the app's welcome screen. */
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.tile-teal      { background: var(--teal); }
.tile-coral     { background: var(--coral-soft); }
.tile-gold      { background: var(--gold); }
.tile-blue      { background: var(--primary); }
.tile-navy      { background: var(--navy); }
.tile-teal-deep { background: var(--teal-deep); }

.feature-card h3 {
  font-size: 1.18rem;
  margin: 0 0 10px;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* The canvas craft list — two columns of short, concrete working details.
   Not feature cards on purpose: a card carries the weight of a selling point,
   and these are the small things that make a long piece bearable. */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}

.craft-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid var(--linen-deep);
}

.craft-item svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  stroke: var(--primary);
  fill: none;
}

.craft-item h3 {
  margin: 0 0 5px;
  font-size: 1.04rem;
  color: var(--ink);
}

.craft-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Techniques — tinted cards with real bead-grid previews, matching the
   app's technique selector (app/technique.jsx TECH_THEME + TechniquePreview). */
.techniques {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.technique-card {
  border: 1px solid rgba(28, 26, 23, 0.06);
  border-radius: var(--radius);
  padding: 26px 24px 30px;
  text-align: center;
}

.tech-loom   { background: #E5ECFD; }
.tech-brick  { background: #FDE7DD; }
.tech-peyote { background: #DAF1ED; }
.tech-mixed  { background: #F7EFDA; }

.tech-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 118px;
  margin-bottom: 18px;
}

.tech-preview img,
.tech-preview svg {
  width: 100%;
  max-width: 184px;
  height: auto;
}

.technique-card .tech-chip {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.75);
}

.chip-loom   { color: var(--primary); }
.chip-brick  { color: #C2531F; }
.chip-peyote { color: #157E70; }
.chip-mixed  { color: #8A6410; }

.technique-card h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
  color: var(--ink);
}

.technique-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Devices — where the app is at its best, and where it still works. The art is
   one pattern drawn twice: whole on the tablet, a scrolled slice on the phone. */
.device-band {
  background: var(--linen);
}

.section-illo-lg {
  flex-basis: 420px;
  width: 420px;
}

.device-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.device-card .device-meta {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin-bottom: 6px;
}

.device-note {
  margin: 26px auto 0;
  max-width: 620px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 0.92rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 72px 0;
  background:
    radial-gradient(700px 360px at 50% 120%, var(--primary-bg) 0%, rgba(215, 226, 252, 0) 70%),
    var(--linen);
}

/* A little tray of beads, like the stacked trays on the app's welcome screen. */
.bead-tray {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.04);
  border: 1px solid rgba(28, 26, 23, 0.07);
  margin-bottom: 26px;
}

.bead-tray span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.bead-tray span:nth-child(1) { background: #2E7D67; }
.bead-tray span:nth-child(2) { background: #F4CC52; }
.bead-tray span:nth-child(3) { background: #FF7F50; }
.bead-tray span:nth-child(4) { background: #1B2A6B; }
.bead-tray span:nth-child(5) { background: #3E9C88; }
.bead-tray span:nth-child(6) { background: #F2845C; }
.bead-tray span:nth-child(7) { background: #0241EE; }
.bead-tray span:nth-child(8) { background: #EFEDE6; }

.cta-band h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--ink);
}

.cta-band p {
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 12px;
}

.cta-band .cta-script {
  font-size: 1.5rem;
  color: var(--coral);
  margin: 0 auto 28px;
}

/* Closing CTA: copy left, bracelet inspection right. The inner rules outrank
   .cta-band's centered defaults above. */
.cta-band .cta-grid {
  display: flex;
  align-items: center;
  gap: 56px;
  text-align: left;
}

.cta-copy {
  flex: 1;
  min-width: 0;
}

.cta-band .cta-grid p {
  margin: 0 0 12px;
}

.cta-band .cta-grid .cta-script {
  margin: 0 0 28px;
}

.cta-illo {
  flex: 0 0 clamp(240px, 28vw, 320px);
  width: clamp(240px, 28vw, 320px);
}

/* Footer */
.site-footer {
  background: var(--primary-deep);
  color: #cdd6e8;
  padding: 54px 0 36px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.footer-links a {
  color: #cdd6e8;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  color: #8e9bb6;
}

/* The link colour is a light tint here, not --primary: the brand blue on the
   near-black footer is unreadable, and its underline made that worse. */
.footer-bottom a {
  color: #dfe6f4;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Legal / content pages */
.legal {
  background: var(--paper);
}

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal-wrap h1 {
  font-size: 2.4rem;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.legal-updated {
  color: var(--ink-mute);
  font-size: 0.92rem;
  margin: 0 0 36px;
}

.legal-wrap h2 {
  font-size: 1.3rem;
  color: var(--ink);
  margin: 40px 0 12px;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--ink-soft);
  font-size: 1rem;
}

.legal-wrap ul {
  padding-left: 22px;
}

.legal-wrap li {
  margin-bottom: 8px;
}

.legal-intro {
  background: var(--linen);
  border: 1px solid var(--linen-deep);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 12px;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 0.95rem;
  font-weight: 600;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero .swash {
    width: min(300px, 76%);
    height: 14px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero .tagline,
  .hero .subline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-illo {
    max-width: 340px;
    margin: 0 auto;
  }
}

/* Only the technique row pairs up early — four bead-grid previews need more
   width than a text card does. The feature grid stays three across until it
   stacks, so a nine-card grid never leaves an orphan in a two-column row. */
@media (max-width: 1000px) {
  .techniques {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 860px) {
  .features,
  .techniques,
  .device-cards,
  .craft-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links .nav-hide {
    display: none;
  }

  /* Stack the illustration splits and recenter the copy */
  .section-head.section-head-split,
  .illo-band-grid,
  .cta-band .cta-grid {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .section-head-copy {
    max-width: none;
  }

  .section-head-split .swash {
    width: min(260px, 70%);
    margin-left: auto;
    margin-right: auto;
  }

  /* These splits are column flexboxes down here, so flex-basis would size the
     illustration's *height* and leave a tall empty gap under the copy. */
  .section-illo,
  .section-illo-sm,
  .section-illo-lg,
  .illo-band-grid img {
    flex-basis: auto;
  }

  .section-illo {
    width: 210px;
  }

  .section-illo-sm {
    width: 150px;
  }

  .section-illo-lg {
    width: min(420px, 92vw);
  }

  .illo-band-grid img {
    width: min(440px, 90vw);
  }

  .cta-band .cta-grid p {
    margin: 0 auto 12px;
  }

  .cta-band .cta-grid .cta-script {
    margin: 0 auto 28px;
  }

  .cta-illo {
    width: min(300px, 78vw);
  }
}
