/* ===========================================================
   Founder Led — base styles
   =========================================================== */
:root {
  --ink: #0f1115;
  --ink-soft: #4b5160;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --border: #e6e8ef;
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --brand-soft: #eef0fd;
  --accent: #06b6d4;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 17, 21, 0.06);
  --max-width: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(79,70,229,.3); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn-block { width: 100%; }
.btn-small { padding: 9px 18px; font-size: 13px; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 900; font-size: 20px; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.site-nav a.active, .site-nav a:hover { color: var(--brand); }
.site-nav a.nav-cta { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .site-nav.open { max-height: 400px; }
  .site-nav a { width: 100%; padding: 14px 24px; border-top: 1px solid var(--border); }
  .site-nav a.nav-cta { margin: 14px 24px; width: calc(100% - 48px); }
}

/* ===== Hero ===== */
.hero { padding: 90px 0 70px; background: radial-gradient(1200px 500px at 80% -10%, #eef0ff 0%, transparent 60%), var(--bg-soft); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: 46px; }
.hero .lead { font-size: 18px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 42px; }
.hero-stats .stat b { display: block; font-size: 26px; color: var(--ink); }
.hero-stats .stat span { font-size: 13px; color: var(--ink-soft); }

.hero-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.hero-card h3 { font-size: 18px; }
.score-preview { display: flex; align-items: center; gap: 18px; margin: 18px 0; }
.score-ring { width: 76px; height: 76px; border-radius: 50%; background: conic-gradient(var(--brand) 0% 74%, var(--border) 74% 100%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.score-ring span { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}

/* ===== Sections ===== */
section { padding: 80px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: 32px; }
.bg-soft { background: var(--bg-soft); }

.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.card h3 { font-size: 18px; }
.card p { margin-bottom: 0; }

.process-step { display: flex; gap: 18px; }
.process-step .num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }

.testimonial { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.testimonial .quote { font-size: 16px; color: var(--ink); }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.testimonial .who b { display: block; font-size: 14px; }
.testimonial .who span { font-size: 13px; color: var(--ink-soft); }

.cta-band { background: linear-gradient(120deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: 24px; padding: 56px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); }

/* ===== Forms ===== */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
input[type=text], input[type=email], input[type=url], input[type=password], textarea, select {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
textarea { resize: vertical; min-height: 110px; }

.form-msg { padding: 14px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.form-msg.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ===== Calculator ===== */
.calc-category { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.calc-category h3 { font-size: 17px; margin-bottom: 16px; }
.calc-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.calc-item:first-of-type { border-top: none; }
.calc-item .q { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.toggle { position: relative; display: inline-flex; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle label { padding: 7px 16px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink-soft); user-select: none; }
.toggle input:checked + label { background: var(--brand); color: #fff; }
.toggle label.no-label { border-left: 1.5px solid var(--border); }

.progress-bar { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; margin: 24px 0; }
.progress-bar > div { height: 100%; background: var(--brand); width: 0%; transition: width .2s ease; }

.reviewing-box { text-align: center; padding: 50px 20px; }
.reviewing-box .check { width: 72px; height: 72px; border-radius: 50%; background: #ecfdf3; color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 34px; margin: 0 auto 20px; }
.reviewing-box h2 { font-size: 26px; }
.reviewing-box p { max-width: 460px; margin: 0 auto; }

/* ===== Admin ===== */
.admin-shell { max-width: 1080px; margin: 40px auto; padding: 0 24px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
table.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.admin-table th, table.admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
table.admin-table th { background: var(--bg-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-calculator { background: var(--brand-soft); color: var(--brand-dark); }
.badge-contact { background: #fef3c7; color: #92400e; }
.login-shell { max-width: 380px; margin: 90px auto; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #cfd2da; padding: 56px 0 0; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; color: #9aa0ae; margin-bottom: 8px; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #262a33; padding: 18px 24px; font-size: 13px; color: #7c8190; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
