:root {
  --ink: #071c2c;
  --ink-soft: #314451;
  --surface: #ffffff;
  --surface-alt: #f3f7f7;
  --line: #dce7e6;
  --green: #0a9b78;
  --green-deep: #067058;
  --gold: #e5b94f;
  --red: #c94242;
  --orange: #be6d1e;
  --shadow-sm: 0 8px 24px rgba(7, 28, 44, .08);
  --shadow-lg: 0 26px 80px rgba(7, 28, 44, .16);
  --radius: 24px;
  --radius-sm: 15px;
  --shell: min(1180px, calc(100vw - 32px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface-alt);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--surface-alt); color: var(--ink); line-height: 1.5; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.shell { width: var(--shell); margin-inline: auto; }
.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: 8px; left: 8px; z-index: 999; transform: translateY(-160%); padding: 10px 14px; border-radius: 10px; background: var(--ink); color: white; }
.skip-link:focus { transform: translateY(0); }
.network-banner { position: fixed; inset: 0 0 auto; z-index: 120; padding: 8px 16px; background: #8a5800; color: white; text-align: center; font-size: 13px; }

.site-header { position: sticky; top: 0; z-index: 80; border-bottom: 1px solid rgba(220,231,230,.85); background: rgba(255,255,255,.88); backdrop-filter: blur(20px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; background: linear-gradient(145deg, var(--ink), #0d4552); color: white; font-weight: 900; letter-spacing: -.05em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 8px 20px rgba(7,28,44,.18); }
.brand-copy, .footer-brand > span:last-child { display: grid; }
.brand strong { font-size: 17px; line-height: 1.1; }
.brand em { color: var(--green); font-style: normal; }
.brand small { color: var(--ink-soft); font-size: 11px; letter-spacing: .045em; }
.header-actions { display: flex; align-items: center; gap: 7px; }
.header-button, .language-switch, .install-button { min-height: 42px; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--ink); padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; font-weight: 750; }
.header-button:hover, .language-switch:hover { border-color: #a9c8c2; background: #f7fbfa; }
.header-button b { min-width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; background: var(--green); color: white; font-size: 10px; }
.install-button { border-color: transparent; background: var(--green); color: white; box-shadow: 0 8px 20px rgba(10,155,120,.22); }
.install-button:hover { background: var(--green-deep); }
.language-switch { width: 44px; padding: 0; justify-content: center; }

.hero { position: relative; overflow: hidden; padding: 72px 0 102px; background: radial-gradient(circle at 15% 10%, rgba(10,155,120,.16), transparent 32%), linear-gradient(135deg, #061721 0%, #0a2934 58%, #0b3b42 100%); color: white; }
.hero::after { content: ""; position: absolute; inset: auto -8% -75% 30%; height: 500px; border-radius: 50%; border: 1px solid rgba(229,185,79,.18); box-shadow: 0 0 0 50px rgba(229,185,79,.025), 0 0 0 100px rgba(10,155,120,.025); }
.hero-orb { position: absolute; border-radius: 999px; filter: blur(3px); opacity: .6; pointer-events: none; }
.hero-orb-one { width: 250px; height: 250px; top: -120px; right: 12%; background: rgba(229,185,79,.16); }
.hero-orb-two { width: 330px; height: 330px; bottom: -240px; left: -100px; background: rgba(10,155,120,.22); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 46px; align-items: center; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: #82e4c9; font-weight: 850; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow > span:first-child { width: 8px; height: 8px; border-radius: 50%; background: #50dcb7; box-shadow: 0 0 0 7px rgba(80,220,183,.12); }
.hero h1 { margin: 0; max-width: 820px; font-size: clamp(42px, 6vw, 76px); line-height: .99; letter-spacing: -.055em; }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(90deg, #5ce1bb, #f0d07b); background-clip: text; }
.hero-copy { max-width: 730px; margin: 24px 0 0; color: #d3e2e5; font-size: clamp(17px, 2vw, 21px); }
.proof-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 20px; color: #e9f2f3; font-size: 13px; }
.proof-row span { display: inline-flex; gap: 6px; align-items: center; }
.proof-row b { font-weight: 650; }
.install-card { padding: 26px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.075); backdrop-filter: blur(18px); box-shadow: var(--shadow-lg); }
.install-card-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; margin-bottom: 18px; background: rgba(80,220,183,.15); color: #70e3c3; font-size: 29px; }
.install-card strong { font-size: 20px; }
.install-card p { color: #c8d9dc; margin: 7px 0 20px; }
.install-card button { width: 100%; min-height: 48px; border: 0; border-radius: 14px; background: white; color: var(--ink); font-weight: 850; }

.search-section { position: relative; z-index: 5; margin-top: -52px; }
.search-panel { padding: clamp(20px, 4vw, 34px); border: 1px solid rgba(220,231,230,.9); border-radius: 30px; background: white; box-shadow: var(--shadow-lg); }
.search-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.search-heading h2, .section-heading h2, .results-heading h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.035em; }
.search-heading p:not(.section-kicker), .section-heading > p { margin: 7px 0 0; color: var(--ink-soft); }
.section-kicker { color: var(--green-deep); }
.location-button { min-height: 44px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 13px; padding: 0 14px; background: var(--surface-alt); color: var(--ink); font-weight: 750; }
.search-bar { margin-top: 24px; min-height: 68px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; border: 2px solid #bad6d1; border-radius: 20px; background: #fbfdfd; transition: border-color .2s, box-shadow .2s; }
.search-bar:focus-within { border-color: var(--green); box-shadow: 0 0 0 5px rgba(10,155,120,.1); }
.search-symbol { padding-left: 20px; color: var(--green-deep); font-size: 28px; }
.search-bar input { width: 100%; min-width: 0; height: 64px; border: 0; outline: 0; background: transparent; padding: 0 14px; color: var(--ink); font-size: clamp(16px, 2vw, 19px); font-weight: 620; }
.search-bar input::placeholder { color: #87969d; font-weight: 480; }
.voice-button { align-self: stretch; min-width: 116px; margin: 7px; border: 0; border-radius: 15px; background: var(--ink); color: white; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.mic-icon { width: 14px; height: 14px; border-radius: 50%; background: #64e0bd; box-shadow: 0 0 0 5px rgba(100,224,189,.13); }
.voice-button.is-recording { background: #9f3030; animation: voice-pulse 1.2s infinite; }
.voice-button.is-recording .mic-icon { background: white; }
@keyframes voice-pulse { 50% { box-shadow: 0 0 0 7px rgba(201,66,66,.13); } }
.quick-queries { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.quick-queries button, .suggestion-strip button { border: 1px solid var(--line); border-radius: 99px; padding: 8px 12px; background: white; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.quick-queries button:hover, .suggestion-strip button:hover { border-color: var(--green); color: var(--green-deep); }
.filters { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.filters summary { width: fit-content; display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; color: var(--green-deep); font-weight: 820; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary b { min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 99px; background: var(--green); color: white; font-size: 10px; }
.filter-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.filter-grid label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 12px; font-weight: 750; }
.filter-grid input, .filter-grid select { min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 11px; background: white; color: var(--ink); outline: none; }
.form-actions { display: flex; gap: 10px; margin-top: 22px; }
.primary-button, .secondary-button { min-height: 50px; border-radius: 14px; padding: 0 20px; font-weight: 850; }
.primary-button { flex: 1; border: 0; background: linear-gradient(135deg, var(--green), var(--green-deep)); color: white; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 12px 28px rgba(10,155,120,.22); }
.primary-button:disabled { opacity: .58; cursor: wait; }
.secondary-button { border: 1px solid var(--line); background: white; color: var(--ink); }

.category-section, .results-section { padding: 72px 0 20px; }
.section-heading, .results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.category-grid button { min-height: 138px; text-align: left; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s, box-shadow .2s; }
.category-grid button:hover { transform: translateY(-4px); border-color: #9fcfc4; box-shadow: 0 18px 40px rgba(7,28,44,.12); }
.category-grid button > span { display: block; font-size: 28px; margin-bottom: 14px; }
.category-grid strong { display: block; font-size: 16px; }
.category-grid small { display: block; margin-top: 5px; color: var(--ink-soft); }
.results-heading { align-items: center; }
.results-heading h2 b { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding-inline: 7px; border-radius: 11px; background: #dff5ef; color: var(--green-deep); font-size: 17px; vertical-align: middle; }
.results-heading p { margin: 6px 0 0; color: var(--ink-soft); }
.results-actions { display: flex; gap: 8px; }
.results-actions button { min-height: 43px; border: 1px solid var(--line); border-radius: 13px; background: white; padding: 0 13px; color: var(--ink); font-weight: 750; }
.search-notice { margin: -6px 0 18px; padding: 14px 16px; border-left: 4px solid var(--green); border-radius: 0 13px 13px 0; background: #eaf8f4; color: #184d40; font-size: 14px; }
.suggestion-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 17px; }
.results-status { min-height: 20px; color: var(--ink-soft); font-size: 13px; }
.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.result-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow-sm); }
.result-card.is-source { border-style: dashed; background: linear-gradient(180deg, #fbfefd, #f1f8f6); }
.result-top { display: flex; justify-content: space-between; gap: 10px; padding: 17px 17px 0; }
.result-type { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 6px 9px; border-radius: 99px; background: #dff5ef; color: var(--green-deep); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.is-source .result-type { background: #e8edf0; color: #465d68; }
.favorite-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: 19px; color: #71828a; }
.favorite-button.is-active { color: var(--red); border-color: #efbcbc; }
.result-body { display: flex; flex: 1; flex-direction: column; padding: 13px 17px 17px; }
.result-body h3 { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.result-seller { margin: 7px 0 0; color: var(--ink-soft); font-size: 13px; }
.result-price { margin: 16px 0 3px; font-size: 25px; font-weight: 900; letter-spacing: -.035em; }
.result-card.is-source .result-price { font-size: 17px; color: var(--green-deep); }
.result-description { margin: 9px 0 0; color: #52636b; font-size: 13px; }
.result-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 15px 0 0; }
.result-meta span { padding: 5px 8px; border-radius: 9px; background: #f1f5f5; color: #52636b; font-size: 10px; font-weight: 750; }
.trust-line { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--ink-soft); }
.trust-score { font-weight: 850; color: var(--green-deep); }
.trust-score.medium { color: var(--orange); }
.trust-score.low { color: var(--red); }
.result-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 0 17px 17px; }
.result-actions a, .result-actions button { min-height: 43px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 850; font-size: 13px; }
.result-actions a { background: var(--ink); color: white; }
.result-actions button { width: 43px; border: 1px solid var(--line); background: white; color: var(--ink); }
.compare-toggle { position: absolute; top: 58px; right: 17px; accent-color: var(--green); width: 18px; height: 18px; }
.skeleton { min-height: 320px; border-radius: 22px; background: linear-gradient(90deg,#eef3f2 25%,#fafcfc 37%,#eef3f2 63%); background-size: 400% 100%; animation: skeleton 1.3s infinite; }
@keyframes skeleton { 100% { background-position: -100% 0; } }
.empty-state, .error-state { grid-column: 1/-1; padding: 50px 24px; border: 1px dashed #b9cbca; border-radius: 22px; background: white; text-align: center; }
.empty-state h3, .error-state h3 { margin: 10px 0 4px; }

.explain-section { margin-top: 72px; padding: 64px 0; background: var(--ink); color: white; }
.explain-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 26px; }
.explain-grid article > span { color: #69dfbf; font-weight: 900; }
.explain-grid h3 { margin: 12px 0 7px; font-size: 18px; }
.explain-grid p { margin: 0; color: #c5d4d7; font-size: 14px; }

.compare-bar { position: fixed; z-index: 90; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(720px, calc(100vw - 24px)); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(7,28,44,.96); color: white; box-shadow: var(--shadow-lg); backdrop-filter: blur(18px); }
.compare-bar > div { display: grid; min-width: 0; }
.compare-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: #cbd9dc; }
.compare-bar button { min-height: 40px; border: 0; border-radius: 11px; padding: 0 14px; background: var(--green); color: white; font-weight: 850; }
.compare-bar #clearCompareButton { width: 40px; padding: 0; background: rgba(255,255,255,.12); }

.app-modal { width: min(760px, calc(100vw - 22px)); max-height: min(88vh, 850px); padding: 0; border: 0; border-radius: 26px; background: transparent; overflow: visible; }
.app-modal::backdrop { background: rgba(3,14,22,.72); backdrop-filter: blur(8px); }
.modal-card { position: relative; max-height: 88vh; overflow: auto; padding: clamp(24px, 4vw, 38px); border-radius: 26px; background: white; box-shadow: var(--shadow-lg); }
.modal-close { position: sticky; float: right; top: 0; z-index: 2; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 13px; background: white; font-size: 22px; }
.modal-card h2 { margin: 0 50px 20px 0; font-size: clamp(25px, 4vw, 35px); letter-spacing: -.035em; }
.modal-card p, .modal-card li { color: var(--ink-soft); }
.install-steps { display: grid; gap: 12px; padding: 0; list-style: none; counter-reset: install; }
.install-steps li { counter-increment: install; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 15px; }
.install-steps li::before { content: counter(install); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #dff5ef; color: var(--green-deep); font-weight: 900; }
.modal-action { width: 100%; min-height: 48px; margin-top: 14px; border: 0; border-radius: 14px; background: var(--green); color: white; font-weight: 850; }
.history-list, .favorite-list, .compare-table { display: grid; gap: 10px; }
.history-item, .favorite-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; }
.history-item button, .favorite-item button { border: 0; border-radius: 10px; padding: 8px 10px; background: #eaf8f4; color: var(--green-deep); font-weight: 800; }
.compare-row { display: grid; grid-template-columns: 130px repeat(var(--compare-columns, 2), minmax(150px,1fr)); gap: 8px; }
.compare-row > * { padding: 10px; border-radius: 10px; background: var(--surface-alt); }
.compare-row > strong { color: var(--ink-soft); font-size: 12px; }
.toast-region { position: fixed; z-index: 130; right: 16px; bottom: 18px; display: grid; gap: 8px; }
.toast { max-width: 330px; padding: 12px 15px; border-radius: 13px; background: var(--ink); color: white; box-shadow: var(--shadow-lg); font-size: 13px; animation: toast-in .25s ease-out; }
.toast.success { background: var(--green-deep); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

footer { padding: 52px 0 20px; background: #031019; color: white; }
.footer-inner { display: grid; grid-template-columns: .8fr 1.3fr .8fr; gap: 35px; align-items: start; }
.footer-brand small, .footer-inner p { color: #aebfc3; }
.footer-inner p { margin: 0; font-size: 13px; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.footer-inner nav button { border: 1px solid rgba(255,255,255,.13); border-radius: 10px; padding: 8px 10px; background: transparent; color: #dbe7e9; }
.version-line { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.09); text-align: center; color: #799096; font-size: 11px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .install-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
  .install-card-icon { margin: 0; }
  .install-card p { margin-bottom: 0; }
  .install-card button { width: auto; padding-inline: 18px; }
  .filter-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .results-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .explain-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner nav { grid-column: 1/-1; justify-content: flex-start; }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 20px, 1180px); --radius: 20px; }
  .header-inner { min-height: 64px; }
  .brand-mark { width: 39px; height: 39px; border-radius: 12px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 9px; }
  .desktop-label { display: none; }
  .header-button { width: 40px; padding: 0; justify-content: center; }
  .install-button { padding-inline: 10px; }
  .hero { padding: 52px 0 86px; }
  .hero h1 { font-size: clamp(39px, 12vw, 58px); }
  .proof-row { display: grid; grid-template-columns: 1fr 1fr; }
  .install-card { grid-template-columns: auto 1fr; padding: 18px; }
  .install-card button { grid-column: 1/-1; width: 100%; }
  .search-section { margin-top: -40px; }
  .search-panel { padding: 18px; border-radius: 23px; }
  .search-heading { display: grid; }
  .location-button { width: fit-content; }
  .search-bar { min-height: 61px; grid-template-columns: auto 1fr; }
  .search-bar input { height: 57px; padding-right: 8px; font-size: 16px; }
  .search-symbol { padding-left: 14px; }
  .voice-button { grid-column: 1/-1; min-height: 48px; margin: 0 0 5px; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .form-actions { display: grid; }
  .primary-button { min-height: 54px; }
  .category-section, .results-section { padding-top: 54px; }
  .section-heading, .results-heading { display: grid; align-items: start; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .category-grid button { min-height: 125px; padding: 15px; }
  .results-actions { width: 100%; }
  .results-actions button { flex: 1; }
  .results-grid { grid-template-columns: 1fr; }
  .explain-grid { grid-template-columns: 1fr; }
  .compare-bar { grid-template-columns: 1fr auto; }
  .compare-bar #clearCompareButton { position: absolute; top: -12px; right: -5px; border: 2px solid white; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner nav { grid-column: auto; }
  .compare-row { overflow-x: auto; grid-template-columns: 100px repeat(var(--compare-columns,2), 180px); }
}

@media (max-width: 420px) {
  .install-button span:last-child { display: none; }
  .install-button { width: 42px; padding: 0; justify-content: center; }
  .category-grid { grid-template-columns: 1fr; }
  .category-grid button { min-height: 106px; }
  .filter-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
