:root{
  --bg:#eef3f7;
  --bg-2:#f7fafc;
  --panel:#ffffff;
  --panel-soft:#f6f9fb;
  --text:#112031;
  --muted:#607284;
  --line:#d8e3eb;
  --accent:#1a5d97;
  --accent-2:#0f355a;
  --gold:#d5b067;
  --good:#22714a;
  --warn:#9d6a1a;
  --shadow:0 18px 48px rgba(16,37,59,.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top right, rgba(26,93,151,.08), transparent 24%),
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 100%);
}

a{color:inherit}

.shell{
  width:min(100% - 20px, 1100px);
  margin:0 auto;
}

.topbar{
  position:sticky;
  top:0;
  z-index:10;
  padding:10px 0 8px;
  background:rgba(238,243,247,.82);
  backdrop-filter:blur(14px);
}

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

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  text-decoration:none;
}

.brand-mark,
.brand-logo{
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:15px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, #1f68a8, #123a63);
  color:#fff;
  font-weight:800;
  box-shadow:var(--shadow);
}

.brand-logo{
  object-fit:cover;
  border:1px solid rgba(255,255,255,.5);
}

.brand-copy{
  min-width:0;
}

.brand-copy strong{
  display:block;
  font-size:1rem;
  line-height:1.05;
}

.brand-copy span{
  display:block;
  color:var(--muted);
  font-size:.84rem;
  line-height:1.1;
}

.lang-switch select{
  min-width:88px;
  min-height:46px;
  padding:0 38px 0 14px;
  border-radius:16px;
  border:1px solid var(--gold);
  color:#f8f1de;
  font-size:.88rem;
  font-weight:800;
  appearance:none;
  background-color:var(--accent-2);
  background-image:
    linear-gradient(180deg, #184a7a, #102e4c),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23f8f1de' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat,no-repeat;
  background-position:center center,right 12px center;
  background-size:100% 100%,16px 16px;
  box-shadow:0 14px 30px rgba(16,46,76,.18);
}

.app{
  padding:16px 0 92px;
}

.app-grid{
  display:grid;
  grid-template-columns:minmax(0, 460px) minmax(0, 1fr);
  gap:18px;
  align-items:start;
}

.phone-stack{
  display:grid;
  gap:14px;
}

.card{
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,252,.96));
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
}

.hero-card{
  padding:18px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(26,93,151,.10);
  color:var(--accent);
  font-size:.8rem;
  font-weight:800;
  margin-bottom:12px;
}

.hero-card h1{
  margin:0 0 10px;
  font-size:clamp(2rem, 7vw, 3.1rem);
  line-height:.92;
  letter-spacing:-.05em;
}

.hero-card p{
  margin:0;
  color:var(--muted);
  line-height:1.55;
  font-size:1rem;
}

.quick-row{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
}

.quick-pill{
  padding:12px 10px;
  border-radius:18px;
  background:var(--panel);
  border:1px solid var(--line);
  text-align:center;
  font-size:.84rem;
  font-weight:700;
}

.check-card{
  padding:18px;
}

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

.card-head h2{
  margin:0;
  font-size:1.1rem;
}

.step-pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--panel);
  font-size:.8rem;
  font-weight:800;
}

.check-card p{
  margin:0 0 14px;
  color:var(--muted);
  line-height:1.55;
}

.field{
  display:grid;
  gap:7px;
  margin-bottom:12px;
}

.field label{
  font-size:.88rem;
  font-weight:800;
}

.field input,
.field select{
  width:100%;
  min-height:56px;
  padding:0 16px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  font-size:1rem;
}

.cta{
  width:100%;
  min-height:58px;
  border:0;
  border-radius:18px;
  background:linear-gradient(180deg, #2369a7, #174d7d);
  color:#fff;
  font-size:1.05rem;
  font-weight:800;
  cursor:pointer;
}

.scan-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}

.scan-tile{
  padding:14px;
  border-radius:20px;
  background:var(--panel-soft);
  border:1px solid var(--line);
}

.scan-tile strong{
  display:block;
  margin-bottom:5px;
  font-size:.95rem;
}

.scan-tile span{
  color:var(--muted);
  font-size:.88rem;
  line-height:1.45;
}

.result{
  margin-top:14px;
  padding:16px;
  border-radius:22px;
  border:1px solid var(--line);
}

.result.good{
  background:rgba(34,113,74,.08);
  border-color:rgba(34,113,74,.22);
}

.result.warn{
  background:rgba(157,106,26,.08);
  border-color:rgba(157,106,26,.22);
}

.result strong{
  display:block;
  margin-bottom:6px;
  font-size:1rem;
}

.result p{
  margin:0;
  line-height:1.5;
}

.side-panel{
  display:grid;
  gap:14px;
}

.side-card{
  padding:18px;
}

.side-card h3{
  margin:0 0 8px;
  font-size:1rem;
}

.side-card p{
  margin:0;
  color:var(--muted);
  line-height:1.55;
}

.status-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:14px;
}

.status-box{
  padding:12px;
  border-radius:18px;
  background:var(--panel-soft);
  border:1px solid var(--line);
}

.status-box span{
  display:block;
  color:var(--muted);
  font-size:.8rem;
  margin-bottom:4px;
}

.status-box strong{
  font-size:1rem;
}

.feed{
  display:grid;
  gap:12px;
}

.product-card{
  padding:16px 18px;
}

.product-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.product-card h3{
  margin:0 0 4px;
  font-size:1rem;
}

.product-meta{
  color:var(--muted);
  font-size:.86rem;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:800;
  border:1px solid var(--line);
}

.badge.good{
  color:var(--good);
  background:rgba(34,113,74,.10);
  border-color:rgba(34,113,74,.18);
}

.badge.warn{
  color:var(--warn);
  background:rgba(157,106,26,.10);
  border-color:rgba(157,106,26,.18);
}

.product-card p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}

.db-mini{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:.82rem;
  line-height:1.45;
}

.bottom-nav{
  position:fixed;
  left:10px;
  right:10px;
  bottom:10px;
  z-index:20;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  padding:8px;
  background:rgba(255,255,255,.94);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:0 18px 40px rgba(16,37,59,.12);
  backdrop-filter:blur(16px);
}

.nav-item{
  display:grid;
  justify-items:center;
  gap:4px;
  padding:10px 6px;
  border-radius:16px;
  color:var(--muted);
  text-decoration:none;
  font-size:.74rem;
  font-weight:700;
}

.nav-item strong{
  font-size:1rem;
  line-height:1;
}

.nav-item.active{
  color:var(--accent);
  background:var(--accent-soft);
}

@media (max-width: 920px){
  .app-grid{
    grid-template-columns:1fr;
  }

  .side-panel{
    order:2;
  }
}

@media (max-width: 720px){
  .topbar-inner{
    gap:10px;
  }

  .brand-mark,
  .brand-logo{
    width:42px;
    height:42px;
    flex-basis:42px;
  }

  .brand-copy strong{
    font-size:.94rem;
  }

  .brand-copy span{
    font-size:.77rem;
  }

  .lang-switch select{
    min-width:78px;
    min-height:42px;
    padding:0 34px 0 12px;
    border-radius:14px;
  }

  .quick-row,
  .scan-grid,
  .status-grid{
    grid-template-columns:1fr;
  }
}
