@charset "UTF-8";

:root {
  color-scheme: light;
  --bg: #f6f0e9;
  --paper: #fffcf8;
  --ink: #241b23;
  --muted: #5f515b;
  --plum: #452a40;
  --plum-deep: #2e1c2a;
  --line: #dfd1d9;
  --accent: #f1bb9e;
  --lavender: #f6edf5;
  --serif: "PT Serif", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #9a4c69; outline-offset: 3px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
section[id] { scroll-margin-top: 24px; }
.wrap { width: min(1120px, 100% - 64px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -100px; background: var(--paper); z-index: 3; padding: 10px 16px; }
.skip:focus { top: 12px; }
.site-header { border-bottom: 1px solid #e4d9d4; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; gap: 11px; align-items: center; color: var(--plum); text-decoration: none; font-weight: 750; white-space: nowrap; }
.mark { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; color: var(--paper); background: var(--plum); font: italic bold 19px var(--serif); }
nav { display: flex; gap: clamp(14px, 3vw, 32px); align-items: center; }
nav a, .site-footer a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; }
nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(24px, 5vw, 66px); padding-block: 52px 48px; }
.hero h1 { font-size: clamp(2.9rem, 6vw, 4.9rem); letter-spacing: -.068em; font-weight: 780; }
.hero em { font-family: var(--serif); font-weight: 400; color: var(--plum); letter-spacing: -.08em; }
.hero-copy p { color: var(--muted); margin: 22px 0 25px; max-width: 36ch; font-size: 1.07rem; }
.primary, .light-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 45px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-weight: 700; font-size: .91rem; }
.primary { background: var(--plum); color: var(--paper); }
.primary:hover { background: var(--plum-deep); }
.hero-visual { background: var(--plum-deep); border-radius: 20px; overflow: hidden; align-self: stretch; min-height: 265px; position: relative; }
.hero-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 64% 46%; display: block; }
section h2 { font-size: clamp(1.75rem, 3.6vw, 2.65rem); letter-spacing: -.045em; font-weight: 760; }
.calculator { padding: 29px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 15px 35px rgba(56, 25, 42, .05); }
.scenario-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 23px 0 15px; }
.scenario { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: #faf4ee; padding: 16px 19px 17px; }
.scenario-b { background: var(--lavender); }
.scenario legend { padding: 0 8px; color: var(--plum-deep); font-weight: 720; }
.scenario-letter { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 6px; border-radius: 50%; background: var(--plum); color: white; font-size: .82rem; }
.preset, .input-grid label, .budget label { display: grid; gap: 4px; min-width: 0; }
label span { color: var(--plum-deep); font-size: .88rem; font-weight: 700; }
input, select, textarea { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #ad98a6; border-radius: 7px; background: #fffdfb; color: var(--ink); padding: 6px 9px; }
select { padding-right: 20px; }
input[aria-invalid="true"] { border-color: #9e2946; box-shadow: inset 0 0 0 1px #9e2946; }
.source-note, .error { min-height: 1.2em; font-size: .78rem; color: var(--muted); margin: 5px 0 12px; }
.error { color: #8d2540; margin: 8px 0 0; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { background: transparent; border: 1px solid #b9a6b2; border-radius: 5px; padding: 5px 8px; color: var(--plum-deep); font-size: .78rem; min-height: 33px; }
.quick button:hover { background: #ede0e9; }
.quick button[aria-pressed="true"] { color: #fff; background: var(--plum); border-color: var(--plum); }
.scenario-result { border-top: 1px solid var(--line); padding-top: 11px; margin-top: 14px; }
.annual { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; }
.annual output { font-variant-numeric: tabular-nums; font-size: clamp(1.65rem, 3.4vw, 2.55rem); letter-spacing: -.055em; line-height: 1.08; font-weight: 780; }
.annual span, .scenario-result p { color: var(--muted); font-size: .83rem; }
.scenario-result p { margin-top: 5px; }
.comparison { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 15px; background: var(--plum-deep); border-radius: 10px; color: var(--paper); padding: 13px 17px; }
.difference { font-size: 1.01rem; }
.difference strong { color: #ffd1b6; }
.light-button { background: var(--accent); border-color: var(--accent); color: var(--plum-deep); }
.light-button:hover { background: #f8d0bc; border-color: #f8d0bc; }
.light-button:disabled { cursor: default; opacity: .6; }
.copy-status, #copy-fallback { grid-column: 1 / -1; }
.copy-status { font-size: .83rem; }
.copy-status:empty { display: none; }
#copy-fallback { resize: vertical; }
.budget { display: grid; grid-template-columns: minmax(140px, 182px) minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 16px; padding-bottom: 15px; }
.budget p { font-size: .88rem; color: var(--muted); }
.method { border-top: 1px solid var(--line); padding-top: 11px; font-size: .88rem; color: var(--muted); }
.method summary { font-weight: 700; cursor: pointer; color: var(--plum); }
.method p { max-width: 77ch; margin-top: 6px; }
.prices { padding-block: 56px 45px; }
.section-title, .guide-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.section-title p, .guide-heading p { margin-top: 6px; color: var(--muted); }
.text-link { font-size: .88rem; font-weight: 720; color: var(--plum); text-underline-offset: 3px; }
.table-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .91rem; }
th, td { padding: 12px 15px; text-align: left; }
th { background: #eee2eb; color: var(--plum-deep); font-weight: 760; }
td { border-top: 1px solid var(--line); }
td:first-child { font-weight: 740; }
td:first-child small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
td a { font-weight: 720; color: var(--plum); text-underline-offset: 3px; }
.fine { color: var(--muted); font-size: .84rem; max-width: 83ch; margin-top: 10px; }
.guide { color: var(--paper); background: var(--plum-deep); border-radius: 18px; padding: 27px 29px 29px; }
.guide h2 { color: white; }
.guide-heading p { color: #eee0e9; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { background: #f9f2eb; color: var(--ink); padding: 18px; border-radius: 10px; }
.card h3 { font-size: 1.15rem; }
blockquote { margin: 11px 0 8px; padding-left: 10px; border-left: 3px solid #a16c85; color: var(--plum-deep); font: 1.05rem/1.5 var(--serif); }
.card p { font-size: .9rem; color: var(--muted); }
.guide-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 22px; border-top: 1px solid #77566d; margin-top: 20px; padding-top: 17px; }
.guide-offer h3 { font-size: 1.18rem; }
.guide-offer p, .guide-measurement { color: #eee0e9; font-size: .88rem; margin-top: 6px; }
.guide-action { text-align: center; }
.guide-action button { min-width: 200px; }
.guide-measurement { margin-top: 13px; }
.guide-measurement summary { cursor: pointer; width: fit-content; }
.guide-measurement p { max-width: 72ch; margin-top: 5px; }
.site-footer { margin-top: 40px; border-top: 1px solid #e4d9d4; }
.footer-inner { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: .89rem; }

@media (max-width: 820px) {
  .wrap { width: calc(100% - 36px); }
  .hero { padding-block: 36px; gap: 20px; }
  .hero-visual { min-height: 240px; }
  .calculator, .guide { padding: 20px; }
  .scenario { padding-inline: 13px; }
  th, td { padding-inline: 10px; }
}

@media (max-width: 630px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { min-height: 61px; gap: 10px; }
  .wordmark { gap: 7px; font-size: .89rem; }
  .mark { width: 28px; height: 28px; font-size: 16px; }
  nav { gap: 12px; }
  nav a { font-size: .78rem; }
  .hero { grid-template-columns: 1fr; gap: 18px; padding-block: 29px; }
  .hero h1 { font-size: clamp(2.55rem, 11vw, 4rem); }
  .hero-copy p { margin: 11px 0 15px; }
  .hero-visual { min-height: 163px; height: 43vw; max-height: 245px; border-radius: 14px; }
  .hero-visual img { object-position: 63% 38%; }
  .calculator, .guide { padding: 14px; border-radius: 14px; }
  .scenario-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 17px; }
  .comparison { grid-template-columns: 1fr; padding: 13px; }
  .comparison button { justify-self: start; }
  .budget { grid-template-columns: 1fr; gap: 6px; }
  .budget label { max-width: 225px; }
  .prices { padding-block: 38px 33px; }
  .section-title, .guide-heading { align-items: start; flex-direction: column; gap: 8px; }
  .table-box table, tbody { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; padding: 11px 10px; border-top: 1px solid var(--line); }
  tbody tr:first-child { border-top: 0; }
  td { display: block; padding: 0; border: 0; min-width: 0; }
  td:first-child, td:last-child { grid-column: 1 / -1; }
  td[data-label]::before { content: attr(data-label); display: block; font-size: .74rem; color: var(--muted); }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-offer { grid-template-columns: 1fr; }
  .guide-action { text-align: left; }
}

@media (max-width: 360px) {
  .header-inner { flex-wrap: wrap; padding-block: 9px; }
  .quick button { padding-inline: 6px; }
}

