/* ==========================================================================
   Tunora Support — styles.css
   Dark-first, Apple/SF Pro aesthetic. Lightweight, no dependencies.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #050506;
  --surface: #121214;
  --surface-2: #1A1A1D;
  --surface-hover: #202024;

  /* Text */
  --text: #F5F5F7;
  --text-secondary: #A1A1A6;
  --text-tertiary: #6E6E73;

  /* Accent — Tunora mint green (matches the app) */
  --accent: #34E2A4;
  --accent-hover: #59ECBA;
  --accent-soft: rgba(52, 226, 164, 0.12);
  --accent-border: rgba(52, 226, 164, 0.35);
  --accent-ink: #042016; /* readable text on the accent fill */

  /* Lines & structure */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --separator: rgba(255, 255, 255, 0.06);

  /* Radii */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Layout */
  --maxw: 1120px;
  --header-h: 60px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

ul,
ol {
  color: var(--text-secondary);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  z-index: 200;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 6, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover {
  color: var(--text);
}
.brand .logo {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.brand .brand-text {
  font-size: 16px;
}
.brand .brand-text b {
  font-weight: 600;
}

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover {
  color: var(--text);
  background: var(--surface);
}
.nav a[aria-current="page"] {
  color: var(--text);
}
.nav .nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent-border);
  margin-left: 6px;
}
.nav .nav-cta:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- Main ---------- */
main {
  flex: 1 0 auto;
}

.section {
  padding: 56px 0;
}
.section-tight {
  padding: 40px 0;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding-top: 28px;
  font-size: 14px;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--text-tertiary);
}
.breadcrumbs a {
  color: var(--text-secondary);
}
.breadcrumbs a:hover {
  color: var(--text);
}
.breadcrumbs .sep {
  color: var(--text-tertiary);
}
.breadcrumbs [aria-current="page"] {
  color: var(--text-tertiary);
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 36px;
  text-align: center;
}
.hero .eyebrow,
.app-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  letter-spacing: -0.03em;
}
.hero .lead {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-secondary);
}

/* ---------- Download hero (home) ---------- */
.app-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1100px 520px at 78% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(760px 420px at 6% 8%, rgba(52, 226, 164, 0.06), transparent 55%);
}
.app-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.app-hero-copy {
  max-width: 560px;
}
.app-hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  letter-spacing: -0.035em;
  margin-top: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #c9efdd 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.app-hero h1 .hl {
  background: linear-gradient(120deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.app-hero .lead {
  margin: 20px 0 0;
  max-width: 520px;
}
.app-hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.app-hero-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.app-hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.app-hero-points svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--accent);
}

/* App Store download badge (self-contained, no external asset) */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #000;
  padding: 11px 20px 11px 18px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.appstore-badge:hover {
  color: #000;
  background: #f2f2f2;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
.appstore-badge .apple {
  width: 26px;
  height: 26px;
  flex: none;
}
.appstore-badge .txt {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}
.appstore-badge .txt .small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.appstore-badge .txt .big {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Phone mockup */
.app-hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.phone {
  position: relative;
  width: clamp(230px, 30vw, 300px);
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2a2a2e, #050506 55%);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 90px -30px var(--accent);
}
.phone::before {
  /* dynamic island */
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
  display: block;
  background: #000;
}

/* ==========================================================================
   Motion & interactivity
   ========================================================================== */

/* Ambient glow orb behind the phone */
.app-hero-visual::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  filter: blur(10px);
  z-index: 0;
  animation: pulse-glow 6s ease-in-out infinite;
}
.phone {
  z-index: 1;
  animation: float 7s ease-in-out infinite;
  transition: transform 0.25s ease;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.06); }
}

/* Live pointer tilt (set by JS); overrides the float while hovering */
.app-hero-visual.tilting .phone {
  animation: none;
}

/* Animated status dot on the eyebrow pill */
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-border);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(52, 226, 164, 0.5); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(52, 226, 164, 0); }
}

/* App Store badge shimmer sweep on hover */
.appstore-badge {
  position: relative;
  overflow: hidden;
}
.appstore-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.65),
    transparent
  );
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}
.appstore-badge:hover::after {
  left: 130%;
}

/* Buttons lift on hover */
.btn {
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px var(--accent);
}
.btn-secondary:hover {
  transform: translateY(-2px);
}

/* Screenshot strip hover zoom */
.shot img {
  transition: transform 0.35s ease, border-color 0.25s ease,
    box-shadow 0.35s ease;
}
.shot:hover img {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--accent-border);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8);
}

/* Popular-question rows slide + accent bar on hover */
.q-list a {
  position: relative;
}
.q-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.q-list a:hover::before {
  transform: scaleY(1);
}
.q-list a:hover {
  padding-left: 24px;
}
.q-list a span:first-child {
  transition: transform 0.18s ease;
}

/* Scroll-reveal — initial hidden state is gated by .reveal-on, which the home
   page sets inline in <head> BEFORE first paint, so there's no flash. With JS
   disabled the inline script never runs, .reveal-on is absent, and everything
   stays visible. JS adds .in when each element scrolls into view. */
.reveal-on .app-hero-copy,
.reveal-on .app-hero-visual,
.reveal-on .section-head,
.reveal-on .category-card,
.reveal-on .q-list,
.reveal-on .shot,
.reveal-on .callout,
.reveal-on #browse .search {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-on .in {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .phone,
  .app-hero-visual::before,
  .eyebrow::before {
    animation: none !important;
  }
  .reveal-on .app-hero-copy,
  .reveal-on .app-hero-visual,
  .reveal-on .section-head,
  .reveal-on .category-card,
  .reveal-on .q-list,
  .reveal-on .shot,
  .reveal-on .callout,
  .reveal-on #browse .search {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Search ---------- */
.search {
  max-width: 620px;
  margin: 36px auto 0;
  position: relative;
}
.search input[type="search"] {
  width: 100%;
  height: 56px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  padding: 0 20px 0 52px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.search input[type="search"]::placeholder {
  color: var(--text-tertiary);
}
.search input[type="search"]:focus {
  outline: none;
  border-color: var(--accent-border);
  background: var(--surface-2);
}
.search .search-icon {
  position: absolute;
  left: 18px;
  top: 28px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  pointer-events: none;
}

/* Search suggestions dropdown */
.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden auto;
  max-height: 380px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.search-results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  color: var(--text);
  font-size: 15.5px;
  border-bottom: 1px solid var(--separator);
}
.search-results a:last-child {
  border-bottom: none;
}
.search-results a:hover,
.search-results a.is-active {
  background: var(--surface-hover);
  color: var(--text);
}
.search-results a .tag {
  flex: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.search-results .no-res {
  margin: 0;
  padding: 16px 18px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ---------- Section headings ---------- */
.section-head {
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: clamp(22px, 3.4vw, 28px);
}
.section-head p {
  margin-top: 8px;
  margin-bottom: 0;
}
.section-head.center {
  text-align: center;
}
.section-head.center p {
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;
}

/* ---------- Category grid ---------- */
.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.card-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.category-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.category-card:hover {
  background: var(--surface-hover);
  border-color: var(--accent-border);
  color: var(--text);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px var(--accent-border) inset, 0 12px 40px -24px var(--accent);
}
.category-card .icon {
  width: 46px;
  height: 46px;
  padding: 11px;
  box-sizing: border-box;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 13px;
  margin-bottom: 16px;
  transition: transform 0.25s ease, background 0.2s ease, box-shadow 0.25s ease;
}
.category-card:hover .icon {
  transform: scale(1.08) rotate(-3deg);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 22px -6px var(--accent);
}
.category-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.category-card p {
  font-size: 14.5px;
  margin: 0;
  color: var(--text-secondary);
}

/* ---------- Popular questions list ---------- */
.q-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.q-list li + li {
  border-top: 1px solid var(--separator);
}
.q-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  color: var(--text);
  font-size: 16px;
  font-weight: 450;
  transition: background 0.12s ease;
}
.q-list a:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.q-list a .chev {
  color: var(--text-tertiary);
  flex: none;
  width: 16px;
  height: 16px;
}
.q-list a:hover .chev {
  color: var(--accent);
}
.q-empty {
  padding: 20px;
  color: var(--text-tertiary);
  text-align: center;
  display: none;
}

/* ---------- Prose / article content ---------- */
.prose {
  max-width: 760px;
}
.prose h2 {
  font-size: 24px;
  margin: 40px 0 14px;
}
.prose h3 {
  font-size: 19px;
  margin: 28px 0 10px;
}
.prose p,
.prose li {
  color: var(--text-secondary);
  font-size: 16.5px;
}
.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 18px;
}
.prose li {
  margin-bottom: 8px;
}
.prose strong {
  color: var(--text);
  font-weight: 600;
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-border);
}

.page-title {
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.03em;
  margin: 18px 0 12px;
}
.page-intro {
  font-size: clamp(17px, 2.2vw, 19px);
  color: var(--text-secondary);
  max-width: 680px;
}

/* ---------- FAQ (native details/summary) ---------- */
.faq-group {
  margin-top: 12px;
}
.faq-group h2 {
  font-size: 20px;
  margin: 40px 0 6px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin-top: 14px;
}
.faq details {
  border-bottom: 1px solid var(--separator);
}
.faq details:last-child {
  border-bottom: none;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  position: relative;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.12s ease;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  background: var(--surface-hover);
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 22px;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--text-tertiary);
  border-bottom: 2px solid var(--text-tertiary);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  top: 26px;
}
.faq .faq-body {
  padding: 0 20px 20px;
}
.faq .faq-body p:last-child {
  margin-bottom: 0;
}
.faq .faq-body ol,
.faq .faq-body ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
.faq .faq-body li {
  margin-bottom: 6px;
  color: var(--text-secondary);
}

/* filtered-out state (search) */
.faq details.is-hidden,
.q-list li.is-hidden {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 550;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Callout / Contact banner ---------- */
.callout {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.callout h2 {
  font-size: 24px;
}
.callout p {
  margin: 10px auto 22px;
  max-width: 460px;
}
.callout .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.note {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 22px 0;
}
.note p {
  margin: 0;
  color: var(--text);
  font-size: 15.5px;
}
.note strong {
  color: var(--accent);
}

.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 22px 0;
}
.info-box p {
  margin: 0;
  font-size: 15.5px;
}

/* ---------- Contact form ---------- */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-top: 8px;
}
.form-row {
  margin-bottom: 18px;
}
.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}
.form label {
  display: block;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--text);
  margin-bottom: 8px;
}
.form label .req {
  color: var(--accent);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent-border);
}
.form textarea {
  min-height: 140px;
  resize: vertical;
}
.form input[type="file"] {
  padding: 10px 14px;
  color: var(--text-secondary);
}
.form .hint {
  font-size: 13.5px;
  color: var(--text-tertiary);
  margin: 8px 0 0;
}
.form .form-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-status {
  font-size: 15px;
  color: var(--text-secondary);
}

.contact-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0 28px;
  flex-wrap: wrap;
}
.contact-strip .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.contact-strip .icon svg {
  width: 20px;
  height: 20px;
}
.contact-strip .cs-text {
  flex: 1 1 auto;
  min-width: 200px;
}
.contact-strip .cs-text .label {
  font-size: 13px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.contact-strip .cs-text .email {
  font-size: 18px;
  font-weight: 550;
}

/* ---------- Troubleshooting cards ---------- */
.trouble-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 22px;
  margin-top: 16px;
}
.trouble-card summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  position: relative;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.trouble-card summary::-webkit-details-marker {
  display: none;
}
.trouble-card summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 24px;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--text-tertiary);
  border-bottom: 2px solid var(--text-tertiary);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.trouble-card[open] summary::after {
  transform: rotate(-135deg);
  top: 28px;
}
.trouble-card .tc-body {
  padding-bottom: 22px;
}
.trouble-card h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-tertiary);
  margin: 6px 0 8px;
}
.trouble-card ul,
.trouble-card ol {
  margin: 0 0 16px;
  padding-left: 20px;
}
.trouble-card li {
  margin-bottom: 6px;
  color: var(--text-secondary);
}

/* ---------- Feature quick facts ---------- */
.facts {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 20px;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.fact h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.fact p {
  margin: 0;
  font-size: 15px;
}

/* ---------- Screenshot strip ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
}
.shot {
  margin: 0;
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.shot figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}
.shots-hint {
  display: none;
}

@media (max-width: 720px) {
  .shots {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 4px 4px 10px;
    margin: 0 -18px;
    padding-left: 18px;
    padding-right: 18px;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar {
    display: none;
  }
  .shot {
    flex: 0 0 60%;
    scroll-snap-align: center;
  }
  .shots-hint {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 14px;
  }
}

/* ---------- 404 ---------- */
.notfound {
  text-align: center;
  padding: 96px 0;
}
.notfound .code {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.notfound h1 {
  margin-top: 8px;
  font-size: 28px;
}
.notfound p {
  max-width: 440px;
  margin: 12px auto 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 40px;
  margin-top: 40px;
  background: var(--bg);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand .brand {
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0;
  max-width: 320px;
}
.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: var(--text-secondary);
  font-size: 15px;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--separator);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .container {
    padding: 0 18px;
  }
  .section {
    padding: 40px 0;
  }
  .hero {
    padding: 48px 0 28px;
  }

  /* Download hero → stack, screenshot first for instant impression */
  .app-hero {
    padding: 32px 0 40px;
    text-align: center;
  }
  .app-hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .app-hero-copy {
    max-width: none;
    order: 2;
  }
  .app-hero-visual {
    order: 1;
  }
  .app-hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .app-hero-cta {
    justify-content: center;
  }
  .app-hero-points {
    justify-content: center;
    gap: 10px 18px;
  }
  .phone {
    width: clamp(210px, 62vw, 260px);
  }
  .appstore-badge {
    width: auto;
  }

  /* Mobile nav */
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(5, 5, 6, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px 18px 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    padding: 13px 14px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }
  .nav .nav-cta {
    margin-left: 0;
    margin-top: 4px;
    text-align: center;
  }

  .card-grid,
  .card-grid.cols-2 {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .footer-links {
    gap: 32px;
  }
  .callout {
    padding: 26px 20px;
  }
  .btn {
    width: 100%;
  }
  .callout .actions .btn {
    width: auto;
  }
}

@media (max-width: 420px) {
  .callout .actions {
    flex-direction: column;
  }
  .callout .actions .btn {
    width: 100%;
  }
}
