/* mixtape99.com — one stylesheet for every page, in both directions.
   Logical properties (inline-start/end) so Hebrew mirrors on its own.
   Colours are the app's own (src/ui/tokens.ts). */

:root {
  --bg: #0b0d12;
  --panel: #121620;
  --card: #161b26;
  --line: #232a39;
  --line-strong: #2f3a4d;
  --text: #e8ecf4;
  --text-2: #9aa6bd;
  --muted: #64708a;
  --accent: #6366f1;
  --accent-bright: #818cf8;
  --gradient: linear-gradient(135deg, #22d3ee 0%, #6366f1 50%, #c084fc 100%);
  --radius: 14px;
  --font: 'Inter', 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

:lang(he) {
  --font: 'Heebo', 'Inter', system-ui, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

:lang(he) :is(h1, h2, h3) {
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100% - 32px);
}

.center {
  text-align: center;
}

.muted {
  color: var(--text-2);
}

.small {
  font-size: 0.85rem;
}

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  background: var(--gradient);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 30px -8px rgba(99, 102, 241, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px -8px rgba(99, 102, 241, 0.85);
}

.btn:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--panel);
  box-shadow: none;
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}

/* --- header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 18, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand img {
  height: 30px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 26px;
  margin-inline-end: auto;
}

.main-nav a,
.lang-switch {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover,
.lang-switch:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* --- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 72px 0 88px;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -200px 0 auto;
  height: 760px;
  background:
    radial-gradient(600px 360px at 78% 38%, rgba(99, 102, 241, 0.32), transparent 70%),
    radial-gradient(420px 300px at 18% 20%, rgba(34, 211, 238, 0.16), transparent 70%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(18, 22, 32, 0.7);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  background: linear-gradient(180deg, #ffffff 30%, #c7cdf9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-art {
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.55), rgba(99, 102, 241, 0.25) 40%, rgba(192, 132, 252, 0.55));
  box-shadow:
    0 40px 120px -30px rgba(99, 102, 241, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* The app is left to right in both languages, so its picture is too. */
.timeline-art {
  direction: ltr;
  border-radius: 15px;
  width: 100%;
  height: auto;
}

/* --- sections ----------------------------------------------------------- */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--panel);
  border-block: 1px solid var(--line);
}

.page-top {
  padding-top: 64px;
}

.section h2 {
  text-align: center;
}

.page-top h1,
.page-top h2.card-title {
  text-align: start;
}

.section-lead {
  text-align: center;
  color: var(--text-2);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

/* --- features ----------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  background: linear-gradient(180deg, var(--card), rgba(22, 27, 38, 0.4));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.feature p {
  color: var(--text-2);
  font-size: 0.95rem;
  margin: 0;
}

.icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.14);
  fill: none;
  stroke: var(--accent-bright);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- gallery ------------------------------------------------------------ */

.gallery {
  display: grid;
  gap: 40px;
}

.gallery img {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  width: 100%;
  height: auto;
}

.gallery figcaption {
  text-align: center;
  color: var(--text-2);
  margin-top: 12px;
}

/* --- steps -------------------------------------------------------------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.steps li {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.steps p {
  color: var(--text-2);
  margin: 0;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  font-weight: 800;
  margin-bottom: 16px;
}

/* --- beta --------------------------------------------------------------- */

.beta-card {
  text-align: center;
  padding: 56px 32px;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(99, 102, 241, 0.28), transparent 70%),
    var(--panel);
}

.beta-card p {
  color: var(--text-2);
  max-width: 36em;
  margin: 0 auto 28px;
  font-size: 1.1rem;
}

/* --- faq ---------------------------------------------------------------- */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  color: var(--accent-bright);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  color: var(--text-2);
  margin: 12px 0 0;
}

/* --- cards and lists ---------------------------------------------------- */

.card {
  margin: 32px 0 48px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--panel);
}

.card-title {
  font-size: 1.25rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.checklist li {
  padding-inline-start: 30px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text-2);
}

.checklist li::before {
  content: '';
  position: absolute;
  inset-inline-start: 2px;
  top: 0.5em;
  width: 14px;
  height: 7px;
  border-left: 2px solid #4ade80;
  border-bottom: 2px solid #4ade80;
  transform: rotate(-45deg);
}

.plain-steps {
  color: var(--text-2);
  padding-inline-start: 1.3em;
}

.plain-steps li {
  margin-bottom: 8px;
}

/* --- footer ------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer img {
  height: 25px;
  width: auto;
  margin-bottom: 8px;
}

.site-footer p {
  margin: 0;
}

/* --- smaller screens ---------------------------------------------------- */

@media (max-width: 1040px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .main-nav {
    display: none;
  }

  .header-row {
    gap: 12px;
    justify-content: space-between;
  }

  .header-actions {
    gap: 12px;
  }

  .hero {
    padding: 44px 0 56px;
  }

  .section {
    padding: 64px 0;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .feature {
    transition: none;
  }
}

/* --- sign in, account, admin -------------------------------------------- */

.auth-box {
  width: min(460px, 100% - 32px);
}

.auth-box h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
}

.stack {
  display: grid;
  gap: 10px;
}

.stack label {
  font-weight: 600;
  font-size: 0.95rem;
}

input[type='email'] {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

input[type='email']:focus {
  outline: 2px solid var(--accent-bright);
  outline-offset: 1px;
  border-color: transparent;
}

.stack .btn {
  margin-top: 6px;
}

.btn-google {
  width: 100%;
  background: #ffffff;
  color: #1f2430;
  box-shadow: none;
}

.btn-google:hover {
  box-shadow: 0 6px 20px -8px rgba(255, 255, 255, 0.35);
}

.google-mark {
  width: 20px;
  height: 20px;
}

.or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.or::before,
.or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.notice {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text-2);
}

.notice-error {
  border-color: #7f1d1d;
  background: rgba(185, 28, 28, 0.18);
  color: #fecaca;
}

.status-card {
  position: relative;
  padding-inline-start: 52px;
}

.status-dot {
  position: absolute;
  inset-inline-start: 24px;
  top: 36px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.status-pending {
  background: #fbbf24;
  box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.15);
}

.status-approved {
  background: #4ade80;
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.15);
}

.status-rejected {
  background: #f87171;
  box-shadow: 0 0 0 5px rgba(248, 113, 113, 0.15);
}

/* Two-step sign-in */
.account-security {
  margin-top: 18px;
}
.qr {
  display: block;
  width: 200px;
  height: 200px;
  margin: 12px 0;
  background: #fff;
  border-radius: 8px;
}
.totp-key,
.backup-codes {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.06em;
}
.backup-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 12em));
  gap: 6px 24px;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
  direction: ltr;
}
.code-input {
  max-width: 14em;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  text-align: center;
}

.signout {
  margin-top: 40px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.people {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.people th,
.people td {
  padding: 12px 16px;
  text-align: start;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.people th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--panel);
}

.people tr:last-child td {
  border-bottom: 0;
}

.email-cell {
  text-align: start;
  font-weight: 600;
}

/* Admin: tabs, search, filters, a person's page */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 20px;
}
.admin-tabs .current {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.admin-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-search input[type='search'] {
  min-width: 16em;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}
.filters a {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
}
.filters a.current {
  border-color: currentColor;
  font-weight: 700;
}
.pill-blocked {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}
.pill-admin,
.pill-twostep {
  background: rgba(129, 140, 248, 0.16);
  color: #c7d2fe;
  margin-inline-start: 6px;
}
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 16px 0 24px;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 28px;
}
.admin-actions form {
  margin: 0;
}
.btn-danger {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pill-pending {
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
}

.pill-approved {
  background: rgba(74, 222, 128, 0.14);
  color: #4ade80;
}

.pill-rejected {
  background: rgba(248, 113, 113, 0.14);
  color: #f87171;
}

.notice-warning {
  border-color: #854d0e;
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
  margin-bottom: 20px;
}

/* --- marketing additions: tagline, effects section, positioning ---------- */

.hero-tagline {
  margin: 18px 0 0;
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
  margin-inline: auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 56px;
}

.section h2.split-title {
  text-align: start;
}

.bank-art {
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: 18px;
  box-shadow: 0 40px 110px -40px rgba(74, 222, 128, 0.35);
  font-family: 'Inter', system-ui, sans-serif;
}

.bank-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bank-title {
  font-weight: 700;
}

.bank-new {
  color: var(--accent-bright);
  font-size: 0.85rem;
  font-weight: 600;
}

.bank-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.bank-tab {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  font-size: 0.8rem;
}

.bank-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.bank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.tone-intro {
  --tone: #4ade80;
}

.tone-mine {
  --tone: #c084fc;
}

.bank-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tone) 8%, var(--card));
  border-inline-start: 3px solid var(--tone);
}

.bank-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.bank-list svg {
  width: 96px;
  height: 26px;
  flex: none;
  fill: none;
  stroke: var(--tone);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1040px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 760px) {
  .points {
    grid-template-columns: 1fr;
  }
}

/* --- activation ---------------------------------------------------------- */

.mono {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
}

.activation-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  margin: 24px 0;
}

.activation-facts dt {
  color: var(--text-2);
}

.activation-facts dd {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: end;
}

.code-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  font: 700 1.3rem ui-monospace, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.plain-list {
  margin: 8px 0 24px;
  padding-inline-start: 18px;
}
