:root {
  --gg-bg: #F6EDEE;
  --gg-bg2: #FDF8F9;
  --gg-pink: #F2BFD7;
  --gg-pink-deep: #c0568a;
  --gg-aqua: #A4C8E1;
  --gg-aqua-light: #D6EEF8;
  --gg-navy: #142F40;
  --gg-muted: #7a7a8c;
  --gg-border: #eee0e8;
}

.nav-copy-meter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-right: 18px;
  min-width: max-content;
  height: 38px;
  padding: 8px 16px 8px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.34), rgba(255,255,255,0.18));
  border: 1.5px solid rgba(255,255,255,0.48);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 6px 18px rgba(122,42,84,0.12);
  backdrop-filter: blur(12px);
  overflow: visible;
  white-space: nowrap;
}

.copy-meter-count {
  display: inline-flex;
  align-items: baseline;
  min-width: 4.7ch;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1;
  overflow: visible;
}

.copy-meter-label {
  color: rgba(255,255,255,0.88);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6bbf95;
  animation: livePulse 2s ease-in-out infinite;
  flex: 0 0 auto;
}

.nav-copy-meter .dig {
  font-family: 'Playfair Display', serif;
  font-size: 1.06rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.nav-copy-meter .dig.sep {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.76);
}

.mobile-copy-meter {
  display: none;
}

.dig.bump { animation: digBump 0.22s ease; }

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 14px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.hamburger span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(107,191,149,0.5); }
  50% { opacity: 0.85; transform: scale(1.2); box-shadow: 0 0 0 5px rgba(107,191,149,0); }
}

@keyframes digBump {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-6px) scale(1.1); }
  100% { transform: translateY(0) scale(1); }
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 86% 16%, rgba(164,200,225,0.34), transparent 35%),
    radial-gradient(circle at 7% 20%, rgba(242,191,215,0.18), transparent 28%),
    linear-gradient(112deg, rgba(255,255,255,0.94) 0%, rgba(253,248,249,0.88) 48%, rgba(214,238,248,0.82) 100%) !important;
}

.hero > *:not(.gg-glyph-field),
.page-hero > *:not(.gg-glyph-field) {
  position: relative;
  z-index: 1;
}

.gg-glyph-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.62;
}

.gg-glyph-field::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 46% 48%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.72) 35%, rgba(255,255,255,0.24) 58%, transparent 78%);
}

.gg-glyph-float,
.gg-font-ribbon {
  position: absolute;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: rotate(var(--tilt, 0deg));
  text-shadow: 0 1px 0 rgba(255,255,255,0.72);
  animation: ggHeroDrift var(--duration, 16s) ease-in-out infinite alternate;
}

.gg-glyph-float {
  color: rgba(20,47,64,0.19);
  font-size: clamp(1.1rem, 1.75vw, 2rem);
  letter-spacing: 0;
}

.gg-font-ribbon {
  color: rgba(192,86,138,0.16);
  font-size: clamp(1rem, 1.55vw, 1.65rem);
  font-weight: 800;
}

.seo-value-block {
  margin: 0 0 34px;
  padding: 28px;
  border: 1.5px solid var(--gg-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(164,200,225,0.2), transparent 28%),
    radial-gradient(circle at 4% 0%, rgba(242,191,215,0.16), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(253,248,249,0.9));
  box-shadow: 0 16px 38px rgba(180,120,160,0.1);
}

.seo-value-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
}

.seo-value-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--gg-pink-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-value-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gg-pink), var(--gg-aqua));
  box-shadow: 0 0 0 4px rgba(242,191,215,0.22);
}

.seo-value-block h2 {
  margin: 0;
  max-width: 620px;
  font-family: 'Playfair Display', serif;
  color: var(--gg-navy);
  font-size: clamp(1.42rem, 2vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.seo-value-block p {
  margin: 0;
  padding: 14px 16px;
  border: 1.5px solid rgba(238,224,232,0.78);
  border-radius: 16px;
  background: rgba(255,255,255,0.62);
  color: var(--gg-muted);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.65;
}

.seo-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.seo-value-card {
  min-height: 108px;
  padding: 16px 16px 17px;
  border: 1.5px solid rgba(238,224,232,0.92);
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 8px 20px rgba(180,120,160,0.06);
}

.seo-value-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--gg-navy);
  font-size: 0.92rem;
  line-height: 1.25;
}

.seo-value-card strong::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--gg-pink), var(--gg-aqua));
  flex: 0 0 auto;
}

.seo-value-card span {
  display: block;
  color: var(--gg-muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.48;
}

.seo-checklist {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-checklist span {
  padding: 8px 13px;
  border: 1.5px solid rgba(238,224,232,0.9);
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: var(--gg-navy);
  font-size: 0.8rem;
  font-weight: 850;
  box-shadow: 0 6px 16px rgba(180,120,160,0.05);
}

.gg-gf-1 { left: 4%; top: 25%; --tilt: -8deg; --duration: 15s; }
.gg-gf-2 { right: 5%; top: 26%; --tilt: 7deg; --duration: 17s; }
.gg-gf-3 { left: 5%; bottom: 18%; --tilt: 10deg; --duration: 19s; }
.gg-gf-4 { right: 4%; bottom: 16%; --tilt: -9deg; --duration: 18s; }
.gg-fr-1 { left: 6%; top: 54%; --tilt: 5deg; --duration: 16s; }
.gg-fr-2 { right: 6%; top: 55%; --tilt: -6deg; --duration: 19s; }

@keyframes ggHeroDrift {
  0% { translate: 0 0; }
  100% { translate: 0 -15px; }
}

.page-switcher {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 22px !important;
  padding: 8px !important;
  border: 1.5px solid rgba(238,224,232,0.95) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 6% 20%, rgba(242,191,215,0.35), transparent 32%),
    radial-gradient(circle at 94% 10%, rgba(164,200,225,0.32), transparent 30%),
    rgba(255,255,255,0.78) !important;
  box-shadow: 0 14px 36px rgba(180,120,160,0.14) !important;
  backdrop-filter: blur(12px);
}

.page-switcher label {
  width: auto !important;
  padding: 8px 10px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,0.62) !important;
  color: var(--gg-pink-deep) !important;
  text-align: left !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.page-switcher select {
  appearance: none !important;
  -webkit-appearance: none !important;
  min-width: min(100%, 300px) !important;
  border: 1.5px solid rgba(238,224,232,0.85) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98), rgba(255,247,251,0.96)),
    url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8L10 13L15 8' stroke='%23c0568a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 13px center / 18px no-repeat !important;
  color: var(--gg-navy) !important;
  font-family: inherit !important;
  font-weight: 900 !important;
  font-size: 0.94rem !important;
  padding: 12px 44px 12px 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7) !important;
  cursor: pointer !important;
}

.tool-hub {
  position: relative;
  z-index: 95;
  overflow: visible;
  background:
    radial-gradient(circle at 88% 12%, rgba(164,200,225,0.2), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(253,248,249,0.96));
  border-top: 1px solid rgba(238,224,232,0.7);
  border-bottom: 1px solid var(--gg-border);
  padding: 34px 24px 38px;
}

.subpage-tool-hub {
  width: min(1200px, calc(100% - 48px));
  margin: 46px auto 34px;
  border: 1.5px solid var(--gg-border);
  border-radius: 22px;
}

.tool-hub-inner { max-width: 1200px; margin: 0 auto; }
.tool-hub-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.tool-hub-copy { min-width: 0; }
.tool-hub-head h2 { font-family: 'Playfair Display', serif; color: var(--gg-navy); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.08; }
.tool-hub-head p { color: var(--gg-muted); max-width: 520px; font-size: 0.94rem; line-height: 1.65; margin: 0; }
.tool-menu { position: relative; flex: 0 0 auto; min-width: min(100%, 292px); z-index: 12; }
.tool-menu[open] { z-index: 120; }
.tool-menu summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 48px; padding: 0 14px 0 17px; border: 1.5px solid rgba(238,224,232,0.92);
  border-radius: 16px; background:
    radial-gradient(circle at 12% 0%, rgba(242,191,215,0.28), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(253,248,249,0.92));
  color: var(--gg-navy); box-shadow: 0 12px 28px rgba(180,120,160,0.12);
  cursor: pointer; font-size: 0.9rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.055em;
}
.tool-menu summary::-webkit-details-marker { display: none; }
.tool-menu summary::after {
  content: "⌄"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 11px;
  background: linear-gradient(135deg, rgba(242,191,215,0.9), rgba(164,200,225,0.72));
  color: var(--gg-navy); font-size: 1rem; line-height: 1; transition: transform 0.18s;
}
.tool-menu[open] summary { border-color: rgba(192,86,138,0.42); }
.tool-menu[open] summary::after { transform: rotate(180deg); }
.tool-menu-panel {
  position: absolute; top: calc(100% + 9px); right: 0; width: min(360px, calc(100vw - 32px));
  z-index: 121;
  max-height: 380px; overflow: auto; display: grid; grid-template-columns: 1fr; gap: 7px;
  padding: 10px; border: 1.5px solid var(--gg-border); border-radius: 18px; background: rgba(255,255,255,0.98);
  box-shadow: 0 24px 52px rgba(20,47,64,0.18); backdrop-filter: blur(18px);
}
.tool-menu-panel a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px;
  padding: 0 13px; border-radius: 13px; color: var(--gg-navy); text-decoration: none;
  font-weight: 850; font-size: 0.88rem; background: rgba(253,248,249,0.72);
  border: 1px solid transparent; transition: background 0.16s, border-color 0.16s, transform 0.16s;
}
.tool-menu-panel a:hover { background: #fff; border-color: rgba(238,224,232,0.95); transform: translateX(2px); }
.tool-menu-panel a::after { content: "›"; color: var(--gg-pink-deep); font-size: 1rem; }
.tool-hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.tool-card {
  min-height: 116px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 17px 16px;
  border: 1.5px solid var(--gg-border);
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  color: var(--gg-navy);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(180,120,160,0.08);
  transition: transform 0.18s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(192,86,138,0.44);
  background: #fff;
  box-shadow: 0 14px 34px rgba(180,120,160,0.14);
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(242,191,215,0.86), rgba(164,200,225,0.66));
  color: var(--gg-navy);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.tool-card strong { display: block; font-size: 0.96rem; line-height: 1.2; margin-bottom: 4px; }
.tool-card small { display: block; color: var(--gg-muted); font-size: 0.76rem; line-height: 1.35; font-weight: 600; }

@media (max-width: 900px) {
  .tool-hub-head { display: block; text-align: center; }
  .tool-hub-head p { margin: 8px auto 0; }
  .tool-menu { width: min(100%, 360px); margin: 16px auto 0; }
  .tool-menu-panel { position: static; width: 100%; max-height: none; margin-top: 8px; text-align: left; }
  .tool-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .seo-value-block {
    padding: 22px 16px;
    margin-bottom: 28px;
  }
  .seo-value-head {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }
  .seo-value-kicker {
    justify-content: center;
  }
  .seo-value-block h2 {
    margin-left: auto;
    margin-right: auto;
  }
  .seo-value-block p {
    text-align: left;
  }
  .seo-value-grid {
    grid-template-columns: 1fr;
  }
  .seo-value-card {
    min-height: 0;
    text-align: left;
  }
  .seo-checklist {
    justify-content: center;
  }
  nav > .nav-copy-meter { display: none; }
  .mobile-copy-meter {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px 12px;
    min-height: 58px;
    padding: 12px 14px;
    border: 1.5px solid rgba(238,224,232,0.95);
    border-radius: 16px;
    background:
      radial-gradient(circle at 12% 18%, rgba(242,191,215,0.32), transparent 34%),
      linear-gradient(135deg, rgba(255,255,255,0.98), rgba(253,248,249,0.92));
    color: var(--gg-navy);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(180,120,160,0.12);
  }
  .mobile-copy-meter .live-dot {
    width: 9px;
    height: 9px;
    background: #6bbf95;
  }
  .mobile-copy-meter .copy-meter-count {
    min-width: 0;
    justify-content: start;
    color: var(--gg-navy);
    font-size: 1.34rem;
  }
  .mobile-copy-meter .dig {
    color: var(--gg-navy);
    font-size: 1.34rem;
  }
  .mobile-copy-meter .dig.sep {
    color: rgba(20,47,64,0.64);
    font-size: 1.02rem;
  }
  .mobile-copy-meter .copy-meter-label {
    grid-column: 2;
    margin-top: -9px;
    color: var(--gg-muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }
  nav { width: 100vw !important; max-width: 100vw !important; overflow: visible !important; }
  nav button.hamburger#menu-toggle {
    display: inline-flex !important;
    position: fixed;
    top: 11px;
    right: 12px;
    z-index: 45;
    flex: 0 0 auto;
    margin-left: 0;
  }
  nav .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 12px;
    width: min(250px, calc(100vw - 24px));
    display: grid !important;
    gap: 8px;
    padding: 12px;
    border: 1.5px solid rgba(238,224,232,0.95);
    border-radius: 18px;
    background:
      radial-gradient(circle at 12% 18%, rgba(242,191,215,0.28), transparent 34%),
      rgba(255,255,255,0.96);
    box-shadow: 0 18px 42px rgba(20,47,64,0.2);
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
    z-index: 40;
  }
  nav .nav-links.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  nav .nav-links a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 13px;
    background: var(--gg-bg2);
    color: var(--gg-navy) !important;
    border: 1px solid var(--gg-border);
  }
  nav .nav-links .nav-cta {
    max-width: none !important;
    white-space: normal !important;
    background: linear-gradient(135deg, var(--gg-pink), #fff) !important;
    color: var(--gg-navy) !important;
  }
  .gg-glyph-field { opacity: 0.46; }
  .gg-gf-1, .gg-gf-3, .gg-fr-1 { left: -34px; }
  .gg-gf-2, .gg-gf-4, .gg-fr-2 { right: -44px; }
  .page-switcher {
    width: min(100%, 345px) !important;
    display: grid !important;
    justify-content: stretch !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .page-switcher label { width: 100% !important; text-align: center !important; }
  .page-switcher select { width: 100% !important; min-width: 0 !important; }
  .tool-hub { padding: 28px 16px 32px; }
  .subpage-tool-hub { width: calc(100% - 32px); margin: 38px auto 28px; }
  .tool-hub-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 92px; padding: 15px; }
}
