:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-elev: #f5f8ff;
  --surface-alt: #eef3fb;
  --text: #11131a;
  --muted: #5d6675;
  --line: #d8dee8;
  --line-strong: #c7d0df;
  --brand: #165dff;
  --brand-strong: #0f4bce;
  --brand-soft: #dbe8ff;
  --on-brand: #f7fbff;
  --page-radial: #eef4ff;
  --page-top: #f8faff;
  --header-bg: rgba(248, 250, 255, 0.85);
  --footer-bg: rgba(255, 255, 255, 0.72);
  --video-bg: #0d111b;
  --video-border: #1d2741;
  --pro-border: #9cc0ff;
  --pro-bg-start: #f8fbff;
  --pro-bg-end: #ffffff;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --container: 1120px;
  --shadow-sm: 0 4px 16px rgba(12, 24, 52, 0.08);
  --shadow: 0 14px 36px rgba(10, 22, 47, 0.12);
  --icon-shadow: 0 6px 20px rgba(18, 35, 75, 0.25);
  --card-shadow: 0 8px 28px rgba(10, 22, 47, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Avenir Next", "Avenir", "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  background:
    radial-gradient(1200px 700px at -10% -20%, var(--page-radial), transparent 60%),
    radial-gradient(900px 500px at 120% -10%, var(--brand-soft), transparent 60%),
    linear-gradient(180deg, var(--page-top) 0%, var(--bg) 100%);
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease,
    transform 160ms ease, box-shadow 160ms ease;
}

a:hover {
  color: var(--brand-strong);
}

.unstyled-link,
.unstyled-link:visited,
.unstyled-link:hover,
.unstyled-link:focus-visible {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  border-radius: 0;
  box-shadow: var(--icon-shadow);
}

.site-nav ul {
  margin: 0;
  padding: 0.28rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  min-height: 34px;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.91rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--surface-alt);
}

.site-nav li:last-child a {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--shadow-sm);
}

.site-nav li:last-child a:hover,
.site-nav li:last-child a:focus-visible {
  background: var(--brand-strong);
}

.section {
  padding: 4.25rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.hero {
  padding-top: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-alt);
  color: var(--brand-strong);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

h1,
h2,
h3,
.brand {
  font-family: "Avenir Next", "Avenir", "SF Pro Display", "Segoe UI", sans-serif;
}

h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 17ch;
}

h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.5vw, 1.14rem);
}

.cta-row {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.62rem 1.05rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: var(--on-brand);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  color: var(--on-brand);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--surface);
}

.app-store-badge-link {
  display: inline-flex;
  line-height: 0;
  border-radius: 10px;
}

.app-store-badge {
  display: block;
  width: auto;
  height: 52px;
}

.helper {
  margin: 2.25rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  padding-left: 0.68rem;
  border-left: 2px solid var(--pro-border);
}

.hero-panel {
  background: linear-gradient(170deg, var(--surface-elev) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.hero-panel-link {
  color: inherit;
  text-decoration: none;
}

.hero-panel img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.positioning {
  margin: 0;
  font-weight: 700;
}

.muted {
  margin: 0.22rem 0 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.video-wrap {
  margin-top: 1.1rem;
  background: var(--video-bg);
  border-radius: var(--radius);
  border: 1px solid var(--video-border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.preview-video {
  display: block;
  width: 100%;
  height: auto;
}

.cards {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card,
.plan,
.faq-item,
.panel,
.cta-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.card,
.plan,
.faq-item,
.panel,
.cta-block,
.hero-panel,
.steps li {
  transition: transform 180ms ease, box-shadow 200ms ease, border-color 180ms ease;
}

.card,
.plan,
.faq-item,
.panel {
  padding: 1.08rem;
}

.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, transparent 100%);
}

.card:hover,
.plan:hover,
.faq-item:hover,
.panel:hover,
.hero-panel:hover,
.steps li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--pro-border);
}

.card p,
.plan p,
.section p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: workflow;
}

.steps li {
  counter-increment: workflow;
  position: relative;
  background: linear-gradient(180deg, var(--surface-elev) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1rem 1rem 3rem;
  min-height: 84px;
  display: flex;
  align-items: center;
}

.step-copy {
  display: block;
}

.steps li::before {
  content: counter(workflow);
  position: absolute;
  left: 0.95rem;
  top: 0.95rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--pro-border);
  color: var(--brand);
  background: var(--surface-alt);
}

.steps li::after {
  content: "↓";
  position: absolute;
  left: 50%;
  bottom: -0.9rem;
  transform: translateX(-50%);
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 1;
}

.steps li:last-child::after {
  display: none;
}

.pricing-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.plan.pro {
  border-color: var(--pro-border);
  background: linear-gradient(180deg, var(--pro-bg-start) 0%, var(--pro-bg-end) 100%);
}

.price {
  margin-top: 0.52rem;
  font-weight: 750;
  font-size: 1.26rem;
  color: var(--text);
}

.plan ul {
  margin: 0.82rem 0 0;
  padding-left: 1.05rem;
}

.plan li {
  margin: 0.35rem 0;
}

.plan-cta {
  margin-top: 1.05rem;
}

.faq-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.72rem;
}

.faq-item h3 {
  font-size: 1rem;
}

.faq-item p {
  margin: 0.44rem 0 0;
}

.cta-block {
  padding: 1.35rem;
  border-color: var(--pro-border);
  background: linear-gradient(180deg, var(--surface-elev) 0%, var(--surface) 100%);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.8rem 0 2.2rem;
  margin-top: 2.3rem;
  background: var(--footer-bg);
}

.footer-inner {
  display: grid;
  gap: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.footer-links a {
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
}

.footer-meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.page-intro {
  margin: 0.7rem 0 1.35rem;
  max-width: 70ch;
  color: var(--muted);
}

#support .page-intro {
  max-width: none;
}

.panel h2 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.panel ul,
.legal ol,
.legal ul {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
}

.panel li,
.legal li {
  margin: 0.35rem 0;
}

.stack {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.2rem;
}

.legal {
  max-width: 78ch;
}

.legal .last-updated {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal p {
  margin: 0.72rem 0 0;
}

.legal h2 {
  margin-top: 1.3rem;
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
}

@media (max-width: 780px) {
  .header-inner {
    min-height: initial;
    padding: 0.72rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav ul {
    justify-content: flex-start;
  }
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .steps li {
    min-height: 136px;
    align-items: flex-start;
    padding-top: 2.05rem;
  }

  .steps li::after {
    content: "→";
    left: auto;
    right: -0.86rem;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
}

@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 1.75rem;
  }

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

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

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

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0c111a;
    --surface: #111a27;
    --surface-elev: #162133;
    --surface-alt: #1a2740;
    --text: #e9edf7;
    --muted: #a5b4ca;
    --line: #27364c;
    --line-strong: #324765;
    --brand: #79a9ff;
    --brand-strong: #9abfff;
    --brand-soft: #22385f;
    --on-brand: #050a14;
    --page-radial: #1a2740;
    --page-top: #0c131e;
    --header-bg: rgba(11, 18, 30, 0.82);
    --footer-bg: rgba(9, 14, 23, 0.8);
    --video-bg: #0a0f18;
    --video-border: #2a3952;
    --pro-border: #425f97;
    --pro-bg-start: #142136;
    --pro-bg-end: #111a27;
    --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.3);
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
    --icon-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    --card-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
  }
}

/* Temporary force-dark override. Remove this block to restore system-synced theming. */
:root {
  color-scheme: dark;
  --bg: #0c111a;
  --surface: #111a27;
  --surface-elev: #162133;
  --surface-alt: #1a2740;
  --text: #e9edf7;
  --muted: #a5b4ca;
  --line: #27364c;
  --line-strong: #324765;
  --brand: #79a9ff;
  --brand-strong: #9abfff;
  --brand-soft: #22385f;
  --on-brand: #050a14;
  --page-radial: #1a2740;
  --page-top: #0c131e;
  --header-bg: rgba(11, 18, 30, 0.82);
  --footer-bg: rgba(9, 14, 23, 0.8);
  --video-bg: #0a0f18;
  --video-border: #2a3952;
  --pro-border: #425f97;
  --pro-bg-start: #142136;
  --pro-bg-end: #111a27;
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.3);
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  --icon-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  --card-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
