/* CarKey Mobile — one stylesheet, mobile first. Navy for trust, amber for action. */
:root {
  --navy: #0f1f3d;
  --navy-2: #16294d;
  --ink: #1b2433;
  --muted: #5b6678;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --amber: #f59e0b;
  --amber-2: #d97706;
  --ok: #15803d;
  --err: #b91c1c;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "PingFang SC", "Microsoft YaHei",
    "Malgun Gothic", "Noto Sans Devanagari", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* component display rules must not unhide things */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(15, 31, 61, .96); color: #fff; backdrop-filter: blur(8px); }
.top-row { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 1.15rem; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; color: var(--amber); }
.brand b { color: var(--amber); }
.links { display: none; gap: 22px; margin-left: auto; }
.links a { text-decoration: none; opacity: .85; }
.links a:hover { opacity: 1; }
.lang { margin-left: auto; }
.lang select { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: .9rem; }
.lang select option { color: var(--ink); }
@media (min-width: 860px) { .links { display: flex; } .lang { margin-left: 8px; } }
/* Small phones: the hero already has the main button, so the header keeps only brand + language. */
@media (max-width: 520px) { .top .btn-small { display: none; } .brand { font-size: 1.05rem; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 22px; border: 0; border-radius: 12px; background: var(--amber); color: #1b1300; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--amber-2); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-small { padding: 8px 14px; font-size: .9rem; white-space: nowrap; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #24467f 0, transparent 60%), var(--navy); color: #fff; padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-art { display: none; justify-self: center; width: min(280px, 100%); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.3fr .7fr; } .hero-art { display: block; } }
.kicker { color: var(--amber); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 12px; }
.lead { font-size: 1.12rem; color: inherit; opacity: .88; max-width: 40em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; padding: 0; margin: 0; list-style: none; font-size: .95rem; }
.trust li::before { content: "✓"; color: var(--amber); font-weight: 800; margin-right: 8px; }

/* Sections */
.section { padding: 64px 0; }
.alt { background: var(--bg-alt); }
.note { color: var(--muted); font-size: .92rem; margin-top: 18px; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 30px rgba(15, 31, 61, .08); transform: translateY(-2px); }
.card h3 { font-size: 1.1rem; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.price { font-size: 1.05rem; color: var(--muted); }
.price b { font-size: 1.6rem; color: var(--navy); }
.card a { color: var(--amber-2); font-weight: 700; text-decoration: none; }

.steps { counter-reset: s; display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--amber); font-weight: 800; margin-bottom: 4px; }
.steps span { color: var(--muted); }

.two { display: grid; gap: 32px; }
@media (min-width: 860px) { .two { grid-template-columns: 1.2fr 1fr; } }
.ticks { padding: 0; margin: 0; list-style: none; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #fff4e0; color: var(--amber-2); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.area { padding: 24px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.area p { opacity: .88; margin: 0; }

/* Quote form */
.quote { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; background: #fff; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.quote label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.quote .full { grid-column: 1 / -1; }
.quote input, .quote select, .quote textarea { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid #cfd6e2; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.quote input[type=file] { padding: 9px; }
.hint { color: var(--muted); font-size: .86rem; font-weight: 400; margin: 0; }
.hp { position: absolute; left: -9999px; }
.previews { display: flex; flex-wrap: wrap; gap: 8px; }
.previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.error { color: var(--err); margin: 0; }
.done { padding: 28px; border-radius: var(--radius); background: #effaf3; border: 1px solid #b7e4c7; }
.done h3 { color: var(--ok); }
@media (max-width: 560px) { .quote { grid-template-columns: 1fr; } }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--amber-2); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

.foot { background: var(--navy); color: #cdd6e6; padding: 40px 0; }
.foot h3 { color: #fff; font-size: 1rem; margin-top: 18px; }
.small { font-size: .88rem; opacity: .85; }

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

/* Is your key supported? */
.lead.dark { color: var(--muted); opacity: 1; }
.finder { display: grid; gap: 12px; grid-template-columns: 1fr 1fr 140px; margin: 20px 0; }
.finder label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.finder select, .finder input { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid #cfd6e2; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
@media (max-width: 640px) { .finder { grid-template-columns: 1fr 1fr; } .finder label:last-child { grid-column: 1 / -1; } }
.keys { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.keycard { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; animation: rise .25s ease both; }
.keycard img { width: 120px; height: 120px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); flex-shrink: 0; }
.keyinfo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.keyinfo .years { color: var(--muted); font-size: .88rem; }
.keyinfo .keyprice { color: var(--muted); }
.keyinfo .keyprice b { color: var(--navy); font-size: 1.2rem; }
.keyinfo .btn { margin-top: auto; }
.badge { font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #e8f5ec; color: var(--ok); }
.badge.universal { background: #eef2f8; color: #3b4a63; }
.badge.ask { background: #fff4e0; color: var(--amber-2); }
.picked { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: #fff8ec; border: 1px solid #f6d9a8; }
.picked img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 8px; }
.picked span { flex: 1; font-size: .92rem; }
.link { background: none; border: 0; color: var(--amber-2); font: inherit; font-weight: 700; cursor: pointer; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
