/* Site-wide additions on top of base.css (the tool styles from the tested prototype).
   VOICE calm, exact, trustworthy paperwork tool for landlords
   IDEA a served notice: clean paper card, one strong date
   COLOUR white / night #0f1217, ink, prussian #0b4f8a, carmine for warnings
   TYPE Literata 600 display + Literata text */

@supports not (color: light-dark(#000, #fff)) {
  :root { --bg:#fff; --ink:#10131a; --soft:#5a606b; --line:#d9dce1; --panel:#f4f6f9; --blue:#0b4f8a; --red:#c1121f; --card:#fffdf8; --fill:#0b4f8a; }
}

.setup-banner { background: var(--red); color: #fff; padding: 10px max(5vw,16px); font-size: 14px; }
.wrap { max-width: 1240px; margin: 0 auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--fill); background: var(--fill); color: #fff; text-decoration: none; font-size: 16px; font-weight: 600; }
.btn.ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn.big { min-height: 52px; padding: 12px 24px; font-size: 17px; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Top bar */
.topbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 14px max(5vw,16px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; color: var(--ink); text-decoration: none; }
.logo svg { flex: none; }
.topnav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.topnav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 8px 10px; min-height: 44px; display: inline-flex; align-items: center; }
[hidden] { display: none !important; }

/* Landing */
.hero { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: clamp(24px,5vw,64px); align-items: center; }
.hero h1 { font-size: clamp(36px,6vw,56px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 16px; text-wrap: balance; }
.hero p.intro { font-size: 18px; color: var(--soft); max-width: 46ch; margin: 0 0 24px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.small { font-size: 14px; color: var(--soft); }
.paper { background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--blue); border-radius: 10px; padding: 22px clamp(18px,3vw,28px); box-shadow: 0 18px 40px -24px rgba(11,79,138,.45); transform: rotate(-1.2deg); }
.paper h2 { font-size: 14px; font-weight: 400; color: var(--soft); margin: 0; }
.paper .big { margin: 6px 0 4px; }
.paper ul { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--line); }
.paper li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.paper li b { color: var(--blue); white-space: nowrap; }
.strip { background: var(--fill); color: #fff; }
.strip .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 32px; }
.strip h2 { grid-column: 1 / -1; margin: 0; font-size: clamp(22px,3vw,28px); }
.strip p { margin: 0; font-size: 15.5px; opacity: .95; }
.strip b { display: block; font-size: 17px; margin-bottom: 4px; }
.section-title { font-size: clamp(26px,4vw,36px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 8px; }
.section-lead { color: var(--soft); margin: 0 0 24px; max-width: 60ch; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.tool { border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: var(--panel); }
.tool h3 { margin: 0 0 6px; font-size: 19px; }
.tool p { margin: 0 0 10px; color: var(--soft); font-size: 15.5px; }
.tool .tag { font-size: 13.5px; color: var(--blue); font-weight: 600; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; counter-reset: s; }
.steps3 div { border-top: 3px solid var(--blue); padding-top: 12px; }
.steps3 div::before { counter-increment: s; content: counter(s); display: block; font-size: 32px; font-weight: 600; color: var(--blue); line-height: 1; margin-bottom: 8px; }
.steps3 h3 { margin: 0 0 4px; font-size: 18px; }
.steps3 p { margin: 0; color: var(--soft); font-size: 15.5px; }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.price { border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.price.main { border: 2px solid var(--blue); }
.price h3 { margin: 0; font-size: 18px; }
.price .amt { font-size: 32px; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.price .amt small { font-size: 15px; font-weight: 400; color: var(--soft); }
.price ul { margin: 6px 0 0; padding-left: 18px; color: var(--soft); font-size: 15px; }
.early { background: var(--panel); border-left: 4px solid var(--blue); padding: 12px 14px; border-radius: 0 8px 8px 0; margin: 0 0 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; min-height: 28px; }
.faq p { color: var(--soft); margin: 8px 0 0; max-width: 70ch; }
.sitefoot { border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); }
.sitefoot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.sitefoot a { color: var(--soft); }
.sitefoot p { margin: 0; max-width: 70ch; }

/* Auth pages */
.authwrap { max-width: 440px; margin: clamp(24px,6vw,64px) auto; padding: 0 16px; }
.authcard { border: 1px solid var(--line); border-radius: 12px; padding: 24px clamp(18px,4vw,32px); background: var(--panel); }
.authcard h1 { font-size: 30px; line-height: 1.1; margin: 0 0 6px; }
.authcard p.sub { color: var(--soft); margin: 0 0 16px; }
.authcard .btn { width: 100%; margin-top: 18px; }
.authcard .alt { margin: 16px 0 0; font-size: 15px; text-align: center; }
.msg { margin: 14px 0 0; font-size: 15px; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--blue); }
.pwrow { position: relative; }
.pwrow button { position: absolute; right: 6px; top: 6px; min-height: 32px; padding: 4px 10px; font-size: 14px; background: transparent; color: var(--blue); border: 0; }

/* App shell */
.docbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.docbar input { flex: 1 1 14em; width: auto; }
.docbar button { min-height: 44px; }
.docbar .actions { display: flex; flex-wrap: wrap; gap: 10px; flex-basis: 100%; }
.docbar .status { flex-basis: 100%; font-size: 14px; color: var(--soft); margin: 0; }
.mydocs { margin: 0 0 8px; }
.mydocs summary { cursor: pointer; font-weight: 600; font-size: 18px; min-height: 44px; display: flex; align-items: center; }
.doclist { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--line); }
.doclist li { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.doclist .t { font-weight: 600; }
.doclist .m { display: block; font-size: 13.5px; color: var(--soft); font-weight: 400; }
.doclist button { min-height: 40px; padding: 6px 12px; font-size: 15px; }
#printArea { display: none; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(30px,5vw,40px); margin: 0 0 8px; }
.legal h2 { font-size: 20px; margin: 28px 0 6px; }
.legal p, .legal li { max-width: 70ch; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0,1fr); }
  .paper { transform: none; }
  .prices, .steps3, .strip .wrap { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 600px) {
  .wide-only { display: none !important; }
  .topbar { flex-wrap: nowrap; padding-block: 10px; }
  .logo { font-size: 17px; white-space: nowrap; }
  .topnav { flex-wrap: nowrap; gap: 4px; }
  .topnav .btn, .topnav button { min-height: 40px; padding: 6px 12px; font-size: 15px; }
  .topnav a:not(.btn) { padding: 6px 8px; white-space: nowrap; }
  .tools { grid-template-columns: minmax(0,1fr); }
  .doclist li { grid-template-columns: minmax(0,1fr) auto; }
  .doclist li .del { grid-column: 2; }
  .docbar .actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
@media print {
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; color: #000; background: #fff; font: 11pt/1.5 Georgia, serif; }
  #printArea h1 { font-size: 18pt; margin: 0 0 4pt; }
  #printArea h2 { font-size: 12.5pt; margin: 14pt 0 4pt; }
  #printArea p, #printArea li { margin: 0 0 4pt; }
  #printArea .meta { color: #555; font-size: 9.5pt; }
}

/* Dashboard */
.starts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.start { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); text-decoration: none; min-height: 44px; }
.start b { font-size: 18px; color: var(--blue); }
.start span { font-size: 14.5px; color: var(--soft); line-height: 1.4; }
.start:hover { border-color: var(--blue); }
.backlink { color: var(--blue); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; font-size: 16px; }
.notice .btns, .notice [data-msg] { display: none !important; }
#docArea .docbar { margin-top: 10px; }
.foot summary { cursor: pointer; min-height: 32px; }
@media (max-width: 600px) { .starts { grid-template-columns: minmax(0,1fr); } }
.panel .lead { display: none; }

/* Visual refresh */
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -0.005em; }
h1, h2, .big, .section-title, .logo, .hero h1, .paper .big, legend { font-family: Literata, Georgia, serif; }
input, select, textarea, button { font-family: inherit; }
fieldset { border-radius: 14px; }
legend { font-size: 18px; }
.btn, button { font-weight: 600; border-radius: 10px; }
.start { flex-direction: column; position: relative; padding: 18px 18px 18px 72px; transition: border-color .15s, transform .15s; }
.start .ico { position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.start b { font-size: 17px; font-weight: 600; }
.start:active { transform: scale(.99); }
.trust { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: #1f7a46; margin: 0 0 12px; }
:root[data-theme=dark] .trust { color: #6fd39a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .trust { color: #6fd39a; } }
.empty-card { border: 1px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; color: var(--soft); }
.empty-card b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* Step by step */
.stepper { margin: 4px 0 12px; }
.prog { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.prog span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 3px; transition: width .25s ease; }
#stepLabel { margin: 8px 0 0; font-weight: 600; color: var(--ink); }
#stepNav { display: flex; gap: 10px; margin-top: 18px; }
#stepNav button { flex: 1; min-height: 50px; font-size: 17px; }
body[data-step=form] #docArea { display: none !important; }
body[data-step=result] .panel form { display: none; }
body[data-step=result] .panel .app { grid-template-columns: minmax(0,1fr); }
body[data-step=result] #exampleBtn { display: none; }
@media (max-width: 860px) { body[data-step=form] .panel .notice { display: none; } }
@media (prefers-reduced-motion: reduce) { .prog span { transition: none; } }

.quickfill { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.quickfill select { flex: 1 1 14em; width: auto; min-height: 42px; }
.quickfill button { min-height: 42px; padding: 6px 12px; font-size: 15px; }
.actions2 { display: flex; flex-wrap: wrap; gap: 10px; flex-basis: 100%; }
.actions2 button { flex: 1 1 14em; }

.status-pick { width: auto; min-height: 32px; padding: 2px 8px; font-size: 13.5px; font-weight: 600; margin-top: 6px; border-radius: 999px; }
.st-draft { color: var(--soft); }
.st-served { color: var(--blue); border-color: var(--blue); }
.st-done { color: #1f7a46; border-color: #1f7a46; }

.tip { margin: 6px 0 2px; font-size: 14px; }
.tip summary { cursor: pointer; color: var(--blue); font-weight: 500; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; }
.tip summary::-webkit-details-marker { display: none; }
.tip summary::before { content: "?"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 12px; font-weight: 700; }
.tip p { margin: 4px 0 6px; padding: 10px 12px; background: color-mix(in srgb, var(--blue) 8%, transparent); border-radius: 8px; color: var(--ink); line-height: 1.5; }

.gt { width: 100%; border-collapse: collapse; font-size: 15px; }
.gt th, .gt td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gt th { font-weight: 600; }
.gt td:last-child { white-space: nowrap; font-weight: 600; color: var(--blue); }
.guide-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.guide-list a { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none; color: var(--ink); }
.guide-list b { display: block; color: var(--blue); font-size: 17px; }
.guide-list span { color: var(--soft); font-size: 15px; }
.legal ul li { margin: 6px 0; }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.shots figure { margin: 0; text-align: center; }
.shots img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 18px 40px -26px rgba(11,79,138,.55); }
.shots figcaption { margin-top: 10px; font-weight: 600; font-size: 15px; }
@media (max-width: 700px) { .shots { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .shots figure { scroll-snap-align: center; } }
body[data-step=result] .quickfill, body[data-step=result] .bar { display: none !important; }
#propPick[hidden] { display: none; }
/* Official form download */
.official { border: 1px solid var(--line); border-top: 5px solid var(--blue); border-radius: 12px; background: var(--panel); padding: 18px clamp(16px,3vw,24px); margin: 0 0 28px; }
.official #officialBtn { margin-top: 10px; width: 100%; max-width: 420px; min-height: 48px; font-size: 16px; }
.official .status { margin-top: 10px; }
#why { min-height: 260px; }
/* ---------- Landing: forms filled in ---------- */
.eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.ticks { list-style: none; padding: 0; margin: -6px 0 24px; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.ticks svg { flex: none; color: #1a8a4a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .ticks svg, :root:not([data-theme=light]) .compare .crow span:last-child svg { color: #6fd39a; } }
.formshot { position: relative; margin: 0 0 30px; max-width: 460px; justify-self: center; }
.formshot img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--blue); border-radius: 10px; box-shadow: 0 24px 50px -26px rgba(11,79,138,.6); transform: rotate(-1.2deg); }
.formshot .badge { position: absolute; top: -14px; right: 14px; z-index: 2; background: #1a8a4a; color: #fff; font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); }
.formshot figcaption { position: absolute; left: -14px; bottom: -26px; z-index: 2; background: var(--bg); border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 10px; padding: 10px 14px; box-shadow: 0 14px 30px -18px rgba(0,0,0,.5); display: grid; gap: 2px; }
.formshot figcaption b { font-size: 13px; font-weight: 500; color: var(--soft); }
.formshot figcaption span { font-family: Literata, Georgia, serif; font-size: 22px; font-weight: 600; }
.formshot figcaption small { font-size: 12px; color: var(--soft); }
.strip .strip-note { grid-column: 1 / -1; margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.3); font-weight: 600; }
.compare { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.compare .crow { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.compare .crow + .crow { border-top: 1px solid var(--line); }
.compare .crow span { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; font-size: 15.5px; }
.compare .crow span:first-child { color: var(--soft); }
.compare .crow span:last-child { background: var(--panel); font-weight: 500; }
.compare .crow span:first-child svg { color: var(--red); flex: none; margin-top: 3px; }
.compare .crow span:last-child svg { color: #1a8a4a; flex: none; margin-top: 3px; }
.compare .chead span { font-weight: 700 !important; color: var(--ink) !important; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
a.tool { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.tool:hover, a.tool:focus-visible { border-color: var(--blue); transform: translateY(-2px); }
a.tool .go { color: var(--blue); font-weight: 600; font-size: 15px; }
.realform { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(20px,4vw,48px); align-items: center; margin-top: 44px; }
.realform h3 { font-size: 24px; margin: 0 0 10px; font-family: Literata, Georgia, serif; }
.realform p { color: var(--soft); margin: 0 0 12px; }
.realform img { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -26px rgba(11,79,138,.55); }
.stickycta { display: none; }
@media (max-width: 700px) {
  .compare .crow { grid-template-columns: minmax(0,1fr); }
  .compare .chead { display: none; }
  .compare .crow span:first-child { padding-bottom: 4px; font-size: 14.5px; }
  .compare .crow span:last-child { padding-top: 10px; }
  .realform { grid-template-columns: minmax(0,1fr); }
  .formshot { margin-top: 8px; }
  .formshot figcaption { left: 8px; }
  .stickycta.show { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -16px rgba(0,0,0,.4); font-weight: 600; font-size: 15px; }
  .stickycta .btn { flex: none; }
}
.hero p.also { font-size: 16px; color: var(--soft); max-width: 50ch; margin: -10px 0 22px; padding-left: 12px; border-left: 3px solid var(--blue); }
.official #infoLink { margin-top: 10px; width: 100%; max-width: 420px; min-height: 48px; font-size: 16px; text-align: center; }
.official #infoLink[hidden], .official #officialBtn[hidden] { display: none; }
.more-grounds { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.more-grounds summary { cursor: pointer; font-weight: 600; color: var(--blue); min-height: 44px; display: flex; align-items: center; }
.gref { display: block; color: var(--soft); font-size: 13px; }
#sigPad { display: block; width: 100%; max-width: 420px; height: 150px; background: #fff; border: 1px dashed var(--soft); border-radius: 10px; touch-action: none; cursor: crosshair; }
#sigClear { margin-top: 6px; min-height: 40px; font-size: 14px; }
#signBox[hidden] { display: none; }
.rs-sum { margin-top: 12px; }
.rs-sum table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.rs-sum th, .rs-sum td { text-align: right; padding: 5px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rs-sum th:first-child, .rs-sum td:first-child, .rs-sum td:nth-child(2) { text-align: left; }
.rs-sum .tot { font-weight: 700; font-size: 16px; margin: 8px 0; }
.rs-sum .tbl { overflow-x: auto; max-height: 320px; overflow-y: auto; }
.rs-bad { color: var(--red); font-size: 14px; }
.official #rsBtn { margin-top: 10px; width: 100%; max-width: 420px; min-height: 48px; font-size: 16px; display: block; }
.official #rsBtn[hidden] { display: none; }
/* While answering questions, show only the live result, not the after-you-finish checklist */
body[data-step=form] .notice h3, body[data-step=form] .notice ol { display: none; }
/* Written statement: show the finished document only on the result, and keep the checklist neutral while answering */
body[data-step=form] #w-doc { display: none; }
body[data-step=form] #w-card.bad { border-top-color: var(--blue); }
body[data-step=form] #w-card .miss, body[data-step=form] #w-card [class*=miss] { color: var(--soft); }
#regionBanner { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-left: 5px solid #d08a00; border-radius: 10px; background: var(--panel); font-size: 15px; }
#regionBanner[hidden] { display: none; }
