/* Marketing home page (spec §10.1). Builds on /marketing/style.css. */

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.home :focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.home .btn-lg { font-size: 1.05rem; padding: 14px 26px; }

/* Hero */
.h-hero { padding: 88px 0 48px; text-align: center; position: relative; overflow: hidden; }
.h-hero::before {
  content: ""; position: absolute; inset: -20% 10% auto; height: 520px; z-index: -1;
  background: radial-gradient(closest-side, rgba(109, 74, 255, 0.28), transparent);
  pointer-events: none;
}
.h-pill {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-text); background: var(--accent-glow); border-radius: 999px; padding: 5px 14px;
}
.h-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -0.03em;
  margin: 22px auto 20px; max-width: 14ch; font-weight: 800;
}
.h-accent {
  background: linear-gradient(90deg, #b9a8ff, var(--accent-text) 40%, #6D4AFF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 640px; margin: 0 auto 32px; }
.h-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.h-places { margin-top: 16px; font-size: 0.9rem; color: var(--text-muted); }
.h-places span::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #3ecf8e; margin-right: 8px; vertical-align: 1px;
}
.h-shot { margin: 56px auto 0; max-width: 1060px; }
.frame {
  border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden;
  background: var(--bg-secondary); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(109, 74, 255, 0.12);
}
.frame-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border-color); }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.frame img, .h-panel img, .h-showcase img { display: block; width: 100%; height: auto; }

/* Sections */
.h-section { padding: 96px 0; }
.h-alt { background: var(--bg-secondary); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.h-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.h-head h2, .h-beta h2, .h-final h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px; }
.h-head p { color: var(--text-muted); font-size: 1.08rem; }
.h-icon {
  width: 28px; height: 28px; fill: none; stroke: var(--accent-text); stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Steps */
.h-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.h-steps li {
  position: relative; background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 28px 24px;
}
.h-steps h3 { font-size: 1.15rem; margin: 16px 0 6px; }
.h-steps p { color: var(--text-muted); }
.h-step-num {
  position: absolute; top: 22px; right: 22px; font-size: 0.8rem; font-weight: 700; color: var(--text-dim);
  width: 26px; height: 26px; border: 1px solid var(--border-light); border-radius: 50%; display: grid; place-items: center;
}

/* See a real portal */
.h-demo-section { padding-top: 24px; }
.h-demo { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); gap: 56px; align-items: center; }
.h-demo h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.15; margin: 16px 0 12px; }
.h-demo-lead { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 20px; }
.h-demo-cta { margin-top: 28px; }
.h-demo-note { margin-top: 12px; font-size: 0.85rem; color: var(--text-dim); }
.h-demo-shots { position: relative; padding: 0 0 48px; }
.h-demo-shots .frame img { display: block; width: 100%; height: auto; }
.h-demo-phone {
  position: absolute; right: -12px; bottom: 0; width: 26%; max-width: 200px; height: auto;
  border-radius: 22px; border: 6px solid #1b1f27; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85);
}
.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;
}

/* Tabs */
.h-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.h-tabs [role="tab"] {
  font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border-light);
  background: transparent; color: var(--text-muted);
}
.h-tabs [role="tab"]:hover { color: var(--text-main); }
.h-tabs [role="tab"][aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.h-panel {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 48px; align-items: center;
}
.h-panel[hidden] { display: none; }
.h-panel h3 { font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 14px; }
.h-panel-text > p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }
.h-panel img { border-radius: var(--radius-md); border: 1px solid var(--border-light); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.h-ticks { list-style: none; display: grid; gap: 10px; }
.h-ticks li { position: relative; padding-left: 28px; }
.h-ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-glow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B9A8FF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Features */
.h-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.h-features article {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 26px 24px;
}
.h-features h3 { font-size: 1.08rem; margin: 14px 0 6px; }
.h-features p { color: var(--text-muted); font-size: 0.95rem; }
.h-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; align-items: start; }
.h-showcase figure { margin: 0; }
.h-showcase img { border-radius: var(--radius-md); border: 1px solid var(--border-light); }
.h-showcase figcaption { color: var(--text-muted); font-size: 0.9rem; margin-top: 10px; text-align: center; }

/* Beta */
.h-beta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.h-beta h2 { margin-top: 16px; }
.h-beta-lead { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 8px; }
.h-places-beta { margin: 0 0 24px; }
.h-beta-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.h-beta-cols > div { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; }
.h-beta-cols h3 { font-size: 1rem; margin-bottom: 14px; }
.h-beta-cols li { color: var(--text-muted); font-size: 0.95rem; }

/* FAQ */
.h-faq-wrap { max-width: 760px; }
.h-faq { display: grid; gap: 10px; }
.h-faq details { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); }
.h-faq summary {
  cursor: pointer; list-style: none; padding: 18px 48px 18px 20px; font-weight: 600; position: relative;
}
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--text-muted); font-weight: 400;
}
.h-faq details[open] summary::after { content: "−"; }
.h-faq details p { padding: 0 20px 18px; color: var(--text-muted); }

/* Final call to action */
.h-final { padding: 80px 0 96px; text-align: center; }
.h-final h2 { margin-bottom: 24px; }

.footer-brand { font-family: var(--font-brand); font-weight: 600; color: #fff; margin-bottom: 4px; }
.home .footer-links { flex-wrap: wrap; row-gap: 8px; }

@media (max-width: 960px) {
  .h-panel, .h-beta, .h-demo { grid-template-columns: 1fr; gap: 28px; }
  .h-demo-phone { right: 8px; }
  .h-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .home .nav-signin { display: none; }
}
@media (max-width: 640px) {
  .h-hero { padding: 56px 0 32px; }
  .h-section { padding: 64px 0; }
  .h-head { margin-bottom: 32px; }
  .h-steps, .h-features, .h-showcase, .h-beta-cols { grid-template-columns: 1fr; }
  .h-cta .btn, .h-demo-cta .btn { width: 100%; }
  .h-demo-shots { padding-bottom: 36px; }
  .h-demo-phone { width: 32%; border-width: 4px; border-radius: 16px; }
  .h-shot { margin-top: 36px; }
  .h-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px 24px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .h-tabs::-webkit-scrollbar { display: none; }
  .h-tabs [role="tab"] { flex: none; }
  .home .container { padding: 0 16px; }
  .home .nav-actions .btn { padding: 8px 14px; font-size: 0.875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home * { transition: none !important; }
}
