/* LandlordCompass — shared styles */
:root {
  --navy: #0f2a43;
  --navy-deep: #0a1e31;
  --ink: #1c2b3a;
  --slate: #5a6b7c;
  --line: #e3e9ef;
  --bg: #f7f9fb;
  --white: #ffffff;
  --green: #0fa36b;
  --green-dark: #0b8256;
  --amber: #b45309;
  --amber-bg: #fef3e2;
  --red: #b91c1c;
  --red-bg: #fdeaea;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 42, 67, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 42, 67, 0.14);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--green-dark); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand svg { flex: none; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--slate); font-weight: 600; font-size: 0.92rem; }
.nav a:hover { color: var(--navy); }
.nav .btn { color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--green); color: #fff; font-weight: 700; padding: 13px 26px; border-radius: 10px; text-decoration: none; border: none; font-size: 1rem; font-family: var(--font); cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn.secondary:hover { background: var(--navy); color: #fff; }
.btn.large { padding: 16px 34px; font-size: 1.08rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: 84px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 2.9rem; line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 20px; }
.hero h1 .accent { color: #4ade9c; }
.hero p.lede { font-size: 1.18rem; color: #c3d2e0; margin-bottom: 32px; max-width: 34rem; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .cta-row .btn.secondary { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .cta-row .btn.secondary:hover { background: rgba(255,255,255,.1); }
.hero-note { margin-top: 18px; font-size: .85rem; color: #8fa5b8; }

/* Countdown card */
.deadline-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(4px); }
.deadline-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #8fa5b8; margin-bottom: 6px; }
.deadline-card .deadline-name { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.countdown { display: flex; gap: 12px; margin-bottom: 18px; }
.countdown .unit { background: rgba(255,255,255,.09); border-radius: 10px; padding: 12px 0; text-align: center; flex: 1; }
.countdown .num { font-size: 1.9rem; font-weight: 800; color: #fff; display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown .lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #8fa5b8; }
.deadline-card .penalty { font-size: .88rem; color: #ffd7a1; }
.deadline-card + .deadline-card { margin-top: 14px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 48px; }
.section-head h2 { font-size: 2.1rem; letter-spacing: -0.02em; color: var(--navy); margin-bottom: 12px; }
.section-head p { color: var(--slate); font-size: 1.08rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--green-dark); background: #e6f6ef; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }

/* Checker cards */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tool-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tool-card .tag { align-self: flex-start; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.tag.urgent { background: var(--red-bg); color: var(--red); }
.tag.soon { background: var(--amber-bg); color: var(--amber); }
.tool-card h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 10px; letter-spacing: -0.01em; }
.tool-card p { color: var(--slate); margin-bottom: 18px; }
.tool-card ul { list-style: none; margin: 0 0 26px; }
.tool-card ul li { padding-left: 28px; position: relative; margin-bottom: 9px; color: var(--ink); font-size: .95rem; }
.tool-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.tool-card .btn { margin-top: auto; text-align: center; }
.tool-card .time-note { text-align: center; font-size: .82rem; color: var(--slate); margin-top: 10px; }

/* Stakes strip */
.stakes { background: var(--navy); color: #fff; }
.stakes .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stakes .stat { font-size: 2.4rem; font-weight: 800; color: #4ade9c; letter-spacing: -0.02em; }
.stakes .desc { color: #c3d2e0; font-size: .95rem; max-width: 18rem; margin: 6px auto 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.step .n { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step h4 { color: var(--navy); font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: .93rem; }

/* FAQ */
.faq { max-width: 46rem; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 18px 22px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; font-size: 1.3rem; color: var(--slate); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; color: var(--slate); font-size: .95rem; }

/* ---------- Quiz pages ---------- */
.quiz-shell { max-width: 660px; margin: 48px auto 80px; padding: 0 24px; }
.quiz-shell h1 { font-size: 1.5rem; color: var(--navy); letter-spacing: -0.01em; text-align: center; margin-bottom: 6px; }
.quiz-shell .page-sub { text-align: center; color: var(--slate); font-size: .92rem; margin-bottom: 24px; }
.quiz-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 40px; }
.progress-track { height: 6px; background: var(--line); border-radius: 999px; margin-bottom: 30px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--green); border-radius: 999px; width: 0; transition: width .3s ease; }
.q-count { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); margin-bottom: 10px; }
.q-title { font-size: 1.45rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; margin-bottom: 8px; }
.q-help { color: var(--slate); font-size: .95rem; margin-bottom: 24px; }
.q-options { display: grid; gap: 12px; }
.q-option { text-align: left; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 16px 18px; font-family: var(--font); font-size: 1rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .12s, background .12s; }
.q-option:hover { border-color: var(--green); background: #f0faf5; }
.q-option .sub { display: block; font-weight: 400; font-size: .85rem; color: var(--slate); margin-top: 3px; }
.q-back { background: none; border: none; color: var(--slate); font-family: var(--font); font-size: .9rem; font-weight: 600; cursor: pointer; margin-top: 22px; padding: 4px 0; }
.q-back:hover { color: var(--navy); }

/* Results */
.result-banner { border-radius: 12px; padding: 22px 24px; margin-bottom: 24px; }
.result-banner.urgent { background: var(--red-bg); border: 1px solid #f3c6c6; }
.result-banner.warn { background: var(--amber-bg); border: 1px solid #f0d9b5; }
.result-banner.ok { background: #e6f6ef; border: 1px solid #bce5d2; }
.result-banner h3 { font-size: 1.3rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.result-banner.urgent h3 { color: var(--red); }
.result-banner.warn h3 { color: var(--amber); }
.result-banner.ok h3 { color: var(--green-dark); }
.result-banner p { font-size: .97rem; color: var(--ink); }
.result-list { list-style: none; margin: 0 0 8px; }
.result-list li { padding: 13px 0 13px 34px; position: relative; border-bottom: 1px solid var(--line); font-size: .96rem; }
.result-list li:last-child { border-bottom: none; }
.result-list li.do::before { content: "→"; position: absolute; left: 4px; color: var(--green-dark); font-weight: 800; }
.result-list li.risk::before { content: "!"; position: absolute; left: 8px; color: var(--red); font-weight: 800; }
.result-list li strong { color: var(--navy); }

/* Email gate */
.email-gate { background: var(--navy); border-radius: 12px; padding: 30px; margin-top: 28px; color: #fff; }
.email-gate h4 { font-size: 1.15rem; margin-bottom: 6px; }
.email-gate p { color: #c3d2e0; font-size: .92rem; margin-bottom: 18px; }
.email-gate form { display: flex; flex-direction: column; gap: 12px; }
.email-gate input[type="email"], .email-gate input[type="text"] { padding: 14px 16px; border-radius: 10px; border: none; font-family: var(--font); font-size: 1rem; }
.email-gate .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: #c3d2e0; }
.email-gate .consent input { margin-top: 3px; }
.form-success { background: #e6f6ef; border-radius: 10px; padding: 18px; color: var(--green-dark); font-weight: 700; text-align: center; display: none; }
.form-error { color: #ffb4b4; font-size: .85rem; display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #8fa5b8; padding: 48px 0 40px; font-size: .86rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.site-footer h5 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer a { color: #c3d2e0; text-decoration: none; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .disclaimer { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; line-height: 1.7; }

/* ---------- Guide articles ---------- */
.article-shell { max-width: 720px; margin: 0 auto; padding: 40px 24px 72px; }
.breadcrumbs { font-size: .82rem; color: var(--slate); margin-bottom: 18px; }
.breadcrumbs a { color: var(--slate); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); }
.article-shell h1 { font-size: 2.2rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); margin-bottom: 12px; }
.article-meta { font-size: .84rem; color: var(--slate); margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article-shell h2 { font-size: 1.45rem; color: var(--navy); letter-spacing: -0.01em; margin: 38px 0 12px; }
.article-shell h3 { font-size: 1.12rem; color: var(--navy); margin: 26px 0 8px; }
.article-shell p { margin-bottom: 16px; font-size: 1.02rem; }
.article-shell ul, .article-shell ol { margin: 0 0 16px 22px; font-size: 1.02rem; }
.article-shell li { margin-bottom: 8px; }
.article-shell table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: .95rem; }
.article-shell th, .article-shell td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); }
.article-shell th { background: var(--bg); color: var(--navy); }
.key-fact { background: var(--amber-bg); border-left: 4px solid var(--amber); border-radius: 0 10px 10px 0; padding: 16px 18px; margin: 0 0 20px; font-size: .98rem; }
.cta-box { background: var(--navy); border-radius: 12px; padding: 26px 28px; margin: 30px 0; color: #fff; }
.cta-box h3 { color: #fff !important; margin: 0 0 8px !important; }
.cta-box p { color: #c3d2e0; font-size: .95rem; margin-bottom: 16px; }
.related { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin-top: 40px; }
.related h3 { margin-top: 0 !important; }
.related a { display: block; margin-bottom: 8px; font-weight: 600; }
.guides-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.guide-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); text-decoration: none; display: block; transition: transform .12s, box-shadow .12s; }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.guide-card h4 { color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.guide-card p { color: var(--slate); font-size: .88rem; margin: 0; }
.guide-card .pill { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.pill.tax { background: #e6f6ef; color: var(--green-dark); }
.pill.tenancy { background: var(--amber-bg); color: var(--amber); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2.2rem; }
  .cards-2, .steps, .stakes .grid, .guides-grid { grid-template-columns: 1fr; }
  .article-shell h1 { font-size: 1.7rem; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .nav a:not(.btn) { display: none; }
  .quiz-card { padding: 28px 22px; }
  section { padding: 52px 0; }
}
