/* Marketing pages (landing, pricing, sign in). Loaded after app.css. */

/* FAQ accordion */
.faq { margin: 8px 0 40px; }
.faq > h2 {
  font-family: var(--display); letter-spacing: -0.03em; margin: 0 0 6px;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}
.faq > .lead { color: var(--muted); margin: 0 0 18px; max-width: 40rem; }
.faq-list {
  border: 1px solid var(--line); border-radius: 20px; background: var(--bg-elev);
  overflow: hidden;
}
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: 1rem; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; background: transparent; border: 0; cursor: pointer;
  text-align: left; font-weight: 650; font-size: 1.02rem; color: var(--ink);
  min-height: 52px;
}
.faq-q:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-q::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s ease; opacity: .7;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-a { padding: 0 18px 18px; color: var(--muted); }
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul { margin: 0 0 10px; padding-left: 1.2em; }
.faq-a li { margin: 4px 0; }
.faq-a strong { color: var(--ink); }
.faq-a .credit-calculator { margin-top: 14px; }

/* Pricing: everyday credits allowance on plan cards */
.price-allowance {
  margin: 4px 0 8px; padding: 10px 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  font-size: 0.93rem; color: var(--ink);
}
.price-allowance small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.pricing-grid.pricing-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .pricing-grid.pricing-grid-3 { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .faq-q::after { transition: none; }
}

/* Sign-in page */
.login-page { display: flex; justify-content: center; padding: 24px 0 72px; }
.login-page .auth-card { width: min(440px, 100%); }
.auth-card h1 { margin: 0 0 6px; font-family: var(--display); letter-spacing: -0.03em; font-size: 1.6rem; }

/* Landing (index.html) — one container, one rhythm */
.landing {
  --section-y: clamp(64px, 8vw, 104px);
  --card-bg: var(--bg-elev);
  --band-alt: color-mix(in srgb, var(--ink) 3.5%, var(--bg));
}
.landing .wrap { width: min(1120px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.site-header { position: relative; z-index: 2; }
.landing .landing-nav { padding: 18px 0; }
.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn-outline { background: transparent; border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.btn-outline:hover { border-color: var(--ink); }
.landing .btn-primary:hover { filter: brightness(1.06); }
.landing .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.band { padding: var(--section-y) 0; }
.band-alt {
  background: var(--band-alt);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.kicker {
  display: inline-block; margin: 0 0 12px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.lp-head { max-width: 44rem; margin: 0 auto clamp(32px, 4vw, 48px); text-align: center; }
.lp-head h2, .cta-panel h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.035em;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem); line-height: 1.04; margin: 0 0 14px; text-wrap: balance;
}
html[data-theme="light"] .landing .kicker,
html[data-theme="light"] .section-foot a,
html[data-theme="light"] .section-lead a { color: color-mix(in srgb, var(--accent) 78%, var(--ink)); }
.section-lead { margin: 0; color: var(--muted); font-size: 1.08rem; }
.section-foot { margin: 28px 0 0; text-align: center; font-weight: 600; }
.section-foot a, .section-lead a { color: var(--accent); text-decoration: none; }
.section-foot a:hover, .section-lead a:hover { text-decoration: underline; }

/* Hero */
.band-hero { padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 56px; align-items: center;
}
.hero-copy h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.045em;
  font-size: clamp(2.3rem, 3.9vw, 3.3rem); line-height: 1.02; margin: 0 0 22px; text-wrap: balance;
}
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.hero-proof {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px;
  color: var(--muted); font-size: 0.92rem;
}
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23ffb703' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
html[data-theme="light"] .hero-proof li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23c47b00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Hero visual: phone with a live ShowDoc (pure HTML/CSS, follows the theme) */
.hero-visual { position: relative; display: flex; justify-content: flex-end; padding: 8px 0; text-align: left; }
.hero-visual::before {
  content: ""; position: absolute; z-index: 0; width: 440px; height: 440px; right: -60px; top: 50%;
  transform: translateY(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent);
  filter: blur(8px);
}
.device {
  position: relative; z-index: 1; width: 300px; aspect-ratio: 9 / 19.2; flex: none;
  padding: 11px; border-radius: 48px; background: #0d1017;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 0 0 4px #1b202b,
    0 40px 80px -20px rgba(0, 0, 0, 0.55),
    0 18px 36px -18px rgba(0, 0, 0, 0.45);
}
html[data-theme="light"] .device {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 0 0 4px #2a2f3b,
    0 40px 80px -24px rgba(40, 30, 10, 0.35),
    0 18px 36px -18px rgba(40, 30, 10, 0.25);
}
.device::before, .device::after {
  content: ""; position: absolute; width: 4px; border-radius: 2px; background: #2a2f3b;
}
.device::before { left: -8px; top: 120px; height: 56px; }
.device::after { right: -8px; top: 150px; height: 84px; }
.device-screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 38px;
  background: var(--bg); color: var(--ink); font-size: 12px; line-height: 1.3;
  display: flex; flex-direction: column;
}
.ds-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px 0; height: 40px; font-size: 12px; font-weight: 700; flex: none;
}
.ds-island { width: 86px; height: 24px; border-radius: 999px; background: #000; }
.ds-sys { display: inline-flex; align-items: flex-end; gap: 2px; }
.ds-sys i { width: 3px; background: var(--ink); border-radius: 1px; }
.ds-sys i:nth-child(1) { height: 5px; } .ds-sys i:nth-child(2) { height: 7px; } .ds-sys i:nth-child(3) { height: 9px; }
.ds-sys b { width: 18px; height: 9px; margin-left: 4px; border-radius: 3px; border: 1.5px solid var(--ink); position: relative; }
.ds-sys b::after { content: ""; position: absolute; inset: 1.5px 4px 1.5px 1.5px; background: var(--ink); border-radius: 1px; }
.ds-app { flex: 1; min-height: 0; padding: 10px 14px 0; display: flex; flex-direction: column; gap: 8px; }
.ds-bar { display: flex; justify-content: space-between; align-items: center; }
.ds-brand { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-size: 12px; }
.ds-brand b { color: var(--accent); font-weight: 800; }
.ds-live {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent);
}
.ds-live i, .hf-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none;
  animation: sdl-pulse 2s ease-out infinite;
}
html[data-theme="light"] .ds-live { color: #1b7f4f; background: rgba(31, 138, 87, 0.12); }
html[data-theme="light"] .ds-live i, html[data-theme="light"] .hf-dot { background: #1f8a57; }
.ds-title { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.04; letter-spacing: -0.03em; margin-top: 4px; }
.ds-meta { color: var(--muted); font-size: 11px; }
.ds-chips { display: flex; gap: 6px; margin-top: 2px; }
.ds-chips span {
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px;
  font-size: 10.5px; color: var(--muted); white-space: nowrap;
}
.ds-chips span.on { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 700; }
.ds-section {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line);
}
.ds-section span { font-weight: 800; font-size: 13px; }
.ds-section small { color: var(--muted); font-size: 10px; }
.ds-cards {
  display: flex; flex-direction: column; gap: 7px; min-height: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}
.ds-card {
  display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--line);
}
.ds-time { font-family: var(--mono); font-size: 11px; font-weight: 700; }
.ds-body { display: grid; gap: 1px; min-width: 0; }
.ds-body strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-body small { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-tag {
  font-style: normal; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 7px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line);
}
.ds-card.is-done { opacity: 0.55; }
.ds-card.is-now {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-elev));
  box-shadow: inset 3px 0 0 var(--accent);
}
.ds-card.is-now .ds-tag { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.ds-home { flex: none; width: 110px; height: 4px; margin: 6px auto 8px; border-radius: 4px; background: var(--ink); opacity: 0.55; }

/* Floating update card: overlaps only the bezel, left of the phone */
.hero-float {
  position: absolute; z-index: 2; right: 284px; top: 56%;
  display: flex; align-items: center; gap: 10px; width: 206px;
  padding: 11px 14px; border-radius: 16px;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.45);
}
html[data-theme="light"] .hero-float { box-shadow: 0 18px 40px -14px rgba(40, 30, 10, 0.3); }
.hero-float strong { display: block; font-size: 0.86rem; line-height: 1.2; }
.hero-float small { display: block; color: var(--muted); font-size: 0.76rem; }
@keyframes sdl-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 7px transparent; }
}

/* Cards: how it works, highlights, who it's for, pricing teaser */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.landing .card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 24px; border-radius: 20px; background: var(--card-bg); border: 1px solid var(--line);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
}
.band-alt .card { --card-bg: var(--bg-elev); }
.landing .card h3 { margin: 4px 0 0; font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.25; }
.landing .card p { margin: 0; color: var(--muted); }
.card-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.step-n {
  position: absolute; top: 24px; right: 24px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
}
.tag {
  display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.teaser-price {
  font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em;
  color: var(--ink) !important; margin: 0 0 4px !important;
}
.teaser-price small { font-family: var(--font); font-size: 0.88rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.teaser-featured {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line)) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 20px 40px -24px color-mix(in srgb, var(--accent) 50%, transparent) !important;
}

/* FAQ: centred in the same container */
.faq-wrap { max-width: 780px; margin: 0 auto; }
.landing .faq-list { background: var(--card-bg); }

/* Final CTA */
.band-cta { padding-top: var(--section-y); padding-bottom: calc(var(--section-y) * 0.75); }
.cta-panel {
  text-align: center; padding: clamp(40px, 6vw, 64px) 24px; border-radius: 28px;
  background:
    radial-gradient(600px 240px at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--bg-elev);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
}
.cta-panel p { color: var(--muted); margin: 0 auto 24px; max-width: 32rem; font-size: 1.05rem; }
.landing .footer { margin-top: 0; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 440px; gap: 32px; }
  .device { width: 264px; }
  .hero-float { right: 248px; width: 196px; padding: 10px 12px; }
  .hero-float strong { font-size: 0.82rem; white-space: nowrap; }
}
@media (min-width: 961px) {
  .card-grid.quad { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-copy h1, .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .hero-visual { justify-content: center; }
  .hero-visual::before { right: auto; left: 50%; transform: translate(-50%, -50%); }
  .hero-float { right: calc(50% + 132px - 16px); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teaser-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .landing .wrap { width: calc(100% - 32px); }
  .card-grid { grid-template-columns: 1fr; }
  .hero-float { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .device { width: min(280px, 78vw); }
  .landing .card { padding: 20px; }
  .landing .card:has(.card-icon) {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: start;
  }
  .landing .card:has(.card-icon) .card-icon { grid-row: span 2; }
  .landing .card:has(.card-icon) h3 { margin-top: 0; }
  .landing .card:has(.step-n) h3 { padding-right: 56px; }
  .landing .card:has(.card-icon) p { grid-column: 2; }
  .step-n { top: 20px; right: 20px; }
}
@media (max-width: 720px) {
  .landing-nav .nav-extra { display: none; }
}
@media (max-width: 480px) {
  /* Keep the nav on one line on phones; Pricing stays in the page and footer. */
  .landing-nav .nav-pricing { display: none; }
  .landing .landing-nav { flex-wrap: nowrap; gap: 6px; }
  .landing .wordmark { font-size: 0.92rem; white-space: nowrap; }
  .landing .landing-nav-actions { gap: 4px; flex-wrap: nowrap; }
  .landing .landing-nav-actions .btn-small { padding: 6px 8px; font-size: 0.84rem; white-space: nowrap; }
  .landing .theme-toggle { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-live i, .hf-dot { animation: none; }
}

/* Product pages */
.product-nav {
  display: flex; gap: 8px; overflow-x: auto; padding: 0 0 14px;
  scrollbar-width: none;
}
.product-nav::-webkit-scrollbar { display: none; }
.product-nav a {
  flex: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; text-decoration: none; color: var(--muted);
  font-size: 0.88rem; font-weight: 650; background: transparent;
}
.product-nav a:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 28%, var(--line)); }
.product-nav a[aria-current="page"] {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.crumbs { margin: 0 0 14px; color: var(--muted); font-size: 0.88rem; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); }
.seo-prose { max-width: 44rem; }
.seo-prose h2, .split-copy h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.12; margin: 0 0 10px;
}
.seo-prose p, .split-copy p { color: var(--muted); }
.seo-prose a, .split-copy a { color: var(--accent); }
.feature-split {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.8fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.feature-split.shot-first { grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr); }
.shot {
  margin: 0; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: #0d1017;
  box-shadow: 0 28px 70px -32px rgba(0, 0, 0, 0.55);
}
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption {
  margin: 0; padding: 10px 14px 12px; color: var(--muted); font-size: 0.84rem;
  background: var(--bg-elev); border-top: 1px solid var(--line);
}
.shot-phone {
  width: min(300px, 100%); margin-inline: auto; border-radius: 36px;
  border: 8px solid #1b202b; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.55);
}
.shot-phone img { border-radius: 28px; }
.shot-row {
  display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 18px; align-items: start;
}
.plan-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-elev); }
.plan-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.plan-table th, .plan-table td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.plan-table th { font-size: 0.92rem; }
.plan-table td { color: var(--muted); }
.plan-table tr:last-child td, .plan-table tr:last-child th { border-bottom: 0; }
.plan-table td:not(:first-child), .plan-table th:not(:first-child) { text-align: center; }
.site-footer { padding-top: 36px; }
.site-footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 28px 24px; text-align: left;
}
.site-footer-grid p { margin: 10px 0 0; max-width: 28rem; }
.site-footer-grid h2 {
  margin: 0 0 8px; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.site-footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.site-footer-grid a, .site-footer-grid .footer-link { color: var(--ink); }
@media (max-width: 900px) {
  .feature-split, .feature-split.shot-first, .shot-row { grid-template-columns: 1fr; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
  .shot-phone { margin-inline: auto; }
}
@media (max-width: 560px) {
  .site-footer-grid { grid-template-columns: 1fr; }
}
