@font-face {
  font-family: Atkinson Hyperlegible;
  src: url("/games/bloomfield/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Atkinson Hyperlegible;
  src: url("/games/bloomfield/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  font: 16px/1.55 "Atkinson Hyperlegible", system-ui, sans-serif;
  --ink: #112843;
  --subtle: #42556a;
  --teal: #007570;
  --border: #cadbdc;
  --paper: #fff;
  --mist: #f0f8f7;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: #f2f7f5; }
.wrap { max-width: 1100px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 46px); }
a { color: #005e59; text-underline-offset: 3px; }
a:hover { color: #112843; }
.site-header { background: var(--paper); border-bottom: 1px solid #dfebea; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-inner img { display: block; height: auto; max-width: min(40vw, 165px); }
.header-inner > a:last-child { font-size: .92rem; font-weight: 650; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(26px, 5vw, 58px);
  padding: clamp(25px, 5.8vw, 63px);
  margin-block: 26px 23px;
  border-radius: 28px;
  background: radial-gradient(ellipse at 86% 22%, #1f5260 0%, #143550 40%, #102740 72%);
  color: #fff;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 7.4vw, 5.75rem); margin-block: .16em .21em; font-weight: 700; }
h1 em { display: block; color: #ffd66e; font-style: normal; }
h2 { font-size: clamp(1.65rem, 4vw, 2.2rem); margin-bottom: .38em; }
h3 { font-size: 1.18rem; margin-bottom: .35em; }
.hero-copy > p:last-child { max-width: 35ch; color: #dfedf2; font-size: clamp(1.05rem, 2vw, 1.22rem); }
.eyebrow { font-size: .84rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9ce3dc; }
.eyebrow span { color: #ffd66e; }
.deal-visual { min-width: 0; position: relative; }
.deal-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 50% auto auto 50%;
  width: max(125%, 270px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid #8edacb48;
  box-shadow: 0 0 0 18px #8edacb12, 0 0 0 39px #8edacb13, 0 0 0 62px #8edacb10;
  pointer-events: none;
}
.deal-card {
  padding: clamp(15px, 3vw, 28px);
  background: #fffdf4;
  color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 15px 35px #081c3660;
}
.deal-label { color: #376569; font-size: .89rem; font-weight: 700; }
.example-number { margin-block: 2px 4px; line-height: 1.1; font-size: clamp(2.9rem, 7vw, 4.6rem); font-weight: 700; letter-spacing: -.055em; }
.example-number span { font-size: 1.03rem; letter-spacing: -.01em; color: var(--subtle); white-space: nowrap; }
.deal-terms { color: var(--subtle); font-size: .95rem; }
.deal-terms span { color: var(--teal); }
.deal-reveal { margin-top: 16px; }
.deal-reveal summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #ffd66e;
  color: #182d3e;
}
.deal-reveal summary::-webkit-details-marker { display: none; }
.deal-reveal summary:hover { background: #f7c951; }
.deal-reveal summary::after { content: "+"; font-size: 1.25rem; line-height: 1; }
.deal-reveal[open] summary::after { content: "−"; }
.deal-reveal:not([open]) .reveal-open, .deal-reveal[open] .reveal-closed { display: none; }
.deal-breakdown { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #b5c9c0; }
.deal-breakdown > p:last-child { font-size: .91rem; color: var(--subtle); }
.deal-total { color: #005e59; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.05; }
@media (prefers-reduced-motion: no-preference) {
  .deal-reveal[open] .deal-breakdown { animation: reveal .24s ease-out both; }
  @keyframes reveal { from { opacity: 0; transform: translateY(-5px); } }
}
.panel { background: white; border: 1px solid var(--border); border-radius: 18px; padding: clamp(20px, 4vw, 35px); margin-block: 16px; scroll-margin-top: 14px; }
.panel > p, .hint { color: var(--subtle); }
.gate { margin-bottom: 28px; }
.gate .actions { margin-block: 18px 4px; }
.jump { display: flex; flex-wrap: wrap; align-items: center; column-gap: 15px; row-gap: 8px; font-weight: 720; }
.jump .text-button { margin-inline-start: auto; }
.tool-tabs { display: flex; flex-wrap: wrap; gap: 3px; padding: 4px; border: 1px solid #d1e4df; border-radius: 13px; background: #e5efec; }
.tool-tabs a { display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px 13px; min-height: 40px; border-radius: 9px; text-decoration: none; color: var(--ink); line-height: 1.2; }
.tool-tabs a:hover { background: white; }
.tool-tabs a[aria-current] { background: var(--ink); color: white; }
.composer-attachment .screenshot-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 10px; border: 1px dashed #a5c8c0; border-radius: 9px; margin-block: 4px 8px; background: #f4faf8; }
.composer-attachment .screenshot-controls label { margin: 0; font-size: .94rem; }
.composer-attachment .screenshot-controls input[type=file] { width: auto; max-width: 100%; min-width: 0; border: 0; padding: 4px; background: transparent; }
.screenshot-controls input::file-selector-button { border: 0; border-radius: 7px; font: inherit; font-weight: 700; color: #005e59; background: #e1f0eb; margin-inline-end: 8px; padding: 6px 8px; cursor: pointer; }
.composer-attachment .screenshot-controls [role=status] { flex-basis: 100%; margin: 0; }
form { margin-top: 19px; }
label { display: block; font-weight: 720; margin-bottom: 5px; }
select, input:not([type=checkbox]), textarea { background: white; color: var(--ink); border: 1px solid #8caaad; border-radius: 8px; min-height: 44px; width: 100%; font: inherit; padding: 8px 11px; }
textarea { resize: vertical; }
#scenario { max-width: 420px; }
.hint { font-size: .92rem; margin-block: 8px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-block: 16px; }
.optional { font-size: .85em; font-weight: 400; color: var(--subtle); }
.actions { display: flex; gap: 9px; flex-wrap: wrap; }
button { border: 1px solid transparent; border-radius: 9px; color: white; background: var(--teal); font: inherit; font-weight: 750; min-height: 44px; padding: 8px 16px; cursor: pointer; }
button:hover { background: #005c58; }
button:disabled { opacity: .64; cursor: wait; }
.secondary { color: var(--ink); background: var(--mist); border-color: var(--border); }
.secondary:hover { background: #daeae8; }
.text-button { background: transparent; color: #005e59; padding-inline: 6px; text-decoration: underline; }
.text-button:hover { background: var(--mist); }
:focus-visible { outline: 3px solid #8c2961; outline-offset: 3px; }
.notice { margin-top: 14px; background: #fff6df; padding: 12px 15px; border-radius: 9px; }
.result:not(:empty) { margin-top: 20px; padding: clamp(14px, 3vw, 23px); border: 1px solid #b8d9d4; background: var(--mist); border-radius: 12px; overflow-wrap: anywhere; }
.result h3:not(:first-child) { margin-top: 15px; }
.result ul { margin-block: 7px; padding-inline-start: 23px; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 174px), 1fr)); gap: 10px; margin-block: 14px; }
.figures > div { background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 11px 12px; }
.figures dt { color: var(--subtle); font-size: .91rem; }
.figures dd { margin: 2px 0 0; font-size: 1.4rem; font-weight: 780; font-variant-numeric: tabular-nums; }
.figures > .figure-primary { grid-column: 1 / -1; padding: 13px 17px; background: #12354a; color: white; border-color: #12354a; }
.figure-primary dt, .figure-primary small { color: #d0ece7; }
.figure-primary dd { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.12; }
.result > h3:first-child { font-size: clamp(1.4rem, 3vw, 1.85rem); }
.comparison-summary { background: #14374c; color: white; padding: 14px 16px; border-radius: 10px; }
.figures small { display: block; font-size: .82rem; color: var(--subtle); }
.follow textarea { margin-bottom: 8px; }
.footer { color: var(--subtle); font-size: .91rem; padding-block: 12px 26px; }
@media (max-width: 650px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .tool-tabs { width: 100%; }
  .tool-tabs a { flex: 1 1 26%; padding-inline: 6px; font-size: .94rem; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .jump .text-button { margin-inline-start: 0; }
}

.how-to { margin-top: 14px; background: var(--mist); padding: 12px 15px; border-radius: 9px; }
summary { cursor: pointer; font-weight: 750; }
.how-to ol { margin-block: 6px 0; padding-inline-start: 21px; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-block: 12px; }
.examples span { color: var(--subtle); font-size: .9rem; font-weight: 650; }
.examples button { padding: 6px 11px; font-weight: 650; font-size: .88rem; }
.review { margin-block: 16px; }
.review .fields { margin-block: 12px; }
.result .next-step { margin-block: 12px; border-inline-start: 3px solid var(--teal); padding-inline-start: 12px; }
.next-step button { margin-top: 8px; }
.result details > summary { margin-top: 12px; }

.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block: 16px; }
.offer-grid fieldset { min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 9px; }
.offer-grid legend { padding-inline: 5px; font-weight: 780; }
.offer-grid label:not(:first-of-type) { margin-top: 10px; }
#compare-result table { width: 100%; border-collapse: collapse; table-layout: fixed; }
#compare-result :is(th, td) { padding: 8px 5px; border-bottom: 1px solid var(--border); text-align: left; }
#compare-result thead { color: #005e59; }
#compare-result th:first-child { width: 40%; }
#compare-result .monthly-row td, #compare-result .total-row td { font-size: clamp(1.03rem, 3vw, 1.5rem); font-weight: 700; font-variant-numeric: tabular-nums; }
#compare-result .total-row { background: #dceee8; color: #12354a; }
#compare-result p { margin-block: 8px; }
#compare-example { margin-top: 8px; }
@media (max-width: 600px) {
  .offer-grid { grid-template-columns: 1fr; }
  #compare-result table { font-size: .88rem; }
}

.screenshot-controls { margin-bottom: 12px; }
.screenshot-controls input[type=file] { font-size: .92rem; }
.screenshot-controls [role=status]:empty { display: none; }
.screenshot-controls button { margin-top: 6px; }
#screenshot-example { margin-top: 8px; }
.offer-import { margin-top: 8px; border: 1px solid var(--border); border-radius: 9px; padding: 10px 14px; }
.offer-import form { margin-top: 12px; }
.offer-import button[type=submit] { margin-top: 6px; }
