/* ==========================================================================
   Guides page (guides.html), rebuilt 27 Nov 2026 (asked by Tommy) in the
   Customer stories design: load after tokens.css, sections.css, motion.css,
   product-page.css and flow.css.

   1. Hero: copy left, the four guide covers fanned like a hand of cards over
      Odro's navy pebble file (assets/pebbles/). They deal in once; no loop.
   2. 01 / Guides: navy with dust particles (as Customer results); four guides,
      each cover tilting up on hover.
   3. 02 / Get the guide: the form block (HubSpot placeholder).
   4. Close: as customer-stories.html (.book .p-close in flow.css).

   Pebbles: only the supplied files. Nothing drawn.
   Reduced motion: everything shows in its finished state, nothing moves.
   ========================================================================== */

/* ---------- 1. Hero ---------- */
.gd-hero { overflow: hidden; }
/* Bottom padding adds 90px for 01's navy wave, which overlaps the hero */
.gd-hero .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--space-10) var(--space-12); align-items: center; padding-top: clamp(28px, 4vw, 56px); padding-bottom: calc(clamp(48px, 6vw, 88px) + 90px); min-height: min(calc(100vh - 130px), 620px); }
.gd-hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: var(--space-7); }
.gd-hero h1 { font-size: clamp(42px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
.gd-hero-line { font-size: clamp(19px, 1.7vw, 22px); max-width: 520px; }
.gd-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5) var(--space-9); margin-top: var(--space-2); }

/* The fan of covers (landscape, so a flatter fan than Customer stories' clips) */
/* Each card sits --k card-widths left or right of centre, tilted by --r and dropped by --y */
.gd-fan { position: relative; height: clamp(400px, 34vw, 500px); isolation: isolate; }
.gd-fan-peb { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(96%, 700px); height: auto; max-width: none; transform: translate(-50%, -50%) rotate(-8deg); filter: drop-shadow(0 30px 60px rgba(14, 32, 80, .18)); pointer-events: none; }
.gd-card { --w: clamp(220px, 20vw, 300px); position: absolute; left: 50%; top: 50%; width: var(--w); aspect-ratio: 960 / 636; margin: calc(var(--w) * -.331) 0 0 calc(var(--w) / -2); display: block;
  border: 3px solid #fff; border-radius: 16px; overflow: hidden; background: var(--odro-navy);
  transform: translateX(calc(var(--w) * var(--k))) translateY(var(--y, 0px)) rotate(var(--r)); box-shadow: 0 18px 36px rgba(14, 32, 80, .28);
  transition: transform .35s var(--spring), box-shadow .35s; z-index: var(--z, 1); }
.gd-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gd-card:hover, .gd-card:focus-visible { transform: translateX(calc(var(--w) * var(--k))) translateY(calc(var(--y, 0px) - 26px)) rotate(calc(var(--r) * .4)) scale(1.04); box-shadow: 0 28px 50px rgba(14, 32, 80, .35); z-index: 10; }
.gd-card:focus-visible { outline: 3px solid var(--odro-deep-blue); outline-offset: 4px; }
/* Deal in once, from a neat stack */
.anim-ready .gd-hero .gd-card { opacity: 0; }
.anim-ready .gd-hero.in .gd-card { animation: gd-deal .8s var(--spring) var(--d, 0s) both; }
@keyframes gd-deal { from { opacity: 0; transform: translateX(0) translateY(60px) rotate(0deg) scale(.9); } 30% { opacity: 1; } to { opacity: 1; transform: translateX(calc(var(--w) * var(--k))) translateY(var(--y, 0px)) rotate(var(--r)); } }

@media (max-width: 900px) {
  .gd-hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .gd-fan { height: 260px; max-width: 520px; width: 100%; justify-self: center; }
  .gd-card { --w: clamp(120px, 30vw, 190px); border-width: 2px; border-radius: 10px; }
  .gd-fan-peb { width: min(100%, 460px); }
}

/* ---------- 2. 01 / Guides (navy, dust particles) ---------- */
.gd-list { isolation: isolate; overflow: hidden; }
.gd-list .bokeh { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.gd-list .wrap { gap: var(--space-9); }
.gd-list h2 { font-size: var(--text-h2); line-height: var(--leading-heading); letter-spacing: -0.025em; text-wrap: balance; }
.gd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 48px; margin-top: var(--space-4); }  /* three guides (29 Nov 2026) */
.gd-guide { display: flex; flex-direction: column; gap: 14px; color: #fff; scroll-margin-top: 110px; }
.gd-cover { position: relative; border-radius: 20px; overflow: hidden; border: 3px solid #fff; aspect-ratio: 960 / 636; box-shadow: 0 22px 44px rgba(0, 0, 0, .28);
  transform: rotate(var(--gr, -1.5deg)); transition: transform .4s var(--spring), box-shadow .4s; margin-bottom: 8px; }
.gd-guide:nth-child(even) .gd-cover { --gr: 1.5deg; }
.gd-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gd-guide:hover .gd-cover, .gd-guide:focus-within .gd-cover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 30px 56px rgba(0, 0, 0, .34); }
/* Arriving from a hero card: a gold edge, so it's clear which guide was picked */
.gd-guide:target .gd-cover { border-color: var(--odro-gold); transform: rotate(0deg); }
/* No topic tags or titles under the covers (Tommy, 27 Nov 2026): the cover carries the title */
.gd-guide p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--color-soft-on-dark, #94CEF2); }
.gd-get { align-self: flex-start; margin-top: auto; }
.gd-get:focus-visible { outline: 3px solid var(--odro-gold); outline-offset: 3px; }
@media (max-width: 900px) { .gd-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; max-width: 620px; } }

/* ---------- 3. 02 / Get the guide ---------- */
.gd-form .wrap { gap: var(--space-9); }
.v-page > .gd-form > .wrap { padding-bottom: calc(var(--section-pad-y) + 60px); }  /* clears the close's wave below */
.gd-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-10) var(--space-12); align-items: center; }
.gd-form-copy { display: flex; flex-direction: column; gap: var(--space-5); }
.gd-form-copy .h2 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.05; }
.gd-form-copy .muted { font-size: var(--text-lead); max-width: 520px; }
.gd-form-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 34px); border-radius: 20px; background: #fff; border: 1px solid rgba(14, 32, 80, .06); box-shadow: 0 18px 40px rgba(14, 32, 80, .10); }
.gd-form-card h3 { margin: 0; font: 700 22px/1.2 var(--font-display); }
.gd-picked { margin: 0; font-weight: 600; font-size: 16px; color: var(--odro-navy); }
.gd-picked[hidden] { display: none; }
.gd-placeholder { margin: 0; background: #ECF6FD; border: 2px dashed #479CD0; border-radius: 14px; padding: 22px 18px; text-align: center; font-weight: 600; font-size: 15px; color: var(--odro-navy); }
.gd-privacy { margin: 0; font-size: 14px; }
.gd-privacy a { color: var(--odro-text-blue, #0069A8); }
@media (max-width: 900px) { .gd-form-grid { grid-template-columns: minmax(0, 1fr); } }

/* Reduced motion: finished state */
@media (prefers-reduced-motion: reduce) {
  .gd-card, .gd-cover { transition: none !important; animation: none !important; }
}
