/* ============================================================
   Cannavate — Landing
   Matches Store HQ design system (modal.css): Inter, hairline
   chrome, restrained blue accent, dense ops SaaS.
   ============================================================ */

html { scroll-behavior: smooth; }

.landing-body {
  position: relative;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

.landing-body .app-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 55%),
    var(--canvas);
}

/* ---------- Header (app topbar feel) ---------- */

.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.landing-brand .brand-mark { width: 28px; height: 28px; color: var(--accent); }
.landing-brand .brand-mark svg { width: 28px; height: 28px; }
.landing-brand strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.landing-nav {
  display: flex;
  gap: 18px;
  margin-left: 4px;
}
.landing-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.landing-nav a:hover { color: var(--ink); }

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ---------- Buttons (match .primary / .secondary) ---------- */

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.landing-btn.primary {
  background: var(--accent);
  color: #fff;
}
.landing-btn.primary:hover { background: var(--accent-deep); }
.landing-btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.landing-btn.ghost:hover {
  background: var(--fill-quiet);
  border-color: var(--line-strong);
}
.landing-btn.large {
  min-height: 40px;
  padding: 10px 18px;
  font-size: 13.5px;
}

/* ---------- Layout ---------- */

.landing-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 72px;
}

.landing-section { margin-top: 72px; }
.landing-main > .landing-section:first-child { margin-top: 56px; }

.landing-section-heading {
  max-width: 560px;
  margin-bottom: 28px;
}
.landing-section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.landing-section-heading .eyebrow,
.landing-pricing-copy .eyebrow,
.landing-demo-copy .eyebrow,
.landing-price-box .eyebrow {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.landing-section-heading h2,
.landing-pricing-copy h2,
.landing-demo-copy h2 {
  margin-top: 8px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
}
.landing-section-lede {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ---------- Hero (full-bleed photography) ---------- */

.landing-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 52px);
  min-height: calc(100dvh - 52px);
  overflow: hidden;
  color: #fff;
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.02);
  animation: heroKen 18s ease-out both;
}

.landing-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(8, 12, 20, 0.82) 0%, rgba(8, 12, 20, 0.62) 42%, rgba(8, 12, 20, 0.28) 72%, rgba(8, 12, 20, 0.18) 100%),
    linear-gradient(180deg, rgba(8, 12, 20, 0.18) 0%, transparent 28%, transparent 68%, rgba(8, 12, 20, 0.55) 100%);
}

.landing-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 20px 72px;
}

.landing-hero-copy {
  max-width: 34rem;
  animation: heroCopyIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-hero-brand {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.landing-hero-copy h1 {
  margin-top: 14px;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
  max-width: 20ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.landing-lede {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 40ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.landing-hero .landing-btn.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.landing-hero .landing-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.65);
}

@keyframes heroKen {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}
@keyframes heroCopyIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Product tabs ---------- */

.product-tabs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-tablist {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--fill-quiet);
  scrollbar-width: thin;
}

.product-tab {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}
.product-tab:hover { color: var(--ink); }
.product-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line-soft);
}
.product-tab:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.product-panels { min-height: 240px; }

.product-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: start;
  animation: panelIn 0.22s ease both;
}
.product-panel[hidden] { display: none !important; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.product-panel-copy h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.product-panel-copy p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
}

.landing-outcome-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.landing-outcome-list li {
  position: relative;
  padding: 8px 10px 8px 28px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}
.landing-outcome-list li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--accent);
}

.panel-mock {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  padding: 14px 14px 8px;
}
.panel-mock-label {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.panel-mock-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.panel-mock-row span { color: var(--ink-soft); font-weight: 500; }
.panel-mock-row b { font-weight: 650; color: var(--ink); }
.panel-mock-row.muted { opacity: 0.75; }

/* ---------- Why ---------- */

.landing-why-copy {
  margin: 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.landing-why-outcomes {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.landing-why-outcomes li {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.landing-why-outcomes img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 1px solid var(--line-soft);
}
.landing-why-outcome-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
}
.landing-why-outcomes strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.landing-why-outcomes span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Pricing ---------- */

.landing-pricing-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.landing-pricing-copy { padding: 22px 24px; }
.landing-pricing-copy p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 48ch;
}
.landing-price-box {
  padding: 22px 24px;
  border-left: 1px solid var(--line-soft);
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.landing-price-box strong {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.landing-price-box p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- FAQ ---------- */

.landing-faq {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.landing-faq details {
  border-bottom: 1px solid var(--line-soft);
}
.landing-faq details:last-child { border-bottom: 0; }
.landing-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary::after {
  content: "+";
  float: right;
  color: var(--faint);
  font-weight: 500;
}
.landing-faq details[open] summary::after { content: "–"; }
.landing-faq details p {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ---------- Demo ---------- */

.landing-demo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.landing-demo-copy p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.landing-demo-photo {
  display: block;
  width: 100%;
  margin-top: 18px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.landing-demo-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.landing-demo-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.landing-demo-form input {
  font-family: inherit;
  font-size: 13.5px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--canvas);
  color: var(--ink);
}
.landing-demo-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}
.landing-demo-status {
  margin: 2px 0 0;
  font-size: 12.5px;
  font-weight: 550;
}
.landing-demo-status.is-success { color: var(--ok); }
.landing-demo-status.is-error { color: var(--danger); }

/* ---------- Footer ---------- */

.landing-footer {
  border-top: 1px solid var(--line);
  padding: 28px 20px 40px;
  max-width: 1120px;
  margin: 0 auto;
}
.landing-footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 14px;
}
.landing-footer-top strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.landing-footer-top span { color: var(--muted); font-size: 13px; }
.landing-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 14px;
}
.landing-footer-legal a {
  color: var(--accent);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 550;
}
.landing-footer-legal a:hover { text-decoration: underline; }
.landing-footer-legal-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* Dim photography slightly on the dark theme so it sits with the UI */
.theme-dark .landing-why-outcomes img,
.theme-dark .landing-demo-photo {
  filter: brightness(0.88) saturate(0.95);
}

@media (prefers-reduced-motion: reduce) {
  .product-panel,
  .landing-hero-bg,
  .landing-hero-copy { animation: none; }
  .landing-hero-bg { transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .landing-hero {
    min-height: calc(100vh - 52px);
    min-height: calc(100dvh - 52px);
  }
  .landing-hero-scrim {
    background:
      linear-gradient(180deg, rgba(8, 12, 20, 0.72) 0%, rgba(8, 12, 20, 0.58) 55%, rgba(8, 12, 20, 0.72) 100%);
  }
  .landing-hero-inner { padding: 48px 20px 56px; }
  .product-panel { grid-template-columns: 1fr; }
  .landing-why-outcomes { grid-template-columns: 1fr; }
  .landing-pricing-card { grid-template-columns: 1fr; }
  .landing-price-box { border-left: 0; border-top: 1px solid var(--line-soft); }
  .landing-demo-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .landing-header { padding: 10px 14px; }
  .landing-nav { display: none; }
  .landing-main { padding: 0 14px 56px; }
  .landing-section { margin-top: 56px; }
  .landing-main > .landing-section:first-child { margin-top: 40px; }
  .landing-hero-inner { padding: 40px 14px 48px; }
  .landing-footer { padding: 24px 14px 36px; }
}
