* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); color: var(--ink); font-family: var(--font-sans); }
body { margin: 0; font: var(--text-body); }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, .button, .primary { min-height: 44px; padding: 0 var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-raised); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
button:hover, .button:hover, .primary:hover { transform: translateY(-1px); border-color: var(--ink-muted); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--focus); }
.primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.text-link { color: var(--blue); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.quiet, .muted { color: var(--ink-muted); }
.mono { font-family: var(--font-mono); font-size: 12px; }
.kicker { margin: 0 0 var(--space-3); color: var(--blue); font: var(--text-label); letter-spacing: .1em; text-transform: uppercase; }

.site-header { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 4vw, 64px); border-bottom: 1px solid var(--line); background: rgba(255,253,247,.95); position: relative; z-index: 20; }
.wordmark { display: block; width: 154px; line-height: 0; }
.wordmark img { width: 100%; height: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font-size: 14px; }
.site-header nav form { margin: 0; }
.site-header nav a { text-decoration: none; font-weight: 500; }
.site-header .nav-cta { padding: 9px 14px; border: 1px solid var(--ink); border-radius: var(--radius-md); }
.link-button { border: 0; min-height: auto; background: none; padding: 0; border-radius: 0; text-decoration: underline; font-weight: 500; }
.link-button:hover { transform: none; }

/* Landing page */
.page-coming .site-header { border-color: transparent; }
.landing { overflow: hidden; }
.hero { min-height: 720px; padding: clamp(54px, 8vw, 112px) clamp(24px, 6vw, 96px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: center; max-width: 1500px; margin: 0 auto; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin: 0; font: var(--text-display-xl); font-size: clamp(60px, 7vw, 108px); letter-spacing: -.045em; }
.hero-lead { max-width: 620px; margin: var(--space-8) 0 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.45; }
.hero-actions { margin-top: var(--space-8); display: flex; align-items: center; gap: var(--space-6); }
.hero-note { margin: var(--space-6) 0 0; color: var(--ink-muted); font-size: 14px; }
.hero-visual { position: relative; min-height: 560px; isolation: isolate; }
.brand-block { position: absolute; border-radius: var(--radius-md); }
.block-gold { background: var(--gold); inset: 2% auto 7% 0; width: 44%; }
.block-blue { background: var(--blue); width: 37%; height: 68%; right: 14%; bottom: 7%; }
.block-green { background: var(--green); width: 28%; height: 35%; right: -5%; bottom: 7%; }
.block-ink { background: var(--ink); width: 15%; height: 11%; right: 8%; top: 20%; }
.level-band { position: absolute; left: 32%; right: -6%; top: 28%; height: 14px; background: var(--gold); z-index: 1; }
.block-gold::after { content: ""; position: absolute; left: 0; right: 0; bottom: 20%; height: 4px; background: var(--ink); box-shadow: 0 34px var(--ink), 0 68px var(--ink); opacity: .9; }
.status-demo { position: absolute; z-index: 4; left: 8%; right: 9%; top: 18%; padding: clamp(22px, 3vw, 38px); background: var(--paper-raised); border: 1px solid rgba(17,17,17,.12); border-radius: var(--radius-lg); box-shadow: 0 24px 70px rgba(17,17,17,.22); transform: rotate(-2deg); }
.demo-top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.sys-chip, .state { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: var(--radius-pill); background: var(--green-soft); color: var(--ink); padding: 3px 11px; font: var(--text-reading); white-space: nowrap; }
.sys-chip::before, .state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.sys-chip-act { background: var(--gold); }
.sys-chip-act::before { background: var(--ink); }
.demo-label, .phone-label { margin: var(--space-8) 0 var(--space-2); color: var(--ink-muted); }
.demo-reading { font: var(--text-reading-xl); font-size: clamp(58px, 7vw, 90px); }
.demo-rule { height: 10px; margin: var(--space-4) 0 var(--space-8); border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.demo-rule span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.demo-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); font-size: 14px; }
.demo-bottom b { display: block; font-family: var(--font-mono); font-size: 18px; margin-top: 3px; }
.status-demo small { display: block; margin-top: var(--space-6); color: var(--ink-muted); }

.promise-strip { min-height: 72px; padding: 0 clamp(24px, 6vw, 96px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--ink); color: var(--on-blue); font-weight: 600; }
.promise-strip span:not(:last-child)::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: clamp(24px, 5vw, 72px); border-radius: 50%; background: var(--gold); vertical-align: 2px; }
.landing-section { max-width: 1320px; margin: 0 auto; padding: clamp(80px, 10vw, 150px) clamp(24px, 6vw, 96px); }
.landing-section h2, .water-section h2, .landing-cta h2 { margin: 0; font: var(--text-display-l); font-size: clamp(44px, 6vw, 78px); letter-spacing: -.035em; }
.steps { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 9vw, 130px); }
.section-intro > p:last-child { margin-top: var(--space-8); max-width: 500px; font-size: 18px; line-height: 1.55; }
.step-list { border-top: 1px solid var(--line); }
.step-list article { padding: var(--space-8) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 72px 1fr; gap: var(--space-4); }
.step-number { font: var(--text-reading); color: var(--blue); }
.step-list h3 { margin: 0 0 var(--space-2); font: var(--text-heading); }
.step-list p { margin: 0; color: var(--ink-muted); }
.product-showcase { max-width: none; background: var(--green-soft); display: grid; grid-template-columns: minmax(0, .8fr) minmax(360px, .7fr); gap: clamp(50px, 10vw, 150px); align-items: center; }
.showcase-copy { max-width: 600px; justify-self: end; }
.showcase-copy > p:not(.kicker) { font-size: 18px; line-height: 1.55; }
.showcase-copy ul { margin: var(--space-8) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.showcase-copy li { padding-left: 28px; position: relative; }
.showcase-copy li::before { content: ""; position: absolute; left: 0; top: 8px; width: 13px; height: 7px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.phone-card { max-width: 470px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--paper-raised); box-shadow: var(--shadow-card); border-top: 10px solid var(--gold); }
.phone-head { display: grid; grid-template-columns: 30px 1fr auto; gap: var(--space-3); align-items: center; font-weight: 600; }
.phone-head img { width: 28px; }
.phone-card > strong { font: var(--text-reading-xl); font-size: 80px; }
.phone-card > p:not(.phone-label) { font-size: 15px; line-height: 1.5; }
.phone-card .primary { width: 100%; margin-top: var(--space-4); }
.phone-meta { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; color: var(--ink-muted); font-size: 13px; }
.phone-meta b { font: var(--text-reading); color: var(--ink); }
.portfolio { display: grid; grid-template-columns: 280px 1fr; gap: clamp(50px, 9vw, 130px); align-items: center; }
.portfolio-mark { aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--gold); display: flex; flex-direction: column; justify-content: center; align-items: center; transform: rotate(-3deg); }
.portfolio-mark span { font: var(--text-reading-xl); font-size: 94px; }
.portfolio-mark small { text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.portfolio > div:last-child { max-width: 720px; }
.portfolio p:not(.kicker) { font-size: 18px; line-height: 1.55; }
.pricing { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(48px, 8vw, 110px); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.price-grid article { min-height: 310px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-raised); }
.price-grid article:first-child { border-top: 10px solid var(--gold); }
.price-grid p { margin: 0; font-weight: 700; }
.price-grid strong { margin: 28px 0 8px; font: var(--text-reading-xl); font-size: 48px; }
.price-grid strong small { font-size: 14px; }
.price-grid article > small { min-height: 60px; color: var(--ink-muted); line-height: 1.45; }
.price-grid a { width: 100%; margin-top: auto; }
.water-section { padding: clamp(80px, 10vw, 150px) max(6vw, calc((100vw - 1200px)/2)); background: var(--blue); color: var(--on-blue); display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 80px; }
.water-section .kicker { color: var(--gold); }
.water-section p:last-child { max-width: 610px; font-size: 18px; line-height: 1.55; }
.water-section img { width: 100%; }
.landing-cta { max-width: 1320px; margin: 0 auto; padding: clamp(70px, 9vw, 130px) clamp(24px, 6vw, 96px); display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 36px; }
.landing-cta > img { width: 78px; }
.site-footer { border-top: 1px solid var(--line); padding: 40px clamp(24px, 6vw, 96px); display: grid; grid-template-columns: 180px 1fr auto; gap: 32px; align-items: center; color: var(--ink-muted); font-size: 13px; }
.site-footer img { width: 160px; }

/* Authenticated product */
.shell { max-width: 1240px; margin: 0 auto; padding: 56px 32px 100px; }
.shell.narrow { max-width: 1040px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.page-head h1, .auth-shell h1 { margin: 6px 0 8px; font: var(--text-display-m); font-size: clamp(40px, 5vw, 64px); letter-spacing: -.04em; }
.page-head p { margin: 6px 0; }
.section { margin-top: 52px; }
.section-title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.section h2, .panel h2, .section-title h2 { margin: 0 0 18px; font: var(--text-heading); }
.section-title h2 { margin: 0; font-family: var(--font-display); font-size: 32px; line-height: 1; }
.panel { padding: 26px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); background: var(--paper-raised); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: #f5f1e7; color: var(--ink-muted); font: var(--text-label); text-transform: uppercase; letter-spacing: .08em; }
td strong { font-family: var(--font-mono); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(230,234,247,.35); }
.state.online { background: var(--green-soft); }
.state.stale { background: var(--gold-soft); }
.state.stale::before { background: var(--gold); }
.notice { padding: 16px 18px; border: 1px solid var(--line); border-top: 8px solid var(--blue); border-radius: var(--radius-md); background: var(--paper-raised); }
.notice.success { border-top-color: var(--green); background: var(--green-soft); }
.notice.error { border-top-color: var(--red); background: var(--red-soft); color: var(--red-text); }
.notice.warning { border-top-color: var(--gold); background: var(--gold-soft); }
.empty { padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius-md); color: var(--ink-muted); }
.form-stack { display: grid; gap: 17px; }
.form-stack label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; }
.form-stack input, .form-stack select, .form-stack textarea, .inline-form input, .inline-form select { width: 100%; padding: 11px 12px; border: 1px solid #aaa59a; border-radius: var(--radius-sm); background: var(--paper-raised); color: var(--ink); }
.form-stack .check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; line-height: 1.4; }
.form-stack .check input { width: auto; margin-top: 4px; accent-color: var(--blue); }
.form-stack fieldset { padding: 18px; display: grid; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.form-stack legend { padding: 0 6px; font-weight: 600; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline-form { display: grid; grid-template-columns: minmax(100px,1fr) minmax(120px,1.4fr) 145px auto; gap: 6px; min-width: 500px; }
.inline-form button { min-height: 42px; padding: 0 12px; }
.panel hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 0 0 18px; }
.metric { min-height: 132px; padding: 19px; display: grid; align-content: space-between; gap: 8px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.metric:first-child { border-top: 8px solid var(--gold); }
.metric span, .metric small { color: var(--ink-muted); font: var(--text-label); text-transform: uppercase; letter-spacing: .06em; }
.metric strong { font: var(--text-reading-xl); font-size: clamp(24px, 3vw, 42px); letter-spacing: -.04em; }
.location-line { margin: 0 0 28px; color: var(--ink-muted); }
.reading { display: grid; gap: 5px; text-align: right; }
.reading strong { font: var(--text-reading-xl); font-size: 56px; }
.reading span { color: var(--ink-muted); font-size: 13px; }
.tank-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tank-card { min-height: 320px; padding: clamp(22px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 28px; align-items: center; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.tank-card h3 { margin: 0 0 6px; font: var(--text-heading); }
.tank-card-copy > .muted { margin: 0 0 20px; }
.tank-state { display: inline-flex; padding: 7px 12px; border-radius: var(--radius-pill); background: var(--gold-soft); font-weight: 700; }
.tank-facts { margin: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tank-facts div { padding-top: 12px; border-top: 1px solid var(--line); }
.tank-facts dt { color: var(--ink-muted); font: var(--text-label); text-transform: uppercase; }
.tank-facts dd { margin: 5px 0 0; font: var(--text-reading); }
.tank-visual { --tank-level: 0%; --tank-threshold: 80%; position: relative; width: 190px; height: 235px; border: 5px solid var(--ink); border-radius: 24px 24px 34px 34px; background: var(--paper); overflow: visible; isolation: isolate; }
.tank-visual::before { content: ""; position: absolute; inset: 0; overflow: hidden; border-radius: 17px 17px 27px 27px; background: linear-gradient(to top, var(--green) 0 var(--tank-level), transparent var(--tank-level) 100%); z-index: -2; }
.tank-visual.tank-water::before { background: linear-gradient(to top, var(--blue) 0 var(--tank-level), transparent var(--tank-level) 100%); }
.tank-neck { position: absolute; width: 72px; height: 18px; left: 50%; top: -23px; transform: translateX(-50%); border: 5px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--paper); }
.tank-alert-line { position: absolute; left: -9px; right: -9px; bottom: var(--tank-threshold); height: 5px; background: var(--gold); box-shadow: 0 0 0 1px rgba(17,17,17,.16); }
.tank-visual strong { position: absolute; inset: 0; display: grid; place-items: center; font: var(--text-reading-xl); font-size: 42px; text-shadow: 0 1px 0 var(--paper); }
.tank-visual small { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); width: max-content; color: var(--ink-muted); font: var(--text-label); text-transform: uppercase; }
.tank-visual-compact { width: 118px; height: 158px; border-width: 4px; border-radius: 17px 17px 24px 24px; }
.tank-visual-compact .tank-neck { width: 52px; height: 14px; top: -18px; border-width: 4px; }
.tank-visual-compact strong { font-size: 28px; }
.tank-visual-compact small { bottom: -29px; }
.tank-detail-status { min-width: 230px; display: flex; flex-direction: column; align-items: center; gap: 45px; }
.tank-detail-status > div:last-child { display: grid; justify-items: center; gap: 8px; }
.tank-detail-status small { color: var(--ink-muted); font-size: 12px; }
.history-card { margin: 38px 0 30px; padding: 26px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.history-card h2 { margin: 0 0 24px; font: var(--text-heading); }
.history-chart { display: block; width: 100%; height: 230px; overflow: visible; border-bottom: 1px solid var(--line); background: linear-gradient(to bottom, transparent 49.5%, var(--line) 50%, transparent 50.5%); }
.history-line { fill: none; stroke: var(--green); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tank-water + .history-card .history-line { stroke: var(--blue); }
.history-threshold { stroke: var(--gold); stroke-width: 4; stroke-dasharray: 9 8; vector-effect: non-scaling-stroke; }
.history-axis { margin-top: 12px; display: flex; justify-content: space-between; color: var(--ink-muted); font: var(--text-label); }
.rule-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.rule-head h2 { font-size: 34px; }
.rule-sentence { line-height: 1.5; }
.rule-progress { position: relative; height: 14px; margin: 24px 0 9px; border-radius: var(--radius-pill); background: var(--line); overflow: visible; }
.rule-progress span { display: block; width: var(--rule-progress); max-width: 100%; height: 100%; border-radius: inherit; background: var(--green); }
.rule-progress i { position: absolute; right: -2px; top: -7px; width: 5px; height: 28px; border-radius: 3px; background: var(--gold); }
.rule-labels { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-muted); font-size: 12px; }
.rule-labels span:nth-child(2) { text-align: center; }
.rule-labels span:last-child { text-align: right; }
.rule-forecast { margin: 22px 0 0; padding: 14px; background: var(--gold-soft); border-radius: var(--radius-sm); }
.inline-contact { display: flex; align-items: center; gap: 8px; }
.inline-contact input { min-width: 180px; padding: 10px 11px; border: 1px solid #aaa59a; border-radius: var(--radius-sm); background: var(--paper-raised); }
.inline-contact button { min-height: 40px; padding: 0 14px; }
.contact-panel { margin-bottom: 34px; }
.join-shell { max-width: 1320px; }
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.join-card { border-top: 9px solid var(--gold); }
.join-card:nth-child(2) { border-top-color: var(--green); }
.join-card:nth-child(3) { border-top-color: var(--blue); }
.join-card > p:not(.kicker) { min-height: 66px; color: var(--ink-muted); line-height: 1.45; }
.trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }
.back { display: inline-block; margin-bottom: 28px; color: var(--blue); font-weight: 600; text-decoration: none; }
.audit-list { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-raised); overflow: hidden; }
.audit-list > div { padding: 13px 15px; display: grid; grid-template-columns: 150px 160px 150px 1fr; gap: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.audit-list > div:last-child { border-bottom: 0; }
.audit-list time, .audit-list small { color: var(--ink-muted); }
.map { height: 440px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--blue-soft); z-index: 0; overflow: hidden; }

.analytics-consent { position: fixed; z-index: 1000; right: 20px; bottom: 20px; width: min(410px, calc(100vw - 40px)); padding: 18px; border: 1px solid var(--line); border-top: 8px solid var(--gold); border-radius: var(--radius-md); background: var(--paper-raised); box-shadow: var(--shadow-card); }
.analytics-consent[hidden] { display: none; }
.analytics-consent p { margin: 0 0 14px; line-height: 1.45; }
.analytics-consent div { display: flex; flex-wrap: wrap; gap: 10px; }
.analytics-consent button { min-height: 40px; padding-inline: 14px; }

.beta-prompt { position: fixed; z-index: 1100; right: 24px; bottom: 24px; width: min(520px, calc(100vw - 48px)); padding: 24px; display: grid; grid-template-columns: 64px 1fr; gap: 18px; border: 1px solid var(--line); border-top: 10px solid var(--gold); border-radius: var(--radius-lg); background: var(--paper-raised); box-shadow: 0 24px 70px rgba(17,17,17,.24); }
.beta-prompt[hidden] { display: none; }
.beta-prompt [hidden] { display: none !important; }
.beta-prompt > img { width: 58px; height: 58px; object-fit: contain; }
.beta-prompt h2 { margin: 0 32px 10px 0; font: var(--text-display-m); font-size: clamp(30px, 4vw, 42px); line-height: .98; letter-spacing: -.035em; }
.beta-prompt p:not(.kicker) { margin: 0; line-height: 1.48; color: var(--ink-muted); }
.beta-prompt .prompt-status { min-height: 0; margin-top: 10px !important; color: var(--ink) !important; font-weight: 600; }
.prompt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.prompt-actions button, .prompt-actions .primary { min-height: 42px; padding-inline: 15px; }
.prompt-close { position: absolute; right: 12px; top: 12px; width: 38px; min-height: 38px; padding: 0; border: 0; background: transparent; font-size: 28px; line-height: 1; }
.signup-prompt { border-top-color: var(--blue); }
.signup-prompt > img { padding: 9px; border-radius: 13px; background: var(--ink); }

.auth-shell { max-width: 1020px; min-height: calc(100vh - 76px); margin: 0 auto; padding: clamp(50px, 10vw, 130px) 32px; display: grid; grid-template-columns: 1fr 420px; gap: clamp(50px, 10vw, 130px); align-items: center; }
.auth-intro { max-width: 520px; }
.auth-intro > img { width: 76px; margin-bottom: 38px; }
.auth-intro .quiet { max-width: 480px; font-size: 18px; line-height: 1.55; }
.auth-shell form { padding: 34px; border-top: 10px solid var(--gold); box-shadow: var(--shadow-card); }
.auth-shell form h2 { margin: 3px 0 0; font: var(--text-display-m); }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .page-head > div, .join-card { min-width: 0; }
  .hero-copy { max-width: 760px; }
  .hero-visual { min-height: 520px; }
  .steps, .product-showcase { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .join-grid { grid-template-columns: 1fr 1fr; }
  .showcase-copy { justify-self: start; }
  .phone-card { max-width: 560px; }
  .water-section { grid-template-columns: 1fr 280px; }
  .landing-cta { grid-template-columns: 70px 1fr; }
  .landing-cta .primary { grid-column: 2; justify-self: start; }
  .auth-shell { grid-template-columns: 1fr 400px; gap: 50px; }
}

@media (max-width: 760px) {
  .site-header { height: 66px; padding: 0 18px; }
  .wordmark { width: 132px; }
  .public-nav a:not(.nav-cta) { display: none; }
  .site-header nav span { display: none; }
  .tank-card-grid { grid-template-columns: 1fr; }
  .tank-card { grid-template-columns: minmax(0, 1fr) 118px; }
  .tank-detail-status { margin: 26px auto 0; }
  .hero { min-height: auto; padding: 54px 22px 70px; }
  .hero h1 { font-size: clamp(48px, 14vw, 64px); overflow-wrap: anywhere; }
  .hero h1 br { display: none; }
  .hero-lead { font-size: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-visual { min-height: 430px; margin: 0 -40px; }
  .status-demo { left: 10%; right: 7%; }
  .promise-strip { min-height: auto; padding: 24px; display: grid; grid-template-columns: 1fr 1fr; }
  .promise-strip span::after { display: none !important; }
  .landing-section { padding: 76px 22px; }
  .landing-section h2, .water-section h2, .landing-cta h2 { font-size: 46px; }
  .step-list article { grid-template-columns: 46px 1fr; }
  .product-showcase { padding-left: 22px; padding-right: 22px; }
  .portfolio { grid-template-columns: 1fr; }
  .price-grid, .join-grid { grid-template-columns: minmax(0, 1fr); }
  .portfolio-mark { width: 220px; }
  .water-section { padding: 76px 22px; grid-template-columns: 1fr; }
  .water-section img { width: 240px; margin-top: 30px; }
  .landing-cta { padding: 70px 22px; grid-template-columns: 50px 1fr; gap: 20px; }
  .landing-cta > img { width: 50px; }
  .landing-cta .primary { grid-column: 1/-1; }
  .site-footer { grid-template-columns: 1fr; padding: 36px 22px; }
  .site-footer p { margin: 0; }
  .shell { padding: 36px 18px 72px; }
  .page-head, .auth-shell { display: block; }
  .page-head h1, .auth-shell h1 { font-size: clamp(38px, 11vw, 52px); overflow-wrap: anywhere; }
  .page-head .button { margin-top: 14px; }
  .two-column { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .audit-list > div { grid-template-columns: 1fr 1fr; }
  .audit-list small { grid-column: 1/-1; }
  .reading { text-align: left; margin-top: 20px; }
  .form-pair { grid-template-columns: 1fr; }
  .map { height: 360px; }
  .beta-prompt { right: 14px; bottom: 14px; width: calc(100vw - 28px); max-height: calc(100dvh - 28px); padding: 20px; display: block; overflow: auto; }
  .beta-prompt > img { width: 44px; height: 44px; margin-bottom: 13px; }
  .beta-prompt h2 { margin-right: 28px; font-size: 28px; overflow-wrap: anywhere; }
  .prompt-actions { display: grid; grid-template-columns: 1fr; }
  .prompt-actions button, .prompt-actions .primary { width: 100%; }
  .auth-shell { min-height: auto; padding: 50px 22px 80px; }
  .auth-intro { margin-bottom: 44px; }
}

@media (max-width: 460px) {
  .metric-grid, .demo-bottom { grid-template-columns: 1fr; }
  .hero-visual { min-height: 390px; }
  .status-demo { top: 14%; padding: 22px; }
  .demo-reading { font-size: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Location picker, account page and inline admin controls */
.location-picker { display: grid; gap: 12px; }
.picker-map { height: 280px; }
.picker-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.picker-actions .muted { font-size: 13px; }
.notice a { color: inherit; font-weight: 600; }
.inline-contact .state, .inline-contact .muted { white-space: nowrap; }
.prompt-actions form { display: inline-flex; }
@media (max-width: 640px) { .picker-map { height: 240px; } }
[hidden] { display: none !important; }
