/* ============================================================
   PhoneSearch — Shared Design System
   Aesthetic: trustworthy, modern, fast. Deep slate + teal with amber accent.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #0f1b2d;
  --ink-2: #1c2c44;
  --slate: #475569;
  --slate-light: #64748b;
  --paper: #ffffff;
  --paper-2: #f6f9fc;
  --paper-3: #eef3f8;
  --line: #e2e8f0;
  --teal: #0ea5a4;
  --teal-deep: #0c7c7b;
  --teal-soft: #e6f7f7;
  --amber: #f5a623;
  --amber-soft: #fff4e0;
  --red: #e2483d;
  --red-soft: #fdecea;
  --green: #16a36a;
  --green-soft: #e7f6ee;
  --shadow-sm: 0 1px 2px rgba(15,27,45,.06), 0 1px 3px rgba(15,27,45,.08);
  --shadow-md: 0 4px 12px rgba(15,27,45,.08), 0 2px 4px rgba(15,27,45,.06);
  --shadow-lg: 0 18px 40px rgba(15,27,45,.12), 0 6px 14px rgba(15,27,45,.08);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
p { margin-bottom: 1rem; color: var(--ink-2); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand .logo { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: 8px 13px; border-radius: 9px; }
.nav-links a:hover { background: var(--paper-3); color: var(--ink); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 12px 22px; border-radius: 11px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 4px 14px rgba(14,165,164,.32); }
.btn-primary:hover { background: var(--teal-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(14,165,164,.4); }
.btn-amber { background: var(--amber); color: #3d2a00; box-shadow: 0 4px 14px rgba(245,166,35,.32); }
.btn-amber:hover { transform: translateY(-1px); color: #3d2a00; box-shadow: 0 8px 22px rgba(245,166,35,.42); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(14,165,164,.16), transparent 60%),
    radial-gradient(800px 420px at 12% 8%, rgba(245,166,35,.12), transparent 55%),
    linear-gradient(180deg, var(--paper-2), var(--paper));
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 100px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-deep); background: var(--teal-soft); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { margin-bottom: 18px; }
.hero .lede { font-size: 1.18rem; color: var(--slate); max-width: 540px; margin-bottom: 26px; }
.hero-art { position: relative; }
.trust-row { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 30px; }
.trust-row .stat { display: flex; flex-direction: column; }
.trust-row .stat b { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); }
.trust-row .stat span { font-size: .85rem; color: var(--slate-light); }

/* ---------- Search box ---------- */
.searchbox {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px;
}
.searchbox h3 { font-size: 1.1rem; margin-bottom: 4px; }
.searchbox .hint { font-size: .85rem; color: var(--slate-light); margin-bottom: 16px; }
.search-form { display: flex; flex-direction: column; gap: 12px; }
.search-row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; }
.field-label { font-size: .78rem; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; display: block; }
.search-form select, .search-form input {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--paper-2); transition: border .2s, box-shadow .2s;
}
.search-form select:focus, .search-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,165,164,.15); background: #fff; }
.search-note { font-size: .78rem; color: var(--slate-light); display: flex; align-items: center; gap: 6px; margin-top: 2px; }

/* ---------- Sections ---------- */
section { padding: clamp(52px, 8vw, 92px) 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { font-size: 1.1rem; color: var(--slate); }
.bg-soft { background: var(--paper-2); }
.bg-ink { background: var(--ink); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink p { color: #b8c4d4; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d4e0ec; }
.card .ico { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: var(--teal-soft); margin-bottom: 16px; }
.card .ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .96rem; color: var(--slate); margin-bottom: 0; }

/* feature card link variant */
.feat-card { display: flex; flex-direction: column; }
.feat-card .more { margin-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; font-size: 1.1rem;
}

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.price-card.popular { border-color: var(--teal); box-shadow: var(--shadow-lg); position: relative; }
.price-card.popular::before { content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font-family: var(--font-display); font-size: .76rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: .03em; }
.price-card .plan { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.price-card .amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; margin: 12px 0 2px; }
.price-card .amount span { font-size: 1rem; font-weight: 500; color: var(--slate-light); }
.price-card .per { font-size: .85rem; color: var(--slate-light); margin-bottom: 18px; }
.price-card ul { list-style: none; margin: 18px 0 24px; flex: 1; }
.price-card li { display: flex; gap: 10px; padding: 7px 0; font-size: .95rem; color: var(--ink-2); }
.price-card li svg { flex: none; width: 19px; height: 19px; color: var(--teal); margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--teal); font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--slate); }
.faq-item .faq-body p { margin-bottom: .6rem; }

/* ---------- Reviews ---------- */
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.stars { color: var(--amber); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 12px; }
.review-card p { font-size: 1rem; color: var(--ink-2); }
.reviewer { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.reviewer .av { width: 42px; height: 42px; border-radius: 50%; background: var(--teal-soft); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--teal-deep); }
.reviewer b { font-family: var(--font-display); font-size: .95rem; display: block; }
.reviewer span { font-size: .82rem; color: var(--slate-light); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--ink), var(--ink-2)); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 64px); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 0%, rgba(14,165,164,.25), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #c3cedb; max-width: 560px; margin: 0 auto 26px; }

/* ---------- Article / prose ---------- */
.article-hero { background: var(--paper-2); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .85rem; color: var(--slate-light); margin-bottom: 16px; }
.breadcrumb a { color: var(--slate); }
.post-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: .88rem; color: var(--slate-light); margin-top: 14px; }
.post-meta .tag { background: var(--teal-soft); color: var(--teal-deep); padding: 4px 12px; border-radius: 999px; font-weight: 600; }
.prose { font-size: 1.08rem; }
.prose > * { margin-bottom: 1.1rem; }
.prose h2 { margin: 2.2rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 .8rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.3rem; }
.prose li { margin-bottom: .5rem; color: var(--ink-2); }
.prose img, .prose svg.illus { border-radius: var(--radius); margin: 1.6rem 0; box-shadow: var(--shadow-sm); width: 100%; }
.prose .figcap { font-size: .85rem; color: var(--slate-light); text-align: center; margin-top: -1rem; }
.prose blockquote { border-left: 4px solid var(--teal); background: var(--teal-soft); padding: 16px 22px; border-radius: 0 12px 12px 0; font-style: italic; color: var(--ink-2); }
.prose .keytake { background: var(--amber-soft); border: 1px solid #f3d9a6; border-radius: var(--radius); padding: 22px 26px; }
.prose .keytake h3 { margin: 0 0 10px; }
.toc { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 2rem; }
.toc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); margin-bottom: 10px; }
.toc ul { list-style: none; columns: 2; }
.toc li { margin-bottom: 7px; font-size: .95rem; }

/* ---------- Blog index ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card .thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--paper-3); }
.post-card .thumb svg { width: 100%; height: 100%; }
.post-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .cat { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--teal-deep); margin-bottom: 8px; }
.post-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.post-card p { font-size: .92rem; color: var(--slate); flex: 1; }
.post-card .read { margin-top: 14px; font-size: .85rem; color: var(--slate-light); }

/* ---------- Search results page ---------- */
.result-head { background: var(--ink); color: #fff; padding: 40px 0; }
.result-head h1 { color: #fff; font-size: clamp(1.8rem,4vw,2.6rem); }
.result-head .num { font-family: var(--font-display); }
.result-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 30px; margin-top: -50px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 26px; margin-bottom: 24px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 4px; }
.panel .sub { font-size: .88rem; color: var(--slate-light); margin-bottom: 18px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; }
.kv dt { font-size: .9rem; color: var(--slate); font-weight: 600; }
.kv dd { font-size: .95rem; color: var(--ink); }
.spam-meter { height: 12px; border-radius: 999px; background: var(--paper-3); overflow: hidden; margin: 10px 0 4px; }
.spam-meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green), var(--amber), var(--red)); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: .82rem; padding: 5px 12px; border-radius: 999px; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: #b06f00; }
.badge-red { background: var(--red-soft); color: var(--red); }
.vote-row { display: flex; gap: 12px; margin-top: 16px; }
.map-embed { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-embed svg { width: 100%; height: 100%; }
.related-list { list-style: none; }
.related-list li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: .95rem; }
.related-list li:last-child { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aebccd; padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #aebccd; font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.2rem; margin-bottom: 14px; }
.footer-brand .logo { width: 32px; height: 32px; }
.footer-about { font-size: .9rem; color: #8da0b5; max-width: 300px; }
.footer-bottom { border-top: 1px solid #24364f; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #7e92a8; }
.footer-bottom a { color: #7e92a8; }
.disclaimer { background: #0b1422; color: #6f8299; font-size: .8rem; padding: 16px 0; text-align: center; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.lede { font-size: 1.15rem; color: var(--slate); }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.pill-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .grid-4, .price-grid, .post-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .nav-links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 22px; gap: 2px; display: none; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 13px; }
  .nav-links li.nav-cta { width: 100%; margin-top: 8px; }
  .nav-links li.nav-cta .btn { width: 100%; }
  .menu-toggle { display: block; }
  .toc ul { columns: 1; }
  .search-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* ---------- Search loading spinner ---------- */
.ps-spinner { display:inline-block; width:40px; height:40px; border:4px solid var(--line); border-top-color: var(--teal); border-radius:50%; animation: ps-spin .8s linear infinite; }
@keyframes ps-spin { to { transform: rotate(360deg); } }
