@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

:root {
  --text: #707070;
  --accent: #4caac9;
  --line: #dedede;
  --white: #fff;
  --danger: #a52235;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font: 15px/1.58 'DM Sans', Arial, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h2, h3, p { margin-top: 0; }

.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-content { padding: 30px 5% 28px; max-width: 1300px; margin: auto; }
.kicker { font-size: 10px; letter-spacing: 2.2px; font-weight: 700; }
.hero-content > p:not(.hero-fine) { max-width: 860px; font-size: 17px; line-height: 1.75; margin: 0 0 20px; }
.hero-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 35px; background: var(--accent); color: #203844; padding: 15px 21px; text-decoration: none; font-size: 13px; font-weight: 700; min-width: 173px; border: 1px solid var(--accent); }
.hero-action:hover { background: var(--white); }
.hero-fine { font-size: 11px; margin: 20px 0 0; }

.checker { max-width: 1300px; margin: auto; padding: 40px 5% 95px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 37px; }
.section-heading h2, .result-top h2, .scope h2 { font: 500 39px/1.2 'Playfair Display', serif; letter-spacing: -1px; margin: 10px 0; }
.section-heading p { margin: 0; }
.reset { background: none; border: 0; color: var(--text); font-size: 12px; text-decoration: underline; text-decoration-color: var(--accent); white-space: nowrap; padding: 12px; }
.scope-banner { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 15px 19px; font-size: 12px; line-height: 1.65; margin: 0 0 27px; }
.workgrid { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: 38px; }
.inputs, .results { min-width: 0; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.option-category { grid-column: 1/-1; font: 700 10px 'DM Sans', sans-serif; letter-spacing: 1.8px; margin: 18px 0 3px; border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.option-category:first-child { margin-top: 0; }
.option { display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line); background: var(--white); padding: 15px 14px; color: var(--text); min-height: 58px; border-radius: 3px; font-size: 13px; font-weight: 700; transition: border-color .15s; }
.option:hover, .option.active { border-color: var(--accent); }
.option.active { box-shadow: inset 0 0 0 1px var(--accent); }
.option.wide { grid-column: 1/-1; }
.option-symbol { display: grid; place-items: center; flex: 0 0 22px; height: 22px; color: var(--text); font-size: 17px; border: 1px solid var(--accent); border-radius: 50%; line-height: 1; }
.forms { grid-column: 1/-1; display: grid; gap: 12px; }
.form-card { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--white); padding: 20px; border-radius: 3px; }
.form-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.form-top h3 { font: 600 20px 'Playfair Display', serif; margin: 0; }
.remove { border: 0; background: none; color: var(--text); font-size: 11px; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--accent); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 13px; }
.field { display: block; min-width: 0; }
.field-label { display: block; font-size: 11px; font-weight: 700; margin-bottom: 7px; }
.field input, .field select { width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: 2px; min-height: 42px; padding: 9px 10px; color: var(--text); }
.field input:focus, .field select:focus, .option:focus-visible, .reset:focus-visible, .hero-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-hint { font-size: 11px; margin: 12px 0 0; }

.result-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 21px; }
.result-top h2 { font-size: 30px; margin-bottom: 0; }
.count { border: 1px solid var(--line); border-radius: 20px; padding: 5px 10px; font-size: 11px; white-space: nowrap; }
.result-legend { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 10px; margin: -8px 0 17px; }
.result-legend span:before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; }
.result-legend .legend-agreement:before { background: var(--text); }
.result-legend .legend-review:before { background: var(--line); border: 1px solid var(--text); }
.result-legend .legend-overlimit:before { background: var(--danger); }
.outcomes { display: grid; gap: 12px; }
.empty { min-height: 210px; border: 1px dashed var(--line); background: var(--white); text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; }
.empty-symbol { font-size: 30px; }
.empty h3 { font: 500 22px 'Playfair Display', serif; margin: 6px 0; }
.empty p { max-width: 285px; font-size: 12px; margin: 0; }
.outcome { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--line); padding: 20px 22px; }
.outcome.legal { border-left-color: var(--accent); }
.outcome.agreement, .outcome.advice { border-left-style: dashed; border-left-color: var(--text); }
.outcome.review { border-left-color: var(--text); }
.outcome.clear { border-left-color: var(--line); }
.badge { font-size: 9px; letter-spacing: 1.4px; font-weight: 700; }
.outcome h3 { font: 500 22px 'Playfair Display', serif; margin: 8px 0 12px; }
.outcome blockquote { white-space: pre-line; border: 1px solid var(--line); border-left: 2px solid var(--accent); margin: 0 0 13px; background: var(--white); padding: 15px 17px; font-weight: 600; font-size: 13px; line-height: 1.65; }
.agreement blockquote, .advice blockquote { border-left-color: var(--text); }
.condition, .description, .extra { font-size: 12px; line-height: 1.6; margin-bottom: 8px; }
.source { display: inline-block; font-size: 11px; text-decoration: underline; text-decoration-color: var(--accent); margin-top: 7px; }
.source + .source { margin-left: 12px; }
.future-note { margin: 18px 0; padding: 17px 18px; background: var(--white); border: 1px dashed var(--line); border-left: 3px solid var(--text); }
.future-note .future-label { display: block; font-size: 10px; letter-spacing: 1.3px; font-weight: 700; }
.future-note p { font-size: 12px; line-height: 1.7; margin: 7px 0 2px; }
.outcome.overlimit { border: 2px solid var(--danger); border-left-width: 5px; }
.outcome.overlimit .badge, .outcome.overlimit h3, .outcome.overlimit .description { color: var(--danger); }
.outcome.overlimit .description { font-size: 15px; line-height: 1.6; }
.base { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--white); padding: 20px 22px; margin-top: 18px; }
.base-title { font-size: 9px; letter-spacing: 1.7px; font-weight: 700; }
.base p { margin: 8px 0; font-size: 12px; line-height: 1.7; }
.base a { font-size: 11px; text-decoration-color: var(--accent); }

.scope { max-width: 1300px; margin: auto; padding: 84px 5%; display: grid; grid-template-columns: .9fr 1.1fr; gap: 55px; }
.scope h2 { font-size: 36px; }
.scope-text { font-size: 14px; }
.scope-text p { margin-bottom: 16px; }
.scope-text a { text-decoration-color: var(--accent); }
.scope-minor { font-size: 12px; }
footer { border-top: 1px solid var(--line); background: #dedede; color: #555; display: flex; justify-content: space-between; gap: 20px; width: 100%; padding: 25px max(5%, calc((100% - 1300px)/2)); font-size: 11px; }
footer a { text-decoration: underline; text-decoration-color: var(--accent); }

@media (max-width: 920px) {
  .hero-content { padding: 28px 5%; }
  .workgrid { grid-template-columns: 1fr; }
  .scope { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 620px) {
  .hero-content > p:not(.hero-fine) { font-size: 15px; }
  .checker { padding: 60px 5%; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 31px; }
  .option-grid { gap: 8px; }
  .option { padding: 11px 8px; font-size: 11px; gap: 7px; }
  .option-category { font-size: 9px; }
  .option-symbol { flex-basis: 19px; height: 19px; font-size: 15px; }
  .scope { padding: 60px 6%; }
  footer { display: grid; }
  .result-top h2 { font-size: 27px; }
}
