/* ==========================================================================
   Smart Calculation — construction cost & everyday calculators
   Same Material-inspired teal language as the Brewbyte CI4 template.
   ========================================================================== */

:root {
    --c-teal: #00695c;
    --c-teal-dark: #004d40;
    --c-teal-mid: #00897b;
    --c-teal-bright: #26a69a;
    --c-teal-soft: #e0f2f1;
    --c-wash: #eef8f5;
    --c-surface: #f5f8f7;
    --c-surface-2: #edf4f1;
    --c-card: #ffffff;
    --c-text: #1c2522;
    --c-text-2: #2d3834;
    --c-muted: #5f6b66;
    --c-muted-2: #64706a;
    --c-line: #dce6e2;
    --c-line-strong: #c5d5cf;
    --c-error: #b3261e;
    --c-warning: #7a4f00;
    --c-amber: #b26a00;
    --c-amber-soft: #fff3e0;
    --c-blue: #1565c0;
    --c-blue-soft: #e3f2fd;
    --c-rose: #ad1457;
    --c-rose-soft: #fce4ec;
    --c-green: #2e7d32;
    --c-green-soft: #e8f5e9;
    --c-cyan: #00838f;
    --c-cyan-soft: #e0f7fa;
    --c-violet: #5e35b1;
    --c-violet-soft: #ede7f6;
    --c-slate: #37474f;
    --c-slate-soft: #eceff1;
    --shadow: 0 1px 2px rgba(18, 42, 35, .05), 0 8px 24px rgba(18, 42, 35, .06);
    --shadow-lift: 0 2px 4px rgba(18, 42, 35, .06), 0 18px 40px rgba(18, 42, 35, .11);
    --radius: 16px;
    --radius-lg: 24px;
    --sans: "Roboto", "Noto Sans Lao", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
    --header-h: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body.calc-site {
    margin: 0;
    min-height: 100vh;
    background: var(--c-surface);
    color: var(--c-text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
}

body.calc-site [hidden] {
    display: none !important;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background: var(--c-teal);
    color: #fff;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--c-teal);
    text-decoration: none;
}

a:hover {
    color: var(--c-teal-dark);
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--c-teal-dark);
    font-weight: 600;
    box-shadow: var(--shadow);
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(100% - 40px, 1180px);
    margin-inline: auto;
}

:focus-visible {
    outline: 3px solid rgba(38, 166, 154, .5);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    font-size: 1em;
}

.btn-sm {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12.5px;
}

.btn-lg {
    min-height: 52px;
    padding: 0 24px;
    font-size: 14.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--c-teal), var(--c-teal-mid));
    color: #fff;
    box-shadow: 0 12px 26px -14px rgba(0, 77, 64, .7);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--c-teal-dark), var(--c-teal));
    color: #fff;
    box-shadow: 0 16px 30px -14px rgba(0, 77, 64, .75);
}

.btn-light {
    background: #fff;
    color: var(--c-teal-dark);
    border-color: rgba(255, 255, 255, .45);
}

.btn-light:hover {
    background: #f2fffb;
    color: var(--c-teal-dark);
}

.btn-outline {
    background: transparent;
    color: var(--c-text);
    border-color: var(--c-line-strong);
}

.btn-outline:hover {
    border-color: var(--c-teal);
    color: var(--c-teal);
    background: #fff;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .4);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: rgba(255, 255, 255, .7);
}

.btn-ghost {
    background: transparent;
    color: var(--c-muted);
    border-color: var(--c-line);
}

.btn-ghost:hover {
    background: #fff;
    color: var(--c-teal);
    border-color: var(--c-line-strong);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.app-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid rgba(220, 230, 226, .8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.app-bar.is-scrolled {
    box-shadow: 0 8px 24px -18px rgba(18, 42, 35, .35);
}

.app-bar-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: var(--header-h);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: var(--c-text);
}

.app-brand:hover {
    color: var(--c-text);
}

.app-brand-mark {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--c-teal-dark), var(--c-teal-mid));
    color: #fff;
    font-size: 21px;
    box-shadow: 0 8px 18px -10px rgba(0, 77, 64, .6);
}

.app-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.app-brand-copy strong {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.app-brand-copy small {
    font-size: 10.5px;
    color: var(--c-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.app-nav > a {
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--c-muted);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
}

.app-nav > a:hover {
    color: var(--c-teal);
    background: var(--c-surface);
}

.app-nav > a.is-active {
    color: var(--c-teal-dark);
    background: var(--c-teal-soft);
}

.app-nav-lang {
    display: none;
}

.app-cta {
    box-shadow: none;
}

.app-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: var(--c-surface);
}

.lang-switch a {
    min-width: 34px;
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--c-muted);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.lang-switch a:hover {
    color: var(--c-teal);
}

.lang-switch a.is-active {
    background: #fff;
    color: var(--c-teal-dark);
    box-shadow: 0 1px 4px rgba(18, 42, 35, .12);
}

.app-menu {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-line);
    border-radius: 11px;
    background: #fff;
    color: var(--c-text);
    font-size: 20px;
}

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(44px, 6.5vw, 82px) 0 clamp(56px, 7vw, 96px);
    background: linear-gradient(135deg, #002e27 0%, #004d40 42%, #00695c 72%, #00897b 100%);
    color: #fff;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 620px;
    height: 620px;
    right: -180px;
    top: -260px;
    background: radial-gradient(circle, rgba(127, 230, 196, .18), transparent 66%);
}

.hero::after {
    width: 460px;
    height: 460px;
    left: -200px;
    bottom: -240px;
    background: radial-gradient(circle, rgba(38, 166, 154, .22), transparent 68%);
}

.hero-blueprint {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(115deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 78%);
    -webkit-mask-image: linear-gradient(115deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 78%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-teal-mid);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: #8ff0d4;
}

.hero-copy h1 {
    margin: 16px 0 20px;
    font-size: clamp(38px, 5.2vw, 64px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.035em;
}

.hero-copy h1 em {
    font-style: normal;
    color: #8ff0d4;
}

.hero-text {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(15.5px, 1.35vw, 18px);
    line-height: 1.68;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0 26px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .82);
    font-size: 12.5px;
}

.hero-points i {
    margin-right: 6px;
    color: #7fe6c4;
}

.hero-demo {
    position: relative;
    padding: 26px;
    border-radius: 26px;
    background: #fff;
    color: var(--c-text);
    box-shadow: 0 42px 90px -34px rgba(0, 0, 0, .55);
    transform: rotate(.6deg);
}

.hero-demo::after {
    content: "";
    position: absolute;
    inset: 12px -12px -12px 12px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 26px;
}

.demo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.demo-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.demo-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--c-teal-soft);
    color: var(--c-teal-dark);
    font-size: 10px;
    font-weight: 600;
}

.pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-teal-bright);
    box-shadow: 0 0 0 3px rgba(38, 166, 154, .2);
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(38, 166, 154, .18); }
    50% { box-shadow: 0 0 0 6px rgba(38, 166, 154, .06); }
}

.demo-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--c-teal-soft);
    color: var(--c-teal);
    font-size: 22px;
}

.demo-head h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -.01em;
}

.demo-head p {
    margin: 2px 0 0;
    color: var(--c-muted);
    font-size: 11.5px;
}

.demo-total {
    margin: 18px 0 14px;
    color: var(--c-teal-dark);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.05;
}

.demo-meter {
    display: flex;
    gap: 2px;
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--c-surface-2);
}

.demo-meter span {
    display: block;
    height: 100%;
}

.meter-structure { background: var(--c-teal); }
.meter-finishes { background: var(--c-teal-bright); }
.meter-mep { background: #7fd8c7; }
.meter-fees { background: #f2b45c; }

.demo-rows {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}

.demo-rows > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--c-muted);
    font-size: 12px;
}

.demo-rows strong {
    color: var(--c-text-2);
    font-size: 12px;
}

.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
}

.dot-structure { background: var(--c-teal); }
.dot-finishes { background: var(--c-teal-bright); }
.dot-mep { background: #7fd8c7; }
.dot-fees { background: #f2b45c; }

.demo-note {
    margin: 18px 0 0;
    padding-top: 13px;
    border-top: 1px solid var(--c-line);
    color: var(--c-muted);
    font-size: 10.5px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Featured band
   -------------------------------------------------------------------------- */
.featured-band {
    padding: 30px 0;
    border-bottom: 1px solid var(--c-line);
    background: #fff;
}

.featured-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.featured-copy {
    flex: 1;
    min-width: 0;
}

.featured-copy h2 {
    margin: 6px 0 6px;
    font-size: clamp(23px, 2.8vw, 32px);
    letter-spacing: -.025em;
    line-height: 1.15;
}

.featured-copy p {
    max-width: 650px;
    margin: 0 0 16px;
    color: var(--c-muted);
    font-size: 14px;
}

.featured-metrics {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.featured-metrics > div {
    min-width: 112px;
    padding: 14px 16px;
    border: 1px solid var(--c-line);
    border-radius: 15px;
    background: var(--c-surface);
    text-align: center;
}

.featured-metrics strong {
    display: block;
    color: var(--c-teal);
    font-size: 26px;
    line-height: 1;
}

.featured-metrics span {
    display: block;
    margin-top: 5px;
    color: var(--c-muted);
    font-size: 10.5px;
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Sections and cards
   -------------------------------------------------------------------------- */
.section {
    padding: clamp(48px, 6vw, 80px) 0;
}

.section-tight {
    padding-top: 32px;
}

.section-tint {
    background: var(--c-surface-2);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-head h2 {
    margin: 6px 0 0;
    font-size: clamp(27px, 3.2vw, 40px);
    letter-spacing: -.03em;
    line-height: 1.12;
}

.section-head p {
    max-width: 680px;
    margin: 9px 0 0;
    color: var(--c-muted);
    font-size: 14px;
}

.section-head-center {
    justify-content: center;
    text-align: center;
}

.section-head-center p {
    margin-inline: auto;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding-bottom: 3px;
    color: var(--c-teal);
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 105, 92, .25);
}

.text-link:hover {
    border-bottom-color: var(--c-teal);
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.calc-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tone-teal { --tone: var(--c-teal); --tone-soft: var(--c-teal-soft); }
.tone-amber { --tone: var(--c-amber); --tone-soft: var(--c-amber-soft); }
.tone-blue { --tone: var(--c-blue); --tone-soft: var(--c-blue-soft); }
.tone-rose { --tone: var(--c-rose); --tone-soft: var(--c-rose-soft); }
.tone-green { --tone: var(--c-green); --tone-soft: var(--c-green-soft); }
.tone-cyan { --tone: var(--c-cyan); --tone-soft: var(--c-cyan-soft); }
.tone-violet { --tone: var(--c-violet); --tone-soft: var(--c-violet-soft); }
.tone-slate { --tone: var(--c-slate); --tone-soft: var(--c-slate-soft); }

.calc-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--c-line);
    border-radius: 18px;
    background: #fff;
    color: var(--c-text);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.calc-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--tone);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .24s ease;
}

.calc-card:hover {
    color: var(--c-text);
    border-color: var(--tone);
    box-shadow: var(--shadow-lift);
    transform: translateY(-3px);
}

.calc-card:hover::after {
    transform: scaleX(1);
}

.calc-card-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--tone-soft);
    color: var(--tone);
    font-size: 22px;
}

.calc-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding-top: 1px;
}

.calc-card-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--c-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.calc-card-tagline {
    color: var(--c-muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.calc-card-summary {
    margin-top: 5px;
    color: var(--c-muted);
    font-size: 12px;
    line-height: 1.55;
}

.calc-card-arrow {
    margin-left: auto;
    align-self: center;
    color: var(--tone);
    font-size: 17px;
    opacity: .7;
    transition: transform .2s ease, opacity .2s ease;
}

.calc-card:hover .calc-card-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--c-amber-soft);
    color: var(--c-warning);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Steps and FAQ
   -------------------------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.step {
    position: relative;
    padding: 26px;
    border: 1px solid var(--c-line);
    border-radius: 20px;
    background: #fff;
}

.step-number {
    position: absolute;
    top: 18px;
    right: 22px;
    color: var(--c-teal-soft);
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.step-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--c-teal-soft);
    color: var(--c-teal);
    font-size: 22px;
}

.step h3 {
    margin: 16px 0 6px;
    font-size: 17px;
}

.step p {
    margin: 0;
    color: var(--c-muted);
    font-size: 13px;
    line-height: 1.6;
}

.section-faq {
    background: #fff;
    border-top: 1px solid var(--c-line);
}

.faq-layout {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 48px;
}

.faq-copy h2 {
    margin: 6px 0 0;
    font-size: clamp(27px, 3.2vw, 40px);
    letter-spacing: -.03em;
    line-height: 1.1;
}

.faq-item {
    border-bottom: 1px solid var(--c-line);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    color: var(--c-text-2);
    font-size: 14.5px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary i {
    flex: 0 0 auto;
    color: var(--c-teal);
    font-size: 14px;
    transition: transform .2s ease;
}

.faq-item[open] summary i {
    transform: rotate(45deg);
}

.faq-item p {
    max-width: 720px;
    margin: 0;
    padding: 0 30px 18px 0;
    color: var(--c-muted);
    font-size: 13px;
    line-height: 1.65;
}

.cta-band {
    padding: 44px 0;
    background: linear-gradient(135deg, #002e27, var(--c-teal) 65%, var(--c-teal-mid));
    color: #fff;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-inner h2 {
    margin: 6px 0 0;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -.03em;
    line-height: 1.15;
}

/* --------------------------------------------------------------------------
   Page heads
   -------------------------------------------------------------------------- */
.page-head {
    padding: 22px 0 32px;
    border-bottom: 1px solid var(--c-line);
    background: #fff;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--c-muted);
    font-size: 11.5px;
}

.breadcrumb a {
    color: var(--c-muted);
}

.breadcrumb a:hover {
    color: var(--c-teal);
}

.breadcrumb i {
    font-size: 9px;
    opacity: .65;
}

.page-head-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
}

.page-head-icon {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: var(--tone-soft);
    color: var(--tone);
    font-size: 28px;
}

.page-head-copy {
    min-width: 0;
}

.page-head-copy h1 {
    margin: 5px 0 7px;
    font-size: clamp(30px, 3.8vw, 44px);
    letter-spacing: -.035em;
    line-height: 1.1;
}

.page-head-copy p {
    max-width: 760px;
    margin: 0;
    color: var(--c-muted);
    font-size: 14px;
    line-height: 1.6;
}

.page-head-count {
    margin-left: auto;
    align-self: flex-start;
    color: var(--c-teal);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    text-align: right;
}

.page-head-count small {
    display: block;
    margin-top: 4px;
    color: var(--c-muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cross-link {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid var(--c-line);
    border-radius: 16px;
    background: #fff;
    color: var(--c-text);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.cross-link:hover {
    border-color: var(--c-teal);
    box-shadow: var(--shadow);
    color: var(--c-text);
}

.cross-link-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--tone-soft);
    color: var(--tone);
    font-size: 20px;
}

.cross-link small {
    display: block;
    color: var(--c-muted);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cross-link strong {
    font-size: 14px;
}

.cross-link > i {
    margin-left: auto;
    color: var(--c-teal);
}

/* --------------------------------------------------------------------------
   Calculator page
   -------------------------------------------------------------------------- */
.page-head-calc .calc-head-row {
    align-items: flex-start;
}

.calc-tagline {
    margin: 0 0 6px;
    color: var(--c-teal-dark);
    font-size: 16px;
    font-weight: 500;
}

.calc-summary {
    color: var(--c-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

.calc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.calc-chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: var(--c-surface);
    color: var(--c-muted);
    font-size: 10.5px;
    font-weight: 500;
}

.calc-chips i {
    color: var(--c-teal);
}

.calc-main {
    padding: 32px 0 66px;
    background: var(--c-surface);
}

.calc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    align-items: start;
    gap: 26px;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

.form-card {
    padding: 21px;
    border: 1px solid var(--c-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(18, 42, 35, .03);
}

.form-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.form-card-head h2 {
    margin: 0;
    font-size: 16.5px;
    letter-spacing: -.01em;
}

.form-card-hint {
    color: var(--c-muted);
    font-size: 11px;
    text-align: right;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field.is-wide {
    grid-column: 1 / -1;
}

.field.is-hidden {
    display: none;
}

.field-label {
    color: var(--c-text-2);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
}

.input-wrap {
    display: flex;
    align-items: stretch;
    min-height: 47px;
    overflow: hidden;
    border: 1px solid var(--c-line-strong);
    border-radius: 11px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.input-wrap:focus-within {
    border-color: var(--c-teal);
    box-shadow: 0 0 0 3px rgba(0, 137, 123, .13);
}

.input-wrap input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 13px;
    background: transparent;
    color: var(--c-text);
    font-size: 15px;
    font-weight: 500;
}

.input-wrap input::-webkit-outer-spin-button,
.input-wrap input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.input-wrap input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.field-prefix {
    display: flex;
    align-items: center;
    padding-left: 12px;
    color: var(--c-muted);
    font-size: 13px;
}

.field-unit {
    display: flex;
    align-items: center;
    padding: 0 11px;
    border-left: 1px solid var(--c-line);
    background: var(--c-surface);
    color: var(--c-muted);
    font-size: 10.5px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.select-wrap {
    position: relative;
    display: block;
}

.select-wrap select {
    width: 100%;
    min-height: 47px;
    padding: 0 38px 0 13px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--c-line-strong);
    border-radius: 11px;
    outline: 0;
    background: #fff;
    color: var(--c-text);
    font-size: 13.5px;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.select-wrap select:focus {
    border-color: var(--c-teal);
    box-shadow: 0 0 0 3px rgba(0, 137, 123, .13);
}

.select-wrap > i {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    color: var(--c-muted);
    font-size: 11px;
    pointer-events: none;
}

.field-help {
    color: var(--c-muted);
    font-size: 10.5px;
    line-height: 1.4;
}

.field-check {
    flex-direction: row;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid var(--c-line);
    border-radius: 11px;
    background: var(--c-surface);
    cursor: pointer;
}

.field-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.check-ui {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid var(--c-line-strong);
    border-radius: 6px;
    background: #fff;
    color: #fff;
    font-size: 13px;
    transition: background .18s ease, border-color .18s ease;
}

.check-ui i {
    opacity: 0;
    transform: scale(.5);
    transition: opacity .18s ease, transform .18s ease;
}

.field-check input:checked + .check-ui {
    border-color: var(--c-teal);
    background: var(--c-teal);
}

.field-check input:checked + .check-ui i {
    opacity: 1;
    transform: scale(1);
}

.field-check input:focus-visible + .check-ui {
    outline: 3px solid rgba(38, 166, 154, .4);
    outline-offset: 2px;
}

.check-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.field-rate .field-label {
    color: var(--c-muted);
}


/* Beginner-friendly hints ------------------------------------------------ */
.beginner-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 18px;
    padding: 13px 16px;
    border: 1px solid #d3e9e2;
    border-radius: 14px;
    background: #f0faf6;
    color: var(--c-text-2);
    font-size: 12.5px;
    line-height: 1.55;
}

.beginner-note > i {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--c-teal);
    font-size: 18px;
}

.beginner-note p {
    margin: 0;
}

.beginner-note a {
    color: var(--c-teal);
    font-weight: 600;
    white-space: nowrap;
}

.form-foot-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 3px;
    color: var(--c-muted);
    font-size: 11px;
}

.form-foot span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.form-foot i {
    color: var(--c-amber);
}

.noscript {
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--c-amber-soft);
    color: var(--c-warning);
    font-size: 12px;
}

/* Rates -------------------------------------------------------------------- */
.rates-card {
    padding: 0;
    overflow: hidden;
}

.rates-card summary {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 19px 21px;
    list-style: none;
    cursor: pointer;
}

.rates-card summary::-webkit-details-marker {
    display: none;
}

.rates-summary-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--c-amber-soft);
    color: var(--c-amber);
    font-size: 18px;
}

.rates-summary-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.rates-summary-copy strong {
    font-size: 14.5px;
}

.rates-summary-copy small {
    margin-top: 2px;
    color: var(--c-muted);
    font-size: 11px;
}

.rates-chevron {
    color: var(--c-muted);
    font-size: 12px;
    transition: transform .2s ease;
}

.rates-card[open] .rates-chevron {
    transform: rotate(180deg);
}

.rates-body {
    padding: 0 21px 19px;
    border-top: 1px solid var(--c-line);
}

.rates-note {
    margin: 13px 0 15px;
    color: var(--c-muted);
    font-size: 11px;
}

.rates-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.rates-state {
    min-height: 17px;
    color: var(--c-teal);
    font-size: 11px;
}

/* Result panel ------------------------------------------------------------- */
.result-panel {
    position: sticky;
    top: calc(var(--header-h) + 18px);
    padding: 25px;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(160deg, #003129 0%, #00473c 42%, #00695c 100%);
    color: #fff;
    box-shadow: 0 30px 70px -34px rgba(0, 77, 64, .65);
}

.result-panel::before {
    content: "";
    position: absolute;
    top: -110px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(127, 230, 196, .2), transparent 68%);
    pointer-events: none;
}

.result-print-brand {
    display: none;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
}

.result-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.result-headline {
    min-width: 0;
}

.result-eyebrow {
    color: #8ff0d4;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.result-total {
    margin: 7px 0 5px;
    color: #fff;
    font-size: clamp(29px, 3.1vw, 38px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.result-subtitle {
    min-height: 17px;
    margin: 0;
    color: rgba(255, 255, 255, .66);
    font-size: 11px;
    line-height: 1.45;
}

.result-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #8ff0d4;
    font-size: 9.5px;
    font-weight: 600;
    white-space: nowrap;
}

.result-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 17px 0 19px;
}

.result-actions .btn-light {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .11);
    color: #fff;
}

.result-actions .btn-light:hover {
    background: rgba(255, 255, 255, .2);
}

.result-empty {
    position: relative;
    padding: 24px 0 8px;
    color: rgba(255, 255, 255, .66);
    font-size: 12.5px;
    text-align: center;
}

.result-empty-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 15px;
    background: rgba(255, 255, 255, .06);
    color: #8ff0d4;
    font-size: 24px;
}

.result-empty p {
    margin: 0;
}

.result-body {
    position: relative;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 16px;
}

.stat {
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 11px;
    background: rgba(255, 255, 255, .065);
}

.stat-label {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, .58);
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.stat-value {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.result-block {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, .13);
}

.result-block h3 {
    margin: 0 0 11px;
    color: rgba(255, 255, 255, .6);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.lines {
    display: grid;
    gap: 10px;
}

.line-row {
    display: grid;
    gap: 5px;
}

.line-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 11.5px;
}

.line-label {
    color: rgba(255, 255, 255, .8);
}

.line-amount {
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.line-bar {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.line-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7fe6c4, #26a69a);
}

.line-row.tone-amber .line-bar span {
    background: linear-gradient(90deg, #ffd28a, #f2a23c);
}

.line-row.tone-rose .line-bar span {
    background: linear-gradient(90deg, #ffb3c8, #e46a8d);
}

.line-row.tone-blue .line-bar span {
    background: linear-gradient(90deg, #9ed4ff, #4b9fe0);
}

.items {
    display: grid;
}

.item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.item:last-child {
    border-bottom: 0;
}

.item-name {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 11.5px;
    line-height: 1.4;
}

.item-sub {
    color: rgba(255, 255, 255, .52);
    font-size: 9.5px;
}

.item-amount {
    flex: 0 0 auto;
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.result-note {
    position: relative;
    margin: 18px 0 0;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, .13);
    color: rgba(255, 255, 255, .56);
    font-size: 10px;
    line-height: 1.55;
}

.mobile-result-bar {
    display: none;
}

.related-section {
    border-top: 1px solid var(--c-line);
    background: #fff;
}

/* --------------------------------------------------------------------------
   Guide
   -------------------------------------------------------------------------- */
.page-head-guide {
    padding-bottom: 38px;
}

.guide-hero {
    max-width: 820px;
    margin-top: 26px;
}

.guide-hero h1 {
    margin: 7px 0 12px;
    font-size: clamp(34px, 4.6vw, 52px);
    letter-spacing: -.04em;
    line-height: 1.06;
}

.guide-hero p {
    margin: 0;
    color: var(--c-muted);
    font-size: 15px;
    line-height: 1.7;
}

.guide-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.guide-card {
    padding: 25px;
    border: 1px solid var(--c-line);
    border-radius: 20px;
    background: #fff;
}

.guide-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--tone-soft);
    color: var(--tone);
    font-size: 21px;
}

.guide-card h2 {
    margin: 15px 0 7px;
    font-size: 17px;
}

.guide-card p {
    margin: 0;
    color: var(--c-muted);
    font-size: 13px;
    line-height: 1.65;
}


/* Measure guide ----------------------------------------------------------- */
.guide-measure {
    margin: 22px 0;
    padding: 25px;
    border: 1px solid var(--c-line);
    border-radius: 22px;
    background: #fff;
}

.guide-measure-head h2 {
    margin: 6px 0 0;
    font-size: clamp(22px, 2.6vw, 30px);
    letter-spacing: -.03em;
    line-height: 1.15;
}

.measure-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    margin-top: 20px;
}

.measure-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.measure-number {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--c-teal-soft);
    color: var(--c-teal-dark);
    font-size: 13px;
    font-weight: 700;
}

.measure-item h3 {
    margin: 3px 0 4px;
    font-size: 14px;
}

.measure-item p {
    margin: 0;
    color: var(--c-muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.guide-panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.guide-panel {
    padding: 22px;
    border: 1px solid var(--c-line);
    border-radius: 18px;
    background: var(--c-surface);
}

.guide-panel h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 14.5px;
}

.guide-panel h2 i {
    color: var(--c-teal);
}

.guide-panel p {
    margin: 0;
    color: var(--c-muted);
    font-size: 12.5px;
    line-height: 1.65;
}

.guide-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 28px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    padding-top: 50px;
    background: #0b1d19;
    color: rgba(255, 255, 255, .7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr .8fr .8fr 1.15fr;
    gap: 30px;
    padding-bottom: 38px;
}

.app-brand-footer .app-brand-copy strong {
    color: #fff;
}

.app-brand-footer .app-brand-copy small {
    color: rgba(255, 255, 255, .5);
}

.footer-brand p {
    max-width: 330px;
    margin: 13px 0 0;
    color: rgba(255, 255, 255, .52);
    font-size: 12.5px;
    line-height: 1.65;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-col h2,
.footer-note h2 {
    margin: 0 0 7px;
    color: #8ff0d4;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.footer-col a {
    color: rgba(255, 255, 255, .68);
    font-size: 12.5px;
}

.footer-col a:hover {
    color: #fff;
}

.footer-note p {
    margin: 0;
    color: rgba(255, 255, 255, .48);
    font-size: 11.5px;
    line-height: 1.65;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .4);
    font-size: 10.5px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, .62);
}

.footer-bottom a:hover {
    color: #fff;
}

.bottom-nav {
    display: none;
}

.toast {
    position: fixed;
    bottom: 22px;
    left: 50%;
    z-index: 90;
    max-width: min(92vw, 420px);
    padding: 11px 18px;
    border-radius: 999px;
    background: #102a24;
    color: #fff;
    font-size: 12.5px;
    box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .55);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 18px);
    transition: opacity .22s ease, transform .22s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   Error page
   -------------------------------------------------------------------------- */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 20px;
    background:
        radial-gradient(circle at 88% 8%, rgba(38, 166, 154, .14), transparent 34%),
        radial-gradient(circle at 8% 94%, rgba(0, 137, 123, .1), transparent 32%),
        var(--c-surface);
}

.error-wrap {
    width: min(100%, 560px);
    padding: 40px;
    border: 1px solid var(--c-line);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 30px 80px -46px rgba(0, 77, 64, .5);
}

.error-code {
    display: inline-block;
    margin: 26px 0 6px;
    color: var(--c-teal-mid);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
}

.error-wrap h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 5vw, 40px);
    letter-spacing: -.03em;
    line-height: 1.1;
}

.error-wrap > p {
    margin: 0;
    color: var(--c-muted);
    font-size: 14px;
    line-height: 1.65;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 720px;
    }

    .hero-demo {
        max-width: 540px;
    }

    .featured-inner {
        align-items: flex-start;
    }

    .calc-layout {
        grid-template-columns: 1fr;
    }

    .result-panel {
        position: relative;
        top: 0;
    }
}

@media (max-width: 991px) {
    .app-nav {
        position: fixed;
        top: calc(var(--header-h) + 8px);
        right: 12px;
        left: 12px;
        z-index: 60;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        margin: 0;
        padding: 10px;
        border: 1px solid var(--c-line);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 24px 60px -24px rgba(18, 42, 35, .4);
    }

    .app-nav.is-open {
        display: flex;
    }

    .app-nav > a {
        padding: 12px 14px;
        border-radius: 11px;
        font-size: 14px;
    }

    .app-nav-lang {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 6px;
        padding: 10px 4px 4px;
        border-top: 1px solid var(--c-line);
        color: var(--c-muted);
        font-size: 11px;
    }

    .app-menu {
        display: inline-flex;
    }

    .calc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .features-grid,
    .steps,
    .guide-methods,
    .guide-panels,
    .measure-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1.2fr .8fr .8fr;
    }

    .footer-note {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 40;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding: 6px 4px max(6px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--c-line);
        background: rgba(255, 255, 255, .97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 7px 2px;
        border-radius: 10px;
        color: var(--c-muted);
        font-size: 9.5px;
        font-weight: 500;
        line-height: 1.2;
    }

    .bottom-nav a i {
        font-size: 19px;
    }

    .bottom-nav a.is-active {
        background: var(--c-teal-soft);
        color: var(--c-teal-dark);
    }

    body.calc-site:not(.page-calculator) {
        padding-bottom: 72px;
    }

    .page-calculator .bottom-nav {
        display: none;
    }

    .page-calculator .mobile-result-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 45;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 9px 16px max(9px, env(safe-area-inset-bottom));
        background: #003129;
        color: #fff;
        box-shadow: 0 -12px 36px -18px rgba(0, 0, 0, .55);
    }

    .mobile-result-bar small {
        display: block;
        color: #8ff0d4;
        font-size: 8.5px;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    .mobile-result-bar strong {
        display: block;
        font-size: 18px;
        letter-spacing: -.01em;
        line-height: 1.2;
    }

    .mobile-result-bar .btn-light {
        border-color: rgba(255, 255, 255, .25);
        background: rgba(255, 255, 255, .12);
        color: #fff;
    }

    .page-calculator .toast {
        bottom: 84px;
    }

    .page-calculator {
        padding-bottom: 82px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 32px, 1180px);
    }

    .app-bar-inner {
        gap: 10px;
    }

    .app-brand-mark {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 19px;
    }

    .app-brand-copy strong {
        font-size: 14.5px;
    }

    .app-brand-copy small {
        display: none;
    }

    .lang-switch-header,
    .app-cta {
        display: none;
    }

    .hero {
        padding: 36px 0 48px;
    }

    .hero-copy h1 {
        margin-top: 12px;
    }

    .hero-actions {
        margin: 24px 0 22px;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .hero-points {
        flex-direction: column;
        gap: 7px;
    }

    .hero-demo {
        padding: 20px;
        transform: none;
    }

    .hero-demo::after {
        display: none;
    }

    .featured-inner {
        flex-direction: column;
        gap: 18px;
    }

    .featured-metrics {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .featured-metrics > div {
        min-width: 0;
        padding: 12px 8px;
    }

    .featured-metrics strong {
        font-size: 22px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 22px;
    }

    .calc-grid,
    .calc-grid-two {
        grid-template-columns: 1fr;
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-head {
        padding-bottom: 24px;
    }

    .page-head-row {
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 13px;
    }

    .page-head-icon {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        border-radius: 14px;
        font-size: 23px;
    }

    .page-head-count {
        display: none;
    }

    .calc-tagline {
        font-size: 14.5px;
    }

    .calc-chips {
        margin-top: 10px;
    }

    .calc-main {
        padding: 20px 0 48px;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .field.is-wide {
        grid-column: auto;
    }

    .form-card {
        padding: 17px;
        border-radius: 17px;
    }

    .form-card-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .form-card-hint {
        text-align: left;
    }

    .rates-card summary {
        padding: 16px 17px;
    }

    .rates-body {
        padding: 0 17px 17px;
    }

    .result-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .result-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .footer-brand,
    .footer-note {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-bottom-right {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .error-wrap {
        padding: 28px 22px;
    }

    .guide-cta .btn {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .hero-demo {
        padding: 17px;
    }

    .demo-total {
        font-size: 34px;
    }

    .item {
        gap: 8px;
    }

    .item-amount {
        font-size: 11px;
    }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
    body.calc-site {
        background: #fff;
        color: #111;
    }

    .app-bar,
    .site-footer,
    .bottom-nav,
    .mobile-result-bar,
    .page-head,
    .beginner-note,
    .calc-form,
    .related-section,
    .toast,
    .skip-link {
        display: none !important;
    }

    .calc-main {
        padding: 0;
        background: #fff;
    }

    .calc-layout {
        display: block;
    }

    .result-panel {
        position: static;
        width: 100%;
        padding: 24px;
        border: 1px solid #ccc;
        border-radius: 0;
        background: #fff !important;
        color: #111 !important;
        box-shadow: none;
    }

    .result-panel::before {
        display: none;
    }

    .result-print-brand {
        display: flex;
        color: #333;
    }

    .result-live,
    .result-actions,
    .result-empty {
        display: none !important;
    }

    .result-total,
    .result-eyebrow,
    .result-subtitle,
    .stat-label,
    .stat-value,
    .line-label,
    .line-amount,
    .item-name,
    .item-sub,
    .item-amount,
    .result-note,
    .result-block h3 {
        color: #111 !important;
    }

    .stat,
    .result-block,
    .result-note {
        border-color: #ccc !important;
        background: #fff !important;
    }

    .line-bar {
        background: #e5e5e5 !important;
    }

    .line-bar span {
        background: #00695c !important;
    }

    .item {
        border-color: #ddd !important;
        break-inside: avoid;
    }

    .result-block,
    .stat {
        break-inside: avoid;
    }
}
