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

:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-elevated: #101215;
  --surface: #16181d;
  --surface-2: #1c1f26;
  --ink: #f4f1ea;
  --muted: #9a968c;
  --faint: #6d6a63;
  --line: rgba(244, 241, 234, 0.1);
  --line-strong: rgba(244, 241, 234, 0.18);
  --silver: #d8d4c8;
  --silver-soft: rgba(216, 212, 200, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --wrap: 1160px;
  --header-h: 68px;
  --accent: var(--silver);
  --accent-ink: #0b0c0e;
  --product: #d8d4c8;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(216, 212, 200, 0.08), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--silver);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.78);
  backdrop-filter: blur(22px) saturate(1.2);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.nav-brand:hover {
  color: #fff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a,
.nav-drop > summary {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
}

.nav-links a:hover,
.nav-drop > summary:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.nav-drop {
  position: relative;
}

.nav-drop > summary::-webkit-details-marker {
  display: none;
}

.nav-drop-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #14161b;
  box-shadow: var(--shadow);
}

.nav-drop-panel a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
}

.nav-drop-panel a small {
  color: var(--faint);
  font-weight: 400;
}

.nav-drop-panel a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--silver);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
.display {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.lead {
  margin: 18px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.button {
  background: var(--ink);
  color: var(--accent-ink);
}

.button:hover {
  background: #fff;
  color: var(--accent-ink);
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.button.secondary:hover {
  border-color: var(--silver);
  color: #fff;
}

.app-store-button {
  background: #fff;
  color: #0a0a0a;
}

.app-store-button:hover {
  background: var(--silver);
  color: #0a0a0a;
  text-decoration: none;
}

.app-store-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.app-store-button .as-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.app-store-button .as-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

.app-store-button .as-main {
  font-size: 15px;
}

.meta-line {
  margin-top: 16px;
  color: var(--faint);
  font-size: 13px;
}

/* Homepage */
.studio-hero {
  padding: 96px 0 72px;
  text-align: center;
}

.studio-hero .lead {
  margin-left: auto;
  margin-right: auto;
}

.studio-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
}

.app-band {
  padding: 28px 0 72px;
}

.home-lead {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 40px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%),
    var(--bg-elevated);
}

.home-lead h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.home-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-elevated);
}

.home-card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 8px;
}

.home-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.home-card .shot-mac,
.home-card .shot-phone {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: top;
  margin: 0 0 16px;
}

.home-card .shot-phone {
  width: min(160px, 100%);
  max-height: none;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.home-catalog-link {
  margin: 28px 0 0;
  text-align: center;
}

.home-catalog-link a {
  color: var(--muted);
  font-weight: 600;
}

.app-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 36px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%),
    var(--bg-elevated);
}

.app-showcase:nth-child(even) {
  grid-template-columns: 0.95fr 1.05fr;
}

.app-showcase:nth-child(even) .showcase-copy {
  order: 1;
}

.app-showcase:nth-child(even) .showcase-media {
  order: 2;
}

.showcase-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.showcase-kicker img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.showcase-copy h2 {
  font-size: clamp(34px, 4vw, 52px);
}

.showcase-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 460px;
}

.showcase-media {
  min-width: 0;
}

.shot-mac {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}

.shot-phone {
  width: min(240px, 100%);
  margin: 0 auto;
  border-radius: 28px;
  border: 8px solid #1a1c20;
  box-shadow: var(--shadow);
  background: #000;
}

.principles {
  padding: 24px 0 96px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.principle {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.cta-band {
  padding: 0 0 96px;
}

.cta-panel {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(216, 212, 200, 0.08), transparent);
}

.cta-panel .lead,
.cta-panel p {
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  color: var(--faint);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin: 0 0 8px;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-note {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Product pages */
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0 48px;
  text-align: left;
}

.product-hero .hero-icon {
  width: 72px;
  height: 72px;
  margin: 0 0 22px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.product-hero .lead {
  margin-left: 0;
}

.product-hero .button-row {
  justify-content: flex-start;
}

.hero-visual {
  min-width: 0;
}

.hero-visual .shot-phone {
  width: min(280px, 100%);
}

.hero-visual .shot-mac {
  width: 100%;
}

.product-section {
  padding: 72px 0 8px;
}

.section-lead {
  margin: 0 0 28px;
  max-width: 640px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature {
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.feature-index {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--product);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.shots {
  display: grid;
  gap: 16px;
}

.shots.mac-shots {
  grid-template-columns: 1fr 1fr;
}

.shots.phone-shots {
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
}

.shots img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #111;
}

.shots.phone-shots img {
  border-radius: 22px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.panel p,
.panel li {
  color: var(--muted);
}

.panel ul {
  margin: 0;
  padding-left: 18px;
}

.panel li + li {
  margin-top: 8px;
}

.faq {
  max-width: 760px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  font-size: 22px;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
}

.product-cta {
  padding: 80px 0 96px;
  text-align: center;
}

.product-cta .lead {
  margin-left: auto;
  margin-right: auto;
}

.product-cta .button-row {
  justify-content: center;
}

/* Tandem Names uses the same editorial restraint as the native app. */
body.tandem {
  --bg: #f7f1e6;
  --bg-elevated: #f7f1e6;
  --surface: #efe7d9;
  --surface-2: #e8dece;
  --ink: #18202a;
  --muted: #5f6670;
  --faint: #777c82;
  --line: rgba(24, 32, 42, 0.12);
  --line-strong: rgba(24, 32, 42, 0.24);
  --silver: #18202a;
  --silver-soft: rgba(24, 32, 42, 0.08);
  --shadow: 0 18px 54px rgba(24, 32, 42, 0.14);
  --accent: #d99a2b;
  --accent-ink: #fdf9f2;
  --product: #b77a14;
  background: var(--bg);
  color: var(--ink);
}

.tandem .site-header {
  background: rgba(247, 241, 230, 0.96);
  backdrop-filter: none;
}

.tandem .nav-drop-panel {
  background: #f7f1e6;
}

.tandem .nav-links a:hover,
.tandem .nav-drop > summary:hover,
.tandem .nav-links a[aria-current="page"] {
  background: rgba(24, 32, 42, 0.06);
}

.tandem .button {
  background: #18202a;
  color: #fdf9f2;
}

.tandem .button:hover {
  background: #2a3541;
  color: #fff;
}

.tandem .button.secondary {
  background: transparent;
  color: #18202a;
}

.tandem .button.secondary:hover {
  color: #18202a;
  border-color: #18202a;
}

.tandem .cta-panel {
  background: transparent;
  border-color: var(--line-strong);
}

.tandem-shots {
  grid-template-columns: repeat(2, minmax(0, 270px));
  justify-content: center;
}

.invite-shell {
  max-width: 720px;
  padding-top: 12vh;
  padding-bottom: 12vh;
  text-align: center;
}

.invite-shell .hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.invite-shell .lead {
  margin-left: auto;
  margin-right: auto;
}

.invite-shell .button-row {
  justify-content: center;
}

.invite-safety {
  max-width: 600px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.page {
  padding: 72px 0 96px;
}

.content {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.content h2 {
  font-family: Inter, sans-serif;
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 32px 0 10px;
}

.content h3 {
  margin: 24px 0 8px;
}

.content p,
.content li {
  color: var(--muted);
}

.content p {
  margin: 0 0 14px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.support-grid.apps {
  grid-template-columns: repeat(3, 1fr);
}

.support-hero {
  padding-bottom: 12px;
}

.support-block {
  padding: 8px 0 56px;
}

.support-block h2 {
  margin-bottom: 8px;
}

.contact-card .button {
  margin: 8px 0 16px;
}

.privacy-grid .card p {
  margin: 0 0 16px;
}

.catalog {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.catalog-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-elevated);
}

.catalog-card .shot-mac,
.catalog-card .shot-phone {
  width: 100%;
  margin: 0;
}

.catalog-card .shot-phone {
  width: min(200px, 100%);
}

.catalog-copy h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.catalog-copy p {
  margin: 10px 0 0;
  color: var(--muted);
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.card h2 {
  font-family: Inter, sans-serif;
  font-size: 20px;
  margin-bottom: 10px;
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.app-head img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.app-head h2 {
  margin: 0;
}

.app-head p {
  margin: 0;
  font-size: 14px;
}

.note {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--silver);
  background: var(--silver-soft);
  color: var(--ink);
  border-radius: 0 10px 10px 0;
}

/* Product accents */
.dosebell {
  --product: #5ec8f0;
}

.pixelspy {
  --product: #7eb6ff;
}

.markloom {
  --product: #e07a5f;
}

.lightningvoice {
  --product: #e8b84a;
}

.dosebell .product-hero,
.dosebell .cta-panel {
  background: radial-gradient(720px 280px at 20% 0, rgba(94, 200, 240, 0.14), transparent 70%);
}

.pixelspy .product-hero,
.pixelspy .cta-panel {
  background: radial-gradient(800px 280px at 20% 0, rgba(126, 182, 255, 0.1), transparent 70%);
}

.markloom .product-hero,
.markloom .cta-panel {
  background: radial-gradient(800px 280px at 20% 0, rgba(224, 122, 95, 0.12), transparent 70%);
}

.lightningvoice .product-hero,
.lightningvoice .cta-panel {
  background: radial-gradient(800px 280px at 20% 0, rgba(232, 184, 74, 0.12), transparent 70%);
}

@media (max-width: 900px) {
  .app-showcase,
  .app-showcase:nth-child(even),
  .home-lead,
  .product-hero,
  .home-grid {
    grid-template-columns: 1fr;
  }

  .app-showcase:nth-child(even) .showcase-copy,
  .app-showcase:nth-child(even) .showcase-media {
    order: unset;
  }

  .principle-grid,
  .feature-grid,
  .shots.mac-shots,
  .split,
  .support-grid,
  .support-grid.apps,
  .footer-grid,
  .catalog-card {
    grid-template-columns: 1fr;
  }

  .shots.phone-shots {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    margin-bottom: 8px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 32px));
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    inset: var(--header-h) 16px auto;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #12141a;
    box-shadow: var(--shadow);
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .nav-drop-panel {
    position: static;
    box-shadow: none;
    background: transparent;
    border: 0;
    padding: 0 0 0 8px;
  }

  .studio-hero,
  .product-hero {
    padding-top: 56px;
  }

  .app-showcase,
  .cta-panel,
  .content {
    padding: 22px;
  }

  h1 {
    font-size: 40px;
  }

  .shots.phone-shots {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
