/* Thaam website. Brand: lime #c6f432, ink #121310, violet #6d5bff, cream #f3f3ee. Mobile first (360px). */
:root {
  --lime: #c6f432;
  --ink-brand: #121310;
  --violet: #6d5bff;
  --bg: #f3f3ee;
  --surface: #ffffff;
  --sunk: #e9eae2;
  --ink: #121310;
  --mute: #55574f;
  --line: #d9dbd0;
  --accent: #4f3ee0; /* violet darkened for text contrast on cream */
  --on-lime: #121310;
  --ok: #1f7a3a;
  --ok-bg: #dff3e3;
  --warn: #7a5a00;
  --warn-bg: #fbefc6;
  --bad: #a3271d;
  --bad-bg: #fbe0dc;
  --info: #3b2fb0;
  --info-bg: #e7e4ff;
  --radius: 16px;
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121310;
    --surface: #1c1d19;
    --sunk: #262722;
    --ink: #f3f3ee;
    --mute: #b3b5aa;
    --line: #34362f;
    --accent: #a99fff;
    --ok: #8fe0a3;
    --ok-bg: #173822;
    --warn: #f3d27a;
    --warn-bg: #3a300f;
    --bad: #ff9c90;
    --bad-bg: #3d1a16;
    --info: #c4bcff;
    --info-bg: #27224d;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    500 16px/1.55 "Manrope",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
.display {
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2rem, 8vw, 3.6rem);
}
h2 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
img,
svg {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}
.narrow {
  max-width: 560px;
}

/* Header and footer */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font:
    700 1.25rem "Space Grotesk",
    sans-serif;
  letter-spacing: 0.04em;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding: 24px 0 40px;
  color: var(--mute);
  font-size: 0.92rem;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 10px;
}
.site-foot a {
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  font:
    700 1rem "Manrope",
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  background: var(--ink);
  color: var(--bg);
  transition:
    transform 0.12s ease,
    opacity 0.12s ease;
}
.btn:hover {
  opacity: 0.9;
}
.btn:active {
  transform: scale(0.98);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-lime {
  background: var(--lime);
  color: var(--on-lime);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-small {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.92rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-row .btn {
  flex: 1 1 160px;
}

/* Cards and grids */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card + .card {
  margin-top: 16px;
}
.lime-card {
  background: var(--lime);
  color: var(--on-lime);
  border-radius: 20px;
  padding: 22px;
}
.lime-card .big {
  font:
    700 clamp(1.5rem, 6vw, 2rem)/1.15 "Space Grotesk",
    sans-serif;
  margin: 0 0 10px;
}
.code-chip {
  display: inline-block;
  font:
    700 1.1rem "Space Grotesk",
    monospace;
  letter-spacing: 0.08em;
  background: var(--ink-brand);
  color: var(--lime);
  padding: 6px 12px;
  border-radius: 10px;
}
.grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) {
  .tiles {
    grid-template-columns: repeat(4, 1fr);
  }
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.tile .num {
  font:
    700 1.7rem "Space Grotesk",
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.tile .lbl {
  color: var(--mute);
  font-size: 0.9rem;
}
.tile.hl {
  background: var(--lime);
  color: var(--on-lime);
  border-color: transparent;
}
.tile.hl .lbl {
  color: #3a3d30;
}

.muted {
  color: var(--mute);
}
.small {
  font-size: 0.9rem;
}
.eyebrow {
  font:
    700 0.8rem "Manrope",
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
section {
  padding: 40px 0 8px;
}

/* Home */
.hero {
  padding: 24px 0 32px;
}
.hero h1 {
  max-width: 15ch;
}
.hero .lead {
  font-size: 1.15rem;
  color: var(--mute);
  max-width: 36ch;
}
.hero-mark {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  margin-bottom: 20px;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 56px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--on-lime);
  font:
    700 1.1rem "Space Grotesk",
    sans-serif;
}
.feature h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--violet);
  margin-right: 10px;
  vertical-align: middle;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 32px;
}
details p {
  margin: 10px 0 0;
  color: var(--mute);
}

/* Creator page */
.creator-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 20px;
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  background: var(--violet);
  color: #fff;
  display: grid;
  place-items: center;
  font:
    700 2rem "Space Grotesk",
    sans-serif;
}
.quote {
  font:
    700 clamp(1.5rem, 6.5vw, 2.3rem)/1.2 "Space Grotesk",
    sans-serif;
  letter-spacing: -0.02em;
  margin: 8px 0 24px;
}
.quote::before {
  content: "\201C";
  color: var(--violet);
}
.quote::after {
  content: "\201D";
  color: var(--violet);
}
.disclosure {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

/* Forms */
form .field {
  margin-bottom: 14px;
}
label,
.label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.hint {
  color: var(--mute);
  font-size: 0.88rem;
  margin-top: 4px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font:
    500 1rem "Manrope",
    sans-serif;
}
textarea {
  min-height: 88px;
  resize: vertical;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--accent);
}
.phone-row {
  display: flex;
  align-items: stretch;
}
.phone-row .prefix {
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: var(--sunk);
  font-weight: 700;
}
.phone-row input {
  border-radius: 0 12px 12px 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
}
legend {
  font-weight: 700;
  margin-bottom: 6px;
  padding: 0;
}
.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 18px;
  min-height: 40px;
  font-weight: 600;
}
.choice input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  accent-color: var(--violet);
}
.form-grid {
  display: grid;
  gap: 0 14px;
}
@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid .full {
    grid-column: 1 / -1;
  }
}

.msg {
  border-radius: 12px;
  padding: 10px 14px;
  margin: 12px 0;
  font-weight: 600;
}
.msg[data-kind="error"] {
  background: var(--bad-bg);
  color: var(--bad);
}
.msg[data-kind="ok"] {
  background: var(--ok-bg);
  color: var(--ok);
}
.msg[data-kind="info"] {
  background: var(--info-bg);
  color: var(--info);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mute);
}
td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.pill-pending {
  background: var(--warn-bg);
  color: var(--warn);
}
.pill-approved {
  background: var(--info-bg);
  color: var(--info);
}
.pill-paid {
  background: var(--ok-bg);
  color: var(--ok);
}
.pill-reversed {
  background: var(--bad-bg);
  color: var(--bad);
}
.pill-none {
  background: var(--sunk);
  color: var(--mute);
}

/* Funnel */
.funnel {
  list-style: none;
  padding: 0;
  margin: 0;
}
.funnel li {
  margin-bottom: 12px;
}
.funnel .row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 4px;
}
.funnel .bar {
  height: 14px;
  border-radius: 7px;
  background: var(--sunk);
  overflow: hidden;
}
.funnel .bar span {
  display: block;
  height: 100%;
  background: var(--violet);
  border-radius: 7px;
  min-width: 4px;
}
.funnel li:first-child .bar span {
  background: var(--lime);
}

.link-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.link-box code {
  flex: 1 1 200px;
  word-break: break-all;
  background: var(--sunk);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.section-head h2 {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* "Get Thaam": one tile per platform. */
.platforms {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.platforms .tile {
  display: grid;
  gap: 6px;
  align-content: start;
}
.platforms h3 {
  margin: 4px 0 0;
}
.platforms p {
  margin: 0;
}
.platforms .pill {
  justify-self: start;
}
