@font-face {
  font-family: "Noto Display";
  src: url("assets/fonts/noto-serif-display-italic.woff2") format("woff2"),
       url("assets/fonts/noto-serif-display-italic.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #141310;
  --section: #191713;
  --text: #faf5eb;
  --muted: #c2baad;
  --soft: #a49b8b;
  --gold: #efc774;
  --rule: #373128;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; }
h1, h2, h3, p, figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

::selection { color: #1b140b; background: #f1ca78; }

.page-width {
  width: min(1216px, calc(100% - 2 * clamp(24px, 5vw, 76px)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 12px 16px;
  color: #21180b;
  background: var(--gold);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--rule); }

.header-inner {
  min-height: 77px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  font-size: 21px;
  font-weight: 730;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.site-nav { display: flex; gap: clamp(18px, 2.6vw, 32px); }
.site-nav a, .site-footer a { color: var(--muted); }
.site-nav a { font-size: 14px; font-weight: 550; white-space: nowrap; }
.site-nav a:hover, .site-footer a:hover { color: var(--gold); }

/* Tap targets (WCAG 2.5.8): header links are at least 44px tall, and small controls get an
   invisible larger hit area, so nothing moves on screen. */
.brand { min-height: 44px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.launch-badge, .footer-inner > a, .demo-spot button { position: relative; }
.launch-badge::after, .footer-inner > a::after, .demo-spot button::after { position: absolute; content: ""; }
.launch-badge::after { inset: -8px 0; }
.footer-inner > a::after { inset: -14px 0; }
.demo-spot button::after { inset: -11px -8px; }

.launch-badge {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid #55442b;
  border-radius: 999px;
  color: var(--gold);
  font: 600 10px/1.3 var(--mono);
  letter-spacing: .095em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s;
}

.launch-badge:hover { background: #2b2317; border-color: #826238; }

.status-dot, .sample-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.status-dot { box-shadow: 0 0 9px #f3c46d70; }

.hero {
  display: grid;
  grid-template-columns: 1.035fr 1fr;
  align-items: center;
  gap: clamp(30px, 4.2vw, 64px);
  padding-block: 42px 54px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font: 600 11px/1.55 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 17px;
  height: 1px;
  flex: none;
  background: currentColor;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(49px, 5.6vw, 83px);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -.077em;
  text-wrap: balance;
}

.hero h1 em {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-family: "Noto Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.078em;
}

.hero-description {
  max-width: 415px;
  margin-top: 27px;
  color: var(--muted);
  font-size: clamp(17px, 1.36vw, 19px);
  line-height: 1.64;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px 18px;
  margin-top: 28px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 14px 17px 14px 19px;
  min-height: 51px;
  border: 1px solid #f4d38b;
  border-radius: 8px;
  color: #211909;
  background: #efc774;
  font-size: 14px;
  font-weight: 730;
  transition: background-color .2s, transform .2s;
}

.primary-link:hover { background: #ffdb94; transform: translateY(-2px); }

.secondary-link {
  padding-block: 10px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #efc77470;
  text-underline-offset: 4px;
}

.secondary-link:hover { text-decoration-color: currentColor; }

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 20px;
  padding: 0;
  margin: 29px 0 0;
  list-style: none;
}

.hero-details li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 540;
}

.hero-details svg { color: var(--gold); }

.preview {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  min-height: 533px;
  place-items: center;
  overflow: hidden;
  padding: 54px 24px 42px;
  border: 1px solid #cda963;
  border-radius: 20px;
  color: #251b0d;
  background:
    radial-gradient(ellipse at 78% 6%, #f7dda5b8 0%, transparent 55%),
    radial-gradient(ellipse at 17% 87%, #6842174d 0%, transparent 52%),
    linear-gradient(134deg, #deb56b 1%, #b88342 65%, #e2b970 100%);
  scroll-margin-top: 18px;
}

.stage-grid, .stage-ring {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.stage-grid {
  inset: 0;
  background:
    linear-gradient(#40260612 1px, transparent 1px) center / 34px 34px,
    linear-gradient(90deg, #40260612 1px, transparent 1px) center / 34px 34px,
    repeating-linear-gradient(116deg, #ffebba14 0px, transparent 1px 6px);
  mask-image: linear-gradient(150deg, #0009, #000 45%, #0003 100%);
}

.stage-ring {
  width: 83%;
  aspect-ratio: 1;
  border: 1px solid #3b240f30;
  border-radius: 50%;
  box-shadow: 0 0 0 23px #fee2ae22, 0 0 0 24px #3b240f22;
}

.preview-label, .preview-footer {
  position: absolute;
  font: 700 10px/1.2 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.preview-label { top: 23px; left: 19px; }

.preview-footer {
  bottom: 17px;
  inset-inline: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-footer > span:first-child { display: flex; align-items: center; gap: 8px; }
.sample-dot { width: 5px; height: 5px; }

.theme-toggle {
  position: absolute;
  top: 12px;
  right: 15px;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid #594020;
  border-radius: 999px;
  color: #fff4dc;
  background: #312415;
  font-size: 10px;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
}

.theme-toggle:hover { background: #5b452a; }
.theme-toggle:focus-visible { outline-color: #271b0c; outline-offset: 3px; }

.element-tile {
  position: absolute;
  z-index: -1;
  display: grid;
  gap: 3px;
  width: 64px;
  padding: 8px 10px 10px;
  border: 1px solid #56361555;
  border-radius: 8px;
  background: #f8deaa28;
  box-shadow: 0 9px 18px #38210914, inset 0 1px #fff4d84d;
}

.element-tile b { font: 620 25px/1 system-ui, sans-serif; letter-spacing: -.09em; }
.element-tile span { font: 700 9px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.tile-au { top: 30%; left: 9%; transform: rotate(-9deg); }
.tile-ag { right: 8%; bottom: 23%; transform: rotate(8deg); background: #f5ebd350; }

.device {
  color-scheme: dark;
  --screen: #131310;
  --screen-text: #f5f2eb;
  --screen-muted: #b6b1a6;
  --screen-line: #3c3a34;
  --card: #1e1d19;
  --screen-raised: #292720;
  --screen-tip-chip: #39321e;
  --screen-accent: #edcc79;
  --screen-button: #f1efe8;
  --screen-button-text: #1d1c17;
  width: min(100%, 320px);
  padding: 6px;
  border: 1px solid #17140f;
  border-radius: 35px;
  background: linear-gradient(145deg, #6a6256, #24211b 25%, #0d0c0b 56%, #7d7060);
  box-shadow: 0 27px 45px #2f1d1482, 0 4px 10px #2f1d146b, inset 0 0 0 1px #ada49370;
}

.device[data-theme="light"] {
  color-scheme: light;
  --screen: #f5f4f0;
  --screen-text: #1c1b19;
  --screen-muted: #605e56;
  --screen-line: #d7d4ca;
  --card: #fff;
  --screen-raised: #eeede8;
  --screen-tip-chip: #f7eccc;
  --screen-accent: #664d0a;
  --screen-button: #1c1b19;
  --screen-button-text: #fff;
}

.device-screen {
  position: relative;
  display: grid;
  grid-template-rows: 27px minmax(0, 1fr) 53px;
  height: 605px;
  overflow: hidden;
  border: 2px solid #090908;
  border-radius: 29px;
  color: var(--screen-text);
  background: var(--screen);
}

.device-status {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 13px 0;
  font-size: 10px;
  font-weight: 700;
}

.device-screen[data-active-screen="tips"] .device-status { background: var(--card); }

.device-camera {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 54px;
  height: 15px;
  border-radius: 999px;
  background: #080807;
  transform: translateX(-50%);
}

.device-indicators { display: flex; align-items: center; gap: 3px; }

.device-panel {
  grid-row: 2;
  min-width: 0;
  padding: 11px 11px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--screen-line) transparent;
  scrollbar-width: thin;
}

.device-panel[hidden], .demo-karat-chart[hidden] { display: none; }

.device-panel[data-screen="quote"] {
  display: flex;
  flex-direction: column;
}

.device-panel[data-screen="quote"][hidden] { display: none; }
.device-panel[data-screen="quote"] > * { flex: none; }

.device button:focus-visible, .device-panel:focus-visible {
  outline-color: var(--screen-accent);
  outline-offset: -2px;
}

.demo-quote-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.device-brand {
  display: grid;
  width: 51px;
  justify-items: center;
  gap: 2px;
  padding: 4px 2px;
  border-radius: 7px;
  color: #f5f2eb;
  background: #211f20;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.demo-spot {
  display: flex;
  min-width: 0;
  min-height: 41px;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--screen-line);
  border-radius: 11px;
  background: var(--card);
  color: var(--screen-muted);
  font-size: 9px;
  line-height: 1.3;
}

.demo-spot b { font-size: 10px; }
.demo-spot-values span { display: inline-block; white-space: nowrap; }
.demo-spot-values span + span::before { content: "·"; margin-inline: 3px; }

.demo-spot button {
  padding: 0;
  border: 0;
  color: var(--screen-muted);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}

.demo-quote-heading, .demo-item-heading, .demo-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}

.demo-quote-heading {
  margin: 11px 0 9px;
  color: var(--screen-muted);
  font-size: 10px;
  font-weight: 650;
}

.demo-quote-heading h2 {
  color: var(--screen-text);
  font-size: 14px;
  letter-spacing: -.035em;
}

.demo-item {
  padding: 9px;
  border: 1px solid var(--screen-line);
  border-radius: 12px;
  background: var(--card);
}

.demo-item-heading h3, .demo-item-heading strong { font-size: 13px; font-weight: 740; }

.demo-metals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin-top: 8px;
  padding: 2px;
  border-radius: 9px;
  background: var(--screen-raised);
}

.demo-metals button, .demo-tip-categories button {
  min-width: 0;
  min-height: 37px;
  padding: 4px;
  border: 1px solid var(--screen-line);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 740;
  cursor: pointer;
}

.demo-metals button[data-metal="gold"] {
  border-color: #78653c;
  color: #f1d28b;
  background: #39301e;
}

.demo-metals button[data-metal="silver"] {
  border-color: #696f77;
  color: #dfe2e7;
  background: #30333a;
}

.device[data-theme="light"] .demo-metals button[data-metal="gold"][aria-pressed="false"] {
  border-color: #d7ca9d;
  color: #674c05;
  background: #f7eecf;
}

.device[data-theme="light"] .demo-metals button[data-metal="silver"][aria-pressed="false"] {
  border-color: #c4c7ca;
  color: #4b5057;
  background: #edeef0;
}

.demo-metals button[data-metal="gold"][aria-pressed="true"] {
  border-color: #a78337;
  color: #2f2006;
  background: linear-gradient(#fff2bc, #efc654 38%, #c59023 71%, #f1d677);
}

.demo-metals button[data-metal="silver"][aria-pressed="true"] {
  border-color: #a4acb4;
  color: #1d2227;
  background: linear-gradient(#fff, #e2e6eb 30%, #aeb8c3 75%, #d9dfe5);
}

.demo-metals button:hover { filter: brightness(1.12); }

.demo-purities {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(36px, 1.45fr);
  gap: 3px;
  margin-top: 8px;
}

.demo-purities[data-metal="silver"] { grid-template-columns: 1fr 1fr 1.5fr; }

.demo-purities span {
  display: grid;
  min-height: 30px;
  place-items: center;
  border: 1px solid var(--screen-line);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
}

.demo-purities span[data-selected="true"] {
  border-color: var(--screen-button);
  color: var(--screen-button-text);
  background: var(--screen-button);
}

.demo-field {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  color: var(--screen-muted);
  font-size: 10px;
  line-height: 1.2;
}

.demo-field > span { font-weight: 650; }

.demo-field-value {
  display: flex;
  min-height: 32px;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--screen-line);
  border-radius: 7px;
  color: var(--screen-text);
  font-size: 13px;
}

.demo-field-value small, .demo-field-placeholder { color: var(--screen-muted); }
.demo-field-placeholder { font-size: 11px; }
.demo-field-placeholder svg { flex: none; color: var(--screen-text); }

.demo-add, .demo-save {
  min-height: 35px;
  padding: 5px 8px;
  border: 1px solid var(--screen-line);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 730;
  opacity: 1;
}

.demo-add {
  margin: 9px 0 10px;
  border-color: #858278;
  color: var(--screen-text);
  background: var(--card);
}

.demo-quote-footer {
  display: grid;
  gap: 5px;
  margin: auto -11px 0;
  padding: 6px 11px 5px;
  border-top: 1px solid var(--screen-line);
  background: var(--card);
}

.demo-total > span { font-size: 11px; font-weight: 740; }
.demo-total strong { font-size: 23px; font-weight: 760; line-height: 1.15; letter-spacing: -.05em; }

.demo-save {
  border-color: var(--screen-button);
  color: var(--screen-button-text);
  background: var(--screen-button);
}

.demo-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.demo-presets button {
  position: relative;
  display: grid;
  min-height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--screen-muted);
  background: transparent;
  cursor: pointer;
}

.demo-presets button::before {
  position: absolute;
  inset: 6px 0;
  border: 1px solid var(--screen-line);
  border-radius: inherit;
  content: "";
}

.demo-presets button span {
  position: relative;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--screen-line);
}

.demo-presets button:hover::before { border-color: var(--screen-muted); }
.demo-presets button[aria-pressed="true"] { color: var(--screen-text); }
.demo-presets button[aria-pressed="true"]::before {
  border: 2px solid var(--screen-muted);
  background: var(--screen-raised);
}
.demo-presets button[aria-pressed="true"] span { width: 15px; height: 3px; background: currentColor; }

.demo-screen-title {
  margin: -11px -11px 11px;
  padding: 12px 11px;
  border-bottom: 1px solid var(--screen-line);
  background: var(--card);
  font-size: 18px;
  letter-spacing: -.04em;
}

.demo-tip-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--screen-raised);
}

.demo-tip-categories button {
  min-height: 35px;
  border-color: transparent;
  color: var(--screen-muted);
  background: transparent;
  font-size: 11px;
}

.demo-tip-categories button:hover { color: var(--screen-text); }

.demo-tip-categories button[aria-pressed="true"] {
  border-color: var(--screen-line);
  color: var(--screen-text);
  background: var(--card);
}

.demo-tip-list { display: grid; gap: 8px; padding-bottom: 10px; }

.demo-tip, .demo-video, .demo-summary {
  overflow: hidden;
  border: 1px solid var(--screen-line);
  border-radius: 11px;
  background: var(--card);
}

.demo-video-cover {
  position: relative;
  display: grid;
  min-height: 137px;
  place-content: center;
  justify-items: center;
  gap: 7px;
  color: #372709;
  background: linear-gradient(#fff1ba, #f2cb5e 40%, #c9972b 72%, #eed16f);
  font-size: 11px;
  font-weight: 720;
}

.demo-play-icon {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 50%;
  color: #fff8e8;
  background: #594612;
}

.demo-play-icon svg { margin-left: 2px; }

.demo-video-cover small {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 4px;
  border-radius: 4px;
  color: #fff8e8;
  background: #584213;
  font-size: 9px;
}

.demo-tip-copy, .demo-tip-button { padding: 9px 10px; }
.demo-tip-copy h3, .demo-tip-title strong { font-size: 12px; line-height: 1.2; }

.demo-tip-copy p, .demo-tip-description {
  margin-top: 4px;
  color: var(--screen-muted);
  font-size: 10px;
  line-height: 1.35;
}

.demo-tip-title, .demo-tip-copy h3 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-tip-title b, .demo-tip-copy h3 span {
  padding: 3px 4px;
  border-radius: 4px;
  color: var(--screen-accent);
  background: var(--screen-tip-chip);
  font: 750 8px/1 var(--mono);
  text-transform: uppercase;
}

.demo-tip-button {
  display: grid;
  width: 100%;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.demo-tip-button:hover { background: var(--screen-raised); }
.demo-tip-button:hover strong { text-decoration: underline; text-underline-offset: 3px; }

.demo-karat-chart {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  margin: 0 10px 9px;
  padding-top: 7px;
  border-top: 1px solid var(--screen-line);
  text-align: center;
  font-size: 10px;
}

.demo-karat-chart dd { margin: 4px 0 0; color: var(--screen-accent); font-weight: 740; }

.demo-summary { padding: 10px; }

.demo-summary-label {
  color: var(--screen-accent);
  font: 650 9px/1.3 var(--mono);
  text-transform: uppercase;
}

.demo-summary h3 { margin-top: 6px; font-size: 14px; }

.demo-summary dl {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  font-size: 11px;
}

.demo-summary dl div { display: flex; justify-content: space-between; gap: 8px; }
.demo-summary dt { color: var(--screen-muted); }
.demo-summary dd { margin: 0; font-weight: 680; text-align: right; }

.demo-lock-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: var(--screen-muted);
  font-size: 10px;
}

.demo-lock-note svg { flex: none; color: var(--screen-accent); }
.demo-settings dl { margin-top: 0; }

.demo-setting-toggle {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--screen-line);
  color: var(--screen-accent);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.device-nav {
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 4px 0;
  border-top: 1px solid var(--screen-line);
  background: var(--card);
}

.device-nav button {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  color: var(--screen-muted);
  background: transparent;
  font-size: 10px;
  font-weight: 630;
  cursor: pointer;
}

.device-nav button + button { border-left: 1px solid var(--screen-line); }
.device-nav button:hover { background: var(--screen-raised); }
.device-nav button[aria-selected="true"] { color: var(--screen-text); }

.tips-section {
  border-top: 1px solid var(--rule);
  background: radial-gradient(ellipse at 0% 18%, #252017, var(--background) 68%);
  scroll-margin-top: 18px;
}

.tips-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(26px, 4.2vw, 64px);
  padding-block: 56px;
}

.tips-section h2 {
  max-width: 18ch;
  margin-top: 9px;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.13;
  text-wrap: balance;
}

.tips-description {
  max-width: 44ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.tips-description a { color: var(--gold); text-decoration: underline; text-decoration-color: #efc77470; text-underline-offset: 3px; }
.tips-description a:hover { text-decoration-color: currentColor; }
.tips-guides-link { display: inline-block; margin-top: 8px; }

.tips-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 650;
}

.tips-byline span { width: 14px; height: 1px; background: currentColor; }

.tip-formats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tip-format {
  padding: 15px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--section);
}

.tip-format svg { display: block; margin-bottom: 8px; color: var(--gold); }
.tip-format h3 { font-size: 16px; font-weight: 680; letter-spacing: -.025em; }
.tip-format p { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.workflow {
  border-block: 1px solid var(--rule);
  background: var(--section);
  scroll-margin-top: 18px;
}

.workflow-inner { padding-block: 47px 54px; }

.workflow h2, .launch h2 {
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.13;
}

.workflow h2 {
  margin-top: 9px;
  font-size: clamp(32px, 4.2vw, 48px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 27px 0 0;
  padding: 0;
  border-block: 1px solid var(--rule);
  list-style: none;
}

.step { padding: 21px 24px 23px; }
.step:first-child { padding-left: 0; }
.step + .step { border-left: 1px solid var(--rule); }

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gold);
}

.step-top span { color: var(--soft); font: 500 11px/1 var(--mono); letter-spacing: .1em; }
.step h3 { margin-top: 15px; font-size: 19px; letter-spacing: -.029em; line-height: 1.25; }
.step p { max-width: 33ch; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.launch { padding-block: 36px; scroll-margin-top: 10px; }

.launch-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid #493b26;
  border-radius: 13px;
  background: radial-gradient(ellipse at left center, #2d2417, #1b1813 55%);
}

.launch-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid #665033;
  border-radius: 14px;
  background: #211e18;
}

.launch h2 { margin-top: 4px; font-size: clamp(23px, 3.1vw, 32px); }

.platforms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.platforms svg { color: var(--gold); }

.signup {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #493b26;
}

.signup > * { max-width: 620px; }
.signup-label { font-size: 15px; font-weight: 620; letter-spacing: -.01em; }
.signup-row { display: flex; gap: 10px; }

.signup-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid #55442b;
  border-radius: 8px;
  color: var(--text);
  background: var(--background);
  font: inherit;
  font-size: 16px;
}

.signup-input::placeholder { color: var(--soft); opacity: 1; }
.signup-input:focus-visible { outline-offset: 2px; border-color: #826238; }

.signup-button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid #f4d38b;
  border-radius: 8px;
  color: #211909;
  background: #efc774;
  font-size: 14px;
  font-weight: 730;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s;
}

.signup-button:hover { background: #ffdb94; }
.signup-button:focus-visible { outline-offset: 2px; }
.signup-button:disabled, .signup-button[aria-disabled="true"] { opacity: .7; cursor: progress; }
.signup-input[aria-invalid="true"] { border-color: #f2a28a; }

.signup-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.signup-consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--gold); }
.signup-consent a, .copyright a, .legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

.signup-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.signup-status { min-height: 1.5em; color: var(--muted); font-size: 13px; }
.signup-status:empty { display: none; }
.signup-status[data-state="ok"] { color: var(--gold); }
.signup-status[data-state="error"] { color: #f2a28a; }

.legal, .form-result { padding-block: 48px 64px; }
.legal > * { max-width: 68ch; }
.legal h1, .form-result h1 { margin-top: 16px; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.055em; line-height: 1.08; text-wrap: balance; }
.legal-updated { margin-top: 10px; color: var(--soft); font-size: 13px; }
.legal h2 { margin-top: 32px; font-size: 20px; letter-spacing: -.03em; }
.legal p { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.legal h3 { margin-top: 22px; font-size: 17px; letter-spacing: -.02em; }
.legal ul { margin: 10px 0 0; padding-left: 1.25em; color: var(--muted); font-size: 16px; line-height: 1.65; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--gold); }
.legal strong { color: var(--text); font-weight: 600; }
.form-result .primary-link { margin-top: 28px; }

/* Demo buttons that only respond in the preview */
.demo-note {
  position: absolute;
  top: 34px;
  left: 10px;
  right: 10px;
  z-index: 2;
  box-shadow: 0 8px 24px rgb(0 0 0 / .35);
  padding: 7px 9px;
  border: 1px solid var(--screen-line);
  border-radius: 8px;
  color: var(--screen-muted);
  background: var(--screen-raised);
  font-size: 10.5px;
  line-height: 1.35;
}
.demo-note:empty { display: none; }
.demo-spot button, .demo-add, .demo-save { cursor: pointer; }

/* Questions */
.faq { border-top: 1px solid var(--rule); scroll-margin-top: 10px; }
.faq-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); padding-block: 56px; }
.faq h2 { margin-top: 14px; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.055em; line-height: 1.08; text-wrap: balance; }
.faq-intro { max-width: 40ch; margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.faq-list { display: grid; gap: 10px; margin: 0; }
.faq-list details { border: 1px solid var(--rule); border-radius: 11px; background: var(--section); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-size: 16px; font-weight: 640; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { flex: none; color: var(--gold); font: 400 20px/1 var(--mono); content: "+"; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list summary h3 { font: inherit; letter-spacing: inherit; }
.faq-answer { padding: 0 18px 18px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.faq-answer p + p, .faq-answer p + table, .faq-answer table + p { margin-top: 10px; }
.faq-answer a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.faq-answer strong { color: var(--text); font-weight: 620; }
.karat-table { width: 100%; max-width: 360px; border-collapse: collapse; font-size: 14px; }
.karat-table th, .karat-table td { padding: 7px 10px; border-bottom: 1px solid var(--rule); text-align: left; }
.karat-table th { color: var(--soft); font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.karat-table td { color: var(--text); font-variant-numeric: tabular-nums; }

.site-footer { border-top: 1px solid var(--rule); }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  color: var(--soft);
  font-size: 12px;
}

.footer-domain { color: var(--muted); font-family: var(--mono); letter-spacing: -.01em; }
.footer-inner > a { display: flex; align-items: center; justify-self: end; gap: 7px; }
.theme-toggle svg[hidden], .demo-setting-toggle svg[hidden] { display: none; }

@media (max-width: 1050px) {
  .hero h1 { font-size: clamp(47px, 6.1vw, 66px); }
  .tile-au { left: 5%; }
  .tile-ag { right: 5%; }
}

@media (max-width: 880px) {
  /* The navigation moves to its own row under the logo instead of disappearing. */
  .header-inner { grid-template-columns: 1fr auto; row-gap: 0; min-height: 0; padding-top: 8px; }
  .site-nav { grid-area: 2 / 1 / auto / -1; flex-wrap: wrap; gap: 0 clamp(14px, 4.4vw, 26px); padding-bottom: 4px; }
  .launch-badge { grid-area: 1 / 2; }
  .hero { grid-template-columns: 1fr; align-items: stretch; gap: 32px; padding-block: 42px; }
  .hero h1 { font-size: clamp(52px, 9vw, 76px); }
  .hero-description { max-width: 46ch; }
  .preview { min-height: 505px; }
  .stage-ring { width: min(75%, 460px); }
  .tile-au { left: calc(50% - 185px); }
  .tile-ag { right: calc(50% - 187px); }
}

@media (max-width: 700px) {
  .tips-inner { grid-template-columns: 1fr; padding-block: 40px; }
  .faq-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-inner { column-gap: 12px; }
  /* Keeps the navigation to one row on phones; this section is a short scroll below. */
  .site-nav { justify-content: space-between; column-gap: 10px; }
  .site-nav a[href="#workflow"] { display: none; }
  .brand { gap: 8px; font-size: 18px; }
  .brand img { width: 34px; height: auto; }
  .launch-badge { gap: 7px; padding: 8px 10px; font-size: 9px; }
  .hero { padding-block: 37px 33px; }
  .hero h1 { margin-top: 17px; font-size: clamp(40px, 10.65vw, 59px); }
  .hero-description { margin-top: 20px; line-height: 1.6; }
  .hero-actions { margin-top: 22px; }
  .hero-details { gap: 11px 16px; margin-top: 22px; }
  .hero-details li { font-size: 12px; }
  .preview { min-height: 485px; border-radius: 15px; padding: 66px 14px 42px; }
  .preview-label { left: 14px; }
  .preview-footer { inset-inline: 14px; }
  .tile-au, .tile-ag { display: none; }
  .stage-ring { width: 92%; }
  .tip-format { padding: 12px; }
  .workflow-inner { padding-block: 34px; }
  .steps { grid-template-columns: 1fr; margin-top: 21px; }
  .step { padding: 17px 0 19px; }
  .step + .step { border-top: 1px solid var(--rule); border-left: 0; }
  .step h3 { margin-top: 11px; }
  .step p { max-width: 42ch; }
  .launch { padding-block: 28px; }
  .launch-inner { grid-template-columns: auto 1fr; gap: 12px; padding: 16px; }
  .launch-icon { width: 48px; height: 48px; border-radius: 11px; }
  .launch-icon img { width: 33px; height: auto; }
  .platforms { grid-column: 2; }
  .signup-row { flex-direction: column; }
  .faq-inner { padding-block: 40px; }
  .faq-list summary { padding: 14px 15px; font-size: 15px; }
  .faq-answer { padding: 0 15px 15px; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding-block: 16px; }
  .copyright { grid-row: 2; }
  .footer-inner > a { grid-area: 1 / 2; }
}

@media (max-width: 359px) {
  .page-width { width: calc(100% - 40px); }
  .site-nav a { font-size: 13px; }
  .hero h1 { font-size: 36px; }
  .preview-label { font-size: 9px; letter-spacing: .07em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* High-contrast (forced colors) mode drops author backgrounds and gradients, which is how the
   demo shows what is selected. A thick system-color border keeps the selected state visible. */
@media (forced-colors: active) {
  .demo-metals button[data-metal][aria-pressed="true"],
  .demo-purities span[data-selected="true"],
  .demo-tip-categories button[aria-pressed="true"] {
    border: 3px solid Highlight;
  }
  .device-nav button[aria-selected="true"] { border-top: 3px solid Highlight; }
  .demo-presets button[aria-pressed="true"]::before { border-color: Highlight; }
  .demo-presets button[aria-pressed="true"] span { background: Highlight; }
}
