/* unLTD. Studio app family: shared look. Charcoal on desktop, teal on phones (as the Studio app), with a switch. */
@font-face { font-family: Poppins; font-weight: 200; font-display: swap; src: url(./assets/fonts/poppins-200.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 300; font-display: swap; src: url(./assets/fonts/poppins-300.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(./assets/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(./assets/fonts/poppins-500.woff2) format("woff2"); }

:root {
  --bg: linear-gradient(145deg, #212029, #2c2b36 58%, #333141);
  --bg-solid: #212029;
  --bar: rgba(27, 26, 34, .82);
  --card: rgba(22, 21, 29, .5);
  --card-line: rgba(255, 255, 255, .3);
  --inset: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .48);
  --line-soft: rgba(255, 255, 255, .16);
  --field: rgba(0, 0, 0, .18);
  --btn: rgba(255, 255, 255, .08);
  --btn-hover: rgba(255, 255, 255, .16);
  --ink: #fff;
  --muted: rgba(255, 255, 255, .74);
  --faint: rgba(255, 255, 255, .58);
  --on-white: #212029;
  --warn: #ffd9cf;
  --pop: #2c2b36;
  --r-card: 1.15rem;
  --r-field: .7rem;
  --tab-h: 4.1rem;
  --pad: clamp(1rem, 4vw, 2.1rem);
  color-scheme: dark;
}
html[data-theme="teal"] {
  --bg: linear-gradient(152deg, #2f788d, #3b9aaa 56%, #73cfd0);
  --bg-solid: #2f788d;
  --bar: rgba(13, 62, 74, .86);
  --card: rgba(6, 48, 58, .56);
  --card-line: rgba(255, 255, 255, .36);
  --inset: rgba(255, 255, 255, .08);
  --field: rgba(0, 30, 38, .3);
  --muted: rgba(255, 255, 255, .84);
  --faint: rgba(255, 255, 255, .7);
  --on-white: #0b4f5c;
  --pop: #1c5f6d;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--ink); background: var(--bg-solid);
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif; font-weight: 300; font-size: .95rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.backdrop { position: fixed; inset: 0; z-index: -1; background: var(--bg); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: .5rem; background: #fff; color: var(--on-white); padding: .7rem 1rem; border-radius: 99px; z-index: 300; }
.skip:focus { left: .5rem; }
.nt { text-transform: none !important; letter-spacing: 0; }
.nt b { font-weight: 500; }
.num { font-variant-numeric: tabular-nums; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1rem;
  padding: .6rem var(--pad); padding-top: calc(.6rem + env(safe-area-inset-top));
  background: var(--bar); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: .8rem; background: none; border: 0; padding: 0; min-height: 2.75rem; text-align: left; }
.brand img { height: 3rem; width: auto; display: block; }
.brand-label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding-left: .8rem; border-left: 1px solid var(--line-soft); line-height: 1.3; }
.top-nav { display: none; margin-left: auto; gap: .35rem; }
.top-nav button { background: none; border: 1px solid transparent; border-radius: 99px; padding: .5rem 1rem; font-size: .8rem; font-weight: 400; color: var(--muted); min-height: 2.75rem; }
.top-nav button:hover { color: #fff; background: var(--btn); }
.top-nav button[aria-current="page"] { color: #fff; border-color: var(--line); background: var(--btn); }
.theme-btn { margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; background: var(--btn); border: 1px solid var(--line-soft); border-radius: 99px; padding: .4rem .8rem; font-size: .72rem; font-weight: 400; min-height: 2.75rem; min-width: 2.75rem; justify-content: center; color: var(--muted); }
.theme-btn:hover { color: #fff; border-color: var(--line); }
.theme-btn i { width: .8rem; height: .8rem; border-radius: 50%; border: 1px solid #ffffffb0; background: linear-gradient(135deg, #2f788d, #73cfd0); }
html[data-theme="teal"] .theme-btn i { background: linear-gradient(135deg, #212029, #464355); }

/* Tab bar (phones) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--bar); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar button { background: none; border: 0; display: grid; justify-items: center; gap: .15rem; padding: .55rem .25rem .5rem; min-height: var(--tab-h); font-size: .66rem; letter-spacing: .06em; color: var(--faint); font-weight: 400; }
.tabbar svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button[aria-current="page"] { color: #fff; }
.tabbar button[aria-current="page"] span { border-bottom: 1px solid #fff; }

/* Page */
main { width: min(100%, 72rem); margin: 0 auto; padding: 1.25rem var(--pad) calc(var(--tab-h) + 6.5rem + env(safe-area-inset-bottom)); outline: none; }
.page-head { margin: .4rem 0 1.1rem; }
.eyebrow { margin: 0 0 .3rem; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
h1, .display { margin: 0; font-weight: 200; font-size: clamp(2rem, 7.4vw, 3.5rem); line-height: 1.08; letter-spacing: -.01em; }
h2 { margin: 0 0 .2rem; font-weight: 300; font-size: 1.3rem; line-height: 1.25; }
h3 { margin: 0; font-weight: 400; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
p { margin: 0 0 .75rem; }
.lead { color: var(--muted); max-width: 44rem; margin-top: .5rem; }
.small { font-size: .82rem; color: var(--muted); }
.muted { color: var(--muted); }
a { color: #fff; }

.card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-card); padding: clamp(1.1rem, 3.6vw, 1.75rem); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card + .card { margin-top: 1rem; }
.layout > .card { margin-top: 0; }
.stack { display: grid; gap: 1.15rem; }
.stack-s { display: grid; gap: .6rem; }
.inset { background: var(--inset); border: 1px solid var(--line-soft); border-radius: .9rem; padding: 1rem; }
.rule { border: 0; border-top: 1px solid var(--line-soft); margin: .2rem 0; }

.layout { display: grid; gap: 1rem; align-items: start; }

/* Fields */
.field { display: grid; gap: .4rem; min-width: 0; }
.field > label, .label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.hint { font-size: .78rem; color: var(--faint); margin: 0; }
input[type="text"], input[type="number"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; min-width: 0; min-height: 2.9rem; padding: .6rem .85rem; font-size: 1rem; font-weight: 300;
  background: var(--field); border: 1px solid var(--line); border-radius: var(--r-field); color: #fff; appearance: none; -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, .45); }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
select { padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='white' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; background-size: .7rem; }
select option { color: #111; background: #fff; }
textarea { min-height: 5rem; resize: vertical; }
.affix { position: relative; display: block; }
.affix > span { position: absolute; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: .9rem; pointer-events: none; }
.affix.pre > span { left: .85rem; }
.affix.pre > input { padding-left: 1.75rem; }
.affix.suf > span { right: .85rem; }
.affix.suf > input { padding-right: 3.4rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }

/* Chips: one choice from a few */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { background: var(--btn); border: 1px solid var(--line-soft); border-radius: 99px; padding: .5rem 1rem; min-height: 2.75rem; font-size: .84rem; font-weight: 400; color: var(--muted); text-align: left; line-height: 1.2; }
.chip small { display: block; font-size: .68rem; font-weight: 300; color: var(--faint); }
.chip:hover { border-color: var(--line); color: #fff; }
.chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--on-white); font-weight: 500; }
.chip[aria-pressed="true"] small { color: var(--on-white); opacity: .75; }

/* Stepper */
.stepper { display: grid; grid-template-columns: 2.9rem minmax(0, 1fr) 2.9rem; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--field); overflow: hidden; }
.stepper button { background: var(--btn); border: 0; font-size: 1.3rem; font-weight: 300; line-height: 1; min-height: 2.9rem; }
.stepper button:hover { background: var(--btn-hover); }
.stepper input { border: 0; border-radius: 0; background: none; text-align: center; padding: .4rem .2rem; font-weight: 400; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem; padding: .6rem 1.4rem; border-radius: 99px; border: 1px solid var(--line); background: var(--btn); color: #fff; font-size: .84rem; font-weight: 500; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--btn-hover); }
.btn.primary { background: #fff; border-color: #fff; color: var(--on-white); }
.btn.primary:hover { background: rgba(255, 255, 255, .88); }
.btn.quiet { border-color: transparent; background: none; color: var(--muted); padding-inline: .8rem; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.btn.quiet:hover { color: #fff; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn-row.fill > * { flex: 1 1 8rem; }
.icon-btn { background: var(--btn); border: 1px solid var(--line-soft); border-radius: 99px; width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; flex: none; }
.icon-btn:hover { border-color: var(--line); }
.icon-btn svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

/* Wizard */
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .35rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.steps li { min-width: 0; }
.steps button { width: 100%; background: none; border: 0; padding: .35rem 0 0; text-align: left; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 400; border-top: 2px solid var(--line-soft); min-height: 2.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps button[aria-current="step"] { color: #fff; border-top-color: #fff; }
.steps button.done { color: var(--muted); border-top-color: rgba(255, 255, 255, .6); }
.foot {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 55;
  display: flex; align-items: center; gap: .7rem; padding: .65rem var(--pad);
  background: var(--bar); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-soft);
}
.foot-total { margin-right: auto; min-width: 0; line-height: 1.2; }
.foot-total b { display: block; font-weight: 300; font-size: 1.25rem; }
.foot-total span { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.foot .btn { padding-inline: 1.15rem; }

/* Figures */
.figure { display: grid; gap: .1rem; }
.figure b { font-weight: 200; font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1.05; letter-spacing: -.01em; }
.figure span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rows { margin: 0; display: grid; }
.rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); }
.rows > div:last-child { border-bottom: 0; }
.rows dt { color: var(--muted); min-width: 0; }
.rows dt small { display: block; font-size: .76rem; color: var(--faint); }
.rows dd { margin: 0; text-align: right; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rows .total dt, .rows .total dd { font-size: 1.15rem; color: #fff; font-weight: 400; }
.tag { display: inline-block; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-soft); border-radius: 99px; padding: .12rem .55rem; color: var(--muted); font-weight: 400; white-space: nowrap; }
.alert { border: 1px solid rgba(255, 217, 207, .55); background: rgba(255, 217, 207, .09); color: var(--warn); border-radius: .8rem; padding: .7rem .9rem; font-size: .84rem; margin: 0; }
.note { font-size: .76rem; color: var(--faint); margin: 0; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.item { display: flex; align-items: center; gap: .8rem; background: var(--inset); border: 1px solid var(--line-soft); border-radius: .9rem; padding: .8rem .9rem; }
.item-main { flex: 1; min-width: 0; background: none; border: 0; padding: 0; text-align: left; display: grid; gap: .1rem; min-height: 2.75rem; }
.item-main b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-main span { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.item-end { text-align: right; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 2.2rem 1rem; display: grid; gap: .8rem; justify-items: center; }
.empty img { width: min(13rem, 60%); opacity: .9; }

/* Dialog and toast */
.dialog { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 1.1rem; background: rgba(0, 0, 0, .55); overflow: auto; }
.dialog-card { width: min(30rem, 100%); background: var(--pop); border: 1px solid var(--card-line); border-radius: var(--r-card); padding: 1.4rem; display: grid; gap: .9rem; max-height: calc(100dvh - 2.2rem); overflow: auto; }
.dialog-card img.out { width: 100%; height: auto; border-radius: .6rem; border: 1px solid var(--line-soft); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 5.4rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 160; background: #fff; color: var(--on-white); font-weight: 500; font-size: .84rem; padding: .6rem 1.1rem; border-radius: 99px; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); max-width: calc(100vw - 2rem); text-align: center; }

/* Buyer unlock */
html.locked body > *:not(.gate) { visibility: hidden; }
.gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.25rem; background: var(--bg); overflow: auto; }
.gate-card { width: min(27rem, 100%); background: var(--card); border: 1px solid var(--card-line); border-radius: 1.25rem; padding: 1.75rem; display: grid; gap: .7rem; }
.gate-sig { width: 13rem; margin: 0 auto .4rem; }
.gate-eyebrow { margin: 0; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.gate h1 { font-size: 2.4rem; }
.gate-sub { margin: 0 0 .4rem; color: var(--muted); font-size: .9rem; }
.gate label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gate-msg { min-height: 1.2em; margin: 0; font-size: .84rem; color: var(--warn); }
.gate-buy { text-align: center; font-size: .84rem; margin-top: .2rem; }

@media (max-width: 420px) {
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand img { height: 2.75rem; }
  .brand-label { letter-spacing: .14em; }
  .theme-btn span { display: none; }
}
@media (min-width: 860px) {
  .tabbar { display: none; }
  .top-nav { display: flex; }
  .theme-btn { margin-left: .4rem; }
  .brand img { height: 3.4rem; }
  main { padding-top: 2rem; padding-bottom: 7rem; }
  .foot { bottom: 0; padding-inline: max(var(--pad), calc((100vw - 72rem) / 2 + var(--pad))); }
  .toast { bottom: 5.5rem; }
  .layout.two { grid-template-columns: minmax(0, 1fr) 21.5rem; gap: 1.25rem; }
  .layout.two > aside { position: sticky; top: 5.2rem; }
  .only-phone { display: none !important; }
}
@media (max-width: 859px) { .only-desk { display: none !important; } }
@media (prefers-reduced-motion: no-preference) {
  .btn, .chip, .top-nav button, .stepper button { transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
}
@media print {
  .top, .tabbar, .foot, .steps, .no-print { display: none !important; }
  body, .backdrop { background: #fff !important; color: #111; }
}
