/* Homepage: the Brand Profiles search, in the Optimly refresh look.
   Layout: the search block sits in the space above the links row, lifted slightly
   (space above : below = 0.85 : 1), so it reads as centred; the shared footer follows.
   Fonts come from marketing-refresh.css (@font-face for Area Normal / PP Mondwest). */
.index-home {
  --h-navy:#1e234a; --h-ink:#242740; --h-lime:#dfea62; --h-sky:#accae1; --h-lavender:#b2baee;
  --h-warm:#f8f4ee; --h-glass:rgba(86,92,170,.33); --h-rule:rgba(255,255,255,.12);
  --h-body:"Area Normal","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --h-pixel:"PP Mondwest",ui-monospace,monospace;
  --h-gutter:clamp(20px,5.9vw,85px);
  background:var(--h-navy); color:var(--h-warm); font-family:var(--h-body); letter-spacing:-.02em;
  min-height:100svh; display:flex; flex-direction:column; -webkit-font-smoothing:antialiased;
}
.index-home .site-main { width:100%; max-width:none; padding:0; margin:0; flex:1; }
.index-home :focus-visible { outline:2px solid var(--h-lime); outline-offset:4px; }
.index-home [hidden], .index-home .pending[hidden] { display:none; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

.home-content { min-height:100svh; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,.85fr) auto minmax(0,1fr) auto; }
.home-content::before { content:""; grid-row:1; }
.home-hero { grid-row:2; display:flex; flex-direction:column; align-items:center; padding:48px var(--h-gutter); text-align:center; }
.home-content::after { content:""; grid-row:3; }
.home-foot { grid-row:4; }

/* index.css makes .site-header a fixed, blurred 64px bar; here it only wraps the H1. */
.index-home .home-hero > header.site-header { position:static; height:auto; min-height:0; display:block; padding:0; border:0; background:none; box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; }
.index-home .home-hero > header.site-header::before { content:none; }
.home-hero h1 { position:relative; display:inline-block; margin:0; line-height:0; }
.home-logo { display:block; width:clamp(240px,32vw,455px); height:auto; }
.home-hero h1 sup { position:absolute; top:2px; right:-58px; font:500 16px/1 "IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.04em; color:var(--h-lime); }
.tagline { margin:40px 0 0; font-size:clamp(19px,1.7vw,24px); line-height:1.35; }

#brand-search { width:min(862px,100%); margin-top:clamp(48px,6vw,80px); display:flex; flex-direction:column; align-items:center; scroll-margin-top:1.5rem; }
.home-field { width:100%; height:60px; display:flex; align-items:center; gap:14px; padding:0 22px; background:var(--h-warm); color:var(--h-ink); }
.home-field:focus-within { outline:2px solid var(--h-lime); outline-offset:3px; }
.home-field-icon { flex:none; width:22px; height:22px; opacity:.7; }
#brand-query { flex:1; min-width:0; height:100%; border:0; padding:0; background:transparent; outline:none; appearance:none; -webkit-appearance:none; font:400 20px/1 var(--h-body); letter-spacing:-.02em; color:var(--h-ink); }
#brand-query::placeholder { color:rgba(36,39,64,.76); }
#brand-query::-webkit-search-cancel-button { -webkit-appearance:none; }

/* Buttons: the pixel-notch CTA shape (two stepped corner cut-outs), lime and cream. */
/* Two equal columns sized by the longer label, so both buttons match and neither label meets the notches. */
.home-actions { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:15px; margin-top:18px; }
.action-slot { position:relative; padding-bottom:28px; }
.home-btn {
  --s:12px; --sq:linear-gradient(#000 0 0);
  --notches:0 0, left var(--s) top 0, left 0 top var(--s), right 0 bottom var(--s), right var(--s) bottom 0;
  position:relative; isolation:isolate; width:100%; min-width:182px; height:56px; border:0; padding:0 32px; white-space:nowrap; cursor:pointer;
  background:var(--h-lime); color:var(--h-ink); font:600 20px/1 var(--h-body); letter-spacing:0;
  -webkit-mask-image:var(--sq),var(--sq),var(--sq),var(--sq),var(--sq); mask-image:var(--sq),var(--sq),var(--sq),var(--sq),var(--sq);
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-size:100% 100%,var(--s) var(--s),var(--s) var(--s),var(--s) var(--s),var(--s) var(--s);
  mask-size:100% 100%,var(--s) var(--s),var(--s) var(--s),var(--s) var(--s),var(--s) var(--s);
  -webkit-mask-position:var(--notches); mask-position:var(--notches);
  -webkit-mask-composite:xor; mask-composite:exclude;
}
.home-btn::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(100deg,var(--h-lime) 0%,var(--h-sky) 55%,var(--h-lavender) 100%); opacity:0; transition:opacity .22s ease; }
.home-btn--cream { background:var(--h-warm); }
.home-btn--cream::before { background:var(--h-lime); }
.home-btn:hover::before, .home-btn:focus-visible::before { opacity:1; }
.home-btn:focus-visible { outline:2px solid var(--h-ink); outline-offset:-6px; }
.home-btn:disabled { cursor:wait; opacity:.75; }
.pending { position:absolute; left:50%; bottom:0; transform:translateX(-50%); white-space:nowrap; font-size:16px; line-height:1.4; color:var(--h-sky); }
.hourglass { display:inline-block; animation:home-blink 1s steps(2,jump-none) infinite; }
@keyframes home-blink { 50% { opacity:.35; } }

.counts { margin:28px 0 0; font-size:20px; line-height:1.4; font-variant-numeric:tabular-nums; }
.counts #indexed-count, .counts #claimed-count { font-weight:600; color:var(--h-lime); }
.count-dot { margin:0 6px; color:var(--h-sky); }
.count-item { white-space:nowrap; }

#search-status { min-height:1.6em; margin:20px 0 0; font-size:16px; line-height:1.6; color:var(--h-sky); }
#search-empty, #surprise-empty { margin:8px 0 0; font-size:18px; line-height:1.6; }
#search-empty a, #surprise-empty a, .home-nav a, .claim-link { color:#fff; text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px; }
#search-empty a:hover, #surprise-empty a:hover, .home-nav a:hover, .claim-link:hover { color:var(--h-lime); }

#search-results { width:min(862px,100%); margin-top:32px; text-align:left; }
#search-results h2 { margin:0; padding-bottom:12px; border-bottom:1px solid var(--h-rule); font:600 20px/1.3 var(--h-body); color:var(--h-warm); }
#search-results ul { margin:0; padding:0; list-style:none; }
#search-results li { border-bottom:1px solid var(--h-rule); }
#search-results li a { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 16px; min-height:44px; padding:16px 4px; color:#fff; text-decoration:none; overflow-wrap:anywhere; }
#search-results li a:hover strong { color:var(--h-lime); }
#search-results li strong { font-size:18px; font-weight:600; }
#search-results li span { font-size:16px; color:var(--h-sky); }

.home-foot { padding:0 var(--h-gutter) 56px; display:flex; flex-direction:column; align-items:center; gap:32px; text-align:center; }

/* "Learn about Optimly": three plain link tiles to the pages that explain the product. */
.home-learn { width:min(1080px,100%); margin-bottom:24px; }
.home-learn-title { margin:0 0 16px; font:600 18px/1.4 var(--h-body); letter-spacing:0; color:var(--h-sky); }
.home-learn ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:0; padding:0; list-style:none; }
.home-door { display:flex; flex-direction:column; gap:8px; height:100%; box-sizing:border-box; padding:22px 24px; border:1px solid var(--h-rule); background:var(--h-glass); color:var(--h-warm); text-align:left; text-decoration:none; transition:border-color .2s ease, background-color .2s ease; }
.home-door-name { font-size:20px; font-weight:600; line-height:1.3; color:#fff; text-decoration:underline; text-decoration-color:rgba(223,234,98,.6); text-decoration-thickness:1px; text-underline-offset:5px; }
.home-door-line { font-size:16px; line-height:1.5; color:rgba(248,244,238,.82); }
.home-door:hover, .home-door:focus-visible { border-color:rgba(223,234,98,.6); background:rgba(86,92,170,.5); }
.home-door:hover .home-door-name, .home-door:focus-visible .home-door-name { color:var(--h-lime); text-decoration-color:currentColor; }

.home-nav { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:6px 14px; font-size:20px; line-height:1.4; }
.home-nav > span { color:var(--h-sky); }
.home-meta { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px 44px; font-size:20px; line-height:1.4; }
.claim-helper { margin:0; }
.claim-link { font-weight:600; }
@media (max-width:640px) {
  .home-hero { padding-block:40px; }
  .home-hero h1 sup { right:-52px; }
  .tagline { margin-top:28px; }
  .home-field { height:54px; padding:0 16px; }
  #brand-query { font-size:17px; }
  .home-actions { width:100%; grid-auto-flow:row; gap:0; }   /* stacked (each slot keeps 28px below for its "Finding…" note): two columns leave no room to clear the notches */
  .home-btn { width:100%; min-width:0; height:52px; padding:0 16px; font-size:18px; }
  .counts { font-size:16px; }
  .count-dot { display:none; }
  .count-item { display:block; }
  .home-nav { gap:0 20px; font-size:17px; }
  .home-nav > span { display:none; }
  .home-nav a { display:inline-flex; align-items:center; min-height:44px; }
  .home-meta { flex-direction:column; font-size:17px; }
  .home-learn { margin-bottom:12px; }
  .home-learn ul { grid-template-columns:minmax(0,1fr); gap:12px; }
  .home-door { padding:18px 20px; }
}
@media (max-width: 360px) {
  /* The logo keeps its 240px floor; at 320px the badge needs to sit inside the remaining gutter. */
  .home-hero h1 sup { right:-38px; }
}
@media (prefers-reduced-motion:reduce) {
  .hourglass { animation:none; }
  .home-btn::before, .home-door { transition:none; }
}
