/* Seek guides — article + hub design. Loaded after styles.css; everything is namespaced g-. */

.g-progress {
  position: fixed;
  top: var(--nav);
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  z-index: 19;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.g-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 56px 0 88px;
  background:
    radial-gradient(ellipse 40% 60% at 82% 40%, rgba(124, 108, 255, 0.26), transparent 62%),
    radial-gradient(ellipse 52% 70% at 70% 50%, rgba(22, 119, 242, 0.30), transparent 64%),
    linear-gradient(169deg, #071b3a 8%, #0b2254 46%, #0d1a3a 92%);
}
.g-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 20%, transparent 75%);
  pointer-events: none;
}
.g-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 56px;
  background: #fff;
  clip-path: ellipse(62% 100% at 50% 100%);
}
.g-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.g-crumbs {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white-60);
}
.g-crumbs a:hover { color: #fff; }
.g-crumbs span { margin: 0 8px; opacity: 0.5; }
.g-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}
.g-eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4d9bff;
  box-shadow: 0 0 0 4px rgba(77, 155, 255, 0.25);
  animation: g-pulse 2.4s ease-in-out infinite;
}
.g-hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -2px;
  font-weight: 800;
  text-wrap: balance;
}
.g-hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, #7fb8ff, #b3a8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.g-hero .g-lead {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
.g-hero .badges { justify-content: flex-start; margin-top: 30px; }
.g-meta {
  margin: 22px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* Viewfinder: the app's scanning frame, around the guide's own object */
.g-finder {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  padding: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 90px rgba(3, 12, 32, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: g-float 7s ease-in-out infinite;
}
.g-finder-view {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(77, 155, 255, 0.35), transparent 60%),
    #0a1d44;
}
.g-finder-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g-finder-q {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 150px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.16);
}
.g-finder-view::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 27, 58, 0) 55%, rgba(7, 27, 58, 0.72) 100%);
}
.g-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 6px;
  z-index: 2;
  opacity: 0.95;
}
.g-corner.tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.g-corner.tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.g-corner.bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.g-corner.br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.g-scan {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, #7fb8ff 20%, #fff 50%, #7fb8ff 80%, transparent);
  box-shadow: 0 0 22px 6px rgba(77, 155, 255, 0.55);
  animation: g-scan 3.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.g-chip {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(3, 12, 32, 0.35);
  animation: g-chip 3.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.g-chip small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
}
.g-chip small img { width: 14px; height: 14px; border-radius: 4px; }
.g-chip strong {
  display: block;
  margin: 4px 0 8px;
  font-size: 20px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.g-chip span {
  display: inline-block;
  margin-right: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #eaf2ff;
  color: #1257b8;
}
.g-chip span + span { background: #e7f8ee; color: #137a43; }

/* ---------- Body layout ---------- */
.g-body { background: #fff; color: var(--ink); padding: 40px 0 96px; }
.g-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 760px);
  gap: 72px;
  justify-content: center;
}
.g-toc {
  position: sticky;
  top: calc(var(--nav) + 28px);
  align-self: start;
  font-size: 14px;
}
.g-toc h2 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}
.g-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.g-toc ol a {
  display: block;
  margin-left: -2px;
  padding: 7px 0 7px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.g-toc ol a:hover { color: var(--ink); }
.g-toc ol a.is-active { color: var(--blue); border-left-color: var(--blue); font-weight: 700; }
.g-toc-app {
  margin-top: 28px;
  padding: 18px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 108, 255, 0.5), transparent 60%),
    linear-gradient(160deg, #0b2254, #071b3a);
}
.g-toc-app strong { display: block; font-size: 15px; letter-spacing: -0.2px; }
.g-toc-app p { margin: 6px 0 14px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.68); }
.g-toc-app .btn { width: 100%; }

/* ---------- Article ---------- */
.g-article { font-size: 17px; line-height: 1.72; color: #475467; }
.g-article > section { margin-top: 56px; }
.g-article > section:first-child { margin-top: 0; }
.g-article p { margin: 0 0 18px; }
.g-article > section:first-child > p:first-child {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.g-article h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--ink);
  scroll-margin-top: calc(var(--nav) + 24px);
  text-wrap: balance;
}
.g-article a:not(.badge):not(.btn):not(.g-card) {
  color: var(--blue);
  font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.25s ease;
}
.g-article a:not(.badge):not(.btn):not(.g-card):hover { background-size: 100% 1.5px; }
.g-article strong { color: var(--ink); }
.g-article ul:not([class]) { list-style: none; margin: 0 0 18px; padding: 0; }
.g-article ul:not([class]) li { position: relative; padding-left: 26px; margin: 10px 0; }
.g-article ul:not([class]) li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border: 2px solid var(--blue);
  border-right: 0;
  border-bottom: 0;
  border-radius: 3px 0 0 0;
}

/* Steps: a real sequence, so they are numbered */
.g-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.g-steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 22px 20px 76px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.g-steps li:hover {
  transform: translateX(4px);
  border-color: rgba(22, 119, 242, 0.4);
  box-shadow: 0 14px 34px rgba(22, 119, 242, 0.1);
}
.g-steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(140deg, var(--blue), var(--violet));
  box-shadow: 0 8px 18px rgba(22, 119, 242, 0.3);
}

/* Quick-reference grid */
.g-ref { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-ref li {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid transparent;
  font-size: 15px;
  line-height: 1.5;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.g-ref li:hover { background: #fff; border-color: rgba(22, 119, 242, 0.35); transform: translateY(-3px); }
.g-ref li strong { display: block; margin-bottom: 2px; font-size: 16px; letter-spacing: -0.2px; }

/* Screens */
.g-article .guide-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 28px 0;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(124, 108, 255, 0.14), transparent 60%),
    var(--paper);
}
.g-article .guide-shots figure { margin: 0; }
.g-article .guide-shots img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 0;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.16);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.g-article .guide-shots figure:hover img { transform: translateY(-6px) scale(1.015); }
.g-article .guide-shots figcaption { margin-top: 12px; font-size: 13px; line-height: 1.4; color: var(--muted); text-align: center; }

/* FAQ */
.g-faq { display: grid; gap: 10px; }
.g-faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 20px;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.g-faq details[open] { border-color: rgba(22, 119, 242, 0.4); box-shadow: 0 12px 30px rgba(22, 119, 242, 0.08); }
.g-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf2ff;
  color: var(--blue);
  font-weight: 700;
  transition: transform 0.3s ease;
}
.g-faq details[open] summary::after { transform: rotate(45deg); }
.g-faq details p { margin: 0 0 18px; font-size: 16px; }

/* ---------- Download band ---------- */
.g-cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: 88px 0;
  background:
    radial-gradient(ellipse at center, rgba(22, 119, 242, 0.34), transparent 60%),
    linear-gradient(180deg, #071b3a, #0b2254);
}
.g-cta .g-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: g-ring 6s ease-out infinite;
}
.g-cta .g-ring + .g-ring { animation-delay: 3s; }
.g-cta .wrap { position: relative; }
.g-cta h2 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 54px); letter-spacing: -1.6px; line-height: 1.05; }
.g-cta p { margin: 0 auto; max-width: 520px; color: rgba(255, 255, 255, 0.68); font-size: 17px; line-height: 1.6; }
.g-cta p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Guide cards (hub, related, home) ---------- */
.g-more { background: var(--paper); padding: 80px 0 96px; color: var(--ink); }
.g-more-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.g-more-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -1.2px; }
.g-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.g-card:hover { transform: translateY(-8px); border-color: rgba(22, 119, 242, 0.4); box-shadow: 0 28px 60px rgba(22, 119, 242, 0.16); }
.g-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 30%, rgba(124, 108, 255, 0.55), transparent 60%),
    linear-gradient(150deg, #0b2254, #071b3a);
}
.g-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.g-card:hover .g-card-media img { transform: scale(1.07); }
.g-card-media b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 84px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
}
.g-card-media::before,
.g-card-media::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2.5px solid #fff;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.g-card-media::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 7px 0 0 0; transform: translate(8px, 8px); }
.g-card-media::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 7px 0; transform: translate(-8px, -8px); }
.g-card:hover .g-card-media::before,
.g-card:hover .g-card-media::after { opacity: 1; transform: none; }
.g-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.g-card-body small { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--blue); }
.g-card-body h3 { margin: 8px 0 8px; font-size: 20px; line-height: 1.22; letter-spacing: -0.5px; }
.g-card-body p { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.g-card-body span { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--blue); }
.g-card-body span i { display: inline-block; font-style: normal; transition: transform 0.25s ease; }
.g-card:hover .g-card-body span i { transform: translateX(5px); }

/* Hub */
.g-hub-hero { padding-bottom: 112px; }
.g-hub-hero .g-hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
.g-hub-hero h1 { max-width: 880px; }
.g-hub-hero .g-lead { max-width: 640px; }
.g-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.g-tags a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  transition: background 0.2s ease, color 0.2s ease;
}
.g-tags a:hover { background: #fff; color: var(--navy-0); }
.g-hub { background: #fff; padding: 8px 0 96px; }
.g-hub .g-cards { margin-top: -56px; position: relative; }

/* ---------- Motion ---------- */
.js .g-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--d, 0) * 80ms); }
.js .g-reveal.is-in { opacity: 1; transform: none; }
.g-in { animation: g-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--d, 0) * 90ms); }

@keyframes g-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes g-float { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-12px) rotate(0.6deg); } }
@keyframes g-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(77, 155, 255, 0.25); } 50% { box-shadow: 0 0 0 8px rgba(77, 155, 255, 0); } }
@keyframes g-scan {
  0% { top: 8%; opacity: 0; }
  8% { opacity: 1; }
  48% { top: 92%; opacity: 1; }
  56%, 100% { top: 92%; opacity: 0; }
}
@keyframes g-chip {
  0%, 46% { opacity: 0; transform: translateY(18px) scale(0.96); }
  58%, 94% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(8px); }
}
@keyframes g-ring { from { transform: scale(0.5); opacity: 0.9; } to { transform: scale(1.5); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .g-finder, .g-scan, .g-chip, .g-eyebrow i, .g-cta .g-ring, .g-in { animation: none; }
  .g-scan { display: none; }
  .js .g-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .g-layout { grid-template-columns: minmax(0, 760px); }
  .g-toc { display: none; }
  .g-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .g-hero { padding: 36px 0 80px; }
  .g-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .g-finder { width: min(100%, 320px); }
}
@media (max-width: 620px) {
  .g-cards, .g-ref { grid-template-columns: 1fr; }
  .g-article { font-size: 16px; }
  .g-article > section:first-child > p:first-child { font-size: 19px; }
  .g-steps li { padding: 66px 18px 18px; }
  .g-steps li::before { left: 18px; }
  .g-more-head { flex-direction: column; align-items: flex-start; }
  .g-hub .g-cards { margin-top: -40px; }
}

.g-more .text-link, .g-more .text-link span { color: var(--blue); }
