/* ============================================
   ACCOUNTABLE.ME — MAIN STYLESHEET
   ============================================ */

:root {
  --ink: #1a2332;
  --ink-soft: #4a5568;
  --gold: #b8912f;
  --gold-light: #d4af5c;
  --cream: #faf8f3;
  --white: #ffffff;
  --green: #2f855a;
  --red: #c53030;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(26, 35, 50, 0.08);
  --radius: 14px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.4rem;
}
.logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--white) !important;
  padding: 12px 26px;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-large { padding: 16px 36px; font-size: 1.05rem; }
.btn-ghost {
  border: 1.5px solid var(--border);
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600;
}
.btn-gold {
  background: var(--gold);
  color: var(--white) !important;
}

/* HERO */
.hero { padding: 90px 24px 70px; text-align: center; }
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-light);
  padding: 6px 16px; border-radius: 100px;
  margin-bottom: 28px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-headline em { color: var(--gold); font-style: italic; }
.hero-sub {
  font-size: 1.15rem; color: var(--ink-soft);
  max-width: 580px; margin: 0 auto 36px;
}
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 56px; }
.hero-note { font-size: 0.85rem; color: var(--ink-soft); }
.hero-stats {
  display: flex; justify-content: center; align-items: center; gap: 36px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 0.85rem; color: var(--ink-soft); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* SECTIONS */
.section-inner { max-width: 1140px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.section-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}
.section-sub { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 48px; }

/* SMS PREVIEW */
.sms-preview-section { background: var(--white); }
.phone-mockup {
  max-width: 380px; margin: 0 auto;
  background: var(--ink);
  border-radius: 36px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.phone-screen {
  background: #f0f0f5;
  border-radius: 26px;
  padding: 24px 16px;
  display: flex; flex-direction: column; gap: 12px;
  text-align: left;
}
.sms-bubble { max-width: 85%; padding: 12px 16px; border-radius: 18px; font-size: 0.85rem; line-height: 1.5; }
.sms-bubble.incoming { background: #e5e5ea; align-self: flex-start; border-bottom-left-radius: 4px; }
.sms-bubble.outgoing { background: #34c759; color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.sms-sender { font-size: 0.7rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 4px; }

/* HOW IT WORKS */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  text-align: left;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.step-icon { font-size: 2rem; margin-bottom: 14px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* SPRINTS */
.sprints-section { background: var(--white); }
.sprints {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 860px;
  margin: 0 auto 28px;
}
.sprint-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  position: relative;
  background: var(--cream);
}
.sprint-featured { border-color: var(--gold); background: var(--white); box-shadow: var(--shadow); }
.sprint-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: white;
  font-size: 0.72rem; font-weight: 600;
  padding: 4px 14px; border-radius: 100px;
  white-space: nowrap;
}
.sprint-days { font-family: var(--font-display); font-size: 3.4rem; font-weight: 900; color: var(--gold); line-height: 1; }
.sprint-label { font-weight: 600; margin-bottom: 10px; }
.sprint-desc { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 14px; }
.sprint-reward { font-size: 0.85rem; font-weight: 600; }
.sprints-note { font-size: 0.9rem; color: var(--ink-soft); }

/* PRICING */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: left;
  position: relative;
  display: flex; flex-direction: column;
}
.pricing-featured { border-color: var(--gold); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -12px; left: 28px;
  background: var(--gold); color: white;
  font-size: 0.72rem; font-weight: 600;
  padding: 4px 14px; border-radius: 100px;
}
.plan-name { font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.plan-price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 900; }
.plan-price span { font-size: 1rem; font-family: var(--font-body); font-weight: 500; color: var(--ink-soft); }
.plan-desc { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 20px; }
.plan-features { list-style: none; margin-bottom: 28px; flex-grow: 1; }
.plan-features li { font-size: 0.9rem; padding: 6px 0; color: var(--ink-soft); }
.pricing-card .btn-primary { text-align: center; }

/* FOOTER */
.footer { background: var(--ink); color: rgba(255,255,255,0.75); }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 48px 24px; text-align: center; }
.footer-logo { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; color: white; margin-bottom: 20px; }
.footer-logo span { color: var(--gold-light); }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.88rem; }
.footer-links a:hover { color: white; }
.footer-legal { font-size: 0.78rem; max-width: 620px; margin: 0 auto 12px; opacity: 0.7; }
.footer-copy { font-size: 0.78rem; opacity: 0.6; }

/* ============================================
   FORMS (signup, login, track builder)
   ============================================ */
.form-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 38px;
  width: 100%; max-width: 480px;
}
.form-card h1 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 6px; }
.form-card .form-sub { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.78rem; color: var(--ink-soft);
  margin-bottom: 20px;
}
.form-consent input { margin-top: 3px; }
.form-submit { width: 100%; padding: 14px; font-size: 1rem; }
.form-footer { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--ink-soft); }
.form-footer a { color: var(--gold); font-weight: 600; text-decoration: none; }
.form-error { background: #fed7d7; color: var(--red); padding: 12px; border-radius: 8px; font-size: 0.85rem; margin-bottom: 16px; display: none; }
.form-success { background: #c6f6d5; color: var(--green); padding: 12px; border-radius: 8px; font-size: 0.85rem; margin-bottom: 16px; display: none; }

/* ============================================
   DASHBOARD
   ============================================ */
.dash-layout { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: 240px; background: var(--ink); color: white;
  padding: 28px 0; flex-shrink: 0;
  display: flex; flex-direction: column;
}
...dash-sidebar .logo{padding:0 24px 28px;color:#fff;font-size:1.05rem;line-height:1.3}.dash-sidebar .logo span{display:block}
.dash-nav a {
  display: block; padding: 12px 24px;
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  border-left: 3px solid transparent;
}
.dash-nav a.active, .dash-nav a:hover {
  color: white; background: rgba(255,255,255,0.06);
  border-left-color: var(--gold);
}
.dash-main { flex-grow: 1; padding: 36px; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.dash-header h1 { font-family: var(--font-display); font-size: 1.6rem; }

.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.dash-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.dash-card-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 8px; }
.dash-card-value { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; }
.dash-card-value.gold { color: var(--gold); }
.dash-card-sub { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }

.dash-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 24px;
}
.dash-section h2 { font-size: 1.1rem; margin-bottom: 18px; }

.dash-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.dash-table th {
  text-align: left; padding: 10px 12px;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-soft); border-bottom: 1.5px solid var(--border);
}
.dash-table td { padding: 12px; border-bottom: 1px solid var(--border); }
.dash-table tr:last-child td { border-bottom: none; }

.pill { display: inline-block; padding: 3px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.pill-green { background: #c6f6d5; color: var(--green); }
.pill-yellow { background: #fefcbf; color: #975a16; }
.pill-red { background: #fed7d7; color: var(--red); }

.progress-bar { height: 8px; background: var(--border); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold); border-radius: 100px; transition: width 0.4s ease; }

/* QUESTION BUILDER */
.question-item {
  display: flex; gap: 12px; align-items: center;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.question-item input { flex-grow: 1; border: none; background: transparent; font-size: 0.92rem; }
.question-item input:focus { outline: none; }
.question-num {
  width: 26px; height: 26px; flex-shrink: 0;
  background: var(--gold); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 600;
}
.question-remove { background: none; border: none; color: var(--red); cursor: pointer; font-size: 1.1rem; }
.btn-add-question {
  background: none; border: 1.5px dashed var(--border);
  width: 100%; padding: 12px; border-radius: 10px;
  color: var(--ink-soft); font-weight: 600; cursor: pointer;
  font-size: 0.9rem;
}
.btn-add-question:hover { border-color: var(--gold); color: var(--gold); }

/* BADGES */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.badge-item {
  text-align: center; padding: 18px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
}
.badge-item.earned { background: #fdf6e3; border-color: var(--gold-light); }
.badge-item.locked { opacity: 0.4; }
.badge-icon { font-size: 1.8rem; margin-bottom: 6px; }
.badge-name { font-size: 0.78rem; font-weight: 600; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; padding: 14px 0; }
  .dash-nav { display: flex; overflow-x: auto; }
  .dash-nav a { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
  .dash-nav a.active { border-bottom-color: var(--gold); }
  .dash-main { padding: 20px; }
  .nav-links a:not(.btn-primary):not(.btn-ghost) { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
