/* ============================================================
   Reci AI — landing styles
   Warm editorial food-magazine direction. Tokens mirror the
   iOS app (Theme.swift): saffron→amber primary, cream linen
   canvas, basil + butter secondaries, strict ink hierarchy.
   ============================================================ */

:root {
  /* Surfaces */
  --canvas: #faf6f0;
  --canvas-soft: #f1ece2;
  --surface: #ffffff;
  --surface-muted: #f4efe6;

  /* Brand */
  --orange: #e66a2e;
  --orange-top: #f59149;
  --orange-deep: #c9521f;
  --orange-soft: #fbe2d2;
  --grad-primary: linear-gradient(135deg, #f59149 0%, #e66a2e 48%, #c9521f 100%);

  /* Secondaries */
  --basil: #4f6e47;
  --basil-soft: #e0e8d6;
  --butter: #e0a23a;
  --butter-soft: #f6e5c2;
  --blueberry: #39528c;

  /* Ink */
  --ink: #1a1612;
  --ink-2: #6e665c;
  --ink-3: #a89f94;

  /* Lines */
  --hairline: #eae3d5;
  --divider: #f1ece0;

  /* Type */
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --text-hero: clamp(2.7rem, 1.4rem + 5.4vw, 5.6rem);
  --text-h2: clamp(2rem, 1.2rem + 3vw, 3.4rem);
  --text-h3: clamp(1.3rem, 1.05rem + 1vw, 1.7rem);
  --text-lead: clamp(1.12rem, 1rem + 0.5vw, 1.4rem);

  /* Rhythm */
  --space-section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --maxw: 1180px;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 8px 28px rgba(60, 40, 20, 0.09);
  --shadow-soft: 0 4px 16px rgba(60, 40, 20, 0.06);
  --shadow-elevated: 0 24px 60px rgba(50, 30, 12, 0.18);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 320ms;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  font-optical-sizing: auto;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 0.5rem + 3vw, 3rem);
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

.lead {
  font-size: var(--text-lead);
  color: var(--ink-2);
  line-height: 1.5;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease,
    color 0.22s ease, transform 0.12s ease, opacity 0.22s ease;
}
/* Solid, flat fill — no gradient, no colored glow (Apple-clean). */
.btn-primary {
  background: var(--orange-deep);
  color: #fff;
}
.btn-primary:hover {
  background: #b3481a;
}
.btn-primary:active {
  transform: scale(0.97);
}
/* Neutral secondary — quiet hairline capsule, calm hover. */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(26, 22, 18, 0.16);
}
.btn-ghost:hover {
  background: rgba(26, 22, 18, 0.04);
  border-color: rgba(26, 22, 18, 0.32);
}
.btn-ghost:active {
  transform: scale(0.97);
}

.badge-link {
  display: inline-block;
  transition: opacity 0.22s ease;
}
.badge-link:hover {
  opacity: 0.82;
}
.badge-link img {
  height: 54px;
  width: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration), background var(--duration);
}
.site-header.scrolled {
  border-bottom-color: var(--hairline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--duration);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
@media (max-width: 880px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(3rem, 1rem + 6vw, 6rem);
  padding-bottom: var(--space-section);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(245, 145, 73, 0.22),
    transparent 62%
  );
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.hero-copy h1 {
  font-size: var(--text-hero);
  margin-top: 1.1rem;
  max-width: 13ch;
}
.hero-copy h1 .accent {
  font-style: italic;
  color: var(--orange-deep);
}
.hero-copy .lead {
  margin-top: 1.4rem;
  max-width: 42ch;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink-2);
  font-size: 0.92rem;
}
.stars {
  color: var(--butter);
  letter-spacing: 0.08em;
  font-size: 1rem;
}

/* Phone showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Device mockups (real iPhone frame + app screenshot, transparent WebP) */
.device {
  display: block;
  height: auto;
  filter: drop-shadow(0 26px 52px rgba(50, 30, 12, 0.24));
}
.hero-visual .device--front {
  position: relative;
  z-index: 2;
  width: clamp(228px, 25vw, 300px);
}
.hero-visual .device--back {
  position: absolute;
  z-index: 1;
  width: clamp(190px, 21vw, 252px);
  transform: rotate(-7deg) translateX(-44%);
  opacity: 0.97;
  filter: drop-shadow(0 18px 38px rgba(50, 30, 12, 0.2)) saturate(0.97);
}
@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy h1,
  .hero-copy .lead {
    margin-inline: auto;
  }
  .hero-actions,
  .hero-trust {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 1.5rem;
  }
  .hero-visual .device--back {
    transform: rotate(-7deg) translateX(-58%);
    width: clamp(150px, 40vw, 200px);
  }
}

/* ---------- Platform strip ---------- */
.platforms {
  padding-block: clamp(2.4rem, 1.5rem + 2vw, 3.4rem);
  border-block: 1px solid var(--hairline);
  background: var(--canvas-soft);
}
.platforms p {
  text-align: center;
  color: var(--ink-2);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}
.platforms p strong {
  color: var(--ink);
}
.platform-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}
.platform-pill {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-soft);
}

/* ---------- Section scaffolding ---------- */
section {
  padding-block: var(--space-section);
}
.section-head {
  max-width: 38rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  font-size: var(--text-h2);
  margin-top: 0.8rem;
}
.section-head .lead {
  margin-top: 1.1rem;
}

/* ---------- The loop (steps) ---------- */
.steps {
  background: var(--surface);
  border-block: 1px solid var(--hairline);
}
.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 5vw, 6rem);
  align-items: center;
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
}
.step + .step {
  border-top: 1px solid var(--divider);
}
.step:nth-child(even) .step-media {
  order: 2;
}
.step-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.step-num::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--orange);
}
.step h3 {
  font-size: var(--text-h3);
  margin-top: 0.8rem;
}
.step p {
  margin-top: 0.9rem;
  color: var(--ink-2);
  max-width: 40ch;
}
.step ul {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.55rem;
}
.step ul li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-2);
  font-size: 0.97rem;
}
.step ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--grad-primary);
}
.step-media {
  display: flex;
  justify-content: center;
}
.step-media .device {
  width: clamp(220px, 24vw, 286px);
}
@media (max-width: 820px) {
  .step {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .step:nth-child(even) .step-media {
    order: 0;
  }
  .step-media {
    margin-top: 1.5rem;
  }
}

/* ---------- Feature bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration) var(--ease-out-expo),
    box-shadow var(--duration) var(--ease-out-expo);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  background: var(--orange-soft);
}
.feature h3 {
  font-size: 1.25rem;
}
.feature p {
  margin-top: 0.6rem;
  color: var(--ink-2);
  font-size: 0.97rem;
}
.feature--wide {
  grid-column: span 3;
}
.feature--third {
  grid-column: span 2;
}
.feature--accent {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
}
.feature--accent p {
  color: rgba(255, 255, 255, 0.9);
}
.feature--accent .icon {
  background: rgba(255, 255, 255, 0.18);
}
.feature--basil {
  background: var(--basil-soft);
  border-color: transparent;
}
.feature--basil .icon {
  background: #fff;
}
/* transform chips inside a feature */
.transform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}
.transform-chips span {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
}
.feature--accent .transform-chips span {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .feature--wide,
  .feature--third {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .feature--wide,
  .feature--third {
    grid-column: span 1;
  }
}

/* ---------- Trust / honest ---------- */
.trust {
  background: var(--ink);
  color: var(--canvas);
}
.trust h2 {
  color: #fff;
}
.trust .lead {
  color: rgba(250, 246, 240, 0.74);
}
.trust-grid {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.trust-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.6rem;
}
.trust-card h3 {
  color: #fff;
  font-size: 1.2rem;
}
.trust-card p {
  margin-top: 0.6rem;
  color: rgba(250, 246, 240, 0.66);
  font-size: 0.95rem;
}
@media (max-width: 760px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 0.8rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.5rem;
  color: var(--orange);
  transition: transform var(--duration) var(--ease-out-expo);
  line-height: 1;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .answer {
  padding: 0 1.5rem 1.4rem;
  color: var(--ink-2);
}

/* ---------- Final CTA ---------- */
.cta {
  text-align: center;
}
.cta-card {
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
  padding: clamp(2.8rem, 2rem + 4vw, 5rem);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}
.cta-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
}
.cta-card h2 {
  color: #fff;
  font-size: var(--text-h2);
  max-width: 18ch;
  margin-inline: auto;
  position: relative;
}
.cta-card p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--text-lead);
  position: relative;
}
.cta-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}
.cta-card .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.cta-card .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
  padding-block: clamp(3rem, 2rem + 2vw, 4.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand .brand {
  margin-bottom: 1rem;
}
.footer-brand p {
  color: var(--ink-2);
  max-width: 34ch;
  font-size: 0.95rem;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.footer-col ul {
  display: grid;
  gap: 0.7rem;
}
.footer-col a {
  color: var(--ink-2);
  font-size: 0.95rem;
  transition: color var(--duration);
}
.footer-col a:hover {
  color: var(--orange-deep);
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 0.88rem;
}
.footer-bottom .disclaimer {
  max-width: 60ch;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Legal pages ---------- */
.legal {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
  background: var(--surface);
  min-height: 60vh;
}
.legal .container {
  max-width: 760px;
}
.legal .eyebrow {
  display: block;
  margin-bottom: 0.8rem;
}
.legal h1 {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem);
  margin-bottom: 0.5rem;
}
.legal .updated {
  color: var(--ink-3);
  font-size: 0.92rem;
  margin-bottom: 2.5rem;
}
.legal h2 {
  font-size: 1.5rem;
  margin-top: 2.6rem;
  margin-bottom: 0.8rem;
}
.legal h3 {
  font-size: 1.15rem;
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}
.legal p,
.legal li {
  color: var(--ink-2);
  margin-bottom: 0.9rem;
}
.legal ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.legal li {
  margin-bottom: 0.5rem;
}
.legal a {
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal .toc {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.5rem;
}
.legal .toc ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  columns: 2;
  gap: 1rem;
}
.legal .toc a {
  text-decoration: none;
}
.legal .table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.6rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 480px;
}
.legal th,
.legal td {
  text-align: left;
  padding: 0.8rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--divider);
  color: var(--ink-2);
}
.legal thead th {
  background: var(--canvas-soft);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.legal tbody tr:last-child td {
  border-bottom: none;
}
.legal .note {
  background: var(--butter-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  margin: 1.4rem 0;
}
.legal .note strong {
  color: var(--ink);
}
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 3rem;
  font-weight: 600;
  color: var(--orange-deep);
}
@media (max-width: 560px) {
  .legal .toc ul {
    columns: 1;
  }
}

/* ---------- Help center / guides hero ---------- */
.support-hero {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
  text-align: center;
  background: radial-gradient(
      120% 100% at 50% 0%,
      var(--orange-soft) 0%,
      transparent 55%
    ),
    var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.support-hero h1 {
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  margin-top: 0.8rem;
  max-width: 16ch;
  margin-inline: auto;
}
.support-hero .lead {
  margin: 1.1rem auto 0;
  max-width: 52ch;
}
.support-hero .switcher {
  margin-top: 2rem;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Help categories ---------- */
.help-cats {
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: clamp(2rem, 1.5rem + 2vw, 3.2rem) 3.5rem;
}
.help-cat h2 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--orange-soft);
  margin-bottom: 0;
}
.help-cat h2 .dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--grad-primary);
  flex: none;
}
/* ===== Help center: search ===== */
.help-search {
  position: relative;
  max-width: 560px;
  margin: 1.8rem auto 0;
}
.help-search input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  color: var(--ink);
  padding: 0.95rem 1.1rem 0.95rem 2.9rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.help-search input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}
.help-search .search-ico {
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-3);
  pointer-events: none;
}
.help-search .results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 0.4rem;
  z-index: 20;
  text-align: left;
  max-height: 60vh;
  overflow-y: auto;
}
.help-search .results[hidden] {
  display: none;
}
.help-search .results a {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
}
.help-search .results a:hover,
.help-search .results a.active {
  background: var(--surface-muted);
}
.help-search .results a .r-q {
  font-weight: 600;
  font-size: 0.95rem;
}
.help-search .results a .r-c {
  font-size: 0.78rem;
  color: var(--ink-3);
}
.help-search .results .empty {
  padding: 0.8rem;
  color: var(--ink-3);
  font-size: 0.92rem;
}

/* ===== Help center: category cards (home) ===== */
.help-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.help-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.22s var(--ease-out-expo), box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.help-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--orange-soft);
}
.help-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange-deep);
  margin-bottom: 0.5rem;
}
.help-card__icon svg {
  width: 22px;
  height: 22px;
}
.help-card h2 {
  font-size: 1.18rem;
}
.help-card p {
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.5;
}
.help-card .count {
  margin-top: auto;
  padding-top: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange-deep);
}
@media (max-width: 900px) {
  .help-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .help-cards {
    grid-template-columns: 1fr;
  }
}

/* ===== Help center: inner category page (sidebar + content) ===== */
.help-page {
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(3rem, 2rem + 3vw, 5rem);
}
.help-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-bottom: 1.6rem;
}
.help-breadcrumb a {
  color: var(--ink-2);
  text-decoration: none;
}
.help-breadcrumb a:hover {
  color: var(--orange-deep);
}
.help-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}
.help-sidebar {
  position: sticky;
  top: 96px;
}
.help-sidebar h2 {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.8rem;
  padding-left: 0.9rem;
}
.help-sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.help-sidebar a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.help-sidebar a:hover {
  background: var(--surface-muted);
  color: var(--ink);
}
.help-sidebar a[aria-current="page"] {
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-weight: 600;
}
.help-content h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem);
  margin-bottom: 0.5rem;
}
.help-content .intro {
  color: var(--ink-2);
  font-size: var(--text-lead);
  margin-bottom: 1.5rem;
}
.help-content .help-article h3 {
  font-size: 1.08rem;
  scroll-margin-top: 100px;
}
.help-content .help-article {
  scroll-margin-top: 100px;
}
.help-pager {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.help-pager a {
  font-weight: 600;
  color: var(--orange-deep);
  text-decoration: none;
  font-size: 0.95rem;
}
@media (max-width: 820px) {
  .help-layout {
    grid-template-columns: 1fr;
  }
  .help-sidebar {
    position: static;
  }
  .help-sidebar ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .help-sidebar a {
    border: 1px solid var(--hairline);
  }
}

/* Real help-center article list — always visible, doc-style, tight spacing */
.help-articles {
  display: flex;
  flex-direction: column;
}
.help-article {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--divider);
}
.help-article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.help-article h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.help-article p {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.6;
}
.help-article a {
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 760px) {
  .help-grid {
    grid-template-columns: 1fr;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hero device availability (named) ---------- */
.hero-platforms {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
}
.hero-platforms .pf-lead {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-platforms ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero-platforms li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.hero-platforms li svg {
  width: 17px;
  height: 17px;
  color: var(--orange-deep);
  flex: none;
}
@media (max-width: 880px) {
  .hero-platforms {
    justify-content: center;
  }
}
@media (max-width: 380px) {
  .hero-platforms .pf-lead {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Import guide: numbered steps (inner pages) ---------- */
.step-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.9rem;
}
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 0.1rem 0 0 2.7rem;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.55;
  min-height: 1.9rem;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  display: grid;
  place-items: center;
}
.step-tip {
  margin-top: 1.4rem;
  background: var(--butter-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.step-tip strong {
  color: var(--ink);
}

/* ---------- Support contact band ---------- */
.support-cta {
  text-align: center;
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
}
.support-cta h2 {
  font-size: var(--text-h3);
}
.support-cta p {
  color: var(--ink-2);
  margin: 0.8rem auto 1.6rem;
  max-width: 46ch;
}

/* Collapse the wordmark to just the logo on phones so the header fits cleanly. */
@media (max-width: 560px) {
  .site-header .brand-name {
    display: none;
  }
}

/* FAQ "more questions" link to the Help Center */
.faq-more {
  max-width: 760px;
  margin: 1.6rem auto 0;
  text-align: center;
  color: var(--ink-2);
  font-size: 1rem;
}
.faq-more a {
  color: var(--orange-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
