/* landing-shared.css -------------------------------------------------------
   Shared with the in-app landing at gdbs.getvaultsync.com. Copied verbatim
   from core/GdbsWeb.Api/wwwroot/css/app.css (lines ~1319-1610) so the
   marketing surface at getvaultsync.com renders with the same nav, hero,
   button, section, feature, domain, tier, faq, and footer primitives.

   Requires flux/flux.css + theme-bridge.css loaded first so legacy
   variables (--bg, --bg-alt, --bg-panel, --bg-hover, --bg-input, --border,
   --border-light, --text, --text-bright, --text-dim, --accent) all resolve
   off the flux design tokens for the chosen data-theme.
   -------------------------------------------------------------------- */

/* Provide --text-muted and --mono if not already aliased (theme-bridge
   covers most; these two are referenced by faq + free sections). */
:root {
  --text-muted: var(--text-dim, var(--text-secondary));
  --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
}

.landing-wrap { display: flex; flex-direction: column; min-height: 100%; }
.landing-accent { color: var(--accent); }

/* --- Nav ---------------------------------------------------------------- */
.landing-nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklch, var(--surface-0) 90%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.landing-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  height: 60px; display: flex; align-items: center; gap: 2rem;
}
.landing-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 300; color: var(--text-primary); white-space: nowrap;
  text-decoration: none;
}
.landing-logo i { color: var(--accent); font-size: 22px; }
.landing-logo span { font-size: 20px; }
.landing-nav-links { display: flex; gap: 0.25rem; flex: 1; flex-wrap: wrap; }
.landing-nav-link {
  padding: 6px 14px; color: var(--text-secondary); font-size: 13px;
  border-radius: 4px; transition: all 0.2s; text-decoration: none;
}
.landing-nav-link:hover { color: var(--text-primary); background: color-mix(in oklch, var(--accent) 12%, transparent); text-decoration: none; }
.landing-nav-actions { display: flex; gap: 0.5rem; align-items: center; }

/* Mobile menu --------------------------------------------------------- */
.landing-hamburger {
  display: none; background: transparent; border: 0; padding: 6px 10px;
  font-size: 20px; color: var(--text-primary); cursor: pointer;
}
.landing-mobile-menu {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 1rem 2rem; background: var(--surface-0);
  border-bottom: 1px solid var(--border);
}
.landing-mobile-menu.open { display: flex; }
.landing-mobile-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 880px) {
  .landing-nav-links { display: none; }
  .landing-nav-actions { display: none; }
  .landing-hamburger { display: inline-flex; }
}

/* --- Buttons ------------------------------------------------------------ */
.landing-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; background: var(--accent); color: #fff;
  border: none; border-radius: 5px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; white-space: nowrap; text-decoration: none;
}
.landing-btn-primary i, .landing-btn-primary svg { color: inherit; }
.landing-btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.landing-btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px; background: transparent; color: var(--text-bright);
  border: 1px solid var(--border-light); border-radius: 5px; font-size: 13px;
  cursor: pointer; transition: all 0.2s; white-space: nowrap; text-decoration: none;
}
.landing-btn-outline:hover { background: var(--bg-hover); border-color: var(--accent); color: var(--accent); text-decoration: none; }
.landing-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; background: transparent; color: var(--text-bright);
  border: 1px solid var(--border); border-radius: 5px; font-size: 13px;
  cursor: pointer; transition: all 0.2s; text-decoration: none; white-space: nowrap;
}
.landing-btn-ghost:hover { background: color-mix(in oklch, var(--text-primary) 7%, transparent); text-decoration: none; color: var(--text-primary); }
.landing-btn-lg { padding: 12px 28px; font-size: 15px; border-radius: 6px; }
.landing-btn-full { width: 100%; justify-content: center; padding: 12px; font-size: 15px; border-radius: 6px; }

/* --- Hero --------------------------------------------------------------- */
.landing-hero {
  background: radial-gradient(ellipse at 60% 40%, rgba(79,195,247,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(129,196,132,0.05) 0%, transparent 50%),
              var(--bg);
  padding: 100px 2rem 80px;
  border-bottom: 1px solid var(--border);
}
.landing-hero-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.landing-badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; background: color-mix(in oklch, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 32%, transparent); border-radius: 20px;
  font-size: 12px; color: var(--accent); margin-bottom: 1.5rem;
}
.landing-h1 {
  font-size: clamp(32px, 5vw, 58px); font-weight: 300;
  color: var(--text-bright); line-height: 1.2; margin-bottom: 1.25rem;
}
.landing-hero-sub {
  max-width: 720px; margin: 0 auto 2.5rem;
  font-size: 16px; color: var(--text-dim); line-height: 1.7;
}
.landing-hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; }
.landing-hero-stats {
  display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
  padding-top: 2.5rem; border-top: 1px solid var(--border);
}
.landing-stat { text-align: center; }
.landing-stat span { display: block; font-size: 36px; font-weight: 300; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.landing-stat small { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* --- Sections ----------------------------------------------------------- */
.landing-section { padding: 80px 2rem; }
.landing-section-alt { background: var(--bg-alt); }
.landing-section-inner { max-width: 1200px; margin: 0 auto; }
.landing-section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--accent); margin-bottom: 1rem;
}
.landing-h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 300; color: var(--text-bright); margin-bottom: 1rem; }
.landing-section-sub { font-size: 15px; color: var(--text-dim); line-height: 1.7; max-width: 720px; margin-bottom: 3rem; }

/* --- Features grid ------------------------------------------------------ */
.landing-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.landing-feature-card {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.75rem; transition: border-color 0.2s;
}
.landing-feature-card:hover { border-color: var(--border-light); }
.landing-feature-icon { font-size: 28px; margin-bottom: 1rem; color: var(--accent); }
.landing-feature-card h3 { font-size: 15px; font-weight: 600; color: var(--text-bright); margin-bottom: 0.75rem; }
.landing-feature-card p { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin: 0; }

/* --- Domains grid ------------------------------------------------------- */
.landing-domains-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.landing-domain-card {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.5rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: all 0.2s; cursor: default;
}
.landing-domain-card:hover { border-color: var(--border-light); background: var(--bg-hover); }
.landing-domain-card i { font-size: 24px; color: var(--accent); }
.landing-domain-card span { font-size: 14px; font-weight: 600; color: var(--text-bright); }
.landing-domain-card small { font-size: 11px; color: var(--text-dim); line-height: 1.4; }

/* --- Tiers grid --------------------------------------------------------- */
.landing-tiers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; align-items: stretch; }
.landing-tier-card {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem;
}
.landing-tier-card-highlight {
  border-color: rgba(245,158,11,0.4);
  box-shadow: 0 0 0 1px rgba(245,158,11,0.15);
}
.landing-tier-label {
  display: inline-block; padding: 4px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; align-self: flex-start;
}
.landing-tier-price { font-size: 32px; font-weight: 300; color: var(--text-bright); }
.landing-tier-price small { font-size: 14px; color: var(--text-dim); }
.landing-tier-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.landing-tier-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text); flex: 1; }
.landing-tier-features li { display: flex; align-items: center; gap: 8px; }
.landing-tier-features li i { width: 14px; font-size: 12px; }
.landing-tier-features li i.fa-check { color: #4ec964; }
.landing-tier-features li i.fa-times { color: #555; }
.landing-tier-btn {
  margin-top: auto; padding: 10px 16px; width: 100%;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 5px; color: var(--text); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; text-decoration: none; text-align: center;
}
.landing-tier-btn:hover { background: var(--bg-hover); border-color: var(--border-light); color: var(--text-bright); text-decoration: none; }
.landing-tier-btn-accent {
  background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.4); color: #f59e0b;
}
.landing-tier-btn-accent:hover { background: rgba(245,158,11,0.25); color: #f59e0b; }

/* --- FAQ ---------------------------------------------------------------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg-card); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 20px; font-size: 15px; font-weight: 600; color: var(--text-bright);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--bg-hover); }
.faq-q::after { content: '+'; font-size: 20px; font-weight: 300; color: var(--text-dim); flex-shrink: 0; transition: transform 0.2s; }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); color: var(--accent); }
.faq-a { display: none; padding: 0 20px 18px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 0 0 10px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a { color: var(--accent); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

/* --- Section grids (mirror layout primitives) --------------------------- */
/* Core Innovation: 2-column section. Left = text + validation rows + CTA,
   right = 2x2 grid of feature boxes. CSS Grid keeps the layout independent
   of any external grid framework's CSS load order. */
.core-innov-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.core-innov-text { display: flex; flex-direction: column; gap: 0; }
.core-innov-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-content: start;
}
.validation-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }

/* Ecosystem: 3-column grid of product cards (C.O.R.A. / SyncSearch / GeoNum
   Engine). At narrow widths drop to 1 column. */
.eco-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

/* Validation/proof-section: same shape as Core Innovation - 2 cols on top,
   the right column is a 2x2 of proof-items. The proof-grid kids inherit
   their own card styling (.proof-item) from the bespoke <style> block. */
.proof-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.proof-text { display: flex; flex-direction: column; gap: 0; }
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-content: start;
}

/* Pricing: 3 columns (Free | Academic | Std/Pro/Ent), equal width. The
   inner .pricing-3col-cell wraps each .price-card so the cell is the grid
   item and the card can use 100% width / height-auto inside. */
.pricing-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.pricing-3col-cell { display: flex; }
.pricing-3col-cell > .price-card { width: 100%; }

/* Contact: 3 equal columns. word-break on the mailto link so long emails
   wrap at any natural breakpoint instead of needing a hand-placed <br>. */
.contact-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.contact-3col .contact-card a[href^="mailto:"],
.contact-3col .team-card a[href^="mailto:"] {
  word-break: break-word;
  overflow-wrap: anywhere;
  display: inline-block;
}

/* Team contact card: 80px round headshot above name/title/email. */
.team-card {
  background: var(--bg-panel, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.team-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  background: var(--bg-alt, #f1f5f9);
  margin-bottom: 8px;
}
.team-name {
  font-size: 1rem; font-weight: 600;
  color: var(--text-bright, #0f172a);
  line-height: 1.2;
}
.team-title {
  font-size: 0.78rem; font-weight: 600;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.team-subtitle {
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-dim, #64748b);
  font-style: italic;
  margin-bottom: 6px;
}
.team-email {
  font-size: 0.84rem; color: var(--text-dim, #64748b);
  text-decoration: none;
}
.team-email:hover { color: var(--accent); text-decoration: underline; }

/* Footer: brand | products | company | legal | connect. Brand gets 2fr
   so its description has room; Connect gets 1.4fr so LinkedIn / Validation
   stay on one line instead of breaking. */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 980px) {
  .core-innov-2col { grid-template-columns: 1fr; gap: 2rem; }
  .core-innov-cards { grid-template-columns: 1fr 1fr; }  /* keep 2x2 even on tablet */
  .eco-3col { grid-template-columns: 1fr; }
  .proof-2col { grid-template-columns: 1fr; gap: 2rem; }
  .pricing-3col { grid-template-columns: 1fr; }
  .contact-3col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .core-innov-cards { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Alignment cleanup -------------------------------------------------- */
/* Force every Bootstrap .container to the same max-width as the new
   landing-section-inner (1200px) so vertical edges don't jog in and out as
   the page scrolls between mirrored sections (landing-hero, landing-section)
   and the older bespoke sections (gdbs-core, ecosystem, proof-section,
   pricing-section, contact-section) still wrapped in Bootstrap .container. */
.container { max-width: 1200px !important; }

/* Standardize section vertical padding across old + new sections so the
   rhythm doesn't break (the older sections were a mix of 80px and 100px).
   landing-section already does 80px on its own; this rule covers the
   bespoke ones that hard-coded 100px 0. */
.gdbs-core,
.pricing-section,
.cta-section,
.proof-section,
.ecosystem,
.contact-section { padding: 80px 0 !important; }

/* The divider rule below the gdbs-core/ecosystem/etc. sections sits right
   at full bleed; keep it that way but ensure it doesn't double up against
   the section border (some sections have their own top border). */
.divider + section { padding-top: 80px; }

/* --- Security & Trust section ------------------------------------------ */
.security-section { padding: 80px 0; }
.security-h3 {
  font-size: clamp(18px, 2vw, 22px); font-weight: 500;
  color: var(--text-bright); margin: 48px 0 14px;
  /* No left border/padding - headings now sit flush with the section body
     so paragraphs underneath read as a clean column, not indented. A small
     left-aligned accent bar above keeps the visual hierarchy. */
}
.security-h3::before {
  content: ''; display: block;
  width: 40px; height: 3px; background: var(--accent);
  margin: 0 0 12px; border-radius: 2px;
}
.security-p {
  font-size: 0.95rem; color: var(--text, #374151);
  line-height: 1.7; margin: 0 0 18px;
  max-width: 880px;
}
/* 4-up 2x2 grid for the policy/posture blocks (What we don't do, Server-side,
   Attestations, Service & support). Center-aligned cells; the section
   security-h3 left-border is replaced by a centered accent bar so the header
   visually reads as centered. */
.security-2col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  max-width: 1080px;
  margin: 24px auto 32px;
  text-align: center;
}
.security-2col-grid .security-h3 {
  border-left: 0; padding-left: 0;
  margin: 0 0 14px;
  text-align: center;
}
.security-2col-grid .security-h3::before {
  content: ''; display: block;
  width: 40px; height: 3px; background: var(--accent);
  margin: 0 auto 12px; border-radius: 2px;
}
.security-2col-grid .security-p {
  max-width: 100%; margin: 0;
  text-align: center;
}
@media (max-width: 720px) {
  .security-2col-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.trust-pitch {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem; margin-top: 2rem;
}
@media (max-width: 880px) { .trust-pitch { grid-template-columns: 1fr; } }
.trust-pitch-item {
  background: var(--bg-panel, #fff); border: 1px solid var(--border, #cbd5e1);
  border-radius: 10px; padding: 1.5rem; text-align: left;
}
.trust-pitch-item i {
  font-size: 22px; color: var(--accent); margin-bottom: 12px; display: block;
}
.trust-pitch-item h4 {
  font-size: 0.95rem; font-weight: 600; color: var(--text-bright);
  margin: 0 0 8px;
}
.trust-pitch-item p {
  font-size: 0.85rem; color: var(--text-dim, #64748b);
  line-height: 1.6; margin: 0;
}
.security-table-wrap { margin: 0 auto; }  /* full-width within section-inner; centered */
/* 2-column grid for the intro narrative ("What stays on your device" + "What
   we hold, and how we protect it"). Left-aligned cells so longer paragraphs
   read naturally; matches the visual rhythm of the bottom 4-block grid. */
.security-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  max-width: 1080px;
  margin: 8px auto 36px;
}
.security-intro-grid .security-h3 { margin-top: 0; }
.security-intro-grid .security-p { max-width: 100%; }
@media (max-width: 720px) {
  .security-intro-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.security-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-panel, #fff); border: 1px solid var(--border, #cbd5e1);
  border-radius: 12px; overflow: hidden;
}
.security-table th {
  background: color-mix(in oklch, var(--accent) 10%, var(--bg-panel, #fff));
  color: var(--text-bright); font-weight: 600; text-align: left;
  padding: 12px 16px; border-bottom: 1px solid var(--border, #cbd5e1);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.security-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border, #e5e7eb);
  color: var(--text, #374151); line-height: 1.6;
  vertical-align: top;
}
.security-table td:first-child {
  font-weight: 600; color: var(--text-bright); white-space: nowrap;
  width: 30%;
}
.security-table tbody tr:last-child td { border-bottom: 0; }
.security-table tbody tr:hover td { background: color-mix(in oklch, var(--accent) 4%, transparent); }
.security-table code {
  font-family: var(--mono); font-size: 0.84em;
  background: color-mix(in oklch, var(--accent) 8%, transparent);
  padding: 1px 5px; border-radius: 3px;
}
@media (max-width: 640px) {
  .security-table td:first-child { width: auto; }
  .security-table th, .security-table td { padding: 10px 12px; font-size: 0.84rem; }
}

/* --- Footer ------------------------------------------------------------- */
.landing-footer {
  margin-top: auto; padding: 2rem;
  border-top: 1px solid var(--border); background: var(--bg-alt);
}
.landing-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.landing-footer-copy { font-size: 12px; color: var(--text-dim); }
.landing-footer-copy a { color: var(--text-dim); }
.landing-footer-copy a:hover { color: var(--accent); }
