/* Stayease revenue estimator (/estimate). Brand tokens match the main site. */
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url('/fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url('/fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }

:root {
  --navy: #03045E; --ocean: #023E8A; --blue: #0077B6; --mid: #0096C7; --cyan: #48CAE4;
  --sky: #90E0EF; --pale: #ADE8F4; --ice: #CAF0F8; --soft: #EFF9FC; --white: #fff;
  --text: #1E293B; --muted: #475569; --line: #CFE7EF; --typical: #94A3B8; --danger: #B91C1C;
  --head: 'Poppins', 'Segoe UI', system-ui, sans-serif; --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius: 16px; --shadow: 0 10px 30px rgba(3, 4, 94, 0.08);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--white); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.eyebrow { display: inline-block; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1 var(--body); border-radius: 999px; padding: 15px 26px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary { background: var(--cyan); color: var(--navy); box-shadow: 0 8px 20px rgba(72, 202, 228, 0.35); }
.btn-primary:hover { transform: translateY(-1px); background: #5ad3ea; }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--cyan); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; margin-top: 6px; color: var(--blue); font: 500 0.875rem var(--body); text-decoration: underline; cursor: pointer; }
:focus-visible { outline: 3px solid var(--mid); outline-offset: 2px; }

/* Header */
.site-header { background: var(--ice); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(173, 232, 244, 0.6); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo img { height: 32px; width: auto; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--navy); text-decoration: none; font-family: var(--head); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--blue); }
@media (max-width: 860px) { .nav { display: none; } .header-cta { margin-left: auto; } }

/* Hero + form */
.hero { background: linear-gradient(180deg, var(--ice), var(--soft) 70%, var(--white)); padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.hero-copy { padding-top: 24px; }
.hero-copy h1 { margin-top: 12px; }
.lead { font-size: 1.15rem; color: var(--ocean); margin-top: 18px; max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--navy); font-weight: 500; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2303045E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero-copy { padding-top: 0; } .hero { padding: 36px 0 48px; } }

.form-card { padding: 28px; }
.form-title { font-size: 1.3rem; margin-bottom: 18px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 8px; padding: 0; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.8rem; margin-left: 4px; }
input[type=text], input[type=email], input[type=tel], select {
  width: 100%; font: 400 1rem var(--body); color: var(--text); background: var(--white);
  border: 1.5px solid var(--pale); border-radius: 12px; padding: 13px 14px; min-height: 48px;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230077B6' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px; }
input:focus, select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.hint { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.field.invalid .hint { color: var(--danger); }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.area-pick { margin-top: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; margin: 0 !important; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--pale); background: var(--white); font-size: 0.875rem; font-weight: 500; color: var(--ocean); transition: background .15s, border-color .15s; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--mid); outline-offset: 2px; }

.combo { position: relative; }
.suggestions { position: absolute; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(3, 4, 94, 0.15); z-index: 10; max-height: 300px; overflow: auto; }
.suggestions li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 0.92rem; color: var(--text); }
.suggestions li[aria-selected=true], .suggestions li:hover { background: var(--soft); color: var(--navy); }
.suggestions li.empty { color: var(--muted); cursor: default; background: none; }
.form-error { color: var(--danger); font-size: 0.9rem; margin: 0 0 12px; }
.fine { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 10px; }

/* Results */
.results { padding: 56px 0 24px; background: var(--white); scroll-margin-top: 80px; }
.results .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.teaser { padding: 32px; }
.teaser-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.badge { font-size: 0.8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--ice); color: var(--ocean); }
.badge.medium { background: #FEF3C7; color: #92400E; }
.badge.low { background: #FEE2E2; color: #991B1B; }
.teaser-label { margin-top: 18px; font-weight: 600; color: var(--navy); }
.hero-number { font-family: var(--head); font-weight: 700; color: var(--navy); font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.05; margin: 6px 0 8px; }
@media (max-width: 560px) { .outside-note { margin-top: 22px; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 12px; padding: 14px 16px; font-size: 0.92rem; }

.locked { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; padding: 32px; background: linear-gradient(135deg, var(--soft), var(--white)); }
.locked-preview { filter: blur(3px); opacity: 0.7; user-select: none; }
.ghost-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ghost-tiles span { height: 64px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.ghost-bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; margin-top: 16px; padding: 10px; background: var(--white); border-radius: 12px; border: 1px solid var(--line); }
.ghost-bars i { flex: 1; background: var(--blue); border-radius: 4px 4px 0 0; opacity: 0.55; }
.ghost-bars i:nth-child(1) { height: 60%; } .ghost-bars i:nth-child(2) { height: 45%; } .ghost-bars i:nth-child(3) { height: 70%; } .ghost-bars i:nth-child(4) { height: 72%; }
.ghost-bars i:nth-child(5) { height: 62%; } .ghost-bars i:nth-child(6) { height: 48%; } .ghost-bars i:nth-child(7) { height: 40%; } .ghost-bars i:nth-child(8) { height: 55%; }
.ghost-bars i:nth-child(9) { height: 55%; } .ghost-bars i:nth-child(10) { height: 64%; } .ghost-bars i:nth-child(11) { height: 66%; } .ghost-bars i:nth-child(12) { height: 88%; }
.unlock h2 { font-size: 1.5rem; }
.unlock > p { margin: 8px 0 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); margin: 0 0 16px; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
@media (max-width: 860px) { .locked { grid-template-columns: 1fr; } .locked-preview { display: none; } }

/* Report */
.report { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; scroll-margin-top: 90px; }
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.report-head h2 { margin-top: 6px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--soft); border: 1px solid var(--pale); border-radius: 14px; padding: 18px; }
.tile-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue); }
.tile-value { font-family: var(--head); font-weight: 700; font-size: 1.45rem; color: var(--navy); margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile-sub { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.tile-accent { background: var(--navy); border-color: var(--navy); }
.tile-accent .tile-label { color: var(--sky); } .tile-accent .tile-value { color: var(--white); } .tile-accent .tile-sub { color: var(--pale); }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile-value { font-size: 1.2rem; } }

.chart-card { position: relative; }
.chart { display: grid; grid-template-columns: 56px 1fr; gap: 8px; margin-top: 18px; }
.chart-axis { position: relative; height: 240px; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-axis span { position: absolute; right: 0; transform: translateY(50%); }
.chart-plot { position: relative; height: 240px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; }
.chart-grid { position: absolute; left: 0; right: 0; border-top: 1px dashed #E2EEF2; }
.chart-col { position: relative; cursor: pointer; }
.chart-col:hover .range, .chart-col:focus-visible .range { filter: brightness(1.12); }
.chart-col .range { position: absolute; left: 22%; right: 22%; background: var(--blue); border-radius: 4px; }
.chart-col .mid { position: absolute; left: 22%; right: 22%; height: 2px; background: var(--white); }
.chart-months { grid-column: 2; overflow: hidden; display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 6px; }
.chart-tip { position: absolute; pointer-events: none; background: var(--navy); color: var(--white); font-size: 0.82rem; padding: 8px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -110%); z-index: 5; box-shadow: 0 8px 20px rgba(3, 4, 94, 0.25); }
.table-view { margin-top: 14px; font-size: 0.9rem; }
.table-view summary { cursor: pointer; color: var(--blue); font-weight: 500; }
.table-view table, .money { width: 100%; border-collapse: collapse; margin-top: 10px; }
.table-view th, .table-view td, .money td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.money .total td { font-weight: 700; color: var(--navy); border-bottom: 0; border-top: 2px solid var(--navy); }
.money + p { margin-top: 12px; }
.tiers-title { margin: 22px 0 0; font-size: 1rem; color: var(--navy); }
.money.tiers th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.money.tiers th.num { text-align: right; }
.money.tiers .tier-note { display: block; font-weight: 400; }
.money.tiers tr.featured td { background: var(--ice, #CAF0F8); }
.money.tiers tr.featured td:first-child { border-radius: 8px 0 0 8px; }
.money.tiers tr.featured td:last-child { border-radius: 0 8px 8px 0; font-weight: 700; color: var(--navy); }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; }
.factors { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.factors li { font-size: 0.82rem; font-weight: 600; color: var(--ocean); background: var(--ice); border-radius: 999px; padding: 6px 12px; }
.cta-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--navy); border-color: var(--navy); }
.cta-card h3 { color: var(--white); font-size: 1.35rem; } .cta-card p { color: var(--pale); max-width: 40em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.thanks { background: var(--ice); border-radius: 12px; padding: 14px 18px; color: var(--navy); font-weight: 500; }
.method { line-height: 1.6; }

/* How it works */
.how { background: var(--soft); padding: 64px 0; margin-top: 40px; }
.how h2 { margin-top: 8px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.how .step { font-family: var(--head); font-weight: 700; color: var(--cyan); font-size: 1.6rem; display: block; margin-bottom: 6px; }
.how .card p { color: var(--muted); }
.disclaimer { margin-top: 24px; max-width: 60em; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy); color: var(--pale); padding: 48px 0 24px; font-size: 0.9rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 32px; }
.footer-inner img { height: 30px; width: auto; margin-bottom: 12px; }
.site-footer a { color: var(--white); }
.copyright { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(173, 232, 244, 0.2); font-size: 0.8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.copyright a { font-weight: 600; text-decoration: none; }
.copyright a:hover { color: var(--cyan); }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Print / Save as PDF: just the report */
@media print {
  @page { size: A4; margin: 14mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .hero, .locked, .how, .site-footer, #pdf-btn, .table-view summary, .thanks { display: none !important; }
  .results { padding: 0; }
  .card, .tile { box-shadow: none; break-inside: avoid; }
  .table-view[open] table, .table-view table { display: table; }
}

@media (max-width: 560px) {
  .card, .teaser, .locked { padding: 20px; }
  .chart { grid-template-columns: 40px minmax(0, 1fr); }
  .chart-axis { font-size: 0.68rem; }
  .chart-months { font-size: 0.62rem; }
  .chart-col .range, .chart-col .mid { left: 12%; right: 12%; }
}

/* Always light: stops browsers and in-app viewers (Gmail, Google app, Chrome auto-dark) from darkening the pages. */
:root { color-scheme: only light; }
html { background: #fff; }
