/* Pareil, dark. Values from the "Landing page — dark" and "Preloader — dark" designs. */
:root {
  --bg: #121110;
  --surface: #1A1917;
  --surface-2: #161513;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.10);
  --hair: rgba(255, 255, 255, 0.05);
  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.04);
  --chip: rgba(255, 255, 255, 0.06);

  --text: #EDE7DF;
  --text-2: #BDB5AA;
  --text-3: #CFC8BE;
  --label: #A39B91;
  --faint: #8F887E; /* lightest allowed for small text */

  --brass: #C9A46A;
  --brass-soft: rgba(201, 164, 106, 0.12);
  --warm-glow: #3A2F20;
  --error: #E59C7E;

  --r-section: 28px;
  --r-card: 20px;
  --r-card-lg: 22px;
  --r-card-sm: 18px;
  --r-inner: 14px;
  --r-pill: 999px;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --gutter: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
body.loading { overflow: hidden; }
a { color: var(--text); }
a:hover { color: #FFFFFF; }
button { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
.btn-brass:focus-visible, .btn-line:focus-visible, .btn-cream:focus-visible, .segmented button:focus-visible { border-radius: var(--r-pill); }

.page { position: relative; z-index: 1; padding-bottom: 32px; }

/* page-wide ambient backdrop: dining photos fade in from the edges, the centre stays clean for content */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bd-img { position: absolute; top: 0; bottom: 0; width: 34vw; background-size: cover; background-position: center; opacity: 0.2; filter: brightness(0.55) saturate(0.9); }
.bd-left { left: 0; background-image: url(/images/hero-bg.jpg); -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%); }
.bd-right { right: 0; background-image: url(/images/cafe-default.jpg); -webkit-mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%); mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%); }
.bd-glow { position: absolute; width: 560px; height: 560px; border-radius: 50%; background: var(--warm-glow); filter: blur(150px); opacity: 0.6; animation: plDrift 18s ease-in-out infinite; }
.bd-g1 { left: -180px; top: 18%; }
.bd-g2 { right: -200px; top: 62%; animation-delay: -9s; }
.bd-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(237, 231, 223, 0.07) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000); mask-image: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000); }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 96px; }

/* type */
.mono { font-family: var(--mono); }
.brass { color: var(--brass); }
.display { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.01em; }
.em-brass { font-style: italic; color: var(--brass); }
.h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.5vw, 58px); line-height: 1.02; }
.h2-sm { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.05; }
.h2-lg { font-size: clamp(44px, 5vw, 66px); line-height: 1; }
.h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.15; }
.eyebrow { margin: 0 0 18px; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--label); }
.label { margin: 0; font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--label); font-weight: 500; }
.label-plain { font-size: 12px; color: var(--label); }
.lede { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 470px; }
.body { margin: 22px 0 0; font-size: 16px; line-height: 1.7; color: var(--text-2); max-width: 480px; }
.small-body { margin: 0; font-size: 14px; line-height: 1.55; color: var(--label); }
.fine { margin: 0; font-size: 13px; color: var(--faint); }
.fine-note { margin: 0; font-size: 12px; color: var(--faint); }
.spaced { margin-top: 14px; }
.spaced-below { margin-bottom: 12px; }

/* buttons */
.btn-brass, .btn-line, .btn-text, .btn-cream {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border: 0;
}
.btn-brass { background: var(--brass); color: var(--bg); font-weight: 700; }
.btn-brass:hover { background: #D6B47E; color: var(--bg); }
.btn-line { background: transparent; color: var(--text); border: 1px solid rgba(237, 231, 223, 0.28); padding: 0 22px; }
.btn-line:hover { border-color: rgba(237, 231, 223, 0.5); color: #FFFFFF; }
.btn-text { background: transparent; color: var(--text-3); padding: 0 18px; gap: 8px; }
.btn-text:hover { color: #FFFFFF; }
.btn-brass svg, .btn-line svg { width: 15px; height: 15px; stroke-width: 2.2; }
.btn-text svg { width: 16px; height: 16px; }
.btn-brass:disabled, .btn-line:disabled { opacity: 0.55; cursor: progress; }
.btn-cream { min-height: 46px; padding: 0 5px 0 20px; gap: 12px; background: var(--text); color: var(--bg); font-size: 14px; }
.btn-cream:hover { color: var(--bg); background: #FFFFFF; }
.btn-cream-icon { width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--bg); color: var(--text); display: flex; align-items: center; justify-content: center; }
.btn-cream-icon svg { width: 14px; height: 14px; }
.btn-small { min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--brass); background: transparent; color: var(--brass); font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-small:hover { background: var(--brass-soft); }
.link-label { color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-label:hover { color: #FFFFFF; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, 0.12); display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.icon-btn svg { width: 18px; height: 18px; stroke-width: 1.8; }
.alert { margin: 14px 0 0; padding: 12px 16px; border-radius: var(--r-inner); border: 1px solid rgba(229, 156, 126, 0.4); background: rgba(229, 156, 126, 0.08); color: var(--error); font-size: 14px; max-width: 520px; }

/* nav */
.nav { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.p-mark { width: 38px; height: 38px; border: 1px solid var(--brass); border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; color: var(--brass); flex: none; }
.p-mark-sm { width: 32px; height: 32px; font-size: 18px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 26px; letter-spacing: 0.02em; }
.brand-sub { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--label); margin-top: 4px; }
.nav-pills { display: flex; flex-wrap: wrap; gap: 4px; background: var(--glass-2); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--r-pill); padding: 4px; }
.nav-pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); font-size: 14px; text-decoration: none; color: var(--text-3); }
.nav-pills a[aria-current="true"] { background: var(--text); color: var(--bg); font-weight: 600; }
.nav-pills a:hover:not([aria-current="true"]) { color: #FFFFFF; }

/* hero */
.hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-section);
  background: var(--surface);
  overflow: hidden;
  padding: clamp(32px, 5.5vw, 64px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Atmospheric culinary dining backdrop asset across the hero */
.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--r-section);
  z-index: 0;
}
.hero-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: brightness(0.42) contrast(1.18) saturate(1.15);
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s ease;
}
.hero:hover .hero-backdrop-img {
  transform: scale(1.04);
}
.hero-backdrop-scrim {
  position: absolute;
  inset: 0;
  background:
    /* Center radial mask: lets the ambient dining scene glow on the left & right while keeping the center deep & pristine */
    radial-gradient(
      ellipse 65% 55% at 50% 30%,
      rgba(18, 17, 16, 0.72) 0%,
      rgba(18, 17, 16, 0.45) 55%,
      rgba(18, 17, 16, 0.88) 100%
    ),
    /* Vertical dark blend into section base */
    linear-gradient(
      180deg,
      rgba(18, 17, 16, 0.82) 0%,
      rgba(18, 17, 16, 0.3) 22%,
      rgba(18, 17, 16, 0.45) 60%,
      rgba(18, 17, 16, 0.96) 100%
    ),
    /* Horizontal vignette on extreme borders */
    linear-gradient(
      90deg,
      rgba(18, 17, 16, 0.85) 0%,
      rgba(18, 17, 16, 0.15) 18%,
      rgba(18, 17, 16, 0.15) 82%,
      rgba(18, 17, 16, 0.85) 100%
    );
}

/* hero word: clean, solid gloss silver luxury typography */
.hero-word-wrap {
  position: relative;
  text-align: center;
  width: 100%;
  margin: 0 auto;
  z-index: 1;
}
.hero-word {
  display: block;
  font-family: var(--serif);
  font-size: clamp(100px, 19.5vw, 290px);
  line-height: 0.85;
  letter-spacing: -0.015em;
  text-align: center;
  user-select: none;
  font-weight: 500;
  margin: 0 auto;

  /* Clean, solid gloss silver / platinum liquid gradient */
  background: linear-gradient(
    180deg,
    #FFFFFF 0%,
    #F3F6FA 22%,
    #D7E1EC 48%,
    #A3B2C3 70%,
    #E4ECF5 85%,
    #7C8D9F 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Crisp, subtle luxury drop shadow - pure elegance, no cartoon blur */
  filter:
    drop-shadow(0 2px 1px rgba(255, 255, 255, 0.45))
    drop-shadow(0 6px 18px rgba(0, 0, 0, 0.65))
    drop-shadow(0 16px 36px rgba(0, 0, 0, 0.8));

  transition: filter 0.35s ease, transform 0.35s ease;
}

.hero-word:hover {
  transform: translateY(-2px);
  filter:
    drop-shadow(0 2px 2px rgba(255, 255, 255, 0.7))
    drop-shadow(0 8px 24px rgba(0, 0, 0, 0.75))
    drop-shadow(0 20px 45px rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 35px rgba(220, 235, 255, 0.22));
}

.hero-kicker {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--label);
}
.hero-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 52px;
  align-items: stretch;
}
.hero-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* swap card (hero sample + results hero) */
.swapcard { flex: 1 1 360px; min-width: 0; background: var(--glass); border: 1px solid var(--border-strong); border-radius: var(--r-card-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; transition: opacity 0.4s ease; }
.swapcard.updating { opacity: 0.35; }
.swapcard-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pill-line { display: inline-flex; align-items: center; font-size: 12px; padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--text-3); white-space: nowrap; }
.pill-line.strong { color: var(--text); font-weight: 600; }
.place { padding: 16px 18px; border-radius: var(--r-inner); background: var(--bg); border: 1px solid rgba(255, 255, 255, 0.06); }
.place-with-img { display: flex; gap: 16px; align-items: flex-start; }
.place-thumb-wrap { width: 70px; height: 70px; border-radius: 12px; overflow: hidden; flex: none; border: 1px solid rgba(255, 255, 255, 0.12); background: var(--surface-2); }
.place-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
/* no Qloo photo: a monogram, so no place is ever shown with a picture of somewhere else */
.monogram { display: flex; align-items: center; justify-content: center; font-family: var(--serif); color: var(--brass);
  background: radial-gradient(circle at 30% 25%, rgba(201, 164, 106, 0.18), transparent 60%), var(--surface-2); }
.place-thumb.monogram { font-size: 34px; }
.tile-img.monogram { font-size: 72px; }
.place:hover .place-thumb { transform: scale(1.08); }
.place-info { flex: 1; min-width: 0; }
.place-twin { border-color: var(--brass); }
.place-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.place-name { font-family: var(--serif); font-size: 26px; line-height: 1.1; min-width: 0; overflow-wrap: anywhere; }
.tiers { font-family: var(--mono); font-size: 14px; flex: none; }
.muted-tiers { color: var(--label); }
.place-meta { margin: 6px 0 0; font-size: 13px; color: var(--label); }
.place-why { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.place-why strong { color: var(--text); font-weight: 600; }
.tier-divider { display: flex; align-items: center; gap: 12px; color: var(--brass); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.tier-divider span { flex: 1; height: 1px; background: var(--border-strong); }
.tier-divider b { font-weight: 500; }
.tier-divider svg { width: 16px; height: 16px; flex: none; }
.swapcard-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: auto; }
.saving { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--brass); }
.saving small, .tile-save small { font-size: 18px; color: var(--label); }
.swapcard-foot .fine-note { text-align: right; max-width: 170px; }

/* stats: one horizontal strip under the hero row */
.stats { position: relative; z-index: 1; margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--glass); border: 1px solid var(--border-strong); border-radius: var(--r-card-sm); }
.stat { padding: 22px 28px; display: flex; align-items: center; gap: 18px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--border-strong); }
.stat-num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--text); white-space: nowrap; }
.stat:nth-child(2) .stat-num { color: var(--brass); }
.stat-text { font-size: 13px; color: var(--label); line-height: 1.4; }

/* why: a face-off, not a paragraph */
.why-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: 40px; }
.why-lede { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; color: var(--label); }
.why-lede b { font-weight: 400; color: var(--text); }
.why-lede b:last-child { color: var(--brass); font-style: italic; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 20px; }
.vs { align-self: center; width: 52px; height: 52px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--label); }
.quote { border: 1px solid var(--border); border-radius: var(--r-card-lg); padding: 30px; background: var(--surface-2); display: flex; flex-direction: column; }
.quote-brass { border-color: var(--brass); background: var(--surface); box-shadow: 0 0 60px rgba(201, 164, 106, 0.08); }
.quote-dim .label { color: var(--faint); }
.quote-text { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; }
.quote-dim .quote-text { color: var(--label); }
.quote-text s { text-decoration-color: var(--error); text-decoration-thickness: 2px; color: var(--faint); }
.quote-text mark { background: none; color: var(--brass); font-style: italic; }
.quote .fine-note { margin-top: auto; padding-top: 16px; }

/* how: four equal steps in a row */
.how-wrap { border-top: 1px solid var(--border); padding-top: 56px; }
.how-intro { margin-bottom: 32px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card-sm); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step-card .mono { font-size: 13px; }
.step-card .h3 { font-size: 28px; }
.step-card:not(:last-child)::after { content: ""; position: absolute; top: 34px; right: -15px; width: 16px; height: 1px; background: var(--brass); opacity: 0.6; }

/* swap tiles (landing samples + results grid) */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.swap-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
a.swap-tile:hover, .swap-tile:hover {
  border-color: rgba(201, 164, 106, 0.6);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.swap-tile.tile-has-img {
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.tile-img-container {
  position: relative;
  width: 100%;
  height: 154px;
  overflow: hidden;
  background: var(--surface-2);
}
.tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.swap-tile:hover .tile-img {
  transform: scale(1.06);
}
.tile-img-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 17, 16, 0.1) 0%, rgba(18, 17, 16, 0.8) 100%);
  pointer-events: none;
}
.chip-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(18, 17, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.tile-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.tile-name {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}
.chip { align-self: flex-start; font-size: 12px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--chip); color: var(--text-3); }
.tier-change { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 22px; }
.tier-change s { color: var(--faint); }
.tier-change svg { width: 18px; height: 18px; color: var(--brass); }
.tile-text { margin: 0; font-size: 14px; color: var(--label); }
.tile-pair { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.15; color: var(--text); overflow-wrap: anywhere; }
.tile-name { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.1; overflow-wrap: anywhere; }
.tile-save { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); font-family: var(--serif); font-size: 30px; }
.tile-save small { font-size: 15px; }

/* agent + trace */
.agent { border: 1px solid var(--border); border-radius: var(--r-section); background: var(--surface); padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 44px; align-items: center; }
.agent-copy { flex: 1 1 380px; min-width: 0; }
.checks { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--text-3); }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--brass); }
.trace { flex: 1 1 420px; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; font-family: var(--mono); }
.trace-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.trace-title { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--label); }
.trace-sub { font-size: 12px; color: var(--faint); font-family: var(--mono); }
.trace-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.trace-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; font-size: 13px; line-height: 1.5; color: var(--text-3); border-bottom: 1px solid var(--hair); }
.trace-list li:last-child { border-bottom: 0; }
.trace-list svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.ic-check { color: var(--brass); stroke-width: 2.2; }
.ic-retry { color: var(--text); }
.ic-warn { color: var(--error); }
.t-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.t-sub { display: block; color: var(--faint); font-size: 12px; }
.t-ms { color: var(--faint); white-space: nowrap; }
.trace-list li.t-retry { color: var(--text); }
.trace-list li.t-hard { color: var(--text); background: var(--brass-soft); border-radius: 12px; padding-left: 10px; padding-right: 10px; border-bottom-color: transparent; }
.trace-list li.t-new { animation: stepIn 0.35s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* cta */
.cta { border: 1px solid var(--border); border-radius: var(--r-section); background: var(--surface-2); padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.cta-copy { flex: 1 1 380px; min-width: 0; }
.cta-copy .body { margin-top: 18px; max-width: 440px; }
.cta-copy .cta-row { margin-top: 28px; }
.cta-side { flex: 1 1 400px; min-width: 0; }
.cta-side .label { letter-spacing: 0.2em; font-size: 12px; }
.code-box { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 20px; overflow-x: auto; }
.code-box pre { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.8; color: var(--text-3); }

/* running */
#running { padding-top: 8px; max-width: 900px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; margin-bottom: 16px; background: none; border: 0; color: var(--text-3); cursor: pointer; font-size: 14px; font-weight: 600; }
.back:hover { color: #FFFFFF; }
.back svg { width: 16px; height: 16px; }
.run-trace { padding: clamp(20px, 3vw, 32px); }
/* fixed height: the panel no longer grows step by step, and only the list scrolls */
.run-trace .trace-list { height: min(60vh, 560px); overflow: auto; overscroll-behavior: contain; }
.run-trace .trace-list { scrollbar-width: thin; scrollbar-color: rgba(237, 231, 223, 0.18) transparent; padding-right: 6px; }
.run-trace .trace-list::-webkit-scrollbar { width: 6px; }
.run-trace .trace-list::-webkit-scrollbar-thumb { background: rgba(237, 231, 223, 0.18); border-radius: 999px; }
.run-trace .trace-list::-webkit-scrollbar-track { background: transparent; }
.view-in { animation: viewIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* results */
.res-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips .pill-line { min-height: 36px; font-size: 13px; }
.replay { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--label); }
.headline { padding: 48px 0 32px; }
.headline .eyebrow { margin-bottom: 10px; }
.headline-num { margin: 0; font-family: var(--serif); font-size: clamp(56px, 8vw, 104px); line-height: 0.95; color: var(--brass); }
.headline-num small { font-size: 0.4em; color: var(--label); }
.headline .fine-note { margin-top: 10px; font-size: 13px; }

.res-hero { border: 1px solid var(--border); border-radius: var(--r-section); background: var(--surface); padding: clamp(24px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.res-hero-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.res-hero-copy .h2 { font-size: clamp(38px, 4.4vw, 56px); overflow-wrap: anywhere; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.res-hero .swapcard { flex: 1 1 380px; }
.res-hero .cta-row { margin-top: 4px; }
.empty-hero { margin: 0; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; }

.res-swaps { padding-top: 64px; }
.res-swaps .section-head { flex-direction: column; align-items: stretch; gap: 16px; }
.saving { white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; background: var(--glass-2); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--r-pill); color: var(--label); flex: 0 1 280px; min-width: 200px; }
.search svg { width: 16px; height: 16px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; }
.search input::placeholder { color: var(--faint); }
.search input:focus-visible { outline: none; }
.search:focus-within { outline: 2px solid var(--brass); outline-offset: 2px; }
.segmented { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--glass-2); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--r-pill); }
.segmented button { min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text-3); font-size: 13px; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--text); color: var(--bg); font-weight: 600; }
.swap-tile .tile-meta { margin: -8px 0 0; font-size: 13px; color: var(--label); }
.swap-tile .tag-two { color: var(--brass); }

.lists { padding-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.list-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-card-sm); padding: 20px; }
.list-card ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.list-card li { font-size: 14px; color: var(--text-3); line-height: 1.4; }
.list-card li span { display: block; font-size: 12px; color: var(--faint); }
.list-card li.none { color: var(--faint); font-size: 13px; }

.howknow { margin-top: 40px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); padding: 6px 22px; }
.howknow[open] { padding-bottom: 22px; }
.howknow summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; gap: 12px; }
.howknow summary::-webkit-details-marker { display: none; }
.howknow summary::before { content: "+"; width: 26px; height: 26px; border-radius: var(--r-pill); border: 1px solid var(--brass); color: var(--brass); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); }
.howknow[open] summary::before { content: "−"; }
.how-list { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); }
.how-list li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-inner); padding: 12px 14px; font-size: 12px; color: var(--text-3); }
.how-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.how-top b { color: var(--text); font-weight: 500; }
.how-params { margin: 6px 0 0; color: var(--label); overflow-wrap: anywhere; line-height: 1.6; }

/* footer */
.footer { padding-top: 72px; padding-bottom: 24px; }
.footer-row { border-top: 1px solid var(--border); padding-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-by { display: flex; flex-direction: column; gap: 4px; }
.footer-name { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.footer-mail { font-size: 13px; color: var(--text-3); text-decoration: none; }
.footer-mail:hover { color: var(--brass); }
.footer-credit { font-size: 13px; text-align: center; }
.footer-links { display: flex; gap: 10px; }
.footer-links .icon-btn { transition: color 0.2s ease, border-color 0.2s ease; }
.footer-links .icon-btn:hover { color: var(--brass); border-color: var(--brass); }
.footer-word {
  margin-top: 36px; text-align: center; font-family: var(--serif); font-size: clamp(72px, 17vw, 240px); line-height: 0.9; letter-spacing: 0.06em;
  color: rgba(237, 231, 223, 0.05); -webkit-text-stroke: 1px rgba(237, 231, 223, 0.14); user-select: none; cursor: default;
  transition: color 0.5s ease, -webkit-text-stroke-color 0.5s ease, text-shadow 0.5s ease;
}
.footer-word:hover, .footer-word:focus-visible {
  color: var(--brass); -webkit-text-stroke-color: rgba(255, 236, 200, 0.6); outline: none;
  text-shadow: 0 0 24px rgba(201, 164, 106, 0.55), 0 0 80px rgba(201, 164, 106, 0.35);
}
.footer-copy { margin: 12px 0 0; text-align: center; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }

/* running: "still working" line under the trace */
.run-pulse { margin: 12px 0 0; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-3); }
.run-pulse .t-ms { margin-left: auto; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); flex: none; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100; overflow: hidden; background: var(--bg); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-glow { position: absolute; width: 620px; height: 620px; left: 50%; top: 50%; margin: -360px 0 0 -310px; border-radius: 50%; background: var(--warm-glow); filter: blur(140px); opacity: 0.55; }
.pl-stage { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }
.pl-ring { position: absolute; left: 50%; top: 42%; width: 420px; height: 420px; border-radius: 50%; border: 1px solid var(--brass); opacity: 0; }
.pl-word-wrap { position: relative; }
.pl-word, .pl-shine, .pl-ghost { font-family: var(--serif); font-size: clamp(96px, 15vw, 210px); line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.pl-word { margin: 0; font-weight: 400; }
.pl-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 0.01em 0.08em; }
.pl-l { display: inline-block; }
.pl-shine {
  position: absolute; inset: 0; padding: 0 0.01em 0.08em; color: transparent; pointer-events: none;
  background-image: linear-gradient(105deg, rgba(255, 236, 200, 0) 42%, rgba(255, 236, 200, 0.85) 50%, rgba(255, 236, 200, 0) 58%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text;
}
.pl-line { width: min(520px, 70vw); height: 1px; background: var(--brass); margin-top: 4px; transform-origin: center; }
.pl-ghost {
  line-height: 0.9; color: rgba(237, 231, 223, 0.10); height: 0.42em; overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0)); mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
}
.pl-tag { margin: 28px 0 0; text-align: center; font-size: clamp(12px, 1.3vw, 15px); text-transform: uppercase; letter-spacing: 0.32em; color: var(--text-3); }
.pl-progress { margin-top: 64px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pl-bar { width: 220px; height: 2px; border-radius: var(--r-pill); background: rgba(237, 231, 223, 0.12); overflow: hidden; }
.pl-fill { width: 100%; height: 100%; background: var(--brass); transform-origin: left; }
.pl-fade { font-size: 12px; letter-spacing: 0.12em; color: var(--label); transition: opacity 0.25s ease; min-height: 16px; }

.pl-skip {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: var(--r-pill);
  background: rgba(237, 231, 223, 0.06);
  border: 1px solid rgba(201, 164, 106, 0.35);
  color: var(--brass-bright);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0;
  animation: plSkipFade 0.6s ease 0.6s forwards;
}
.pl-skip:hover {
  background: rgba(201, 164, 106, 0.18);
  border-color: var(--brass);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(201, 164, 106, 0.25);
}
.pl-skip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.pl-skip:hover svg { transform: translateX(3px); }
@keyframes plSkipFade { to { opacity: 1; } }

@keyframes plRise { 0% { transform: translateY(105%); opacity: 0; filter: blur(14px); } 60% { opacity: 1; } 100% { transform: translateY(0); opacity: 1; filter: blur(0); } }
@keyframes plLine { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes plGhost { 0% { opacity: 0; transform: scaleY(-1) translateY(-18px); } 100% { opacity: 1; transform: scaleY(-1) translateY(0); } }
@keyframes plTag { 0% { opacity: 0; letter-spacing: 0.7em; filter: blur(6px); } 100% { opacity: 1; letter-spacing: 0.32em; filter: blur(0); } }
@keyframes plShine { 0% { background-position: 160% 0; } 55%, 100% { background-position: -60% 0; } }
@keyframes plShineIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes plRing { 0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; } 30% { opacity: 0.5; } 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }
@keyframes plFill { 0% { transform: scaleX(0); } 25% { transform: scaleX(0.3); } 60% { transform: scaleX(0.7); } 88% { transform: scaleX(0.92); } 100% { transform: scaleX(1); } }
@keyframes plFade { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes plDrift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, -30px); } }

/* Animations restart each time the preloader is shown again (class toggled by app.js). */
.preloader.play .pl-l { animation: plRise 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.preloader.play .d1 { animation-delay: 0.10s; } .preloader.play .d2 { animation-delay: 0.20s; }
.preloader.play .d3 { animation-delay: 0.30s; } .preloader.play .d4 { animation-delay: 0.40s; }
.preloader.play .d5 { animation-delay: 0.50s; } .preloader.play .d6 { animation-delay: 0.60s; }
.preloader.play .pl-line { animation: plLine 1.2s cubic-bezier(.65, 0, .35, 1) 1.05s both; }
.preloader.play .pl-ghost { animation: plGhost 1.4s ease-out 1.4s both; }
.preloader.play .pl-tag { animation: plTag 1.6s cubic-bezier(.2, .8, .2, 1) 1.6s both; }
.preloader.play .pl-shine { animation: plShineIn .4s ease 2.4s both, plShine 3.6s ease-in-out 2.4s infinite; }
.preloader.play .pl-ring { animation: plRing 3.6s ease-out 1.2s infinite; }
.preloader.play .pl-ring2 { animation: plRing 3.6s ease-out 3s infinite; }
.preloader.play .pl-fill { animation: plFill 5.2s cubic-bezier(.25, 1, .4, 1) .3s both; }
.preloader.play .pl-fade { animation: plFade 1s ease 1.2s both; }
.pl-drift { animation: plDrift 14s ease-in-out infinite; }

/* phone */
@media (max-width: 720px) {
  body { font-size: 14px; }
  .section { padding-top: 72px; }
  .nav { justify-content: flex-start; }
  .nav-pills { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .nav-pills a { flex: none; padding: 0 14px; }
  .btn-cream { margin-left: auto; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border-strong); }
  .stat { padding: 16px 20px; }
  .stat-num { font-size: 34px; }
  .versus { grid-template-columns: 1fr; }
  .vs { justify-self: center; }
  .quote-text { font-size: 23px; }
  .steps { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-credit { text-align: left; }
  .bd-img { width: 60vw; opacity: 0.12; }
  .cta-row > * { flex: 1 1 auto; justify-content: center; }
  .filters, .search { flex: 1 1 100%; }
  .segmented { width: 100%; }
  .segmented button { flex: 1 1 auto; padding: 0 10px; }
  .swapcard-foot { flex-wrap: wrap; }
  .swapcard-foot .fine-note { text-align: left; }
  .hero-word {
    font-size: clamp(64px, 16vw, 130px);
  }
  .pl-ring { width: 300px; height: 300px; }
  .step-card::after { display: none; }
}

@media (max-width: 1000px) and (min-width: 721px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step-card:nth-child(2)::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bd-glow, .pulse-dot, .view-in { animation: none; }
  .preloader.play .pl-l, .preloader.play .pl-line, .preloader.play .pl-ghost, .preloader.play .pl-tag,
  .preloader.play .pl-fill, .preloader.play .pl-fade { animation: none !important; opacity: 1; filter: none; }
  .preloader.play .pl-shine, .preloader.play .pl-ring, .preloader.play .pl-ring2, .pl-drift { animation: none !important; opacity: 0; }
  .preloader, .swapcard, .trace-list li.t-new { transition: none; animation: none; }
}
