:root {
  --bg: #0D1117;
  --surface: #161B27;
  --surface-high: #1E2435;
  --divider: #252D3E;
  --text: #FFFFFF;
  --text-secondary: #9AA3B2;
  --text-muted: #6B7280;

  --primary: #6C63FF;
  --primary-dim: #5A52D9;
  --ocean: #0EA5E9;
  --emerald: #10B981;
  --sunset: #F97316;
  --rose: #F43F5E;

  --link-color: #38BDF8;
  --note-color: #F59E0B;
  --image-color: #10B981;
  --file-color: #F43F5E;

  --radius: 14px;
  --radius-sm: 10px;
  --max-width: 1120px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* .site-header is position: sticky, so any anchor-jump target needs this —
   otherwise the browser scrolls the target flush to the viewport top and
   the sticky header sits on top of it, hiding its first ~64px. */
[id] { scroll-margin-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow.center { display: block; text-align: center; margin-bottom: 12px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin-bottom: 16px; }
h1.center, h2.center { text-align: center; }
h3 { font-size: 18px; margin-bottom: 8px; }

p { color: var(--text-secondary); margin: 0 0 12px; }
p.center { text-align: center; }

.section-lead {
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 17px;
  color: var(--text-secondary);
}

.section { padding: 96px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dim); }
.btn-ghost { background: transparent; border-color: var(--divider); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-disabled, .btn-disabled:hover {
  background: var(--surface-high);
  color: var(--text-secondary);
  border-color: var(--divider);
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-large { padding: 18px 36px; font-size: 17px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}
.brand span {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.045em;
}
.brand-icon { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a[href="demo"], .nav-links a[href="../demo"] { color: var(--primary); font-weight: 700; }
.nav-links a[href="demo"]:hover, .nav-links a[href="../demo"]:hover { color: var(--primary-dim); }
.header-inner .btn-small { display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero { padding: 72px 0 96px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 16px; }
.hero-tagline {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  max-width: 480px;
  margin-bottom: 16px;
}
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy h1 em { color: var(--primary); font-style: normal; }
.hero-sub { font-size: 18px; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-meta { font-size: 13px; color: var(--text-muted); }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 280px;
  height: 560px;
  background: #05070a;
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 30px 80px -20px rgba(108, 99, 255, 0.35), 0 0 0 1px var(--divider);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: #05070a;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  background: var(--bg);
  width: 100%;
  height: 100%;
  border-radius: 28px;
  padding: 28px 14px 14px;
  overflow: hidden;
}
.mock-topbar { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 14px; }
.mock-title { font-weight: 700; font-size: 15px; }
.mock-icon { color: var(--text-secondary); }
.mock-pinned-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 8px 4px 8px;
}
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 2px; }
.mock-tile {
  border-radius: 12px;
  padding: 12px 10px;
  background: var(--surface);
  border: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-tile-icon { font-size: 18px; }
.mock-tile-label { font-size: 10.5px; color: var(--text); font-weight: 600; line-height: 1.3; }
.tile-app { border-left: 3px solid var(--primary); }
.tile-image { border-left: 3px solid var(--image-color); }
.tile-file { border-left: 3px solid var(--file-color); }
.tile-link { border-left: 3px solid var(--link-color); }

.mock-list { display: flex; flex-direction: column; gap: 8px; padding: 0 2px; }
.mock-row {
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-note { background: var(--note-color); }
.dot-image { background: var(--image-color); }
.dot-link { background: var(--link-color); }

/* About */
.about-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.pull-quote {
  max-width: 560px;
  margin: 32px auto 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--primary);
  text-align: left;
  font-size: 17px;
  font-style: italic;
  color: var(--text);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  background: var(--surface-high);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color .15s ease, transform .15s ease;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  background: rgba(108, 99, 255, 0.15);
}
.icon-app { background: rgba(108, 99, 255, 0.15); }
.icon-pin { background: rgba(249, 115, 22, 0.15); }
.icon-clock { background: rgba(244, 63, 94, 0.15); }
.icon-trash { background: rgba(244, 63, 94, 0.15); }
.icon-grid { background: rgba(14, 165, 233, 0.15); }
.icon-search { background: rgba(14, 165, 233, 0.15); }
.icon-palette { background: rgba(16, 185, 129, 0.15); }
.icon-menu { background: rgba(107, 114, 128, 0.2); }
.icon-folder { background: rgba(16, 185, 129, 0.15); }
.icon-inbox { background: rgba(14, 165, 233, 0.15); }
.icon-bell { background: rgba(249, 115, 22, 0.15); }
.icon-reorder { background: rgba(108, 99, 255, 0.15); }
.icon-widget { background: rgba(244, 63, 94, 0.15); }
.icon-backup { background: rgba(107, 114, 128, 0.2); }
.icon-storage { background: rgba(14, 165, 233, 0.15); }
.feature-card p { font-size: 14px; margin: 0; }

/* Organize preview — a small mock of Reminders + Folders on Home */
.organize-preview-inner {
  max-width: 640px;
  margin: 40px auto 0;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 20px;
}
.organize-preview-inner .mock-pinned-label:first-child { padding-top: 0; }
.organize-preview-inner .mock-pinned-label.accent-reminder { color: var(--ocean); }
.organize-preview-inner .dot-reminder { background: var(--ocean); }
.mock-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 560px) { .mock-grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* Pricing */
.pricing-table-wrap {
  max-width: 640px;
  margin: 48px auto 0;
  overflow-x: auto;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
}
.pricing-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  background: var(--surface-high);
}
.pricing-table th, .pricing-table td {
  padding: 14px 18px;
  text-align: center;
  font-size: 14px;
  color: var(--text);
}
.pricing-table th:first-child, .pricing-table td:first-child {
  text-align: left;
  color: var(--text-secondary);
  font-weight: 500;
  width: 46%;
}
.pricing-table thead th {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  padding: 20px 18px 14px;
  border-bottom: 1px solid var(--divider);
  white-space: nowrap;
}
.pricing-table tbody tr:not(:last-child) td { border-bottom: 1px solid var(--divider); }
.pricing-table th:last-child, .pricing-table td:last-child { background: rgba(108, 99, 255, 0.08); }
.pricing-table td.check { color: var(--primary); font-weight: 700; font-size: 16px; }
.pricing-table-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 4px;
  vertical-align: middle;
}
.pricing-cta { text-align: center; margin-top: 32px; }
.pricing-cta-note { color: var(--text-secondary); font-size: 13px; margin: 16px 0 0; }

/* Why section */
.why-inner { max-width: 760px; margin: 0 auto; }
.why-copy .eyebrow { display: block; margin-bottom: 12px; }
.why-copy h2 { margin-bottom: 28px; }
.why-list { display: flex; flex-direction: column; gap: 18px; }
.why-list li {
  font-size: 16px;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}
.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.why-list strong { color: var(--text); }

/* Examples */
.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.example-card {
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 24px;
}
.example-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.badge-image { background: rgba(16, 185, 129, 0.15); color: var(--image-color); }
.badge-file { background: rgba(244, 63, 94, 0.15); color: var(--file-color); }
.badge-link { background: rgba(56, 189, 248, 0.15); color: var(--link-color); }
.badge-note { background: rgba(245, 158, 11, 0.15); color: var(--note-color); }
.badge-app { background: rgba(108, 99, 255, 0.15); color: var(--primary); }
.example-card p { font-size: 14px; margin: 0; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  margin-bottom: 64px;
}
.step { text-align: left; }
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.step p { font-size: 14px; margin: 0; }
.step-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* FAQ */
.faq-inner { max-width: 720px; margin: 0 auto; }
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface-high);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
}
.faq-chevron { color: var(--primary); transition: transform .2s ease; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 20px;
}
.faq-answer p { font-size: 14px; padding-bottom: 18px; margin: 0; }
.faq-answer ul {
  margin: 0 0 18px;
  padding-left: 20px;
  list-style: disc;
  color: var(--text-secondary);
  font-size: 14px;
}
.faq-answer li + li { margin-top: 6px; }
.faq-item.open .faq-answer { max-height: 400px; }

/* Footer */
.site-footer { border-top: 1px solid var(--divider); padding: 48px 0; }
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-inner .brand { justify-content: center; }
.footer-inner p { font-size: 13px; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer-links a { color: var(--text-secondary); font-size: 13px; transition: color .15s; }
.footer-links a:hover { color: var(--text); }

/* Privacy, terms, and support pages */
.content-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--divider); }
.content-hero-inner { width: 100%; max-width: 760px; min-width: 0; }
.content-hero .eyebrow { margin-bottom: 14px; }
.content-hero h1 { margin-bottom: 18px; }
.content-hero .section-lead { margin: 0; max-width: 720px; }
.content-meta { margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.content-page { padding: 64px 0 96px; }
.content-layout { width: 100%; max-width: 820px; min-width: 0; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.content-card { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius); padding: 28px 30px; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.content-card h2 { font-size: 23px; margin-bottom: 14px; }
.content-card h3 { margin-top: 22px; }
.content-card p:last-child { margin-bottom: 0; }
.content-card a, .inline-link { color: var(--link-color); text-decoration: underline; text-underline-offset: 3px; }
.content-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.content-list li { color: var(--text-secondary); padding-left: 22px; position: relative; }
.content-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.content-callout { background: rgba(108, 99, 255, 0.1); border-color: rgba(108, 99, 255, 0.45); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; width: 100%; min-width: 0; }
.contact-card { background: var(--surface-high); border: 1px solid var(--divider); border-radius: var(--radius); padding: 24px; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.contact-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(108, 99, 255, 0.15); margin-bottom: 16px; font-size: 19px; }
.contact-card h2 { font-size: 20px; }
.contact-card .btn { margin-top: 10px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--surface-high);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; margin-bottom: 20px; }
.form-notice-success { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.4); color: #6ee7b7; }
.form-notice-error { background: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.4); color: #fca5b1; }

.email-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 14px 0;
  font-size: 14px;
  color: var(--text);
}
.email-copy-row span { flex: 1; overflow-wrap: anywhere; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--divider);
  background: var(--surface-high);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: color .15s ease, border-color .15s ease;
}
.copy-btn:hover { color: var(--primary); border-color: var(--primary); }
.copy-btn.copied { color: #6ee7b7; border-color: rgba(16, 185, 129, 0.4); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .example-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .header-inner .btn-small { display: none; }
}

@media (max-width: 900px) {
  .site-header.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    /* .site-header has backdrop-filter, which makes it the containing
       block for fixed descendants — so `bottom: 0` here would resolve
       against the 72px-tall header box, not the viewport. Use an
       explicit height instead. */
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--divider);
    padding: 20px 24px;
    gap: 18px;
    z-index: 40;
  }
  .site-header.menu-open .header-inner .btn-small {
    display: none;
  }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .example-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .hero { padding: 32px 0 56px; }
  .phone { width: 100%; max-width: 280px; }
  .content-hero { padding: 32px 0 36px; }
  .content-page { padding: 44px 0 72px; }
  .content-card { padding: 22px 20px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-form-row { grid-template-columns: 1fr; }
  .pricing-table { min-width: 0; }
  .pricing-table th, .pricing-table td { padding: 10px 8px; font-size: 12.5px; }
  .pricing-table thead th { font-size: 13px; padding: 14px 8px 10px; }
  .pricing-table-badge { display: block; margin: 4px 0 0; width: fit-content; }
}

/* Guide page */
.guide-hero { padding: 56px 0 48px; }
.guide-hero h1 { margin-bottom: 20px; }
.guide-hero .section-lead:last-child { margin-bottom: 0; }
.guide-table-wrap {
  max-width: 640px;
  margin: 40px auto 0;
  overflow-x: auto;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
}
.guide-table { width: 100%; border-collapse: collapse; }
.guide-table th, .guide-table td { text-align: left; padding: 16px 20px; font-size: 14px; }
.guide-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
}
.guide-table tbody tr + tr td { border-top: 1px solid var(--divider); }
.guide-table td:last-child { color: var(--text-secondary); }
.guide-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.guide-method { max-width: 820px; margin: 0 auto 56px; }
.guide-method:last-child { margin-bottom: 0; }
.guide-method h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.guide-method-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--primary);
  background: rgba(108, 99, 255, 0.15);
  padding: 3px 10px;
  border-radius: 100px;
}
.guide-method .steps { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
.guide-method .step { display: flex; align-items: flex-start; gap: 14px; }
.guide-method .step-number { flex-shrink: 0; margin-bottom: 0; }
.guide-method .step p { padding-top: 4px; }
.guide-method-note { font-size: 13px; color: var(--text-muted); margin-top: 16px; }

.guide-subhead { margin-top: 32px; }

/* Illustrated row — text + a small mock alongside it */
.illustrated-row { display: grid; grid-template-columns: 1fr 220px; gap: 32px; align-items: start; }
.illustrated-row > :first-child { min-width: 0; }

/* Small mock illustrations, reusing the hero phone's visual language */
.method-illustration {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.share-sheet-mock { display: flex; flex-direction: column; gap: 12px; }
.sheet-handle { width: 32px; height: 4px; border-radius: 2px; background: var(--divider); margin: 0 auto; }
.sheet-label { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; color: var(--text-muted); text-transform: uppercase; text-align: center; }
.sheet-apps { display: flex; justify-content: space-between; gap: 6px; }
.sheet-app { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.sheet-app-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-high); border: 1px solid var(--divider);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.sheet-app-name { font-size: 7.5px; color: var(--text-secondary); text-align: center; line-height: 1.2; }
.sheet-app-active .sheet-app-icon { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2); }
.sheet-app-active .sheet-app-name { color: var(--primary); font-weight: 700; }

.add-menu-mock { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.add-menu-options { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.add-menu-option {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; color: var(--text);
  background: var(--surface-high); border: 1px solid var(--divider);
  border-radius: 8px; padding: 7px 9px;
}
.add-fab {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; line-height: 1;
  box-shadow: 0 8px 20px -6px rgba(108, 99, 255, 0.6);
}

.longpress-mock { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.longpress-tile {
  position: relative; width: 100%;
  background: var(--surface-high); border: 1px solid var(--primary);
  border-radius: 10px; padding: 12px;
  display: flex; align-items: center; gap: 8px;
}
.longpress-ring {
  position: absolute; inset: -6px; border-radius: 14px;
  border: 2px solid var(--primary); opacity: 0.4;
  animation: longpressPulse 1.8s ease-in-out infinite;
}
@keyframes longpressPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 0.15; }
}
.longpress-popup { display: flex; gap: 6px; }
.longpress-popup-item {
  font-size: 9.5px; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: 8px; padding: 6px 8px;
}

@media (max-width: 768px) {
  .illustrated-row { grid-template-columns: 1fr; }
  .illustrated-row .method-illustration { order: -1; margin: 0 auto 8px; }
}

.guide-remember .btn-large { margin-top: 8px; }

/* ============================
   Phone demo animation
   4 scenes cross-fade on a single 24s loop, all timings expressed
   as % of that 24s so every sub-effect stays in sync when it repeats.
   Scene windows: 1) 0-25%  2) 25-50%  3) 50-75%  4) 75-100%
   ============================ */
.demo-wrap { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.demo-phone { width: 260px; height: 520px; }
.demo-screen { position: relative; }
@media (prefers-reduced-motion: reduce) {
  .demo-scene, .demo-flash, .demo-toast, .demo-sheet, .demo-tap,
  .demo-homescreen, .demo-mock-grid, .demo-card-opened, .demo-cap,
  .demo-dot-1, .demo-dot-2, .demo-dot-3, .demo-dot-4 { animation: none !important; }
  .demo-scene-1, .demo-cap-1 { opacity: 1; }
  .demo-scene-2, .demo-scene-3, .demo-scene-4,
  .demo-cap-2, .demo-cap-3, .demo-cap-4 { opacity: 0; }
  .demo-dot-1 { background: var(--primary); }
}

.demo-scene {
  position: absolute;
  inset: 0;
  padding: 28px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.demo-scene-1 { animation: demoScene1 24s infinite; }
.demo-scene-2 { animation: demoScene2 24s infinite; }
.demo-scene-3 { animation: demoScene3 24s infinite; }
.demo-scene-4 { animation: demoScene4 24s infinite; justify-content: flex-start; padding-top: 108px; }

/* In-phone caption band, reuses the scene keyframes so text swaps in exact sync */
.demo-caption {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  min-height: 100px;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(5,7,10,0.95) 0%, rgba(5,7,10,0.85) 70%, rgba(5,7,10,0) 100%);
}
.demo-cap {
  position: absolute;
  inset: 0;
  padding: 30px 18px 14px;
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.demo-cap strong { font-size: 12.5px; font-weight: 700; color: #fff; }
.demo-cap span { font-size: 11px; line-height: 1.35; color: rgba(255,255,255,0.75); }
.demo-cap-1 { animation: demoScene1 24s infinite; }
.demo-cap-2 { animation: demoScene2 24s infinite; }
.demo-cap-3 { animation: demoScene3 24s infinite; }
.demo-cap-4 { animation: demoScene4 24s infinite; }

@keyframes demoScene1 {
  0% { opacity: 0; } 2% { opacity: 1; } 23% { opacity: 1; } 25% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes demoScene2 {
  0% { opacity: 0; } 25% { opacity: 0; } 27% { opacity: 1; } 48% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes demoScene3 {
  0% { opacity: 0; } 50% { opacity: 0; } 52% { opacity: 1; } 73% { opacity: 1; } 75% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes demoScene4 {
  0% { opacity: 0; } 75% { opacity: 0; } 77% { opacity: 1; } 98% { opacity: 1; } 100% { opacity: 0; }
}

/* Boarding pass card, reused in scene 1 (screenshot) and scene 4 (opened) */
.boarding-card {
  width: 100%;
  max-width: 210px;
  background: linear-gradient(135deg, var(--primary) 0%, #4338CA 100%);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 16px 40px -12px rgba(108, 99, 255, 0.5);
}
.boarding-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.boarding-card-plane { font-size: 16px; }
.boarding-card-title { font-size: 12px; font-weight: 700; letter-spacing: 0.3px; color: #fff; }
.boarding-card-route { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.boarding-card-arrow { font-size: 14px; opacity: 0.7; }
.boarding-card-meta { display: flex; justify-content: space-between; margin-bottom: 16px; }
.boarding-card-meta div { display: flex; flex-direction: column; gap: 3px; }
.boarding-card-meta span { font-size: 8px; font-weight: 700; letter-spacing: 0.5px; color: rgba(255,255,255,0.6); }
.boarding-card-meta strong { font-size: 13px; color: #fff; }
.boarding-card-barcode {
  height: 28px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 5px);
  opacity: 0.85;
}
.demo-card-opened { animation: demoCardOpen 24s infinite; position: absolute; }
@keyframes demoCardOpen {
  0% { opacity: 0; transform: scale(0.85); }
  88% { opacity: 0; transform: scale(0.85); }
  92% { opacity: 1; transform: scale(1); }
  99% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.85); }
}

/* Scene 1: screenshot flash + toast */
.demo-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  animation: demoFlash 24s infinite;
}
@keyframes demoFlash {
  0% { opacity: 0; } 19% { opacity: 0; } 20% { opacity: 0.9; } 21% { opacity: 0; } 100% { opacity: 0; }
}
.demo-toast {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 10px);
  background: var(--surface-high);
  border: 1px solid var(--divider);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
}
.demo-toast-1 { animation: demoToast1 24s infinite; }
@keyframes demoToast1 {
  0% { opacity: 0; transform: translate(-50%, 10px); }
  20% { opacity: 0; transform: translate(-50%, 10px); }
  21% { opacity: 1; transform: translate(-50%, 0); }
  24% { opacity: 1; transform: translate(-50%, 0); }
  25% { opacity: 0; transform: translate(-50%, 10px); }
  100% { opacity: 0; transform: translate(-50%, 10px); }
}
.demo-toast-2 { animation: demoToast2 24s infinite; }
@keyframes demoToast2 {
  0% { opacity: 0; transform: translate(-50%, 10px); }
  43% { opacity: 0; transform: translate(-50%, 10px); }
  45% { opacity: 1; transform: translate(-50%, 0); }
  48% { opacity: 1; transform: translate(-50%, 0); }
  49.5% { opacity: 0; transform: translate(-50%, 10px); }
  100% { opacity: 0; transform: translate(-50%, 10px); }
}

/* Scene 2: share sheet */
.demo-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface-high);
  border: 1px solid var(--divider);
  border-radius: 20px 20px 0 0;
  padding: 10px 16px 20px;
  transform: translateY(100%);
  animation: demoSheetSlide 24s infinite;
}
@keyframes demoSheetSlide {
  0% { transform: translateY(100%); }
  25% { transform: translateY(100%); }
  27% { transform: translateY(0); }
  40% { transform: translateY(0); }
  43% { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}
.demo-sheet-handle { width: 32px; height: 4px; border-radius: 4px; background: var(--divider); margin: 0 auto 12px; }
.demo-sheet-title { font-size: 10px; color: var(--text-muted); text-align: center; margin-bottom: 10px; }
.demo-sheet-icons { display: flex; justify-content: center; gap: 14px; }
.demo-sheet-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--divider); position: relative; }
.demo-sheet-icon-active {
  background: linear-gradient(135deg, var(--primary), #4338CA);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
}
.demo-sheet-label { text-align: center; font-size: 9px; color: var(--text-secondary); margin-top: 8px; }

/* Scene 3: home screen */
.demo-homescreen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  animation: demoZoomOpen 24s infinite;
}
@keyframes demoZoomOpen {
  0% { opacity: 1; transform: scale(1); }
  68% { opacity: 1; transform: scale(1); }
  74% { opacity: 0; transform: scale(1.3); }
  100% { opacity: 0; transform: scale(1.3); }
}
.demo-app-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-high); border: 1px solid var(--divider); }
.demo-app-icon-hub {
  background: linear-gradient(135deg, var(--primary), #4338CA);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.demo-app-label { font-size: 11px; color: var(--text-secondary); margin-top: 10px; }

/* Shared home-screen chrome: clock + nav bar, reused by both demos */
.phone-clock { text-align: center; margin-bottom: 28px; }
.phone-clock-time { font-size: 32px; font-weight: 300; color: var(--text); letter-spacing: 0.5px; }
.phone-clock-date { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
.phone-navbar {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  font-size: 15px;
  color: var(--text-muted);
}

/* Scene 4: tap tile, open card */
.demo-mock-grid { grid-template-columns: repeat(2, 1fr); width: 100%; animation: demoGridClose 24s infinite; }
@keyframes demoGridClose {
  0% { opacity: 1; } 86% { opacity: 1; } 90% { opacity: 0; } 100% { opacity: 0; }
}

/* Tap ripple, reused across scenes with per-instance timing */
.demo-tap {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  transform: scale(0.3);
}
.demo-tap-2 { left: 50%; bottom: 74px; margin-left: -18px; animation: demoTap2 24s infinite; }
@keyframes demoTap2 {
  0% { opacity: 0; transform: scale(0.3); }
  37% { opacity: 0; transform: scale(0.3); }
  39% { opacity: 0.6; transform: scale(1); }
  41% { opacity: 0; transform: scale(1.6); }
  100% { opacity: 0; transform: scale(0.3); }
}
.demo-tap-3 { top: 316px; left: 50%; margin: -18px 0 0 -18px; animation: demoTap3 24s infinite; }
@keyframes demoTap3 {
  0% { opacity: 0; transform: scale(0.3); }
  59% { opacity: 0; transform: scale(0.3); }
  61% { opacity: 0.6; transform: scale(1); }
  64% { opacity: 0; transform: scale(1.6); }
  100% { opacity: 0; transform: scale(0.3); }
}
.demo-tap-4 { top: 108px; left: 25%; animation: demoTap4 24s infinite; }
@keyframes demoTap4 {
  0% { opacity: 0; transform: scale(0.3); }
  83% { opacity: 0; transform: scale(0.3); }
  85% { opacity: 0.6; transform: scale(1); }
  88% { opacity: 0; transform: scale(1.6); }
  100% { opacity: 0; transform: scale(0.3); }
}

/* Step progress dots */
.demo-dots { display: flex; gap: 8px; }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--divider); }
.demo-dot-1 { animation: demoDotActive1 24s infinite; }
@keyframes demoDotActive1 {
  0% { background: var(--primary); } 23% { background: var(--primary); }
  25% { background: var(--divider); } 98% { background: var(--divider); }
  100% { background: var(--primary); }
}
.demo-dot-2 { animation: demoDotActive2 24s infinite; }
@keyframes demoDotActive2 {
  0% { background: var(--divider); } 25% { background: var(--divider); }
  27% { background: var(--primary); } 48% { background: var(--primary); }
  50% { background: var(--divider); } 100% { background: var(--divider); }
}
.demo-dot-3 { animation: demoDotActive3 24s infinite; }
@keyframes demoDotActive3 {
  0% { background: var(--divider); } 50% { background: var(--divider); }
  52% { background: var(--primary); } 73% { background: var(--primary); }
  75% { background: var(--divider); } 100% { background: var(--divider); }
}
.demo-dot-4 { animation: demoDotActive4 24s infinite; }
@keyframes demoDotActive4 {
  0% { background: var(--divider); } 75% { background: var(--divider); }
  77% { background: var(--primary); } 98% { background: var(--primary); }
  100% { background: var(--divider); }
}

/* ============================
   Phone demo animation 2 — long-press the app icon, shortcuts pop up
   One continuous home screen on a 12s loop; a scrim + popup menu
   appear/disappear over it, mimicking Android's real long-press UI.
   Captions still cross-fade the same way as demo 1 (reused timing).
   ============================ */
.demo2-home {
  position: absolute;
  inset: 0;
  padding: 28px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.demo2-scrim {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  animation: demo2Scrim 12s infinite;
}
@keyframes demo2Scrim {
  0% { opacity: 0; } 44% { opacity: 0; } 50% { opacity: 0.55; }
  90% { opacity: 0.55; } 96% { opacity: 0; } 100% { opacity: 0; }
}

.demo2-homescreen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}
.demo2-app-label { font-size: 11px; color: var(--text-secondary); margin-top: 10px; position: relative; z-index: 1; }

.demo2-press-icon {
  position: relative;
  z-index: 2;
  animation: demo2Press 12s infinite;
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
}
@keyframes demo2Press {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,0,0,0); }
  44% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,0,0,0); }
  50% { transform: scale(1.14); box-shadow: 0 10px 24px -6px rgba(0,0,0,0.6); }
  90% { transform: scale(1.14); box-shadow: 0 10px 24px -6px rgba(0,0,0,0.6); }
  96% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,0,0,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

.demo2-popup {
  position: absolute;
  z-index: 3;
  top: 344px;
  left: 50%;
  width: 168px;
  margin-left: -84px;
  background: var(--surface-high);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 6px 0;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(-8px) scale(0.92);
  transform-origin: top center;
  animation: demo2Popup 12s infinite;
}
@keyframes demo2Popup {
  0% { opacity: 0; transform: translateY(-8px) scale(0.92); }
  46% { opacity: 0; transform: translateY(-8px) scale(0.92); }
  52% { opacity: 1; transform: translateY(0) scale(1); }
  88% { opacity: 1; transform: translateY(0) scale(1); }
  94% { opacity: 0; transform: translateY(-8px) scale(0.92); }
  100% { opacity: 0; transform: translateY(-8px) scale(0.92); }
}
.demo2-popup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.demo2-popup-icon { font-size: 14px; flex-shrink: 0; }
.demo2-popup-tail {
  position: absolute;
  top: -6px;
  left: 50%;
  margin-left: -6px;
  width: 12px;
  height: 12px;
  background: var(--surface-high);
  border-top: 1px solid var(--divider);
  border-left: 1px solid var(--divider);
  transform: rotate(45deg);
}

/* In-phone captions, cross-fade timing reused from demo 1's scene pattern */
.demo2-caption {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  min-height: 100px;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(5,7,10,0.95) 0%, rgba(5,7,10,0.85) 70%, rgba(5,7,10,0) 100%);
}
.demo2-cap {
  position: absolute;
  inset: 0;
  padding: 30px 18px 14px;
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.demo2-cap strong { font-size: 12.5px; font-weight: 700; color: #fff; }
.demo2-cap span { font-size: 11px; line-height: 1.35; color: rgba(255,255,255,0.75); }
.demo2-cap-1 { animation: demo2Scene1 12s infinite; }
.demo2-cap-2 { animation: demo2Scene2 12s infinite; }
@keyframes demo2Scene1 {
  0% { opacity: 1; } 44% { opacity: 1; } 48% { opacity: 0; } 96% { opacity: 0; } 100% { opacity: 1; }
}
@keyframes demo2Scene2 {
  0% { opacity: 0; } 48% { opacity: 0; } 52% { opacity: 1; } 92% { opacity: 1; } 96% { opacity: 0; } 100% { opacity: 0; }
}

.demo2-dot-1 { animation: demo2DotActive1 12s infinite; }
@keyframes demo2DotActive1 {
  0% { background: var(--primary); } 44% { background: var(--primary); }
  48% { background: var(--divider); } 96% { background: var(--divider); } 100% { background: var(--primary); }
}
.demo2-dot-2 { animation: demo2DotActive2 12s infinite; }
@keyframes demo2DotActive2 {
  0% { background: var(--divider); } 48% { background: var(--divider); }
  52% { background: var(--primary); } 92% { background: var(--primary); }
  96% { background: var(--divider); } 100% { background: var(--divider); }
}

@media (prefers-reduced-motion: reduce) {
  .demo2-scrim, .demo2-press-icon, .demo2-popup, .demo2-cap,
  .demo2-dot-1, .demo2-dot-2 { animation: none !important; }
  .demo2-cap-1 { opacity: 1; }
  .demo2-cap-2 { opacity: 0; }
  .demo2-dot-1 { background: var(--primary); }
}

/* Shared editorial typography: page titles, reading text and introductions. */
:root{--page-title-size:clamp(32px,5vw,52px);--section-title-size:26px;--body-copy-size:17px;--intro-copy-size:18px;--body-copy-leading:1.7}
body{font-size:var(--body-copy-size);line-height:var(--body-copy-leading)}
h1{font-size:var(--page-title-size)}
h2,.content-card h2{font-size:var(--section-title-size)}
.hero-sub,.section-lead{font-size:var(--intro-copy-size);line-height:var(--body-copy-leading)}
.content-card p,.content-list,.why-copy p{font-size:var(--body-copy-size);line-height:var(--body-copy-leading)}

/* Compact reading-page headings and introductions. */
.guide-hero h1,.content-hero h1{font-size:clamp(30px,4vw,40px)}
.guide-hero .section-lead,.content-hero .section-lead{font-size:17px}
