/* RedSugarTree shared style — matched to the main site */
:root {
  --navy: #0f2440;
  --navy-2: #16305a;
  --slate: #3a4a63;
  --ink: #1b2433;
  --muted: #6b7686;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --accent: #C0392B;
  --accent-dark: #A93226;
  --red-soft: #fbeae8;
  --ok: #1a8f5b;
  --ok-soft: #e6f5ee;
  --radius: 14px;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(16,36,64,.06), 0 8px 24px rgba(16,36,64,.07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand .logo { height: 44px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-link { font-size: 14px; font-weight: 600; color: var(--slate); text-decoration: none; white-space: nowrap; }
.nav-link:hover { color: var(--navy); }
.nav-cta { background: var(--accent); color: #fff; font-weight: 600; padding: 9px 16px; border-radius: 9px; text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav-cta:hover { background: var(--accent-dark); }

.hero { padding: 56px 0 44px; background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%); }
.hero h1 { font-size: 42px; margin: 0 0 14px; max-width: 20ch; }
.hero .sub { font-size: 18px; color: var(--slate); max-width: 62ch; margin-bottom: 22px; }
.hero .vision { color: var(--accent); font-size: 15px; font-weight: 650; margin: 0 0 14px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--slate); background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.disclaimer { font-size: 12.5px; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; display: inline-block; }

section.block { padding: 54px 0; border-top: 1px solid var(--line); }
section.block.alt { background: var(--bg-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.sec-head { max-width: 64ch; margin-bottom: 28px; }
.sec-head h2 { font-size: 28px; margin: 0 0 10px; }
.sec-head p { color: var(--slate); font-size: 16px; margin: 0; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
label { font-weight: 700; color: var(--navy); font-size: 15px; display: block; margin-bottom: 8px; }
textarea { width: 100%; min-height: 96px; padding: 12px 14px; font: 16px/1.6 inherit; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); resize: vertical; }
textarea:focus, .cta input:focus { outline: 2px solid rgba(192,57,43,.25); border-color: var(--accent); }
.btn { display: inline-block; text-decoration: none; font-weight: 700; background: var(--accent); color: #fff; padding: 13px 26px; border-radius: 11px; font-size: 16px; border: 0; cursor: pointer; transition: background .15s ease, transform .05s ease; box-shadow: 0 4px 14px rgba(192,57,43,.25); }
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--bg-soft); }
.result { margin-top: 18px; padding: 16px 18px; background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: 8px; min-height: 1rem; font-size: 15.5px; }
.result .rule { font-weight: 700; color: var(--navy); display: block; margin-bottom: 4px; }
.hint { font-size: 13.5px; color: var(--muted); margin-top: 10px; margin-bottom: 0; }

.rule-table { border-collapse: collapse; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rule-table th, .rule-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 13px 16px; vertical-align: top; font-size: 15px; }
.rule-table th { background: var(--bg-soft); color: var(--navy); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.rule-table tr:last-child td { border-bottom: 0; }
.rule-table code { background: var(--red-soft); color: var(--accent-dark); padding: 2px 8px; border-radius: 6px; font-weight: 700; }

.faq { max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 11px; padding: 0 18px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--slate); font-size: 15px; padding: 0 0 16px; margin: 0; }

.final { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 52px 0; }
.final h2 { color: #fff; font-size: 28px; margin: 0 0 10px; max-width: 24ch; }
.final p { color: #c7d3e6; font-size: 15px; max-width: 60ch; margin: 0 0 20px; }
.final .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.final input { padding: 12px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; font: inherit; min-width: 280px; background: rgba(255,255,255,.08); color: #fff; }
.final input::placeholder { color: #9fb0c8; }
.final .btn { box-shadow: none; }
.final small { display: block; color: #9fb0c8; margin-top: 12px; }

footer.site { background: #0c1c33; color: #9fb0c8; padding: 28px 0; font-size: 13.5px; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
footer.site a { color: #c7d3e6; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
.foot-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: #fff; font-size: 16px; }
.foot-brand .logo { height: 28px; width: auto; }
small, .muted { color: var(--muted); }

@media (max-width: 860px) {
  .hero h1 { font-size: 32px; }
  .sec-head h2 { font-size: 24px; }
  .nav-right { gap: 12px; }
  .nav-link { display: none; }
  .rule-table th, .rule-table td { padding: 10px 12px; font-size: 14px; }
  .final input { min-width: 0; width: 100%; }
}
