/* ===== Tokens: simple, Google-like ===== */
:root{
  --bg: #FFFFFF;
  --bg-soft: #F8F9FA;
  --ink: #202124;
  --ink-soft: #5F6368;
  --line: #DADCE0;
  --blue: #1A73E8;
  --blue-dark: #174EA6;
  --green: #188038;
  --red: #D93025;
  --amber: #F9AB00;
  --radius: 8px;
  --maxw: 1120px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth; overflow-x:hidden; max-width:100%;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:"Inter", -apple-system, "Segoe UI", sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  max-width:100%;
  overflow-wrap:break-word;
  word-wrap:break-word;
}
h1,h2,h3{
  font-family:"Inter", sans-serif;
  font-weight:700;
  line-height:1.2;
  color:var(--ink);
  margin:0 0 0.45em 0;
  overflow-wrap:break-word;
  word-break:break-word;
}
a{color:var(--blue); text-decoration:none;}
a:hover{text-decoration:underline;}
p{margin:0 0 1em 0;}
ul{margin:0;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px;}

/* ===== Header ===== */
.site-header{border-bottom:1px solid var(--line); background:var(--bg);}
.site-header .wrap{display:flex; align-items:center; justify-content:space-between; height:auto; min-height:64px; gap:12px; flex-wrap:wrap; padding-top:10px; padding-bottom:10px;}
.site-header.minimal{border-bottom:none;}

.logo{display:flex; align-items:center; gap:8px; font-weight:700; font-size:clamp(16px, 4.2vw, 20px); color:var(--ink); text-decoration:none; white-space:nowrap; flex-shrink:0;}
.logo:hover{text-decoration:none;}
.logo .mark{
  width:28px; height:28px; border-radius:50%; flex-shrink:0;
  background:conic-gradient(from 180deg, var(--blue), var(--green), var(--amber), var(--red), var(--blue));
  position:relative;
}
.logo .mark::after{
  content:""; position:absolute; inset:6px; background:var(--bg); border-radius:50%;
}
.logo.big{font-size:clamp(22px, 7vw, 32px); justify-content:center; gap:10px;}
.logo.big .mark{width:clamp(28px, 8vw, 38px); height:clamp(28px, 8vw, 38px);}

.site-nav{display:flex; align-items:center; gap:clamp(10px, 3vw, 24px); font-size:clamp(12.5px, 3vw, 14.5px); flex-wrap:wrap; justify-content:flex-end;}
.site-nav a{color:var(--ink-soft); text-decoration:none; white-space:nowrap;}
.site-nav a:hover{color:var(--ink); text-decoration:none;}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 20px; border-radius:6px;
  font-size:14.5px; font-weight:600; text-decoration:none;
  border:1px solid transparent; cursor:pointer; font-family:inherit;
}
.btn:hover{text-decoration:none;}
.btn-blue{background:var(--blue); color:#fff;}
.btn-blue:hover{background:var(--blue-dark);}
.btn-outline{background:transparent; color:var(--blue); border-color:var(--line);}
.btn-outline:hover{background:var(--bg-soft);}

/* ===== Homepage search hero ===== */
.serp-hero{padding:clamp(32px, 8vw, 64px) 0 12px 0;}
.serp-hero-inner{max-width:600px; text-align:center; margin:0 auto;}
.serp-hero .tagline{color:var(--ink-soft); font-size:clamp(14px, 3.5vw, 16px); margin:14px 0 26px 0; padding:0 8px;}
.serp-search{
  display:flex; align-items:center; flex-wrap:nowrap; gap:0; border:1px solid var(--line); border-radius:24px;
  background:var(--bg); padding:6px 6px 6px 16px; box-shadow:0 1px 6px rgba(32,33,36,0.08);
  min-width:0; max-width:100%;
}
.serp-search:focus-within{box-shadow:0 1px 8px rgba(26,115,232,0.25); border-color:var(--blue);}
.serp-search-icon{opacity:0.5; margin-right:8px; flex-shrink:0;}
.serp-search input{flex:1; min-width:40px; border:none; outline:none; padding:12px 4px; font-size:16px; font-family:inherit; background:transparent; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.serp-search .btn{border-radius:20px; padding:10px 18px; flex-shrink:0; white-space:nowrap;}

/* ===== Category tiles ===== */
.section{padding:52px 0;}
.section-head{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:26px; gap:20px; flex-wrap:wrap;}
.section-head h2{font-size:26px;}
.section-head .note{color:var(--ink-soft); font-size:14px;}
.section-head .note a{font-size:14px;}

.tile-grid{display:grid; grid-template-columns:repeat(5,1fr); gap:14px;}
.tile{
  border:1px solid var(--line); border-radius:var(--radius); padding:20px 18px; text-decoration:none; color:var(--ink);
  display:flex; flex-direction:column; gap:6px; min-height:110px; justify-content:space-between;
  transition:box-shadow .15s, border-color .15s;
}
.tile:hover{box-shadow:0 1px 8px rgba(32,33,36,0.1); border-color:var(--line); text-decoration:none;}
.tile .tile-icon{font-size:22px;}
.tile .tile-name{font-weight:700; font-size:15.5px;}
.tile .tile-desc{font-size:12.5px; color:var(--ink-soft);}

/* ===== Trending tags ===== */
.tag-row{display:flex; flex-wrap:wrap; gap:10px;}
.tag{
  border:1px solid var(--line); background:var(--bg); border-radius:20px;
  padding:8px 16px; font-size:14px; text-decoration:none; color:var(--ink);
}
.tag:hover{border-color:var(--blue); color:var(--blue); text-decoration:none;}

/* ===== Trust strip ===== */
.trust-strip{background:var(--bg-soft); padding:40px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.trust-strip .wrap{display:flex; gap:48px; flex-wrap:wrap;}
.trust-item{max-width:230px;}
.trust-item .num{font-size:28px; font-weight:700; color:var(--blue);}
.trust-item .lbl{font-size:13.5px; color:var(--ink-soft); margin-top:4px;}

/* ===== Footer ===== */
.site-footer{border-top:1px solid var(--line); padding:44px 0 30px 0; margin-top:10px; background:var(--bg-soft);}
.footer-grid{display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:24px; margin-bottom:30px;}
.footer-col h4{font-size:13px; text-transform:uppercase; letter-spacing:0.4px; color:var(--ink-soft); margin-bottom:12px; font-weight:700;}
.footer-col a{display:block; font-size:14px; color:var(--ink-soft); margin-bottom:9px; text-decoration:none;}
.footer-col a:hover{color:var(--blue);}
.footer-col p{font-size:13.5px; color:var(--ink-soft);}
.footer-bottom{display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:13px; color:var(--ink-soft); border-top:1px solid var(--line); padding-top:20px;}

/* ===== SERP-style results page ===== */
.serp-result.sponsored{
  border:1px solid #E8EAED; border-radius:10px; padding:20px 22px 18px 22px;
  background:linear-gradient(180deg,#FFFFFF, #FAFBFF);
  box-shadow:0 1px 3px rgba(32,33,36,0.06); margin-bottom:6px;
}
.serp-result.sponsored .title-link{font-size:21px;}
.serp-result.sponsored .snippet{font-size:15px; margin-bottom:16px;}
.call-btn{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--green); color:#fff !important; font-weight:700; font-size:15px;
  padding:11px 22px; border-radius:24px; text-decoration:none !important;
  box-shadow:0 1px 3px rgba(24,128,56,0.3);
  transition:background .15s, transform .1s;
}
.call-btn:hover{background:#146c2e; transform:translateY(-1px);}
.call-btn:active{transform:translateY(0);}
.call-btn .phone-icon{font-size:15px;}
.serp-header{position:sticky; top:0; background:var(--bg); border-bottom:1px solid var(--line); z-index:5;}
.serp-header .wrap{display:flex; align-items:center; gap:16px; height:64px; min-width:0;}
.serp-header .logo{font-size:clamp(15px, 4vw, 19px); flex-shrink:0;}
.serp-header .serp-search{flex:1; max-width:none; padding:4px 4px 4px 16px; min-width:0;}
.serp-header .serp-search input{padding:9px 4px; font-size:15px; min-width:0;}
.serp-header .serp-search .btn{padding:8px 18px; font-size:14px; flex-shrink:0;}
.serp-header nav{flex-shrink:0;}
.serp-header nav a{font-size:clamp(11.5px, 3vw, 14px); text-decoration:none; color:var(--ink-soft); white-space:nowrap;}

.result-count{color:var(--ink-soft); font-size:13.5px; padding:16px 0 4px 0;}

.serp-result{padding:16px 0; border-bottom:1px solid var(--line);}
.serp-result:last-child{border-bottom:none;}
.serp-result .badge-row{display:flex; align-items:center; gap:8px; margin-bottom:4px;}
.serp-result .ad-badge{
  border:1px solid var(--ink); color:var(--ink); font-size:11px; font-weight:700;
  padding:1px 6px; border-radius:2px; letter-spacing:0.2px;
}
.serp-result .osm-badge{color:var(--green); font-size:12.5px; font-weight:600;}
.serp-result .url-line{color:var(--ink-soft); font-size:13px; overflow-wrap:break-word; word-break:break-word;}
.serp-result .title-link{display:block; color:var(--blue-dark); font-weight:700; font-size:19px; text-decoration:none; margin:2px 0 4px 0; overflow-wrap:break-word; word-break:break-word;}
.serp-result .title-link:hover{text-decoration:underline;}
.serp-result .snippet{color:var(--ink-soft); font-size:14.5px; margin:0;}
.serp-result .phone-cta{
  display:inline-block; margin-top:8px; font-weight:700; font-size:15.5px;
  color:var(--green); text-decoration:none;
}
.serp-result .phone-cta:hover{text-decoration:underline;}

.osm-note{font-size:12px; color:var(--ink-soft); padding:10px 0; border-bottom:1px solid var(--line);}
.osm-note a{color:var(--green);}
.osm-loading{color:var(--ink-soft); font-size:14px; padding:16px 0;}

/* accordions */
.accordion-block{margin-top:30px;}
.accordion-block h3{font-size:19px; margin-bottom:8px;}
details.qa{border-bottom:1px solid var(--line); padding:12px 0;}
details.qa summary{cursor:pointer; font-weight:600; font-size:15px; list-style:none; display:flex; justify-content:space-between; align-items:center;}
details.qa summary::-webkit-details-marker{display:none;}
details.qa summary::after{content:"+"; color:var(--ink-soft); font-size:20px; font-weight:400;}
details.qa[open] summary::after{content:"–";}
details.qa p{margin:10px 0 0 0; color:var(--ink-soft); font-size:14.5px;}

details.guide{border:1px solid var(--line); border-radius:var(--radius); padding:16px 20px; margin-top:26px; background:var(--bg-soft);}
details.guide summary{cursor:pointer; font-weight:700; font-size:17px; list-style:none;}
details.guide summary::-webkit-details-marker{display:none;}
details.guide .guide-body{margin-top:14px;}
details.guide .guide-body p{color:var(--ink-soft); font-size:15px;}
details.guide .guide-body ul{padding-left:20px; color:var(--ink-soft); font-size:15px;}
details.guide .guide-body li{margin-bottom:6px;}

/* ===== Static content pages (about/terms/privacy/contact) ===== */
.page-hero{padding:48px 0 30px 0; border-bottom:1px solid var(--line);}
.page-hero h1{font-size:clamp(26px, 6vw, 36px);}
.page-hero .sub{color:var(--ink-soft); font-size:16.5px; max-width:60ch;}
.page-body{padding:40px 0 70px 0; max-width:760px;}
.page-body h2{font-size:22px; margin-top:1.6em;}
.page-body p, .page-body li{color:var(--ink-soft); font-size:15.5px;}
.page-body ul{padding-left:20px;}
.page-body li{margin-bottom:8px;}
.page-body .updated{font-size:13.5px; color:var(--ink-soft); margin-bottom:30px;}

.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:40px; padding:40px 0 70px 0;}
.contact-card{border:1px solid var(--line); border-radius:var(--radius); padding:22px;}
.contact-card h3{font-size:16px; margin-bottom:6px;}
.contact-card p{color:var(--ink-soft); font-size:14.5px;}

/* ===== Business page ===== */
.biz-hero{padding:56px 0; border-bottom:1px solid var(--line);}
.biz-hero h1{font-size:clamp(28px, 7vw, 40px); max-width:16ch;}
.biz-hero .sub{font-size:17px; color:var(--ink-soft); max-width:56ch; margin-top:10px;}

.pricing-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:10px;}
.price-card{background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); padding:28px 24px;}
.price-card.featured{border:2px solid var(--blue);}
.price-card .tier{font-weight:700; font-size:19px;}
.price-card .price{font-weight:700; font-size:32px; margin:10px 0; color:var(--blue);}
.price-card .price span{font-size:14px; font-weight:400; color:var(--ink-soft);}
.price-card ul{list-style:none; padding:0; margin:16px 0 20px 0; font-size:14px;}
.price-card li{padding:7px 0; border-top:1px solid var(--line); color:var(--ink-soft);}

.contact-panel{border:1px solid var(--line); border-radius:var(--radius); padding:30px; margin-top:40px; background:var(--bg-soft);}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px;}
.form-row input, .contact-panel textarea, .contact-panel select{
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:6px; font-family:inherit; font-size:14.5px;
}
.contact-panel textarea{width:100%; min-height:100px; margin-bottom:14px;}

@media (max-width:860px){
  .tile-grid{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .contact-grid{grid-template-columns:1fr;}
  .pricing-grid{grid-template-columns:1fr;}
}

/* ===== Phone-width fixes ===== */
@media (max-width:768px){
  /* Results page sticky header: stack logo+nav on one row,
     search bar drops to its own full-width row below */
  .serp-header .wrap{
    height:auto; flex-wrap:wrap; gap:8px; padding:10px 0;
  }
  .serp-header .logo{order:1;}
  .serp-header nav{order:2; margin-left:auto;}
  .serp-header .serp-search{order:3; flex-basis:100%; width:100%; max-width:100%;}
}

@media (max-width:640px){
  .wrap{padding:0 16px;}

  /* Nav wraps to its own full-width row below the logo, instead of
     squeezing into the same row and forcing the logo to break lines */
  .site-nav{flex-basis:100%; justify-content:flex-start; margin-top:2px;}

  /* Homepage search hero: tighten spacing on small screens */
  .serp-hero{padding:36px 0 8px 0;}
  .logo.big{font-size:26px;}
  .serp-search{padding:5px 5px 5px 14px;}
  .serp-search input{font-size:15px;}
  .serp-search .btn{padding:9px 16px; font-size:14px;}

  /* Category tiles: single column, comfortable tap targets */
  .tile-grid{grid-template-columns:1fr;}

  /* Forms: stack fields instead of squishing two per row */
  .form-row{grid-template-columns:1fr;}

  /* Footer: single column, easier to scan on a phone */
  .footer-grid{grid-template-columns:1fr; gap:28px;}

  /* Sponsored result + buttons: full-width tap targets */
  .call-btn, .visit-btn{width:100%; justify-content:center;}
}