@font-face { font-family: Figtree; src: url(/fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }
:root { --navy: #17305a; --ink: #1c2536; --muted: #4b5870; --tint: #edf5fa; --sky: #d3e6f1; --line: #d3e1eb; --edge: #9ebbd0; --accent: #b5174f; color-scheme: light; }
*, ::before, ::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #fff; color: var(--ink); font: 1.125rem/1.5 Figtree, Verdana, sans-serif; -webkit-text-size-adjust: 100%; }
main { flex: 1; }
h1, h2 { margin: 0; color: var(--navy); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }

p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: .4em; }
a { color: var(--navy); text-underline-offset: .15em; }
a:hover { color: var(--accent); }
h1:focus { outline: none; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
:is(.offer, .amount, footer) :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }

.wrap, .top { width: 100%; max-width: 68rem; margin: 0 auto; padding-inline: 1.25rem; }
.narrow, .app { width: 100%; max-width: 38rem; margin: 0 auto; padding: 1rem 1.25rem 3rem; }
.narrow > * + *, .stack > * + *, .app > * + *, form > * + *, .narrow section > * + *, .pitch > * + *, .ways details > * + *, .card > * + *, .split > div > * + * { margin-top: 1.1rem; }
.text > h2 { margin-top: 2rem; font-size: 1.35rem; }
.top { min-height: 3.75rem; display: flex; align-items: center; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--navy); text-decoration: none; }
.muted, .hint { color: var(--muted); }
.muted { font-size: 1rem; }
.center, .under { text-align: center; }
.under { font-size: 1rem; margin-top: .6rem !important; }

.button { display: block; width: 100%; min-height: 3.6rem; padding: .85rem 1.25rem; border: 2px solid var(--accent); border-radius: 12px; background: var(--accent); color: #fff; font: 700 1.25rem/1.3 Figtree, Verdana, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: #94103f; border-color: #94103f; color: #fff; }
.button.line { background: #fff; border-color: var(--navy); color: var(--navy); }
.button.line:hover { background: var(--tint); color: var(--navy); }
.button.small { display: inline-block; width: auto; min-height: 0; padding: .4rem .9rem; font-size: 1rem; }
.button:disabled { background: #768398; border-color: #768398; cursor: default; }
.link { min-height: 44px; padding: 0 .5rem; border: 0; background: none; color: var(--navy); font: inherit; font-size: 1rem; text-decoration: underline; cursor: pointer; }
.progress-top > .link:first-child { margin-left: -.5rem; }

/* Start page */
.hero { display: grid; background: var(--sky); }
.photo { position: relative; }
.photo img { display: block; width: 100%; height: 15rem; object-fit: cover; object-position: 50% 30%; }
.example { position: absolute; left: 1.25rem; bottom: -1.5rem; padding: .7rem 1rem; border-radius: 12px; background: var(--navy); color: #fff; font-size: 1rem; line-height: 1.35; }
.example strong { display: block; font-size: 1.3rem; }
.pitch { padding: 1.5rem 1.25rem 2.5rem; }
.photo:has(.example) + .pitch { padding-top: 3rem; }
.pitch > p { font-size: 1.2rem; }
.pitch .under { font-size: 1.05rem; }
.pitch .muted { font-size: 1rem; }
@media (min-width: 56rem) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 36rem; }
  .photo { order: 2; }
  .photo img { position: absolute; inset: 0; height: 100%; }
  .example { left: -2.5rem; bottom: 2.5rem; padding: 1.1rem 1.5rem; font-size: 1.125rem; }
  .example strong { font-size: 1.75rem; }
  .pitch .button, .stack > .button, .split .button { width: fit-content; padding-inline: 2.5rem; }
  .pitch .under { text-align: left; }
  .pitch, .photo:has(.example) + .pitch { align-self: center; padding: 2.5rem 4.5rem 2.5rem calc(max(0px, (100vw - 68rem) / 2) + 1.25rem); }
}
.pictured { display: grid; gap: 2rem; }
.pictured > img { display: block; width: 100%; height: 15rem; object-fit: cover; border-radius: 16px; }
.pictured.other { padding-block: 3.5rem; }
@media (min-width: 56rem) {
  .pictured { grid-template-columns: 1fr 1.15fr; gap: 4.5rem; align-items: center; }
  .pictured > img { height: 30rem; }
  .pictured.other { grid-template-columns: 1fr 1.15fr; padding-block: 5rem; }
  .pictured.other > img { height: 26rem; order: 2; }
}
.split { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1.25fr; gap: 4.5rem; padding-block: 5rem; align-items: start; } }
.tint { background: var(--tint); padding-block: 3.5rem; }
@media (min-width: 56rem) { .tint { padding-block: 5rem; } }
.tint > .split { padding-block: 0; }
.steps { list-style: none; padding: 0; margin-top: 1.75rem; display: grid; gap: 1.75rem; counter-reset: step; }
.steps li { margin: 0; padding-left: 3.4rem; position: relative; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.35rem; font-size: 2.8rem; line-height: 1; font-weight: 800; color: var(--accent); }
.steps strong, .rows strong { display: block; font-size: 1.25rem; line-height: 1.3; color: var(--navy); margin-bottom: .25rem; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
th, td { padding: .7rem .5rem; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th { font-weight: 400; color: var(--muted); }
th:first-child, .settings td, td:first-child { text-align: left; padding-left: 0; }
thead th { font-size: 1rem; white-space: normal; vertical-align: bottom; }
td { font-weight: 700; color: var(--navy); }
@media (max-width: 24rem) { table { font-size: 1rem; } th, td { padding-inline: .25rem; } }
.faq details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; }
.faq summary { padding: .85rem 0; font-weight: 700; }
.faq details p { padding-bottom: 1rem; }
.amount, .offer, footer { background: var(--navy); color: #fff; }
.amount :is(h1, p), .offer :is(h2, p, a) { color: #fff; }
.rows { list-style: none; padding: 0; }
.rows li { padding: .9rem 0; margin: 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border: 0; }
.letter { padding: 1.5rem; border-radius: 14px; background: var(--tint); }
.letter > * + * { margin-top: .8rem; }
.letter figcaption { color: var(--muted); font-size: 1rem; }
.letter .subject { font-size: 1.35rem; font-weight: 700; color: var(--navy); }

/* Calculator */
.app { min-height: 34rem; }
.progress-top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; font-size: 1rem; color: var(--muted); }
.bar { height: 8px; border-radius: 4px; background: var(--sky); overflow: hidden; }
.fill { height: 100%; border-radius: 4px; background: var(--accent); }
.app h1 { font-size: clamp(1.85rem, 1.6rem + 1vw, 2.4rem); margin-top: 1.75rem; }
.choices { display: grid; gap: .75rem; }
.choice { min-height: 4rem; padding: .75rem 1.15rem; border: 2px solid var(--edge); border-radius: 12px; background: #fff; color: var(--ink); font: 1.25rem/1.3 Figtree, Verdana, sans-serif; text-align: left; cursor: pointer; }
.choice:hover, .choice.chosen { border-color: var(--navy); background: var(--tint); }
.amount-field { display: flex; align-items: center; gap: .75rem; padding: 0 1.15rem; border: 2px solid var(--navy); border-radius: 12px; font-size: 1.25rem; }
.amount-field:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.amount-field input { flex: 1; min-width: 0; height: 4.25rem; padding: 0; border: 0; outline: none; background: none; color: var(--ink); font: 700 2rem Figtree, Verdana, sans-serif; }
.error { color: #a3123f; font-weight: 700; }
.error:empty { display: none; }
.amount { padding: 1.6rem 1.5rem; border-radius: 16px; font-size: 1.2rem; }
.amount h1 { margin: 0; font-size: 1.35rem; font-weight: 400; letter-spacing: 0; }
.amount .big { font-size: clamp(3rem, 2rem + 6vw, 4.5rem); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.answers > div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.answers > div:last-child { border: 0; }
.app .answers > div:last-child { font-weight: 700; }
.answers dd { margin: 0; text-align: right; }
.app .answers dd { white-space: nowrap; }
.ways .answers dd { font-weight: 700; }
.box, .ok { padding: 1rem 1.15rem; border-radius: 12px; background: var(--tint); }
.box > * + * { margin-top: .8rem; }
.ok { background: #e3f1e4; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.9rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: .35em; width: .5rem; height: .9rem; border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.total { display: flex; justify-content: space-between; padding-top: 1rem; border-top: 2px solid var(--line); font-size: 1.35rem; font-weight: 700; }

/* Forms */
.field { display: block; font-weight: 700; }
.field input, .field select { display: block; width: 100%; height: 3.4rem; margin-top: .35rem; padding: 0 1rem; border: 2px solid var(--navy); border-radius: 12px; background: #fff; color: var(--ink); font: 1.125rem Figtree, Verdana, sans-serif; }
::placeholder { color: #69768b; opacity: 1; }
.check { display: flex; gap: .75rem; align-items: flex-start; padding: .3rem 0; }
.check input { flex: none; width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--navy); }
fieldset { min-width: 0; margin-inline: 0; padding: 0; border: 0; }
legend { padding: 0; font-weight: 700; }
.pair { display: grid; gap: 1.1rem; align-items: end; }
@media (min-width: 34rem) { .pair { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.yesno { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.yesno legend { float: left; font-weight: 400; }
.toggle { display: flex; gap: .4rem; }
.toggle label { position: relative; display: grid; place-items: center; width: 3.75rem; height: 3rem; border: 2px solid var(--navy); border-radius: 10px; color: var(--navy); cursor: pointer; }
.toggle input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.toggle label:has(:checked) { background: var(--navy); color: #fff; }
.toggle label:has(:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.more { display: none; grid-column: 1 / -1; padding: .9rem 0 .5rem; }
.more > * + * { margin-top: 1rem; }
.yesno:has(> .toggle input[value="ja"]:checked) > .more { display: block; }

/* The customer's page */
.ways { display: grid; gap: .75rem; }
.ways > details, .card { padding: 0 1.15rem; border: 2px solid var(--edge); border-radius: 12px; }
.ways > details[open], .card[open] { padding-bottom: 1.25rem; border-color: var(--navy); }
.ways > details > summary, .card > summary { margin-inline: -1.15rem; padding: 1rem 1.15rem; list-style: none; border-radius: 10px; }
.card > summary { font-weight: 700; }
.ways > details > summary::-webkit-details-marker, .card > summary::-webkit-details-marker { display: none; }
.ways > details > summary:hover, .card > summary:hover { background: var(--tint); }
.ways > details > summary strong { display: block; font-size: 1.25rem; color: var(--navy); }
.ways h2, .card h2 { font-size: 1.25rem; }
.paper h2 { margin-top: 2rem; }
.paper details > * + * { margin-top: 1rem; }
.address { padding: .9rem 1.15rem; border-radius: 12px; background: var(--tint); font-size: 1.25rem; font-weight: 700; }
.status { font-weight: 700; }
.box h2 { font-size: 1.35rem; }
.offer { padding: 1.5rem; border-radius: 16px; }
.offer .button { background: #fff; color: var(--navy); border-color: #fff; }
.offer .button:hover { background: var(--sky); }
.offer .check input { accent-color: var(--accent); }
.settings { margin-top: 3rem !important; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 1rem; color: var(--muted); }
.settings details > * + * { margin-top: .8rem; }
.settings summary { text-decoration: underline; color: var(--navy); }

footer { padding-block: 2.5rem 3rem; font-size: 1rem; }
footer a, footer a:hover { color: #fff; }
footer .wrap > * + * { margin-top: .75rem; }
footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
