/* ============================================================
  SCHEDMATE — HOMEPAGE.CSS (FIGMA-STYLE SAAS • v1)
  Works with:
  - /index.html
  - /about.html /careers.html /contact.html
  - /privacy.html /terms.html
============================================================ */

/* ---------- Reset + Base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 12px; }
h1,h2,h3,h4 { margin: 0; letter-spacing: -0.02em; }
ul { margin: 10px 0 0; padding-left: 18px; }
li { margin: 8px 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); }

::selection {
  background: color-mix(in srgb, var(--brand) 25%, transparent);
}

/* ---------- Theme Tokens ---------- */
:root{
  --bg: #f4f7ff;
  --bg2: #eef3ff;
  --surface: rgba(255,255,255,0.72);
  --surface-solid: #ffffff;
  --surface-2: rgba(255,255,255,0.55);

  --text: #0b1220;
  --muted: #516078;
  --muted2: #6b7a94;

  --border: rgba(15, 23, 42, 0.10);
  --border-2: rgba(15, 23, 42, 0.14);

  --brand: #2f6bff;
  --brand2: #6aa7ff;
  --ok: #16a34a;

  --shadow-sm: 0 10px 30px rgba(15,23,42,0.08);
  --shadow-md: 0 18px 50px rgba(15,23,42,0.12);
  --ring: 0 0 0 4px rgba(47,107,255,0.18);

  --radius: 18px;
  --radius-sm: 14px;
  --max: 1120px;
}

/* Dark pages already have data-theme="dark" */
[data-theme="dark"]{
  --bg: #070b15;
  --bg2: #0b1327;
  --surface: rgba(15, 23, 42, 0.62);
  --surface-solid: rgba(15, 23, 42, 0.92);
  --surface-2: rgba(15, 23, 42, 0.42);

  --text: #e8eeff;
  --muted: #a7b3d3;
  --muted2: #7f8db2;

  --border: rgba(148, 163, 184, 0.16);
  --border-2: rgba(148, 163, 184, 0.22);

  --shadow-sm: 0 12px 36px rgba(0,0,0,0.35);
  --shadow-md: 0 18px 60px rgba(0,0,0,0.45);
  --ring: 0 0 0 4px rgba(106,167,255,0.18);
}

/* ---------- Background Orbs (Figma SaaS vibe) ---------- */
body::before,
body::after{
  content:"";
  position: fixed;
  inset: -30vmax;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(40vmax 40vmax at 25% 20%, rgba(47,107,255,0.18), transparent 55%),
    radial-gradient(35vmax 35vmax at 75% 10%, rgba(106,167,255,0.18), transparent 55%),
    radial-gradient(40vmax 40vmax at 70% 75%, rgba(47,107,255,0.10), transparent 60%),
    radial-gradient(42vmax 42vmax at 15% 80%, rgba(106,167,255,0.10), transparent 60%);
  filter: blur(8px);
  transform: translateZ(0);
}
[data-theme="dark"] body::before,
[data-theme="dark"] body::after{
  background:
    radial-gradient(40vmax 40vmax at 25% 20%, rgba(47,107,255,0.22), transparent 55%),
    radial-gradient(35vmax 35vmax at 75% 10%, rgba(106,167,255,0.16), transparent 55%),
    radial-gradient(40vmax 40vmax at 70% 75%, rgba(47,107,255,0.12), transparent 60%),
    radial-gradient(42vmax 42vmax at 15% 80%, rgba(106,167,255,0.10), transparent 60%);
}

/* ---------- Container helpers ---------- */
.wrap { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}
.section-head{ margin-bottom: 18px; }
.section h2{ font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; }
.section p.sub{
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 64ch;
}

/* ---------- Buttons (works for both .btn and legal page button classes) ---------- */
.btn,
.btn-primary,
.btn-outline{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.btn:hover,
.btn-primary:hover,
.btn-outline:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-2);
}

.btn:active,
.btn-primary:active,
.btn-outline:active{
  transform: translateY(0px);
  box-shadow: 0 10px 25px rgba(15,23,42,0.10);
}

.btn.full{ width: 100%; }
.btn.lg{ padding: 12px 18px; font-size: 1rem; }

.btn.primary,
.btn-primary{
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand2) 55%, var(--brand)));
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  color: white;
  box-shadow: 0 18px 50px rgba(47,107,255,0.20);
}
.btn.primary:hover,
.btn-primary:hover{
  box-shadow: 0 22px 62px rgba(47,107,255,0.26);
}

.btn.ghost,
.btn-outline{
  background: var(--surface);
  color: var(--text);
}

.btn.ghost:hover,
.btn-outline:hover{
  background: color-mix(in srgb, var(--surface-solid) 70%, var(--surface));
}

/* ---------- NAV (homepage) ---------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-inner{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.brand-icon{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 14px 36px rgba(47,107,255,0.24);
}
.nav-links{
  display:flex;
  align-items:center;
  gap: 16px;
  color: var(--muted);
  font-weight: 650;
}
.nav-links a{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.nav-links a:hover{
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}
.nav-actions{
  display:flex;
  gap: 10px;
  align-items:center;
}

/* ---------- NAV (privacy/terms uses .navbar) ---------- */
.navbar{
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
}
.navbar .brand{ margin-left: 20px; }
.navbar .nav-links{
  margin-right: 20px;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- HERO ---------- */
.hero{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 46px;
}
.hero-inner{
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  position: relative;
}
.hero-inner::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: inherit;
  pointer-events:none;
  background:
    radial-gradient(900px 380px at 20% 0%, rgba(47,107,255,0.22), transparent 65%),
    radial-gradient(700px 380px at 80% 0%, rgba(106,167,255,0.18), transparent 60%);
  mix-blend-mode: normal;
}
.hero h1{
  position: relative;
  z-index: 1;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}
.hero h1 span{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p{
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 64ch;
}
.hero-cta{
  position: relative;
  z-index: 1;
  margin-top: 22px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-proof{
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted2);
  font-weight: 650;
  font-size: 0.95rem;
}
.hero-proof span{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-solid) 55%, var(--surface));
}

/* ---------- “Preview” Shot ---------- */
.shot{
  margin-top: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.shot-placeholder{
  padding: 56px 18px;
  text-align:center;
  color: var(--muted2);
  font-weight: 700;
  background:
    radial-gradient(900px 300px at 20% 0%, rgba(47,107,255,0.10), transparent 60%),
    radial-gradient(800px 300px at 80% 0%, rgba(106,167,255,0.08), transparent 60%),
    color-mix(in srgb, var(--surface-solid) 55%, var(--surface));
}

/* ---------- Grids / Cards ---------- */
.who-grid,
.features-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.who-card,
.feature{
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 750;
}
.who-card{ display:flex; align-items:center; gap: 10px; }
.feature{
  font-weight: 700;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.feature::after{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;
  opacity: .65;
  background: radial-gradient(600px 200px at 10% 0%, rgba(47,107,255,0.10), transparent 65%);
}

/* ---------- Steps ---------- */
.steps{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.step{
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-weight: 750;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
  position: relative;
}
.step::before{
  content:"";
  position:absolute;
  top: 10px;
  left: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 24px rgba(47,107,255,0.25);
}

/* ---------- Pricing ---------- */
.pricing{ padding-top: 84px; }
.pricing-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.price-card{
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: calc(var(--radius) + 2px);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.price-card h3{ font-size: 1.25rem; }
.price-card .desc{ color: var(--muted); margin-top: 8px; }
.price{
  margin-top: 12px;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.price span{ font-size: 1rem; color: var(--muted2); font-weight: 750; }
.price-card ul{ margin-top: 14px; color: var(--muted); }
.price-card strong{ color: var(--text); }

.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-solid) 60%, var(--surface));
  color: var(--muted);
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 10px;
}
.pill::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 10px 22px rgba(22,163,74,0.18);
}
.pill.solid{
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}
.pill.solid::before{ background: rgba(255,255,255,0.9); box-shadow: none; }

.price-card.featured{
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  background: color-mix(in srgb, var(--surface-solid) 50%, var(--surface));
  box-shadow: 0 24px 70px rgba(47,107,255,0.14);
  transform: translateY(-4px);
}
.price-card.featured::after{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;
  background:
    radial-gradient(900px 320px at 15% 0%, rgba(47,107,255,0.18), transparent 65%),
    radial-gradient(700px 320px at 85% 0%, rgba(106,167,255,0.14), transparent 60%);
  opacity: .85;
}

.fine{
  margin-top: 12px;
  color: var(--muted2);
  font-weight: 650;
  font-size: 0.92rem;
}

/* ---------- Footer (homepage) ---------- */
.footer{
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.footer-grid{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 20px;
  display:grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 16px;
}
.footer-grid h4{
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--text);
}
.footer-grid a{
  display:inline-block;
  color: var(--muted);
  padding: 6px 0;
  font-weight: 650;
}
.footer-grid a:hover{ color: var(--text); }
.footer-brand{
  font-weight: 900;
  font-size: 1.1rem;
}
.footer-sub{ color: var(--muted); margin-top: 8px; }
.footer-bottom{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0 28px;
  color: var(--muted2);
  font-weight: 650;
  border-top: 1px solid var(--border);
}

/* ---------- Footer (about/careers/contact pages use .footer-inner / .foot-*) ---------- */
.footer-inner{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 12px;
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-left strong{ font-size: 1.05rem; }
.foot-sub{ margin-top: 6px; color: var(--muted); font-weight: 650; }
.foot-links{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.foot-links a{
  color: var(--muted);
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.foot-links a:hover{
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}
.foot-copy{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 26px;
  color: var(--muted2);
  font-weight: 650;
}

/* ---------- Cards for “About / Contact / Careers” ---------- */
.card{
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.glow-frame{
  position: relative;
  overflow: hidden;
}
.glow-frame::after{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;
  background: radial-gradient(900px 260px at 20% 0%, rgba(47,107,255,0.18), transparent 65%);
  opacity: .7;
}

/* ---------- Legal pages ---------- */
.legal.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 70px;
}
.legal h1{ font-size: clamp(28px, 3.4vw, 44px); }
.legal h2{
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--text);
}
.legal p, .legal li{ color: var(--muted); }
.legal-meta{ color: var(--muted2); font-weight: 650; margin-top: 10px; }

.legal-actions{
  margin-top: 18px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Small polish ---------- */
hr{
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .nav-links{ display:none; }
  .steps{ grid-template-columns: 1fr; }
  .who-grid, .features-grid{ grid-template-columns: 1fr; }
  .pricing-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .nav-inner{ padding: 12px 0; }
  .hero{ padding: 54px 0 36px; }
  .section{ padding: 56px 0; }
  .footer-grid{ grid-template-columns: 1fr; }
}
/* ===== Marketing add-ons ===== */
.proof { padding-top: 10px; padding-bottom: 34px; }
.proof-inner{
  display:flex; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 12px;
  box-shadow: var(--shadow-sm);
}
.proof-item{
  display:inline-flex; align-items:center; gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-solid) 55%, var(--surface));
  color: var(--muted);
  font-weight: 800;
}
.proof-item .dot{
  width: 8px; height: 8px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}

.t-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 22px;
}
.t-card{
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.t-quote{ font-weight: 850; line-height: 1.25; }
.t-meta{ margin-top: 10px; color: var(--muted); font-weight: 700; }

.faq{
  margin-top: 18px;
  display:grid;
  gap: 10px;
}
.faq-item{
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: 0 10px 26px rgba(15,23,42,0.06);
}
.faq-item summary{
  cursor: pointer;
  font-weight: 900;
  color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item p{ margin-top: 10px; color: var(--muted); }

.cta-inner{
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(20px, 3.5vw, 34px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 980px){
  .t-grid{ grid-template-columns: 1fr; }
}
