/* HadItOS Theme — Forest & Gold */
:root {
  --bg: #F5F0E8;
  --bg-alt: #EBE5D9;
  --fg: #1B2E24;
  --fg-muted: #5C6B60;
  --accent: #C9A84C;
  --accent-dark: #A8872E;
  --green-deep: #1B3D2F;
  --green-mid: #2D5A45;
  --border: #D4CEBE;
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 48px 80px;
  position: relative;
  overflow: hidden;
  background: var(--green-deep);
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 60%);
}

.hero-inner { max-width: 760px; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 28px;
  max-width: 680px;
}

.hero-lede {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid rgba(201,168,76,0.3);
  padding-top: 36px;
  flex-wrap: wrap;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  padding-right: 40px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(201,168,76,0.25);
  margin-right: 40px;
  align-self: center;
}

.hero-ornament {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  opacity: 0.5;
}

.hero-ornament svg { width: 100%; }

/* Section tags */
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* Manifesto */
.manifesto {
  background: var(--bg-alt);
  padding: 100px 48px;
  border-bottom: 1px solid var(--border);
}

.manifesto-inner { max-width: 680px; margin: 0 auto; }

.manifesto-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--green-deep);
  border-left: 3px solid var(--accent);
  padding-left: 28px;
  margin-bottom: 36px;
  line-height: 1.4;
}

.manifesto-body {
  font-size: 17px;
  color: var(--fg);
  margin-bottom: 20px;
  line-height: 1.75;
}

/* Features */
.features {
  padding: 100px 48px;
  background: var(--bg);
}

.features-heading {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 64px;
  line-height: 1.2;
  max-width: 480px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature-card {
  background: var(--bg);
  padding: 44px 40px;
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* Outcomes */
.outcomes {
  background: var(--green-deep);
  padding: 100px 48px;
  color: #fff;
}

.outcomes-inner { max-width: 900px; }

.outcomes .section-tag { color: var(--accent); }

.outcomes-heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 64px;
  max-width: 560px;
  line-height: 1.2;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(201,168,76,0.25);
  padding-top: 48px;
}

.outcome { padding-right: 40px; }

.outcome-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}

.outcome-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

/* Closing */
.closing {
  padding: 100px 48px;
  background: var(--bg-alt);
  text-align: center;
}

.closing-inner { max-width: 680px; margin: 0 auto; }

.closing-rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 48px;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 28px;
  line-height: 1.2;
}

.closing-sub {
  font-size: 17px;
  color: var(--fg-muted);
  margin-bottom: 48px;
  line-height: 1.7;
}

.closing-credo {
  border-top: 1px solid var(--border);
  padding-top: 36px;
}

.closing-credo p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--green-mid);
  line-height: 1.5;
}

/* Footer */
.footer {
  background: var(--green-deep);
  padding: 48px;
  color: rgba(255,255,255,0.5);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1200px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer-meta { text-align: right; }
.footer-meta p { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.footer-cr { margin-top: 12px; font-size: 12px; }

/* Guides / Claims Resources Hub */
.guides {
  background: var(--bg-alt);
  padding: 100px 48px;
  border-bottom: 1px solid var(--border);
}

.guides-inner { max-width: 1100px; }

.guides-heading {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 16px;
  line-height: 1.2;
}

.guides-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 620px;
  margin-bottom: 56px;
  line-height: 1.65;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.guide-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--bg);
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.guide-card:hover {
  background: #fff;
}

.guide-card:hover .guide-arrow {
  transform: translateX(4px);
}

.guide-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(201,168,76,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.guide-text { flex: 1; }

.guide-text h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 6px;
  line-height: 1.2;
}

.guide-text p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}

.guide-arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--accent);
  align-self: center;
  transition: transform 0.15s ease;
}

/* Support card slight gold tint */
.guide-card--support {
  background: rgba(201,168,76,0.05);
}

.guide-card--support:hover {
  background: rgba(201,168,76,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 60px 28px; }
  .hero-ornament { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding-right: 24px; }
  .stat-divider { margin-right: 24px; }
  .manifesto, .features, .outcomes, .closing, .guides { padding: 72px 28px; }
  .footer-inner { flex-direction: column; gap: 24px; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .guides-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }
  .outcomes-grid { grid-template-columns: 1fr; }
}

/* ── /calculator page ── */
.calc-page { background: var(--bg); min-height: 100vh; }

.calc-hero {
  background: var(--green-deep);
  color: #fff;
  padding: 80px 48px 72px;
  position: relative;
  overflow: hidden;
}
.calc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 60%);
}
.calc-hero-inner { max-width: 760px; position: relative; z-index: 1; }
.calc-hero .hero-badge { margin-bottom: 32px; }
.calc-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 24px;
}
.calc-hero p.lede {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  line-height: 1.7;
}

.calc-section { padding: 72px 48px; background: var(--bg); }
.calc-section-inner { max-width: 780px; }

.calc-widget { background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.calc-widget-header {
  background: var(--green-deep);
  color: #fff;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-widget-header h2 { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.calc-widget-header span { font-size: 12px; color: rgba(255,255,255,0.55); letter-spacing: 0.08em; text-transform: uppercase; }
.calc-body { padding: 28px; }

.ratings-list { list-style: none; margin-bottom: 16px; }
.rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.rating-row:last-child { border-bottom: none; }
.rating-row label { font-size: 13px; color: var(--fg-muted); min-width: 56px; font-weight: 600; }
.rating-select {
  appearance: none;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 7px 28px 7px 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--green-deep);
  cursor: pointer;
  width: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C6B60' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}
.rating-select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.bilateral-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-muted);
  cursor: pointer;
  user-select: none;
  flex: 1;
}
.bilateral-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.remove-btn {
  background: none;
  border: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 3px;
  transition: color 0.12s, background 0.12s;
}
.remove-btn:hover { color: #c0392b; background: #fff0ee; }
.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px dashed var(--border);
  border-radius: 3px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg-muted);
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
  margin-bottom: 24px;
  width: 100%;
  justify-content: center;
}
.add-btn:hover { border-color: var(--accent); color: var(--accent); }

.calc-result {
  background: var(--green-deep);
  border-radius: 3px;
  padding: 24px;
  color: #fff;
  margin-bottom: 20px;
}
.calc-result-main { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.calc-result-pct { font-family: var(--font-display); font-size: 56px; font-weight: 700; color: var(--accent); line-height: 1; }
.calc-result-label { font-size: 16px; color: rgba(255,255,255,0.7); }
.calc-result-from { font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 16px; }
.calc-result-comp { font-size: 22px; font-weight: 600; color: #fff; }
.calc-result-comp-label { font-size: 12px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }

.calc-steps { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 3px; padding: 20px; margin-top: 4px; }
.calc-steps h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 14px; }
.step-item { display: flex; gap: 12px; font-size: 14px; color: var(--fg); line-height: 1.5; padding: 6px 0; border-bottom: 1px solid var(--border); }
.step-item:last-child { border-bottom: none; }
.step-num { font-weight: 700; color: var(--accent); min-width: 20px; font-size: 13px; }
.step-text { flex: 1; font-family: monospace; font-size: 13px; }
.step-result { font-weight: 700; color: var(--green-deep); min-width: 60px; text-align: right; }
.calc-empty { text-align: center; padding: 32px 0 8px; color: var(--fg-muted); font-size: 15px; }

.content-section { padding: 80px 48px; border-bottom: 1px solid var(--border); }
.content-section:nth-child(odd) { background: var(--bg-alt); }
.content-section:nth-child(even) { background: var(--bg); }
.content-inner { max-width: 780px; }
.content-section h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 20px;
  line-height: 1.2;
}
.content-section p { font-size: 17px; color: var(--fg); line-height: 1.75; margin-bottom: 16px; }
.content-section p:last-child { margin-bottom: 0; }
.content-section .cite { font-size: 13px; color: var(--fg-muted); }
.content-section .cite a { color: var(--accent-dark); text-decoration: underline; }

.example-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 24px 0; }
.example-table th { background: var(--green-deep); color: #fff; padding: 10px 16px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.example-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.example-table tr:last-child td { border-bottom: none; }
.example-table tr:nth-child(even) td { background: var(--bg-alt); }
.example-table .wrong { color: #c0392b; font-weight: 700; }
.example-table .right { color: #1B3D2F; font-weight: 700; }

.callout { background: rgba(201,168,76,0.1); border-left: 3px solid var(--accent); padding: 20px 24px; margin: 24px 0; border-radius: 0 3px 3px 0; }
.callout p { font-size: 16px; color: var(--fg); margin-bottom: 0; }
.callout strong { color: var(--green-deep); }

.next-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); margin-top: 32px; }
.next-step-card { background: var(--bg); padding: 28px 24px; text-decoration: none; color: inherit; transition: background 0.15s; }
.next-step-card:hover { background: #fff; }
.next-step-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--green-deep); margin-bottom: 8px; }
.next-step-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.55; margin-bottom: 0; }
.next-step-card .arrow { display: block; margin-top: 14px; font-size: 18px; color: var(--accent); }

.trust-block { background: var(--green-deep); color: #fff; padding: 72px 48px; text-align: center; }
.trust-inner { max-width: 620px; margin: 0 auto; }
.trust-block h2 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); font-weight: 700; color: #fff; margin-bottom: 16px; }
.trust-block p { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 28px; }
.trust-cta { display: inline-block; background: var(--accent); color: var(--green-deep); font-weight: 700; font-size: 15px; padding: 13px 32px; border-radius: 3px; text-decoration: none; transition: background 0.15s; }
.trust-cta:hover { background: #e0bb5a; }

@media (max-width: 768px) {
  .calc-hero { padding: 60px 28px 56px; }
  .calc-section { padding: 56px 28px; }
  .content-section { padding: 60px 28px; }
  .next-steps-grid { grid-template-columns: 1fr; }
  .calc-result-pct { font-size: 44px; }
  .trust-block { padding: 56px 28px; }
  .rating-row { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .calc-result-main { flex-direction: column; gap: 4px; }
}

/* ── Newsletter Signup ── */
.newsletter-section {
  background: #111;
  padding: 72px 48px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.newsletter-inner { max-width: 520px; margin: 0 auto; }
.newsletter-rule { width: 36px; height: 3px; background: #C9A84C; margin: 0 auto 24px; }
.newsletter-headline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}
.newsletter-sub { font-size: 15px; color: rgba(255,255,255,0.5); margin: 0 0 24px; }
.newsletter-form { width: 100%; }
.newsletter-field-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.newsletter-input {
  flex: 1;
  padding: 13px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.15s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-input:focus { border-color: #C9A84C; }
.newsletter-btn {
  padding: 13px 24px;
  background: #C9A84C;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.newsletter-btn:hover { background: #e0bb5a; }
.newsletter-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.newsletter-privacy { font-size: 12px; color: rgba(255,255,255,0.3); margin: 0; }
.newsletter-success {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #7ecb8f;
}
.newsletter-error {
  margin-top: 12px;
  font-size: 14px;
  color: #e07070;
}
@media (max-width: 600px) {
  .newsletter-section { padding: 56px 24px; }
  .newsletter-field-row { flex-direction: column; }
  .newsletter-btn { width: 100%; }
}