/* ========= shared/page.css ========= */

/* light fallback if nav.css hasn't loaded yet */
:root{
  --page-bg:#f9f9fb;
  --nav-h:64px;                 /* fallback; nav.js will set --nav-offset */

  /* hero */
  --hero-top-spacing:     20px;
  --hero-bottom-spacing:  40px;

  /* features */
  --features-top-spacing: 20px;
  --features-bottom-spacing: 40px;

  /* cta */
  --cta-top-spacing:      20px;
  --cta-bottom-spacing:   40px;

  /* footer */
  --footer-top-spacing:   20px;
  --footer-bottom-spacing:40px;  
}

/* Site-wide base */
html,body{height:100%;}
body{
  font-family: 'Georgia','Times New Roman',serif;
  color:#2c3e50;
  line-height:1.6;
  background: var(--page-bg);
  /* spacer-free layout: nav.js sets --nav-offset to the real nav height */
  padding-top: var(--nav-offset, var(--nav-h));
}

/* Generic container + section rhythm */
.container{ width:min(1200px, 92%); margin:0 auto; }
.main-content{ padding: 32px 0 64px; }
.section + .section{ margin-top:24px; }

/* Hero (shared look; borderless) */
.hero{
  position:relative;
  display:grid; place-items:center;
  text-align:center;
  color:#fff;
  margin-top:-1px;              /* tucks under fixed nav to avoid any seam */
  padding-top:    var(--hero-top-spacing);
  padding-bottom: var(--hero-bottom-spacing);
}
.hero h1{
  font-size:clamp(2rem,4vw,3rem);
  font-weight:700; margin:0 0 .5rem;
  text-shadow:0 2px 12px rgba(0,0,0,.35);
}
.hero .hero-subtitle{
  max-width:900px; margin:0 auto;
  font-size:clamp(1rem,2vw,1.125rem);
  opacity:.95;
}

/* Card */
.card{
  background:#fff;
  border-radius:16px;
  padding:28px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.btn-solid{ background:#7c5acb; color:#fff; }
.btn-outline{ background:transparent; color:#fff; border:2px solid rgba(255,255,255,.8); }
.btn:hover{ filter:saturate(1.05) brightness(.98); }

.home-cta{ padding:10px 0 44px; text-align:center; color:#fff; }
.home-cta h2{ font-weight:700; font-size:clamp(2.2rem,4.2vw,3rem); margin:0 0 16px; }
.home-cta p{ font-size:1.125rem; margin:0 0 20px; opacity:.95; }
.home-cta{ background: linear-gradient(135deg,#667eea 0%,#764ba2 100%); }

/* ---------- FEATURES (shared) ---------- */
.features{
  padding-top:    var(--features-top-spacing);
  padding-bottom: var(--features-bottom-spacing);            /* less space above */
}
.features h2{
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.0rem, 2.7vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 24px;                      /* remove default top margin */
  color: #2c3e50;
}

/* grid: support both class names */
.feature-grid,
.features-grid{
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0,1fr));
  margin-top: 20px;                      /* controlled gap under heading */
}

/* tile: support both class names */
.pill-card,
.feature-card{
  background: linear-gradient(180deg, rgba(124,90,203,.06), rgba(124,90,203,.02));
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pill-card:hover,
.feature-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

/* icon + text */
.pill-card .icon,
.feature-icon{ display:block; font-size:52px; margin-bottom:12px; }
.pill-card h3,
.feature-card h3{ margin:8px 0 6px; font-size:1.35rem; }
.pill-card p,
.feature-card p{ color:#555; line-height:1.6; }

/* FOOTER (use your existing footer selector) */
footer, .site-footer{
  padding-top:    var(--footer-top-spacing);
  padding-bottom: var(--footer-bottom-spacing);
}

/* stack on mobile */
@media (max-width: 900px){
  .feature-grid, .features-grid{ grid-template-columns: 1fr; }
  :root{
    --hero-top-spacing:     64px;
    --hero-bottom-spacing:  40px;

    --features-top-spacing: 12px;
    --features-bottom-spacing: 32px;

    --cta-top-spacing:      20px;
    --cta-bottom-spacing:   36px;

    --footer-top-spacing:   24px;
    --footer-bottom-spacing:32px;
  }
}

/* ---------- CTA (shared) ---------- */
.cta-section{
  color:#fff;
  text-align:center;
  padding-top:    var(--cta-top-spacing);
  padding-bottom: var(--cta-bottom-spacing);
}
.cta-section h2{
  font-weight:700;
  font-size: clamp(1.0rem, 2.7vw, 2.25rem);
  margin: 0 0 16px;
}
.cta-section p{
  font-size: 1.125rem;
  margin: 0 0 20px;
  opacity: .95;
}

/* shared buttons used in hero/cta */
.cta-buttons{
  display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; margin-top:2rem;
}
.btn{
  padding: 15px 30px; text-decoration:none; border-radius:9999px;
  font-weight:600; transition:all .2s ease; border:none; cursor:pointer; font-size:1.05rem;
}
.btn-primary{
  background: rgba(255,255,255,.9); color:#764ba2; box-shadow:0 8px 32px rgba(0,0,0,.10);
}
.btn-primary:hover{ background:#fff; transform:translateY(-2px); box-shadow:0 12px 40px rgba(0,0,0,.15); }
.btn-secondary{
  background:transparent; color:#fff; border:2px solid rgba(255,255,255,.85);
}
.btn-secondary:hover{ background:rgba(255,255,255,.10); transform:translateY(-2px); }

@media (max-width: 768px){
  .cta-buttons{ flex-direction:column; align-items:center; gap:15px; padding:0 20px; }
  .btn{ width:100%; max-width:280px; text-align:center; }
}

/* ---------- Share Access page (share_access.html) ---------- */

/* Optional: control the max width for this page’s content card */
:root { --share-card-max: 960px; }

/* Reuse the global .hero look, but add a page-specific background */
.share-hero{
  /* swap the URL to whatever image you want */
  background:
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url('/images/your-hero-image.jpg') center/cover no-repeat;
}

/* Center the main content and keep it a comfortable width */
#shareCard{
  width: min(var(--share-card-max), 92%);
  margin: -24px auto 64px;       /* centers with the auto + pulls up a bit under hero */
}

/* Give each section a card look */
#shareCard .section{
  background:#fff;
  border:1px solid #eee;
  border-radius:16px;
  padding:24px 22px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}

/* Tighter rhythm between stacked sections */
#shareCard .section + .section{ margin-top:16px; }

/* “Legal Notice” variant */
#shareCard .section.notice{
  background:#fffbea;
  border-color:#ffe58a;
}

/* Mobile tweaks */
@media (max-width: 900px){
  :root{ --share-card-max: 720px; }
  #shareCard{ margin: 0 auto 48px; }
  #shareCard .section{ padding:20px; }
}