/* Alameda Insurance: a bridge-tender's app. Fog-warm ground, white cards, riveted-steel art; the signal green marks only what can be pressed. */
@font-face { font-family: "Rubik"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/rubik-400.woff2) format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/rubik-500.woff2) format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/rubik-700.woff2) format("woff2"); }
@font-face { font-family: "Sofia Sans Extra Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/sofia-sans-extra-condensed-800.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --ink: #17252f;
  --muted: #3f5362;
  --line: #d6d6dc;
  --paper: #e4e3e8;
  --card: #ffffff;
  --stage: #d3dfe5;
  --steel: #44596b;
  --steel-deep: #2d3f4e;
  --accent: #0a7a4d;
  --accent-dark: #075f3b;
  --on-accent: #ffffff;
  --radius: 26px;
  --radius-s: 16px;
  --spring: cubic-bezier(.34, 1.3, .64, 1);
  --display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --text: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; padding-bottom: 112px; color: var(--ink); background: var(--paper); font: 400 1.0625rem/1.55 var(--text); overflow-x: clip; }
a { color: var(--ink); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--steel-deep); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; }
::selection { background: var(--steel-deep); color: #fff; }

/* ---------- top bar (all pages) ---------- */
.site-header { border: 0; background: none; padding: 14px 0 0; }
.header-inner { width: min(100% - 32px, 1140px); max-width: none; margin: auto; padding: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; font-size: 1rem; line-height: 1.2; letter-spacing: 0; color: var(--ink); }
.brand strong { display: block; font-size: 1.0625rem; font-weight: 700; }
.brand-mark { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 0; border-radius: 15px; background: var(--steel-deep); color: #fff; font: 800 1.75rem/1 var(--display); }
.header-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .72); color: var(--ink); font-weight: 500; font-size: .9375rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .25s var(--spring), background .2s; }
.header-link:hover { background: #fff; }
.header-link:active { transform: scale(.96); }
.header-link span { color: var(--steel); }

/* ---------- home: the stage ---------- */
.stage { position: relative; display: flex; flex-direction: column; width: min(100% - 16px, 1180px); margin: 8px auto 0; padding: 0 16px 36px; border-radius: 34px; background: var(--stage); overflow: hidden; isolation: isolate; }
.stage-art { order: 1; padding: 6px 0 0; pointer-events: none; }
.bridge-art { display: block; width: 100%; height: auto; max-height: 230px; }
.stage .site-header { order: 0; }
.stage .header-inner, .stage .minimal-shell { width: 100%; }
.stage .minimal-shell { order: 2; }

.minimal-shell { width: min(100% - 32px, 1140px); margin: 0 auto; padding: 0; display: flex; flex-direction: column; }
.minimal-shell h1 { margin: 6px 0 22px; max-width: 12ch; font: 800 clamp(3.4rem, 15vw, 5.4rem)/.9 var(--display); letter-spacing: .005em; text-transform: uppercase; color: var(--steel-deep); }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.choice-grid a { position: relative; min-height: 124px; padding: 22px 76px 22px 24px; display: flex; align-items: flex-end; border: 0; border-radius: var(--radius); background: var(--card); color: var(--ink); font-size: clamp(1.0625rem, 1.9vw, 1.3125rem); font-weight: 500; line-height: 1.22; text-decoration: none; box-shadow: 0 2px 0 rgba(45, 63, 78, .08), 0 14px 30px -18px rgba(45, 63, 78, .45); transition: transform .3s var(--spring), box-shadow .2s; }
.choice-grid a::after { content: "\2192"; position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 1.5rem; line-height: 1; transition: transform .3s var(--spring), background .2s; }
.choice-grid a:hover { box-shadow: 0 2px 0 rgba(45, 63, 78, .08), 0 22px 36px -18px rgba(45, 63, 78, .55); }
.choice-grid a:hover::after { background: var(--accent-dark); transform: translateX(3px); }
.choice-grid a:active { transform: scale(.975); }
.choice-grid a[style] { align-items: flex-end !important; justify-content: flex-start !important; text-align: left !important; }

/* persistent bottom bar: the agency line stays under the thumb */
.agency-line { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 30; margin: 0; padding: 10px 12px 10px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 14px; border-radius: 26px; background: var(--steel-deep); color: #f1f5f7; font-size: .9375rem; font-weight: 500; line-height: 1.3; box-shadow: 0 -6px 30px -10px rgba(23, 37, 47, .55); }
.agency-line a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 1.0625rem; text-decoration: none; transition: transform .3s var(--spring), background .2s; }
.agency-line a:hover { background: var(--accent-dark); }
.agency-line a:active { transform: scale(.96); }
@media (min-width: 760px) {
  .agency-line { left: 50%; right: auto; width: min(640px, calc(100% - 32px)); transform: translateX(-50%); }
}

/* desktop stage: art sits to the right of the headline */
@media (min-width: 900px) {
  .stage { padding-bottom: 44px; }
  .stage-art { position: absolute; z-index: -1; top: 64px; right: 0; width: 58%; padding: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%); mask-image: linear-gradient(90deg, transparent, #000 16%); }
  .bridge-art { max-height: none; }
  .minimal-shell h1 { margin: 26px 0 56px; max-width: 8ch; font-size: clamp(4.6rem, 6.4vw, 6.6rem); }
}

/* ---------- local board ---------- */
.local-board { margin: 0; border: 0; background: none; color: var(--ink); }
.local-wrap { width: min(100% - 16px, 1140px); max-width: none; margin: 0 auto; padding: 44px 0 40px; }
.local-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 30px; padding: 0 8px 14px; border: 0; }
.local-kicker, .local-card-kicker, .local-section-heading > span, .local-small-label { color: var(--steel); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: none; }
.local-kicker { margin: 0 0 8px; }
.local-intro h2 { font: 800 clamp(2.8rem, 8vw, 4.4rem)/.92 var(--display); text-transform: uppercase; color: var(--steel-deep); }
.local-intro > div > p:last-child { max-width: 46ch; margin: 14px 0 0; color: var(--muted); font-size: 1.0625rem; }
.local-generated { flex: none; margin: 0; color: var(--muted); font-size: .8125rem; font-weight: 500; }
.local-section-heading { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 2px; margin: 38px 8px 14px; }
.local-section-heading h3 { font: 800 clamp(1.9rem, 4.5vw, 2.6rem)/1 var(--display); text-transform: uppercase; color: var(--steel-deep); }
.local-section-heading > span { color: var(--muted); }
.local-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.local-card { min-width: 0; padding: 26px 26px 22px; border: 0; border-radius: var(--radius); background: var(--card); box-shadow: 0 2px 0 rgba(45, 63, 78, .07), 0 14px 30px -20px rgba(45, 63, 78, .4); }
.local-card h4 { margin: 4px 0 14px; font: 800 clamp(1.7rem, 3.2vw, 2.2rem)/1 var(--display); text-transform: uppercase; color: var(--steel-deep); }
.local-card .local-copy { margin: 8px 0; color: var(--muted); }
.local-card .local-subtle, .local-subtle { display: block; color: var(--muted); font-size: .875rem; }
.local-source { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; font-weight: 400; }
.local-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: var(--accent-dark); font-size: .9375rem; font-weight: 700; text-underline-offset: .22em; }
.local-link:hover { color: var(--ink); }
.local-wide { grid-column: 1 / -1; }
.local-weather-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; padding: 6px 0 20px; border-bottom: 1px solid var(--line); }
.local-weather-lead > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; }
.local-big-temp { font: 800 clamp(5rem, 13vw, 7.5rem)/.8 var(--display); color: var(--steel-deep); }
.local-weather-condition { max-width: 200px; color: var(--muted); font-size: 1.0625rem; }
.local-weather-note { padding-bottom: 4px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: .9375rem; }
.local-weather-note strong { color: var(--ink); font-size: 1.0625rem; }
.local-day-strip, .local-hour-strip { display: flex; overflow-x: auto; scrollbar-width: thin; }
.local-day-strip { gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.local-day { flex: 0 0 150px; padding: 12px 14px; border: 0; border-radius: var(--radius-s); background: #eef2f4; display: flex; flex-direction: column; gap: 4px; font-size: .8125rem; color: var(--muted); line-height: 1.35; }
.local-day:first-child { padding-left: 14px; }
.local-day strong { color: var(--ink); font-size: .9375rem; }
.local-day-temp { color: var(--steel-deep); font: 800 1.75rem/1 var(--display); }
.local-small-label { margin: 20px 0 10px; }
.local-hour-strip { gap: 8px; }
.local-hour { flex: 0 0 92px; padding: 10px; border-radius: 14px; background: #eef2f4; display: flex; flex-direction: column; gap: 3px; font-size: .8125rem; color: var(--muted); }
.local-hour strong { color: var(--ink); font-size: 1.25rem; }
.local-big-number { margin: 10px 0 6px; color: var(--steel-deep); font: 800 4.8rem/.9 var(--display); }
.local-radar { margin: 16px 0 0; overflow: hidden; border: 6px solid var(--stage); border-radius: 20px; background: var(--stage); }
.local-radar img { display: block; width: 100%; height: auto; border-radius: 12px; }
.local-radar figcaption { padding: 6px 8px 2px; color: var(--muted); font-size: .75rem; }
.local-alert, .local-advisory { display: flex; gap: 16px; padding: 20px 22px; margin: 10px 0 0; border: 0; border-radius: var(--radius); background: #fbe9e3; color: var(--ink); }
.local-alert-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #a5321f; color: #fff; font-weight: 700; }
.local-alert h3, .local-advisory h3 { margin: 4px 0 8px; font: 500 1.125rem/1.35 var(--text); text-transform: none; color: var(--ink); }
.local-alert p, .local-advisory p { margin-bottom: 0; }
.local-advisory { align-items: center; background: #dce7ec; }
.local-advisory-mark { flex: none; color: var(--steel); font-size: 2.4rem; line-height: 1; }
.local-advisory h3 { font: 800 clamp(1.4rem, 3vw, 1.9rem)/1.1 var(--display); text-transform: uppercase; color: var(--steel-deep); }
.local-advisory-alert { background: #fbe9e3; }
.local-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.local-row:first-of-type { padding-top: 0; }
.local-row:last-of-type { border-bottom: 0; }
.local-row-title { display: block; color: var(--ink); font-size: 1rem; font-weight: 500; line-height: 1.35; text-decoration-color: var(--rivet, #8da2b2); text-underline-offset: .22em; }
.local-row-detail { display: block; margin-top: 4px; color: var(--muted); font-size: .875rem; }
.local-news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.local-market-name { display: block; font-size: 1.0625rem; }
.local-lottery { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.local-lottery strong { font-size: 1.25rem; letter-spacing: .04em; }

/* city notes keep the board look */
#city-notes .local-wrap { padding-top: 12px; }

/* ---------- inner pages ---------- */
.page-shell { width: min(100% - 16px, 1140px); max-width: none; margin: 8px auto 0; padding: 0 0 40px; }
.intro { padding: 34px 26px 30px; border-radius: 34px 34px var(--radius) var(--radius); background: var(--stage); position: relative; overflow: hidden; }
.eyebrow { margin: 0 0 8px; color: var(--steel); font-size: .875rem; font-weight: 700; letter-spacing: .04em; text-transform: none; }
.intro h1 { font: 800 clamp(3.2rem, 11vw, 5.6rem)/.92 var(--display); text-transform: uppercase; color: var(--steel-deep); letter-spacing: .005em; }
.intro-copy { margin: 14px 0 6px; max-width: 58ch; color: var(--muted); font-size: 1.125rem; }

.options { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.option { min-width: 0; min-height: 230px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; border: 0; border-radius: var(--radius); background: var(--card); box-shadow: 0 2px 0 rgba(45, 63, 78, .07), 0 14px 30px -20px rgba(45, 63, 78, .4); }
.option-number { color: var(--steel); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: none; }
.option h2 { margin: 12px 0 6px; font: 800 clamp(1.9rem, 3vw, 2.4rem)/1 var(--display); text-transform: uppercase; color: var(--steel-deep); }
.option p { margin: 0; color: var(--muted); font-size: .9375rem; max-width: 30ch; }
.option .option-action { margin-top: auto; padding: 12px 18px; min-height: 48px; width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-radius: 999px; color: var(--on-accent); background: var(--accent); font-weight: 700; font-size: 1rem; line-height: 1.25; text-decoration: none; text-align: left; cursor: pointer; transition: transform .3s var(--spring), background .2s; }
.option-action:hover { background: var(--accent-dark); }
.option-action:active { transform: scale(.97); }
.option-action span { font-size: 1.3rem; line-height: 1; }
.option .option-note { margin-top: 8px; font-size: .8125rem; color: var(--muted); }

.question-section { scroll-margin-top: 20px; margin-top: 12px; padding: 30px 26px; border: 0; border-radius: var(--radius); background: var(--card); box-shadow: 0 2px 0 rgba(45, 63, 78, .07), 0 14px 30px -20px rgba(45, 63, 78, .4); }
.question-heading h2 { font: 800 clamp(2.2rem, 5vw, 3rem)/1 var(--display); text-transform: uppercase; color: var(--steel-deep); }
.question-heading > p:last-child { margin: 10px 0 0; color: var(--muted); }
.question-form { margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; font-weight: 500; font-size: .9375rem; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; border: 2px solid #c3ced5; border-radius: 14px; padding: 12px 14px; color: var(--ink); background: #f7f9fa; font-weight: 400; transition: border-color .2s, background .2s; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--steel-deep); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(45, 63, 78, .22); }
.form-grid input, .form-grid select { min-height: 50px; }
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-grid .message-field { grid-column: 1 / -1; }
.form-grid .checkbox-row, .quote-form > fieldset > .checkbox-row { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; }
.form-grid .checkbox-row { grid-column: 1 / -1; }
.form-grid .checkbox-row input, .quote-form > fieldset > .checkbox-row input { width: 24px; min-width: 24px; height: 24px; min-height: 24px; margin: 1px 0 0; accent-color: var(--accent-dark); }
.quote-form > fieldset > .checkbox-row { margin-top: 20px; }
.honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.form-bottom { margin-top: 24px; }
.form-bottom button, .quote-submit button, .quote-results button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 999px; padding: 12px 28px; color: var(--on-accent); background: var(--accent); font-weight: 700; font-size: 1.0625rem; cursor: pointer; transition: transform .3s var(--spring), background .2s; }
.form-bottom button:hover, .quote-submit button:hover, .quote-results button:hover { background: var(--accent-dark); }
.form-bottom button:active, .quote-submit button:active, .quote-results button:active { transform: scale(.97); }
.quote-submit button:disabled, .quote-results button:disabled, .form-bottom button:disabled { background: #c9d1d6; color: #4b5b66; cursor: wait; opacity: 1; transform: none; }
.submit-note { max-width: 62ch; margin: 16px 0 0; color: var(--muted); font-size: .9375rem; }
.form-status, #quote-status { min-height: 22px; margin: 12px 0 0; color: var(--accent-dark); font-weight: 500; font-size: .9375rem; }

.product-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; padding: 8px; border-radius: 999px; background: var(--card); width: fit-content; max-width: 100%; box-shadow: 0 2px 0 rgba(45, 63, 78, .07); }
.product-switch a { display: inline-flex; align-items: center; min-height: 46px; border: 0; border-radius: 999px; padding: 0 20px; background: transparent; color: var(--ink); font-weight: 500; text-decoration: none; transition: transform .3s var(--spring), background .2s; }
.product-switch a:hover { background: #eef2f4; }
.product-switch a:active { transform: scale(.96); }
.product-switch a[aria-current="page"] { color: var(--on-accent); background: var(--accent); font-weight: 700; }
.quote-form fieldset { min-width: 0; margin: 12px 0; padding: 26px; border: 0; border-radius: var(--radius); background: var(--card); box-shadow: 0 2px 0 rgba(45, 63, 78, .07), 0 14px 30px -20px rgba(45, 63, 78, .4); }
.quote-form legend { padding: 0 10px; margin-left: -10px; border-radius: 10px; background: var(--card); font: 800 1.9rem/1.1 var(--display); text-transform: uppercase; color: var(--steel-deep); }
.quote-form .form-grid { margin-top: 8px; }
.quote-submit { margin: 18px 0 40px; max-width: 720px; padding: 0 8px; }
.quote-results { margin: 20px 0 40px; padding: 26px; border: 0; border-radius: var(--radius); background: var(--card); box-shadow: 0 2px 0 rgba(45, 63, 78, .07), 0 14px 30px -20px rgba(45, 63, 78, .4); }
.quote-results h2 { margin: 0 0 14px; font: 800 2.2rem/1 var(--display); text-transform: uppercase; color: var(--steel-deep); }
.quote-results article { border-top: 1px solid var(--line); padding: 18px 0; }
.quote-results article h3 { margin: 0 0 5px; font-size: 1.125rem; font-weight: 700; }
.quote-results article p { margin: 4px 0 12px; }

.site-footer { width: min(100% - 16px, 1140px); max-width: none; margin: 8px auto 0; padding: 22px 26px 26px; border: 0; border-radius: var(--radius); background: var(--steel-deep); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 22px; color: #e6edf1; font-size: .9375rem; }
.site-footer p { margin: 0; }
.site-footer > p:first-child { color: #fff; font-weight: 500; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-underline-offset: .22em; }
.site-footer .footer-note { flex-basis: 100%; }

@media (max-width: 899px) {
  .stage-art { margin-top: 4px; }
  .minimal-shell h1 { margin-top: 4px; }
}
@media (max-width: 850px) {
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local-intro { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 590px) {
  .brand { font-size: .9375rem; gap: 10px; }
  .brand strong { font-size: 1rem; }
  .brand-mark { width: 42px; height: 42px; }
  .header-link { margin-left: auto; font-size: .875rem; white-space: normal; text-align: center; }
  .options { grid-template-columns: 1fr; }
  .option { min-height: 0; padding: 22px; }
  .option .option-action { margin-top: 18px; }
  .intro { padding: 28px 20px 26px; }
  .question-section { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .quote-form fieldset { padding: 22px 16px; }
  .choice-grid { grid-template-columns: 1fr; gap: 10px; }
  .choice-grid a { min-height: 92px; padding: 18px 76px 18px 20px; }
  .choice-grid a::after { top: 50%; margin-top: -24px; }
  .local-wrap { padding: 34px 0 32px; }
  .local-grid, .local-weather-lead, .local-news-list { grid-template-columns: 1fr; }
  .local-card { padding: 22px 18px 18px; }
  .local-alert, .local-advisory { padding: 18px 16px; gap: 12px; }
  .local-day { flex-basis: 128px; }
  .site-footer { padding: 20px 20px 24px; }
  .agency-line { font-size: .875rem; padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
