:root { color-scheme: light; --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; --bg: #f3f0e8; --paper: #fffdf7; --ink: #183229; --muted: #66736d; --accent: #17634c; --accent-dark: #0d4937; --warm: #e4a853; --line: #d9d8ce; --danger: #a33b32; --radius-sm: 10px; --radius-md: 18px; --radius-lg: 28px; --shadow: 0 24px 70px rgba(45, 51, 41, .11), 0 2px 8px rgba(45, 51, 41, .06); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 80% 12%, rgba(228, 168, 83, .16), transparent 26%); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(228, 168, 83, .8); outline-offset: 3px; }
.site-header, footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.site-header { min-height: 82px; border-bottom: 1px solid rgba(24, 50, 41, .14); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: Georgia, serif; }
.privacy-note { color: var(--muted); font-size: 14px; }
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.intro { padding: 62px 0 38px; max-width: 940px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5.8vw, 70px); line-height: 1.02; letter-spacing: -.04em; font-weight: 500; }
.lead { max-width: 760px; margin-bottom: 22px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }
.hero-summary { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 15px; font-weight: 750; }
.hero-summary li::before { content: "✓"; margin-right: 8px; color: var(--accent); font-weight: 900; }
.hero-note { margin: 0; color: var(--muted); font-size: 13px; }
.demo-warning { max-width: 1100px; margin: 18px auto 0; padding: 12px 16px; border: 1px solid #bd9156; border-radius: 8px; background: #fff6e9; color: #57391f; font-size: 14px; line-height: 1.5; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.form-panel, .result-panel { padding: clamp(24px, 4vw, 46px); background: var(--paper); border: 1px solid rgba(24, 50, 41, .1); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr .65fr; gap: 24px 32px; }
.form-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.form-heading h2, .result-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; }
.step-badge { padding: 7px 12px; background: #f3e4c9; border-radius: 99px; color: #735123; font-size: 13px; font-weight: 750; }
.field { min-width: 0; }
.optional-label { color: var(--muted); font-size: 12px; font-weight: 500; }
.full-name-field { grid-column: 1 / 2; }
.resident-type-field { grid-column: 2 / 3; }
.resident-choice-grid { grid-template-columns: 1fr 1fr; }
label, legend { display: block; margin-bottom: 9px; font-weight: 750; }
input[type="text"], input[type="number"], input[type="tel"], input[type="email"], input[type="date"], textarea, select { width: 100%; border: 1px solid #bfc5bc; background: #fff; color: var(--ink); border-radius: var(--radius-sm); }
input[type="text"], input[type="number"], input[type="tel"], input[type="email"], input[type="date"] { min-height: 54px; padding: 0 15px; }
select { min-height: 54px; padding: 0 42px 0 15px; }
input:hover, textarea:hover, select:hover { border-color: #849087; }
.address-input-wrap { position: relative; }
.address-input-wrap input { padding-right: 158px; }
.voice-button { position: absolute; top: 7px; right: 7px; min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid #bfc5bc; border-radius: 8px; background: #f4f6f2; color: var(--accent); cursor: pointer; font-size: 13px; font-weight: 750; }
.voice-button svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.voice-button:hover { border-color: var(--accent); background: #e6f0eb; }
.voice-button.is-listening { border-color: var(--danger); background: #f8e8e5; color: var(--danger); }
.voice-button:disabled { cursor: not-allowed; opacity: .55; }
.problem-input-wrap { position: relative; }
.problem-input-wrap textarea { min-height: 110px; padding: 15px 154px 15px 15px; resize: vertical; }
.problem-input-wrap .voice-button { top: 7px; }
.hint, .safety-note, .route-note { color: var(--muted); font-size: 13px; }
.hint { margin: 7px 0 0; }
.days-control { position: relative; }
.days-control input { padding-right: 65px; }
.days-control span { position: absolute; right: 16px; top: 15px; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; grid-column: 1 / -1; }
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.choice { margin: 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { min-height: 52px; display: flex; align-items: center; justify-content: center; padding: 9px 12px; border: 1px solid #bfc5bc; background: #fff; border-radius: var(--radius-sm); text-align: center; font-size: 14px; font-weight: 650; transition: .18s ease; }
.choice input:checked + span { border-color: var(--accent); background: #e6f0eb; box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 3px solid rgba(228, 168, 83, .8); outline-offset: 3px; }
.field-error { min-height: 20px; margin: 8px 0 0; color: var(--danger); font-size: 14px; }
.primary-button, .copy-button { min-height: 56px; border: 0; border-radius: var(--radius-sm); background: var(--accent); color: white; cursor: pointer; font-weight: 800; transition: background .18s ease, transform .18s ease; }
.primary-button { grid-column: 1 / 2; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.primary-button:hover, .copy-button:hover { background: var(--accent-dark); }
.primary-button:active, .copy-button:active { transform: translateY(1px); }
.safety-note { align-self: center; margin: 0; }
.result-panel { grid-column: 1 / -1; }
.result-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 24px; }
.text-button { border: 0; padding: 8px 0; background: transparent; color: var(--accent); cursor: pointer; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }
.letter-wrap { position: relative; }
textarea { display: block; min-height: 370px; padding: 22px; resize: vertical; line-height: 1.65; }
#complaint-text { font-family: "Times New Roman", Times, serif; font-size: 16px; line-height: 1.5; }
.copy-button { width: 100%; margin-top: 12px; }
.legal-basis { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f8f7f1; }
.legal-basis h3, .document-download h3 { margin-bottom: 6px; font-size: 20px; }
.legal-basis > p, .document-download p { margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.legal-basis ul { margin: 0; padding-left: 20px; }
.legal-basis li + li { margin-top: 8px; }
.legal-basis a { color: var(--accent); text-underline-offset: 3px; }
.document-download { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; align-items: center; padding: 22px; border-radius: var(--radius-sm); background: var(--ink); color: white; }
.document-download p { color: rgba(255,255,255,.72); margin-bottom: 0; }
.document-download .hint { grid-column: 1 / -1; }
.secondary-button { min-height: 48px; padding: 0 18px; border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius-sm); background: white; color: var(--ink); cursor: pointer; font-weight: 800; }
.secondary-button:disabled { opacity: .65; cursor: wait; }
.steps { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.steps h3 { font-size: 24px; }
.steps ol { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { display: flex; gap: 12px; }
.steps li > span { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: white; font-weight: 800; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.steps strong { color: var(--ink); }
.official-link { display: inline-flex; gap: 8px; color: var(--accent); font-weight: 800; text-underline-offset: 4px; }
.portal-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.portal-links .official-link { position: relative; display: grid; gap: 4px; padding: 15px 42px 15px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; text-decoration: none; }
.portal-links .official-link span { color: var(--muted); font-size: 13px; font-weight: 500; }
.portal-links .official-link b { position: absolute; top: 15px; right: 16px; font-size: 18px; }
.route-note { margin: 22px 0 0; padding: 14px 16px; border-left: 3px solid var(--warm); background: #f8f0e2; }
.why { padding: 110px 0; display: grid; grid-template-columns: .7fr 1.3fr; gap: 30px; }
.why .eyebrow { grid-column: 1; }
.why h2 { grid-column: 2; grid-row: 1 / span 2; margin-bottom: 20px; font-family: Georgia, serif; font-size: clamp(34px, 5vw, 62px); line-height: 1.02; letter-spacing: -.035em; font-weight: 500; }
.why > p:last-child { grid-column: 2; color: var(--muted); max-width: 650px; font-size: 18px; }
footer { min-height: 90px; border-top: 1px solid rgba(24, 50, 41, .14); color: var(--muted); font-size: 13px; }
[hidden] { display: none !important; }
.is-loading { opacity: .7; pointer-events: none; }
@media (max-width: 720px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 68px; }
  .privacy-note { display: none; }
  .intro { padding: 38px 0 28px; }
  h1 { font-size: clamp(38px, 11.5vw, 50px); }
  .lead { font-size: 17px; }
  .hero-summary { display: grid; gap: 6px; }
  .form-panel { grid-template-columns: 1fr; gap: 22px; padding: 22px; border-radius: var(--radius-md); }
  .field, .full-name-field, .resident-type-field, .primary-button, .safety-note { grid-column: 1; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .choice span { min-height: 58px; }
  .address-input-wrap input { padding-right: 55px; }
  .voice-button { width: 40px; padding: 0; justify-content: center; }
  .voice-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .problem-input-wrap textarea { padding-right: 55px; }
  .result-panel { padding: 22px; border-radius: var(--radius-md); }
  .result-heading { display: block; }
  .text-button { margin-top: 8px; }
  textarea { min-height: 440px; padding: 16px; font-size: 15px; }
  .document-download { grid-template-columns: 1fr; }
  .secondary-button { width: 100%; }
  .steps ol { grid-template-columns: 1fr; gap: 20px; }
  .portal-links { grid-template-columns: 1fr; }
  .why { padding: 76px 0; display: block; }
  .why h2 { font-size: 39px; }
  footer { padding: 22px 0; display: block; }
  footer span { display: block; }
  footer span + span { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
