:root { --ink:#132c27; --green:#12362f; --mint:#b8f1cf; --cream:#f6f2e8; --white:#fffdf8; --orange:#ff7b4a; --muted:#687773; --line:#dbe2dc; --shadow:0 14px 40px rgba(18,54,47,.12); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ink); background:var(--cream); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; min-height:100vh; background:linear-gradient(145deg,#f9f6ed 0%,#eef7ef 100%); }
button,input { font:inherit; }
button { cursor:pointer; }
.topbar { position:sticky; z-index:10; top:0; display:flex; align-items:center; justify-content:space-between; padding:18px max(20px,env(safe-area-inset-left)); background:rgba(246,242,232,.88); backdrop-filter:blur(18px); border-bottom:1px solid rgba(18,54,47,.08); }
.brand { display:flex; align-items:center; gap:10px; color:var(--green); text-decoration:none; font-weight:900; letter-spacing:.07em; }
.brand-mark { display:grid; place-items:center; width:34px; height:34px; border-radius:11px; background:var(--green); color:var(--mint); font-family:Georgia,serif; font-style:italic; }
main { width:min(100%,720px); margin:auto; padding:0 20px 120px; }
.view { display:none; animation:rise .3s ease; }
.view.active { display:block; }
@keyframes rise { from { opacity:0; transform:translateY(8px); } }
.hero { padding:58px 0 36px; }
.eyebrow { margin:0 0 12px; color:#397260; font-size:.75rem; letter-spacing:.16em; font-weight:850; }
h1,h2,p { margin-top:0; }
h1 { margin-bottom:18px; font-family:Georgia,serif; font-size:clamp(2.5rem,12vw,5.3rem); line-height:.92; letter-spacing:-.055em; color:var(--green); }
h1 em { color:var(--orange); font-weight:inherit; }
h2 { margin-bottom:0; font-family:Georgia,serif; font-size:1.7rem; letter-spacing:-.03em; }
.hero-copy { max-width:520px; color:var(--muted); font-size:1.08rem; line-height:1.65; }
.hero-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:28px; }
.primary-button,.secondary-button,.ghost-button { min-height:52px; border-radius:16px; border:0; padding:0 20px; font-weight:800; }
.primary-button { background:var(--green); color:white; box-shadow:0 9px 22px rgba(18,54,47,.18); }
.secondary-button { background:var(--white); color:var(--green); border:1px solid var(--line); }
.ghost-button { min-height:38px; background:var(--mint); color:var(--green); border-radius:12px; }
.dashboard { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:44px; }
.dashboard article { padding:18px 12px; border-radius:18px; background:var(--green); color:white; }
.dashboard strong,.dashboard span { display:block; }
.dashboard strong { color:var(--mint); font:700 1.5rem Georgia,serif; }
.dashboard span { margin-top:5px; color:#d8e6e1; font-size:.72rem; line-height:1.25; }
.section-block { margin-top:24px; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:12px; margin:22px 0 16px; }
.page-heading { padding-top:48px; }
.text-button,.back-button { border:0; background:transparent; color:#397260; font-weight:800; }
.back-button { margin:30px 0 35px; padding:0; font-size:1.7rem; }
.product-list,.price-list { display:grid; gap:12px; }
.product-card,.empty-state,.price-row { width:100%; border:1px solid var(--line); border-radius:19px; background:rgba(255,253,248,.85); padding:16px; }
button.product-card { display:flex; align-items:center; gap:14px; text-align:left; color:inherit; }
.product-icon { display:grid; flex:0 0 46px; place-items:center; height:46px; border-radius:14px; background:var(--mint); font-size:1.25rem; }
.product-copy { min-width:0; flex:1; }
.product-copy strong,.product-copy span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.product-copy span { margin-top:4px; color:var(--muted); font-size:.82rem; }
.product-price { color:var(--green); font-weight:900; }
.empty-state { padding:30px 20px; color:var(--muted); text-align:center; border-style:dashed; }
.stack-form { display:grid; gap:9px; margin:32px 0; }
.stack-form label { margin-top:8px; color:var(--green); font-size:.82rem; font-weight:800; }
.stack-form small { color:var(--muted); font-weight:500; }
input,select { width:100%; height:54px; border:1px solid var(--line); border-radius:15px; padding:0 16px; outline:none; color:var(--ink); background:var(--white); }
input:focus { border-color:#397260; box-shadow:0 0 0 3px rgba(57,114,96,.12); }
.currency-input { display:flex; align-items:center; border:1px solid var(--line); border-radius:15px; padding-left:16px; background:var(--white); }
.currency-input input { border:0; box-shadow:none; }
.currency-input span { font-weight:900; }
.camera-panel { position:relative; overflow:hidden; min-height:310px; border-radius:24px; background:#081612; color:white; box-shadow:var(--shadow); }
.camera-panel video { width:100%; min-height:310px; object-fit:cover; }
.camera-panel p { position:absolute; bottom:10px; width:100%; text-align:center; font-size:.82rem; }
.scan-line { position:absolute; z-index:2; top:50%; left:12%; width:76%; height:2px; background:var(--orange); box-shadow:0 0 12px var(--orange); }
.helper { color:var(--muted); line-height:1.5; }
.search-box { display:flex; align-items:center; gap:8px; margin:24px 0; padding-left:16px; border:1px solid var(--line); border-radius:17px; background:var(--white); }
.search-box input { border:0; }
.best-price { margin:28px 0; padding:24px; border-radius:22px; background:var(--green); color:white; }
.best-price span,.best-price strong { display:block; }
.best-price strong { margin:5px 0; color:var(--mint); font:700 2.4rem Georgia,serif; }
.price-row { display:flex; justify-content:space-between; gap:12px; }
.price-row span { display:block; color:var(--muted); font-size:.8rem; margin-top:4px; }
.price-row strong:last-child { font-size:1.1rem; }
.bottom-nav { position:fixed; z-index:10; bottom:0; left:50%; display:grid; grid-template-columns:1fr 1fr; align-items:end; width:min(100%,720px); padding:9px max(22px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)); transform:translateX(-50%); background:rgba(255,253,248,.94); backdrop-filter:blur(18px); border-top:1px solid var(--line); }
.bottom-nav button { border:0; background:transparent; color:var(--muted); font-size:.72rem; font-weight:800; }
.bottom-nav button span { display:block; margin-bottom:3px; font-size:1.25rem; }
.bottom-nav .selected { color:var(--green); }
.bottom-nav .scan-button { align-self:center; width:62px; height:62px; margin-top:-32px; border-radius:22px; background:var(--orange); color:white; box-shadow:0 8px 22px rgba(255,123,74,.35); }
#toast { position:fixed; z-index:20; bottom:105px; left:50%; width:max-content; max-width:calc(100% - 40px); padding:12px 18px; border-radius:13px; transform:translate(-50%,20px); background:#0d211c; color:white; opacity:0; pointer-events:none; transition:.25s; }
#toast.show { opacity:1; transform:translate(-50%,0); }
@media (max-width:420px) { .hero-actions { grid-template-columns:1fr; } .dashboard { gap:6px; } .dashboard article { padding:15px 9px; } }
@media (min-width:721px) { .topbar { padding-left:calc((100% - 680px)/2); padding-right:calc((100% - 680px)/2); } }

.hero.compact { padding-bottom:26px; }
.scan-panel { display:grid; grid-template-columns:64px 1fr; grid-template-rows:1fr 1fr; width:100%; min-height:108px; border:0; border-radius:24px; padding:20px; text-align:left; background:var(--green); color:white; box-shadow:var(--shadow); }
.scan-panel .scan-icon { grid-row:1/3; display:grid; place-items:center; width:54px; height:54px; align-self:center; border-radius:17px; color:var(--green); background:var(--orange); font-size:1.5rem; }
.scan-panel strong { align-self:end; font-size:1.08rem; }.scan-panel small { color:#cce2da; }
.inline-form { margin:24px 0; }.inline-form label,.form-card label { display:block; margin:12px 0 7px; color:var(--green); font-size:.8rem; font-weight:800; }.inline-form>div { display:grid; grid-template-columns:1fr auto; gap:8px; }.inline-form .primary-button { min-height:54px; }
.how-it-works { margin:40px 0; }.steps { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; }.steps span { display:grid; gap:8px; color:var(--muted); font-size:.7rem; text-align:center; }.steps b { display:grid; place-items:center; width:36px; height:36px; margin:auto; border:1px solid var(--line); border-radius:50%; color:var(--green); background:white; }
.form-card,.cost-breakdown,.opportunity-card { margin:16px 0; padding:20px; border:1px solid var(--line); border-radius:22px; background:rgba(255,253,248,.9); }
.card-heading { display:flex; align-items:center; gap:12px; margin-bottom:18px; }.card-heading h2 { font-size:1.35rem; }.card-heading p { margin:3px 0 0; color:var(--muted); font-size:.78rem; }.number { display:grid; flex:0 0 38px; place-items:center; width:38px; height:38px; border-radius:12px; color:var(--green); background:var(--mint); font-weight:900; }
.field-grid { display:grid; grid-template-columns:1fr 1fr; gap:4px 12px; }.field-grid small { display:block; margin-top:4px; color:var(--muted); font-weight:500; }
.market-links { display:flex; gap:7px; overflow-x:auto; padding-bottom:7px; }.market-links a { flex:0 0 auto; padding:9px 12px; border-radius:12px; color:var(--green); background:#e7f6ec; font-size:.72rem; font-weight:800; text-decoration:none; }
.full { width:100%; }.verdict-card { padding:25px; border-radius:23px; color:white; background:var(--green); box-shadow:var(--shadow); }.verdict-card>span { font-size:.7rem; letter-spacing:.14em; font-weight:900; }.verdict-card>strong { display:block; margin:8px 0; color:var(--mint); font:700 1.9rem Georgia,serif; }.verdict-card p { margin:0; color:#d8e6e1; line-height:1.5; font-size:.88rem; }.verdict-card.warn { background:#684b12; }.verdict-card.bad { background:#692f2b; }
.metric-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:18px 0; }.metric-grid article { padding:17px; border:1px solid var(--line); border-radius:18px; background:white; }.metric-grid span,.metric-grid small,.metric-grid strong { display:block; }.metric-grid span,.metric-grid small { color:var(--muted); font-size:.72rem; }.metric-grid strong { margin:5px 0; color:var(--green); font:700 1.45rem Georgia,serif; }
.cost-breakdown h2 { margin-bottom:14px; font-size:1.35rem; }.cost-row { display:flex; justify-content:space-between; padding:9px 0; color:var(--muted); border-bottom:1px solid var(--line); }.cost-row.total { color:var(--green); border:0; padding-top:15px; }.decision-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:20px 0; }
.page-heading { padding-top:50px; }.page-heading h1 { font-size:clamp(2.5rem,11vw,4.5rem); }.opportunity-top,.opportunity-metrics { display:flex; justify-content:space-between; gap:8px; }.market-badge,.status { padding:6px 9px; border-radius:9px; font-size:.63rem; font-weight:900; }.market-badge { color:var(--green); background:var(--mint); }.status.good { color:#176145; background:#dff4e8; }.status.warn { color:#71510e; background:#fff0c6; }.status.bad { color:#7b2e2a; background:#f8ddda; }.opportunity-card h2 { margin:18px 0 4px; }.opportunity-card>p { color:var(--muted); font-size:.78rem; }.opportunity-metrics { margin-top:18px; padding-top:14px; border-top:1px solid var(--line); }.opportunity-metrics span { flex:1; }.opportunity-metrics small,.opportunity-metrics strong { display:block; }.opportunity-metrics small { color:var(--muted); font-size:.66rem; }.opportunity-metrics strong { margin-top:3px; font-size:.84rem; }.bottom-nav b { display:inline-grid; place-items:center; min-width:18px; height:18px; border-radius:9px; color:white; background:var(--orange); font-size:.65rem; }
@media(max-width:480px){.field-grid{grid-template-columns:1fr}.steps{gap:3px}.steps span{font-size:.62rem}.decision-actions{grid-template-columns:1fr}.market-links{margin-right:-20px}}
