:root {
  --bg: #100e0c;
  --surface: #1c1916;
  --fg: #f4efe6;
  --muted: #a89c8e;
  --clay: #e08a45;
  --moss: #9dccb0;
  --ink: #141210;
  --sans: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image: linear-gradient(
    90deg,
    transparent 0.85rem,
    color-mix(in srgb, var(--clay) 55%, transparent) 0.85rem,
    color-mix(in srgb, var(--clay) 55%, transparent) calc(0.85rem + 2px),
    transparent calc(0.85rem + 2px)
  );
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.5;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; transition: scale 150ms ease-out; }
button:active:not(:disabled) { scale: 0.96; }

h1, h2, h3 { text-wrap: balance; font-family: var(--display); font-weight: 560; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

[hidden] { display: none !important; }

.wrap {
  width: min(64rem, 100%);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem 2rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand p { margin: 0; }
.word { font-family: var(--display); font-size: 1.6rem; line-height: 1; font-weight: 620; }
.kicker {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 0.6rem; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 0.75rem; }

.card {
  background: var(--surface);
  border-radius: 1.25rem;
  padding: 1rem 1rem 1.1rem;
}

.rail-clay { border-left: 4px solid var(--clay); }
.rail-moss { border-left: 4px solid var(--moss); }
.rail-quiet { border-left: 4px solid color-mix(in srgb, var(--fg) 18%, transparent); }

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ink);
}
.pill-clay { background: var(--clay); }
.pill-moss { background: var(--moss); }
.pill-line { color: var(--fg); border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }

.money {
  font-family: var(--display);
  font-size: 1.7rem;
  margin: 0.6rem 0 0;
  font-variant-numeric: tabular-nums;
}

label { display: block; }
label span, .label { display: block; margin-bottom: 0.25rem; color: var(--muted); font-size: 0.92rem; }

input, textarea {
  width: 100%;
  border: 0;
  border-radius: 1rem;
  background: var(--bg);
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  outline: none;
}
textarea { min-height: 7rem; resize: vertical; }

.field-voice {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: start;
}
.field-voice input,
.field-voice textarea { width: 100%; }

.mic {
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.mic svg { width: 1.2rem; height: 1.2rem; }
.mic[aria-pressed="true"] {
  background: var(--clay);
  color: var(--ink);
  animation: pulse 1.2s ease-in-out infinite;
}
.mic:disabled { opacity: 0.45; cursor: not-allowed; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--clay) 50%, transparent); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.voice-status {
  min-height: 1.2rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.voice-status[data-live="1"] { color: var(--clay); }

.btn {
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-weight: 650;
}
.btn-clay { background: var(--clay); color: var(--ink); }
.btn-fg { background: var(--fg); color: var(--ink); }
.btn-ghost { background: var(--bg); color: var(--fg); }
.btn-line { background: transparent; color: var(--fg); border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }
.btn-block { width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }

.icon-btn {
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  display: grid;
  place-items: center;
}

.error { color: var(--clay); margin: 0; font-size: 0.92rem; }

.switch { display: flex; gap: 0.5rem; }
.switch button[aria-pressed="true"] { background: var(--fg); color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.stats p { margin: 0; }
.stats strong {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}

.banner { border-radius: 1.25rem; padding: 1rem; }
.banner-clay { background: var(--clay); color: var(--ink); }
.banner-moss { background: var(--moss); color: var(--ink); }
.banner h2 { margin: 0.2rem 0; font-size: 1.5rem; }
.banner p { margin: 0.2rem 0 0; }

.filters, .chips { display: flex; gap: 0.5rem; overflow-x: auto; }

.search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border-radius: 999px;
  padding: 0 0.35rem 0 0.9rem;
  min-height: 3rem;
}
.search input { background: transparent; padding-left: 0; }

.top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}
.who { text-align: right; }
.who p { margin: 0; }
.link {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0;
  min-height: 2.75rem;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.bar {
  position: sticky;
  bottom: 0;
  padding: 0.75rem 0 max(0.75rem, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}

table { width: 100%; border-collapse: separate; border-spacing: 0 0.5rem; }
th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 0 0.6rem;
}
td { background: var(--surface); padding: 0.75rem 0.6rem; vertical-align: top; }
td:first-child { border-radius: 1rem 0 0 1rem; }
td:last-child { border-radius: 0 1rem 1rem 0; }

.only-phone { display: block; }
.only-desk { display: none; }

dialog {
  border: 0;
  padding: 1.1rem 1rem 1.2rem;
  width: min(32rem, calc(100% - 1.25rem));
  max-height: min(92dvh, 44rem);
  overflow: auto;
  background: var(--surface);
  color: var(--fg);
  border-radius: 1.25rem;
}
dialog::backdrop { background: color-mix(in srgb, var(--bg) 80%, transparent); }

.head-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.head-row h2 { margin: 0; font-size: 1.6rem; }

.samples article + article { border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); }

@media (min-width: 960px) {
  .only-phone { display: none; }
  .only-desk { display: block; }
  h1 { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  button:active:not(:disabled) { scale: 1; }
  .mic[aria-pressed="true"] { animation: none; }
}
