/* ============================================================
   Locate The Phone — shared stylesheet
   Blue security theme. One stylesheet drives all pages.
   ============================================================ */

:root {
  --blue-900: #0b3d91;
  --blue-700: #1565c0;
  --blue-600: #1e88e5;
  --blue-500: #2196f3;
  --blue-50:  #e9f2fd;
  --ink:      #0f1b2d;
  --slate:    #4b5c72;
  --line:     #e2e8f2;
  --bg:       #ffffff;
  --bg-soft:  #f5f8fc;
  --white:    #ffffff;
  --success:  #1a9c5b;
  --radius:   14px;
  --radius-lg:22px;
  --shadow:   0 10px 30px rgba(13, 40, 90, 0.08);
  --shadow-sm:0 4px 14px rgba(13, 40, 90, 0.06);
  --maxw:     1120px;
  --font:     'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header / Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  display: grid; place-items: center; color: #fff;
}
.brand .logo svg { width: 20px; height: 20px; }
.brand b { color: var(--blue-700); }

.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a { color: var(--slate); font-weight: 500; font-size: .96rem; }
.nav-links a:hover { color: var(--blue-700); text-decoration: none; }
.nav-links a.active { color: var(--blue-700); font-weight: 600; }

.nav-cta {
  background: var(--blue-700); color: #fff !important;
  padding: 9px 18px; border-radius: 10px; font-weight: 600;
}
.nav-cta:hover { background: var(--blue-900); text-decoration: none; }

.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 0; transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-900); text-decoration: none; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--blue-700); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue-600); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(30,136,229,.16), transparent 60%),
    linear-gradient(180deg, var(--blue-50), #fff 70%);
  padding: 78px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); color: var(--blue-700);
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.hero h1 span { color: var(--blue-700); }
.hero p.lead { font-size: 1.15rem; color: var(--slate); margin: 20px 0 30px; max-width: 34rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Phone mockup */
.phone {
  width: 260px; height: 520px; margin: 0 auto;
  background: linear-gradient(160deg, #12325f, #0b3d91);
  border-radius: 34px; padding: 12px;
  box-shadow: 0 30px 60px rgba(11,61,145,.35);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 6px; background: rgba(255,255,255,.35); border-radius: 5px;
}
.phone-screen {
  background: #fff; border-radius: 24px; height: 100%; overflow: hidden;
  display: flex; flex-direction: column;
}
.phone-top { background: var(--blue-700); color: #fff; padding: 30px 18px 16px; }
.phone-top small { opacity: .8; font-size: .72rem; }
.phone-top h4 { font-size: 1.05rem; margin-top: 2px; }
.phone-map {
  flex: 1;
  background:
    linear-gradient(135deg, #dbe9fb 25%, transparent 25%) -10px 0/20px 20px,
    linear-gradient(225deg, #dbe9fb 25%, transparent 25%) -10px 0/20px 20px,
    #eef4fd;
  position: relative;
}
.phone-pin {
  position: absolute; top: 46%; left: 50%; transform: translate(-50%,-50%);
  width: 22px; height: 22px; background: var(--blue-700); border-radius: 50% 50% 50% 0;
  rotate: -45deg; box-shadow: 0 6px 14px rgba(11,61,145,.4);
}
.phone-pin::after { content:""; position:absolute; inset: 6px; background:#fff; border-radius:50%; }
.pulse {
  position:absolute; top:46%; left:50%; width:22px; height:22px;
  transform: translate(-50%,-50%); border-radius:50%;
  background: rgba(21,101,192,.35); animation: pulse 2s infinite;
}
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(21,101,192,.35)} 70%{box-shadow:0 0 0 26px rgba(21,101,192,0)} 100%{box-shadow:0 0 0 0 rgba(21,101,192,0)} }
.phone-bar { padding: 14px 16px; display: flex; gap: 8px; }
.phone-bar .b { flex:1; height: 34px; border-radius: 9px; background: var(--blue-50); }
.phone-bar .b.main { background: var(--blue-700); }

/* ---------- Sections ---------- */
section.block { padding: 74px 0; }
section.block.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 46px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.02em; }
.section-head p { color: var(--slate); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-700); margin-bottom: 16px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.card p { color: var(--slate); font-size: .97rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: relative; }
.step .n {
  counter-increment: s; position: absolute; top: -16px; left: 24px;
  width: 40px; height: 40px; border-radius: 11px; background: var(--blue-700); color: #fff;
  display: grid; place-items: center; font-weight: 700; box-shadow: var(--shadow-sm);
}
.step .n::before { content: counter(s); }
.step h3 { margin: 14px 0 6px; font-size: 1.12rem; }
.step p { color: var(--slate); font-size: .96rem; }

/* ---------- CTA banner ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: #fff; border-radius: var(--radius-lg); padding: 52px 44px; text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(1.6rem,3vw,2.2rem); }
.cta-band p { opacity: .9; margin: 12px auto 26px; max-width: 34rem; }
.cta-band .btn-primary { background: #fff; color: var(--blue-700); }
.cta-band .btn-primary:hover { background: var(--blue-50); }

/* ---------- Legal / article pages ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--blue-50), #fff);
  border-bottom: 1px solid var(--line); padding: 56px 0 40px;
}
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -.02em; }
.page-hero p { color: var(--slate); margin-top: 10px; }
.page-hero .updated { display:inline-block; margin-top:14px; font-size:.85rem; color: var(--blue-700); background:#fff; border:1px solid var(--line); padding:5px 12px; border-radius:999px; }

.article { padding: 50px 0 70px; }
.article-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.toc {
  position: sticky; top: 86px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.toc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); margin-bottom: 10px; }
.toc a { display: block; color: var(--slate); font-size: .92rem; padding: 5px 0; }
.toc a:hover { color: var(--blue-700); text-decoration: none; }

.prose h2 { font-size: 1.4rem; margin: 34px 0 12px; color: var(--ink); scroll-margin-top: 84px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.prose p { color: var(--slate); margin-bottom: 14px; }
.prose ul { color: var(--slate); margin: 0 0 16px 22px; }
.prose li { margin-bottom: 7px; }
.prose .note {
  background: var(--blue-50); border-left: 4px solid var(--blue-600);
  padding: 14px 18px; border-radius: 10px; margin: 18px 0; color: var(--ink);
}
.prose strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { background:#fff; border:1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-q {
  width:100%; text-align:left; background:none; border:0; cursor:pointer;
  padding: 18px 22px; font-size: 1.03rem; font-weight: 600; color: var(--ink);
  display:flex; justify-content: space-between; align-items:center; gap:12px;
}
.faq-q .chev { transition: transform .2s; color: var(--blue-700); flex-shrink:0; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height:0; overflow:hidden; transition:max-height .25s ease; color: var(--slate); padding: 0 22px; }
.faq-item.open .faq-a { max-height: 320px; padding: 0 22px 18px; }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.contact-info .info-row { display:flex; gap:14px; align-items:flex-start; margin-bottom: 22px; }
.contact-info .info-row .ic { width:44px;height:44px;border-radius:12px;background:var(--blue-50);color:var(--blue-700);display:grid;place-items:center;flex-shrink:0; }
.contact-info .info-row h4 { font-size:1rem; }
.contact-info .info-row p { color: var(--slate); font-size:.95rem; }
.form { background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);padding:28px;box-shadow:var(--shadow-sm); }
.form label { display:block; font-weight:600; font-size:.9rem; margin: 0 0 6px; }
.form .field { margin-bottom:16px; }
.form input, .form textarea {
  width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius:10px;
  font-family:inherit; font-size:.97rem; color:var(--ink); background:var(--bg-soft);
}
.form input:focus, .form textarea:focus { outline:none; border-color:var(--blue-600); background:#fff; }
.form textarea { resize: vertical; min-height: 120px; }
.form-note { font-size:.85rem; color:var(--slate); margin-top:10px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c7d3e4; padding: 54px 0 26px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer .brand { color:#fff; margin-bottom: 14px; }
.footer .brand b { color: var(--blue-500); }
.footer p { font-size:.92rem; color:#9fb0c9; max-width: 20rem; }
.footer h5 { color:#fff; font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:14px; }
.footer ul { list-style:none; }
.footer ul li { margin-bottom:9px; }
.footer ul a { color:#9fb0c9; font-size:.93rem; }
.footer ul a:hover { color:#fff; text-decoration:none; }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px;
  display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap;
  font-size:.88rem; color:#8296b3;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align:center; }
  .hero-actions { justify-content:center; }
  .hero .phone { margin-top: 30px; }
  .hero p.lead { margin-left:auto; margin-right:auto; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .article-wrap { grid-template-columns: 1fr; }
  .toc { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); gap: 0; padding: 8px 0;
    display: none;
  }
  .nav-links.show { display: flex; }
  .nav-links li { width:100%; }
  .nav-links a { display:block; padding: 12px 22px; width:100%; }
  .menu-btn { display: block; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 22px; }
}

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