/* ── Tokens ── */
:root {
  --bg:        #0c0c14;
  --bg2:       #16161c;
  --bg3:       #1e1e26;
  --border:    #2a2a38;
  --fg:        #e8e8f0;
  --fg-muted:  #8888a8;
  --brand:     #8B00FF;  /* Do♯ — buttons, nav CTA, highlights */
  --brand-2:   #4169E1;  /* Fa♯ — hover, borders, focus rings */
  --link:      #6f8ff0;  /* lighter Fa♯ tint for text links on dark bg */

  /* Note palette — synesthesia colour map (permanent) */
  --do:      #FF1500;
  --do-sh:   #8B00FF;
  --re:      #FFE600;
  --re-sh:   #E3B38F;
  --mi:      #87CEEB;
  --fa:      #8B0000;
  --fa-sh:   #4169E1;
  --sol:     #FF8C00;
  --sol-sh:  #B9A0D8;
  --la:      #228B22;
  --la-sh:   #D9859E;
  --si:      #4682B4;

  color-scheme: dark;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 72px; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,12,20,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #fff;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}
.logo img { height: 44px; width: auto; display: block; }

/* App links collapse into an "Apps" menu on narrow screens, using a
   hidden checkbox + label (not <details>: Chrome hides closed-details
   content with an internal mechanism plain CSS display can't override).
   On wide screens the toggle/label are hidden and the list is always shown. */
.nav-apps { position: relative; }
.nav-apps-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-apps-summary { display: none; }

.nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
}
.nav-links a {
  display: block;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }

.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: 4px;
  transition: background 0.15s;
}
.nav-cta:hover, .nav-cta[aria-current="page"] { background: var(--brand-2); }

@media all { /* Products menu at every width: the product list keeps growing */
  .nav-apps-summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: var(--fg);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    list-style: none;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
  }
  .nav-apps-summary:hover { border-color: var(--brand-2); }
  .nav-apps-caret { font-size: 0.65rem; display: inline-block; transition: transform 0.15s; }
  .nav-apps-toggle:checked ~ .nav-apps-summary .nav-apps-caret { transform: rotate(180deg); }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    flex-direction: column;
    gap: 2px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    min-width: 180px;
    z-index: 200;
  }
  .nav-apps-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a { padding: 7px 8px; }
}

@media (max-width: 480px) {
  .nav-inner { gap: 10px; }
  .logo span { display: none; }
  .logo img { height: 36px; }
  .nav-cta { padding: 8px 12px; font-size: 0.68rem; letter-spacing: 0.01em; }
}

/* ── Hero ── */
.hero {
  padding: 100px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-logo {
  display: block;
  width: min(220px, 60vw);
  height: auto;
  margin-bottom: 32px;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-bottom: 24px;
  max-width: 16ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--fg-muted);
}
.hero-sub {
  color: var(--fg-muted);
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--brand-2); color: var(--fg); }


/* ── Section ── */
section { padding: 80px 0; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 48px;
  text-wrap: balance;
}

/* ── Products grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s;
  text-decoration: none;
  color: inherit;
}
.product-card { position: relative; }
.product-card:hover, .product-card:focus-within { border-color: var(--brand-2); }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.product-card:focus-within { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-icon {
  --c: var(--brand);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, var(--bg2));
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--c) 18%, transparent);
}

/* Drawn app icons: a small move when the card is hovered */
.app-glyph .g { transform-box: fill-box; transform-origin: 50% 100%; }
.product-card:hover .app-glyph .g,
.app-page .app-glyph .g { animation: glyph-bounce 1.2s ease-in-out infinite; }
.app-glyph .g2 { animation-delay: 0.12s !important; }
.app-glyph .g3 { animation-delay: 0.24s !important; }
.app-glyph .g4 { animation-delay: 0.36s !important; }
.app-glyph .g5 { animation-delay: 0.48s !important; }
.app-glyph .g6 { animation-delay: 0.6s !important; }
.product-card:hover .app-glyph .g-draw,
.app-page .app-glyph .g-draw { animation: glyph-dash 1.2s linear infinite; }
@keyframes glyph-bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-2px) scaleY(1.06); } }
@keyframes glyph-dash { to { stroke-dashoffset: -12; } }
@media (prefers-reduced-motion: reduce) {
  .app-glyph .g, .app-glyph .g-draw { animation: none !important; }
}

/* App cards in the grid: centred, colour line lined up at the bottom */
.products-grid .product-card:not(.card-osdaw) { align-items: center; text-align: center; }
.products-grid .product-card:not(.card-osdaw) .card-top { flex-direction: column; align-items: center; gap: 12px; }
.products-grid .product-card:not(.card-osdaw) .card-note-bar { align-self: stretch; margin-top: auto; }
.badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-live    { background: #0c2a1a; color: #2ecc71; }
.badge-beta    { background: #1a1a0a; color: #f1c40f; }
.badge-soon    { background: #1a0a1a; color: #9b59b6; }
.badge-dev     { background: #0a1a2a; color: #3498db; }

.card-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card-platform {
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-weight: 500;
}
.card-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.5;
  flex: 1;
}
.card-note-bar {
  height: 2px;
  border-radius: 1px;
  margin-top: 4px;
}
.card-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
}

/* Amatone card — spans full width on large screens */
.card-osdaw {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.card-osdaw .card-content { display: flex; flex-direction: column; gap: 14px; }
.card-osdaw .card-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tier-pill {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}
.tier-pill .tier-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.tier-pill .tier-price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
}
.tier-pill.tier-key { border-color: var(--brand-2); }

/* ── Mix Analyzer feature strip ── */
.features-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.feature-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.feature-chip::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}
.stat-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 500;
}
.note-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

/* ── Enrol / Contact ── */
.enrol-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.enrol-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 24px;
}
.enrol-inner .section-title { margin-bottom: 12px; }
.enrol-sub {
  color: var(--fg-muted);
  margin-bottom: 36px;
  font-size: 0.95rem;
}
.enrol-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.enrol-form input {
  flex: 1;
  min-width: 220px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--fg);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.enrol-form input:focus, .enrol-form select:focus { border-color: var(--brand-2); }
.enrol-form input::placeholder { color: var(--fg-muted); }
.enrol-form select {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--fg);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  min-height: 1.4em;
}
.form-status.ok  { color: #2ecc71; }
.form-status.err { color: var(--fg); }
.privacy-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* ── Footer ── */
footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.82rem; color: var(--fg-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.82rem; color: var(--link); text-decoration: none; }
.footer-links a:hover { color: var(--fg); text-decoration: underline; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); }

/* ── Responsive ── */
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-osdaw { grid-template-columns: 1fr; }
  .card-osdaw .card-right { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 24px 60px; }
}
@media (max-width: 480px) {
  .card-osdaw .card-right { grid-template-columns: 1fr 1fr; }
  .enrol-form { flex-direction: column; }
  .enrol-form input, .enrol-form select { min-width: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ── App pages ── */
.app-page { max-width: 760px; margin: 0 auto; padding: 80px 24px 64px; }
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.app-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.app-page .card-platform { font-size: 0.9rem; margin-bottom: 20px; }
.app-page .card-note-bar { height: 3px; max-width: 220px; margin: 0 0 28px; }
.app-desc { color: var(--fg-muted); font-size: 1.1rem; line-height: 1.7; max-width: 60ch; margin-bottom: 32px; }
.text-link { color: var(--link); font-size: 0.9rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.shots img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); }

/* ── Testers page ── */
.testers-page { max-width: 720px; margin: 0 auto; padding: 80px 24px 100px; }
.testers-intro { color: var(--fg-muted); font-size: 1rem; line-height: 1.6; max-width: 60ch; margin-bottom: 44px; }
.t-form { display: flex; flex-direction: column; gap: 28px; }
.t-field { display: flex; flex-direction: column; gap: 8px; }
.t-label { font-size: 0.85rem; font-weight: 600; color: var(--fg); }
.t-hint { font-size: 0.78rem; color: var(--fg-muted); margin-top: -4px; }
.t-required { color: var(--brand-2); }
fieldset.t-field { border: none; padding: 0; margin: 0; }
.t-field input[type="text"],
.t-field input[type="email"],
.t-field input[type="url"] {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--fg);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.t-field input:focus { border-color: var(--brand-2); }
.t-field input::placeholder { color: var(--fg-muted); }
.t-check-grid, .t-radio-grid { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.t-check, .t-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--fg-muted);
  cursor: pointer;
}
.t-check input, .t-radio input { accent-color: var(--brand); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
.t-waitlist { font-size: 0.75rem; color: var(--fg-muted); font-weight: 500; }
.t-other-inline { display: inline-flex; align-items: center; gap: 8px; }
.t-other-inline input[type="text"] {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  color: var(--fg);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  width: 160px;
}
.t-section {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.t-section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.t-sub-field { margin-left: 2px; padding-left: 16px; border-left: 2px solid var(--border); }
.t-top-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--fg-muted); cursor: pointer; line-height: 1.5; }
.t-top-check input { accent-color: var(--brand); width: 16px; height: 16px; margin-top: 3px; cursor: pointer; flex-shrink: 0; }
.t-submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.t-submit-row button { border: none; cursor: pointer; }

@media (max-width: 480px) {
  .t-section { padding: 20px; }
}

/* Same look as the top-right "Become a tester" button */
.btn-solid {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: 4px;
  transition: background 0.15s;
}
.btn-solid:hover { background: var(--brand-2); }

/* Every button on the site shares the top-right button's look */
.btn-primary, .btn-ghost, .btn-solid, button.btn-primary {
  display: inline-block;
  min-height: 0;
  background: var(--brand);
  color: #fff;
  border: 0;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover, .btn-ghost:hover, .btn-solid:hover { background: var(--brand-2); color: #fff; }
.enrol-form .btn-primary { padding: 12px 18px; }
