/* ============================================
   Unmix Design System — shadcn-inspired
   Mobile-first responsive layout
   ============================================ */

@import url("/tokens.css");

/* ---- Site wrapper ---- */

.site {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site > main {
  flex: 1;
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
  padding-bottom: 48px;
}

/* ============================================
   Navbar
   ============================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  /* relative needed for mobile dropdown positioning */
  background: var(--overlay);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
}

.navbar-brand {
  text-decoration: none;
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--foreground);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.navbar-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px 16px 16px;
  border-top: 1px solid var(--border);
  background: var(--background, #fff);
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.navbar.open .navbar-menu {
  display: flex;
}

.navbar-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: background 150ms var(--ease), color 150ms var(--ease);
}

.navbar-menu a:hover,
.navbar-menu a[data-active] {
  background: var(--muted);
  color: var(--foreground);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms var(--ease);
}

.navbar-cta:hover {
  background: var(--primary-hover);
}

/* Download popup */

.download-popup {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  padding: 20px;
  z-index: 100;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.download-popup[data-open] {
  display: flex;
}

.download-popup-cols {
  display: flex;
  gap: 20px;
}

.download-popup-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 12px;
  border-radius: var(--radius);
  transition: background 150ms var(--ease);
}

.download-popup-col:hover {
  background: var(--muted);
}

.download-popup-col svg {
  width: 140px;
  min-width: 140px;
  height: 140px;
  flex-shrink: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.download-popup-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--foreground);
}

.download-popup-web {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.download-popup-web:hover {
  color: var(--foreground);
}

/* Hamburger */

.navbar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  transition: background 150ms var(--ease);
}

.navbar-toggle:hover {
  background: var(--muted);
}

.navbar-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--foreground);
}

.navbar-toggle .icon-close {
  display: none;
}

.navbar.open .navbar-toggle .icon-menu {
  display: none;
}

.navbar.open .navbar-toggle .icon-close {
  display: block;
}

/* Desktop nav */

@media (min-width: 768px) {
  .navbar {
    position: sticky;
  }

  .navbar-inner {
    padding: 10px 20px;
  }

  .navbar-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    position: static;
    padding: 0;
    border-top: none;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex: 1;
    justify-content: flex-end;
    margin-right: 10px;
    max-height: none;
    overflow: visible;
  }

  .navbar-menu a {
    padding: 6px 10px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .navbar-toggle {
    display: none;
  }
}

@media (min-width: 1024px) {
  .navbar-menu {
    justify-content: center;
  }
}

/* ============================================
   Nav dropdowns
   ============================================ */

/* -- Dropdown trigger button -- */

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius);
  background: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background 150ms var(--ease), color 150ms var(--ease);
  width: 100%;
  text-align: left;
}

.nav-dropdown-trigger:hover,
.nav-dropdown[data-active] .nav-dropdown-trigger {
  background: var(--muted);
  color: var(--foreground);
}

.nav-chevron {
  transition: transform 200ms var(--ease);
  flex-shrink: 0;
}

.nav-dropdown[data-open] .nav-chevron {
  transform: rotate(180deg);
}

/* -- Dropdown menu (mobile: accordion) -- */

.nav-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 1px;
  padding: 4px 0 4px 12px;
}

.nav-dropdown[data-open] .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background 150ms var(--ease), color 150ms var(--ease);
}

.nav-dropdown-menu a:hover {
  background: var(--muted);
  color: var(--foreground);
}

.nav-dropdown-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 12px;
}

/* -- Desktop: hover flyout -- */

@media (min-width: 768px) {
  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown-trigger {
    padding: 6px 10px;
    font-size: 0.84rem;
    white-space: nowrap;
    width: auto;
  }

  .nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    padding: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    gap: 1px;
    z-index: 100;
  }

  .nav-dropdown[data-open] .nav-dropdown-menu {
    display: flex;
  }

  .nav-dropdown-menu a {
    font-size: 0.84rem;
    padding: 7px 10px;
    white-space: nowrap;
  }

  .nav-dropdown-divider {
    margin: 3px 0;
  }
}

/* ============================================
   Breadcrumb
   ============================================ */

.breadcrumb {
  margin: 16px 0 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.breadcrumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--muted-foreground);
  transition: color 150ms var(--ease);
}

.breadcrumb a:hover {
  color: var(--foreground);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  margin-top: 20px;
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgb(74 75 255 / 0.06), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgb(74 75 255 / 0.04), transparent 50%);
  pointer-events: none;
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 5px 12px;
  border: 1px solid var(--primary-muted);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  position: relative;
  margin: 0;
  font-size: clamp(1.75rem, 5.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 18ch;
  color: var(--foreground);
}

.hero > p:not(.eyebrow),
.hero-split .hero-body > p:not(.eyebrow) {
  position: relative;
  margin: 14px 0 0;
  max-width: 60ch;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.6;
}

.button-row {
  position: relative;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kicker-list {
  position: relative;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kicker-list li {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.76rem;
  font-weight: 600;
}

/* Mobile hero */
@media (max-width: 639px) {
  .hero {
    padding: 24px 16px;
    border-radius: var(--radius-xl);
  }

  .button-row {
    flex-direction: column;
  }

  .button-row .btn {
    width: 100%;
  }
}

@media (min-width: 640px) {
  .hero {
    padding: clamp(28px, 4vw, 48px);
  }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms var(--ease), border-color 150ms var(--ease),
    box-shadow 150ms var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--muted);
}

/* ============================================
   Content stack, panels, cards, grids
   ============================================ */

.stack {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.panel {
  padding: 20px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-xs);
}

.panel h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: var(--foreground);
}

.panel > p {
  margin: 8px 0 0;
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

.panel ul,
.panel ol {
  margin: 8px 0 0;
  padding-left: 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

.panel li {
  margin: 4px 0;
}

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

.panel h2:not(:first-child) {
  margin-top: 28px;
}

.panel table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: var(--muted-foreground);
}

.panel table th,
.panel table td {
  width: 50%;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--border);
}

.panel table th {
  font-weight: 600;
  color: var(--foreground);
  background: var(--muted);
}

@media (min-width: 640px) {
  .panel {
    padding: 24px;
  }
}

/* Grids */

.grid-3,
.grid-4,
.link-grid {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

/* Mobile: single column */
.grid-3,
.grid-4 {
  grid-template-columns: 1fr;
}

.link-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card icons */

.card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 10px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 18px;
  height: 18px;
}

.callout .card-icon {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-warm);
}

/* Cards */

.card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  transition: box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-hover);
}

.card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--foreground);
}

.card p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 0.88rem;
  line-height: 1.5;
}

.card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted-foreground);
  font-size: 0.88rem;
  line-height: 1.6;
}

.card a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
}

.card a:hover {
  text-decoration: underline;
}

/* CTA panel (mid-page conversion) */

.cta-panel {
  text-align: center;
  padding: 32px 20px;
  border-color: var(--primary-muted);
  background:
    linear-gradient(135deg, rgb(74 75 255 / 0.07), rgb(74 75 255 / 0.02) 60%),
    var(--primary-soft);
}

.cta-panel h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
}

.cta-panel > p {
  max-width: 48ch;
  margin: 8px auto 0;
}

.cta-panel .button-row {
  justify-content: center;
  margin-top: 16px;
}

.btn-lg {
  min-height: 50px;
  padding: 0 28px;
  font-size: 1rem;
}

@media (min-width: 640px) {
  .cta-panel {
    padding: 40px 32px;
  }
}

/* Alternating panel rhythm */

.stack > .panel:nth-of-type(even) {
  background: var(--muted);
  border-color: transparent;
  box-shadow: none;
}

.stack > .panel.callout {
  background: var(--accent-warm-soft);
  border-color: var(--accent-warm-border);
  box-shadow: var(--shadow-xs);
}

.stack > .panel.cta-panel {
  background:
    linear-gradient(135deg, rgb(74 75 255 / 0.07), rgb(74 75 255 / 0.02) 60%),
    var(--primary-soft);
  border-color: var(--primary-muted);
  box-shadow: var(--shadow-xs);
}

/* Callout panel (warm accent) */

.callout {
  border-color: var(--accent-warm-border);
  background: var(--accent-warm-soft);
}

.callout h2 {
  color: var(--accent-warm-foreground);
}

.callout > p {
  color: var(--accent-warm-foreground);
}

.callout .card {
  background: var(--accent-warm-soft);
  border-color: var(--accent-warm-border);
}

/* ============================================
   Drop Zone CTA
   ============================================ */

.dropzone-cta {
  margin-top: 12px;
}

.dropzone-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 20px;
  border: 2px dashed var(--primary-muted);
  border-radius: var(--radius-xl);
  background: var(--primary-soft);
  cursor: pointer;
  transition: border-color 200ms var(--ease), background 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
}

.dropzone-cta-inner:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px -12px rgba(74, 75, 255, 0.45);
  transform: translateY(-1px);
}

.dropzone-cta-inner.dropzone-cta--dragover {
  border-color: var(--primary);
  background: var(--primary-muted);
  box-shadow: 0 0 0 4px rgba(74, 75, 255, 0.18);
}

.dropzone-cta-icon {
  color: var(--primary);
  transition: transform 200ms var(--ease);
}

.dropzone-cta-inner:hover .dropzone-cta-icon {
  transform: translateY(-2px);
}

.dropzone-cta-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--foreground);
  text-align: center;
}

.dropzone-cta-title-accent {
  color: var(--primary);
}

.dropzone-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  margin-top: 4px;
  border-radius: var(--radius);
  padding: 0 20px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: filter 150ms var(--ease), transform 150ms var(--ease);
}

.dropzone-cta-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.dropzone-cta-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted-foreground);
  text-align: center;
}

.dropzone-cta-apps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--primary-muted);
  width: 100%;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.dropzone-cta-apps strong {
  color: var(--foreground);
  font-weight: 600;
}

.dropzone-cta-apps a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--primary-muted);
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms var(--ease), border-color 150ms var(--ease);
}

.dropzone-cta-apps a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

@media (min-width: 640px) {
  .dropzone-cta-inner {
    padding: 40px 28px;
    gap: 12px;
  }
  .dropzone-cta-title {
    font-size: 1.2rem;
  }
}

/* ============================================
   Section: Table
   ============================================ */

.section-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.section-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.section-table th,
.section-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.section-table th {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  background: var(--muted);
}

.section-table td {
  color: var(--foreground);
}

.section-table tbody tr:last-child td {
  border-bottom: none;
}

.section-table tbody tr:hover {
  background: var(--muted);
}

/* ============================================
   Section: Prose
   ============================================ */

.section-prose p {
  margin: 12px 0 0;
  color: var(--muted-foreground);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 68ch;
}

.section-prose p:first-of-type {
  margin-top: 8px;
}

/* ============================================
   Section: Checklist
   ============================================ */

.section-checklist {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.section-checklist li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  transition: border-color 200ms var(--ease);
}

.section-checklist li:hover {
  border-color: var(--border-hover);
}

.section-checklist li strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--foreground);
}

.section-checklist li span {
  font-size: 0.86rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* ============================================
   FAQ
   ============================================ */

.faq-list {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.faq-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  transition: border-color 200ms var(--ease);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--foreground);
}

.faq-item p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 24px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.footer-brand p {
  margin: 0;
  max-width: 28ch;
  color: var(--muted-foreground);
  font-size: 0.86rem;
  line-height: 1.5;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--foreground);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 150ms var(--ease);
}

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

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.82rem;
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a {
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 150ms var(--ease);
}

.footer-legal a:hover {
  color: var(--foreground);
}

/* ============================================
   Entrance animations
   ============================================ */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.panel {
  animation: fade-up 500ms var(--ease) both;
}

.panel:nth-of-type(2) { animation-delay: 50ms; }
.panel:nth-of-type(3) { animation-delay: 100ms; }
.panel:nth-of-type(4) { animation-delay: 150ms; }
.panel:nth-of-type(5) { animation-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
  .hero,
  .panel {
    animation: none;
  }
}

/* ============================================
   Hero — split layout with visual on right
   ============================================ */

.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

.hero-split .hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero-split .hero-media img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(9, 9, 11, 0.08)) drop-shadow(0 4px 12px rgba(74, 75, 255, 0.08));
}

@media (min-width: 768px) {
  .hero-split {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero-split .hero-media img {
    max-width: 280px;
  }
}

@media (min-width: 1024px) {
  .hero-split {
    gap: 3rem;
  }
}

/* ============================================
   App card — icon, rating, download buttons
   ============================================ */

.panel-app-card {
  padding: 2.5rem 1.25rem;
  background:
    radial-gradient(ellipse 60% 70% at 50% 30%, rgba(74, 75, 255, 0.09), transparent 65%),
    linear-gradient(180deg, var(--card) 0%, #f8f9ff 100%);
}

.app-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.app-card-icon-wrap {
  position: relative;
  padding: 0.5rem;
}

.app-card-icon-wrap::before {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 75, 255, 0.28), transparent 65%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.app-card-icon {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  display: block;
  box-shadow:
    0 12px 24px -8px rgba(74, 75, 255, 0.35),
    0 4px 10px -2px rgba(9, 9, 11, 0.12);
  z-index: 1;
}

.app-card-title {
  font-family: "Sora", "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.5rem, 2.2vw + 1rem, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0;
  line-height: 1.2;
  color: var(--foreground);
}

.app-card-rating-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.app-card-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--foreground);
}

.app-card-star-full,
.app-card-star-half {
  color: var(--foreground);
}

.app-card-star-empty {
  color: var(--border-hover);
}

.app-card-rating {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.app-card-rating-value {
  font-weight: 600;
  color: var(--foreground);
}

.app-card-rating-source {
  color: var(--muted-foreground);
}

.app-card-desc {
  max-width: 56ch;
  margin: 0.25rem auto 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.app-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.app-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: "Sora", "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow:
    0 8px 16px -6px rgba(74, 75, 255, 0.45),
    0 2px 4px -1px rgba(9, 9, 11, 0.08);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}

.app-card-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow:
    0 12px 24px -8px rgba(74, 75, 255, 0.55),
    0 4px 8px -2px rgba(9, 9, 11, 0.1);
}

.app-card-btn:active {
  transform: translateY(0);
}

.app-card-btn svg {
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .app-card-btn {
    transition: none !important;
  }
}

/* ============================================
   App screenshots — fanned iPhone deck
   ============================================ */

.panel-screenshots {
  position: relative;
  overflow: hidden;
  padding-bottom: 3.5rem;
  background:
    radial-gradient(ellipse 70% 70% at 50% 110%, rgba(74, 75, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% -10%, rgba(74, 75, 255, 0.05), transparent 60%),
    var(--card);
}

.panel-screenshots::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(9, 9, 11, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(9, 9, 11, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, black 30%, transparent 75%);
  pointer-events: none;
}

.panel-screenshots > * {
  position: relative;
}

.panel-screenshots h2 {
  text-align: center;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.panel-screenshots > p {
  text-align: center;
  max-width: 44ch;
  margin: 0.5rem auto 2.5rem;
  color: var(--muted-foreground);
}

.phone-gallery {
  display: flex;
  gap: 1rem;
  padding: 2rem 1rem 1rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.phone-gallery::-webkit-scrollbar {
  display: none;
}

.phone-frame {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  transition: transform 600ms var(--ease);
}

.phone-device {
  position: relative;
  width: 200px;
  aspect-ratio: 1242 / 2688;
  border-radius: 32px;
  padding: 9px;
  background: linear-gradient(160deg, #18181b 0%, #2a2a30 55%, #09090b 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 -1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 60px -20px rgba(9, 9, 11, 0.45),
    0 12px 24px -12px rgba(9, 9, 11, 0.3),
    0 2px 4px rgba(9, 9, 11, 0.12);
  transition: transform 600ms var(--ease), box-shadow 600ms var(--ease);
}

.phone-screen {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  background: var(--muted);
}

.phone-side {
  position: absolute;
  width: 2px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  border-radius: 2px;
  pointer-events: none;
}

.phone-side-left {
  top: 18%;
  left: -1px;
  height: 8%;
  box-shadow: 0 44px 0 0 rgba(255, 255, 255, 0.12);
}

.phone-side-right {
  top: 14%;
  right: -1px;
  width: 2px;
  height: 14%;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

/* Fanned layout on wider screens */
@media (min-width: 820px) {
  .phone-gallery {
    justify-content: center;
    overflow: visible;
    padding: 3rem 1rem 3rem;
    gap: 0;
  }

  .phone-frame {
    margin-left: -44px;
  }

  .phone-frame:first-child {
    margin-left: 0;
  }

  .phone-frame:nth-child(1) .phone-device { transform: rotate(-7deg) translateY(18px); }
  .phone-frame:nth-child(2) .phone-device { transform: rotate(-2deg) translateY(4px); }
  .phone-frame:nth-child(3) .phone-device { transform: rotate(2deg) translateY(4px); }
  .phone-frame:nth-child(4) .phone-device { transform: rotate(7deg) translateY(18px); }

  .phone-frame:nth-child(2) .phone-device {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.08) inset,
      0 -1px 0 rgba(255, 255, 255, 0.04) inset,
      0 40px 60px -20px rgba(74, 75, 255, 0.35),
      0 20px 40px -16px rgba(9, 9, 11, 0.4),
      0 2px 6px rgba(9, 9, 11, 0.15);
  }

  .phone-frame {
    position: relative;
  }

  .phone-gallery:hover .phone-frame .phone-device {
    transform: rotate(0deg) translateY(0);
  }

  .phone-gallery:hover .phone-frame {
    margin-left: 0.75rem;
  }

  .phone-gallery:hover .phone-frame:first-child {
    margin-left: 0;
  }

  .phone-frame:hover .phone-device {
    transform: rotate(0deg) translateY(-10px) scale(1.04) !important;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.08) inset,
      0 -1px 0 rgba(255, 255, 255, 0.04) inset,
      0 50px 80px -20px rgba(74, 75, 255, 0.4),
      0 24px 44px -16px rgba(9, 9, 11, 0.45),
      0 2px 6px rgba(9, 9, 11, 0.18);
    z-index: 3;
  }

}

@media (min-width: 1100px) {
  .phone-device {
    width: 230px;
  }

  .phone-frame {
    margin-left: -56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-frame,
  .phone-device {
    transition: none !important;
  }
}

/* Focus & scrollbar styles are in tokens.css */
