/* landing.css — styles for the static public landing page (landing.html).
   Standalone by design: landing.html is served outside the React bundle, so it can't import
   frontend/src/styles/horizon-tokens.css directly. Token values are mirrored here on purpose —
   keep in sync with horizon-tokens.css if the palette changes. */

:root {
  --hz-bg-start: #fff7ed;
  --hz-bg-mid: #fffbeb;
  --hz-bg-end: #fefce8;
  --hz-card-bg: #ffffff;
  --hz-card-shadow: 0 25px 50px -12px rgba(251, 146, 60, 0.15);
  --hz-text: #111827;
  --hz-text-sub: #4b5563;
  --hz-text-muted: #9ca3af;
  --hz-border: #e5e7eb;
  --hz-accent-start: #f97316;
  --hz-accent-end: #f59e0b;
  --hz-accent-text: #ea580c;
  --hz-accent-hover: #c2410c;
  --hz-input-bg: #f9fafb;
  --hz-radius-sm: 0.5rem;
  --hz-radius-md: 0.75rem;
  --hz-radius-lg: 1rem;
  --hz-radius-xl: 1.5rem;
}

[data-theme="dark"] {
  --hz-bg-start: #111827;
  --hz-bg-mid: #1f2937;
  --hz-bg-end: #111827;
  --hz-card-bg: #1f2937;
  --hz-card-shadow: 0 25px 50px -12px rgba(249, 115, 22, 0.08);
  --hz-text: #ffffff;
  --hz-text-sub: #9ca3af;
  --hz-text-muted: #6b7280;
  --hz-border: #374151;
  --hz-accent-start: #ea580c;
  --hz-accent-end: #d97706;
  --hz-accent-text: #fb923c;
  --hz-accent-hover: #f97316;
  --hz-input-bg: #111827;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--hz-text);
  background: linear-gradient(135deg, var(--hz-bg-start), var(--hz-bg-mid), var(--hz-bg-end));
  min-height: 100vh;
}

a { color: var(--hz-accent-text); }

/* Header — mirrors frontend/src/components/layout/Navigation.tsx + horizon-nav.css exactly,
   so the static landing page's chrome matches the real app's nav bar. Keep in sync if either
   changes. */

.horizon-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--hz-card-bg);
  border-bottom: 1px solid var(--hz-border);
}

.horizon-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.horizon-nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--hz-radius-md);
  background: #F4EFE6;
  flex-shrink: 0;
}

[data-theme="dark"] .horizon-nav-logo {
  background: #1A1915;
}

.horizon-nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.horizon-nav-brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--hz-text);
  letter-spacing: -0.01em;
  line-height: 1;
}

.horizon-nav-brand-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--hz-text-muted);
  font-weight: 500;
  line-height: 1;
}

.horizon-brand-fire {
  color: #D4691E;
}

.horizon-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.horizon-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--hz-radius-sm);
  border: 1px solid var(--hz-border);
  background: var(--hz-input-bg);
  color: var(--hz-accent-text);
  cursor: pointer;
}

.horizon-theme-toggle:hover {
  border-color: var(--hz-accent-start);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.horizon-link {
  color: var(--hz-accent-text);
  text-decoration: none;
  font-weight: 500;
}

.horizon-link:hover {
  text-decoration: underline;
  color: var(--hz-accent-hover);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.landing-hero { text-align: center; margin-bottom: 3rem; }

.landing-hero h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.landing-hero p {
  font-size: 1.15rem;
  color: var(--hz-text-sub);
  max-width: 620px;
  margin: 0 auto;
}

/* Feature sections (screenshot + copy, alternating sides) */
.landing-feature {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.landing-feature-reverse { flex-direction: row-reverse; }

.landing-feature-media {
  flex: 1 1 55%;
  min-width: 0;
}

.landing-screenshot-btn {
  all: unset;
  display: block;
  width: 100%;
  cursor: zoom-in;
}

.landing-screenshot-btn:focus-visible {
  outline: 2px solid var(--hz-accent-start);
  outline-offset: 3px;
  border-radius: var(--hz-radius-lg);
}

.landing-feature-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--hz-radius-lg);
  border: 1px solid var(--hz-border);
  box-shadow: var(--hz-card-shadow);
}

/* Screenshot lightbox — click a feature screenshot to see it full-size */
.landing-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: rgba(17, 24, 39, 0.85);
}

.landing-lightbox[hidden] { display: none; }

.landing-lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--hz-radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.landing-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.landing-lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

.landing-feature-text { flex: 1 1 45%; }

.landing-feature-text h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.landing-feature-text p {
  color: var(--hz-text-sub);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 820px) {
  .landing-feature,
  .landing-feature-reverse {
    flex-direction: column;
    gap: 1.25rem;
  }
}

.landing-card {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  background: var(--hz-card-bg);
  border-radius: var(--hz-radius-xl);
  box-shadow: var(--hz-card-shadow);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

/* Side-by-side pair of cards on wide viewports (e.g. the UK-FIRE and couples cards) —
   otherwise those sit in a 700px centered column with a lot of unused width either side. */
.landing-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
}

.landing-card-row .landing-card {
  max-width: none;
  margin: 0;
}

@media (max-width: 820px) {
  .landing-card-row {
    grid-template-columns: 1fr;
  }
}

.landing-card h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.landing-card ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
  color: var(--hz-text-sub);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.landing-card li {
  position: relative;
  padding-left: 1.6rem;
  line-height: 1.5;
}

/* Small rotated gradient "diamond" marker instead of a plain bullet dot. */
.landing-card li::before {
  content: '';
  position: absolute;
  left: 0.1rem;
  top: 0.3rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 0.2rem;
  background: linear-gradient(135deg, var(--hz-accent-start), var(--hz-accent-end));
  transform: rotate(45deg);
  box-shadow: 0 1px 4px rgba(249, 115, 22, 0.35);
}

/* auto-fit + minmax reflows by available width rather than viewport width, so this
   correctly narrows to one column whenever its container is narrow — not just on
   small screens. */
.landing-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.landing-trust-card {
  background: var(--hz-input-bg);
  border: 1px solid var(--hz-border);
  border-radius: var(--hz-radius-md);
  padding: 1.1rem 1.25rem;
}

.landing-trust-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.landing-trust-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--hz-text-sub);
  line-height: 1.5;
}

.landing-disclaimer {
  font-size: 0.9rem;
  color: var(--hz-text-muted);
  border-left: 3px solid var(--hz-border);
  padding-left: 0.9rem;
}

.landing-preview-notice {
  max-width: none;
  border: 1px solid var(--hz-accent-start);
  background: color-mix(in srgb, var(--hz-accent-start) 8%, var(--hz-card-bg));
}

.landing-preview-notice h2 { color: var(--hz-accent-text); }

.landing-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  color: var(--hz-text-muted);
  font-size: 0.85rem;
  text-align: center;
}
