/* Pyramid guides: landing and thank-you pages.
   Brand: Spanish Orange #E86222, ink #0C0D10, Funnel Display + Poppins.
   The hero carries the same grainy orange light as the executive
   LinkedIn banners, so the click from a post lands somewhere familiar. */

:root {
  --ink: #0C0D10;
  --ink-2: #16171C;
  --line-dark: rgba(255, 255, 255, 0.14);
  --orange: #E86222;
  --orange-deep: #B8461A;
  --ember: #F0A878;
  --paper: #F5F6F8;
  --white: #FFFFFF;
  --text: #15171C;
  --muted: #555F6C;
  --silver: #C9CED6;
  --rule: #DDE1E7;
  --radius-card: 14px;
  --radius-field: 8px;
  --display: 'Funnel Display', 'Poppins', Arial, sans-serif;
  --body: 'Poppins', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--orange-deep); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--text); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 16px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- Header ---------- */
.gh { position: relative; z-index: 2; padding: 26px 0; }
.gh .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gh-logo { width: 150px; height: auto; }
.gh-link { color: var(--silver); font-size: 15px; text-decoration: none; }
.gh-link:hover { color: var(--white); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero-wave { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; }
.hero.has-wave .hero-light { display: none; }
.hero.has-wave::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(100deg, rgba(11,11,13,.62) 0%, rgba(11,11,13,.38) 55%, rgba(11,11,13,.12) 100%); }
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 10% 30%, #17181D 0%, var(--ink) 55%, #08090B 100%); color: var(--white); padding-bottom: 88px; isolation: isolate; }
.hero-light { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-light span { position: absolute; top: -40%; height: 190%; transform: rotate(36deg); }
.hero-light span:nth-child(1) { left: 52%; width: 15%; background: linear-gradient(90deg, rgba(232,98,34,0), rgba(232,98,34,.42) 45%, rgba(255,138,61,.6) 55%, rgba(232,98,34,0)); filter: blur(40px); }
.hero-light span:nth-child(2) { left: 66%; width: 7%; background: linear-gradient(90deg, rgba(232,98,34,0), rgba(255,120,48,.75), rgba(232,98,34,0)); filter: blur(18px); }
.hero-light span:nth-child(3) { left: 76%; width: 20%; background: linear-gradient(90deg, rgba(122,42,12,0), rgba(160,52,14,.6), rgba(122,42,12,0)); filter: blur(46px); }
.hero-light span:nth-child(4) { left: 92%; width: 6%; background: linear-gradient(90deg, rgba(232,98,34,0), rgba(232,98,34,.55), rgba(232,98,34,0)); filter: blur(16px); }
.hero-grain { position: absolute; inset: 0; z-index: -1; opacity: .38; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "top form" "more form"; column-gap: 56px; row-gap: 0; align-items: start; padding-top: 40px; }
.hero-top { grid-area: top; }
.hero-more { grid-area: more; }
.hero-grid > .gf { grid-area: form; }
.kicker { margin: 0 0 18px; color: var(--orange); font-size: 16px; font-weight: 600; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5.2vw, 66px); line-height: 1.02; letter-spacing: -0.02em; max-width: 14ch; }
.hero .sub { margin: 18px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.25; color: #E9EBEF; max-width: 26ch; }
.hero .lede { margin: 28px 0 0; font-size: 18px; line-height: 1.65; color: #D3D7DE; max-width: 54ch; }
.gets { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; max-width: 54ch; }
.gets li { position: relative; padding-left: 30px; color: #E9EBEF; }
.gets li::before { content: ""; position: absolute; left: 0; top: .62em; width: 16px; height: 2px; background: var(--orange); }

/* ---------- Form card ---------- */
.gf { background: var(--white); color: var(--text); border-radius: var(--radius-card); padding: 30px 28px 26px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.gf h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.15; }
.gf .gf-intro { margin: 8px 0 20px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.gf-field { margin-bottom: 16px; }
.gf-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.gf-field input { width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--white); border: 1.5px solid #B9C0CA; border-radius: var(--radius-field); }
.gf-field input:hover { border-color: #8E97A4; }
.gf-field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,98,34,.22); }
.gf-field input[aria-invalid="true"] { border-color: #B42318; }
.gf-error { display: block; min-height: 0; margin-top: 4px; color: #B42318; font-size: 13.5px; line-height: 1.35; }
.gf-error:empty { display: none; }
.gf button { width: 100%; min-height: 52px; margin-top: 6px; border: 0; border-radius: var(--radius-field); background: var(--orange); color: var(--white); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.gf button:hover { background: #D4561B; }
.gf button:disabled { opacity: .65; cursor: progress; }
.gf-check { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 14px; font-size: 14.5px; line-height: 1.45; color: var(--text); cursor: pointer; }
.gf-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange); cursor: pointer; }
.gf-check input:focus-visible { outline: 3px solid rgba(232,98,34,.35); outline-offset: 2px; }
.gf-status { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.gf-promise { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Inside the guide ---------- */
.section { padding: 88px 0; }
.section h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.01em; }
.inside-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 72px; align-items: start; }
.toc { list-style: none; counter-reset: toc; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.toc li { transition: background-color .4s ease; border-radius: 6px; }
.toc li.is-open { background: linear-gradient(90deg, rgba(232,98,34,.07), rgba(232,98,34,0) 70%); }
.toc li::before { content: counter(toc); font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--orange); line-height: 1.3; }
.toc strong { display: block; font-weight: 600; font-size: 18px; line-height: 1.35; }
.toc span { display: block; color: var(--muted); font-size: 16px; margin-top: 4px; }

/* The guide cover. .cover-real carries the real cover page rendered from the PDF; the drawn
   version underneath stays for any page without one. */
.cover { position: sticky; top: 32px; aspect-ratio: 8.5 / 11; border-radius: 6px; overflow: hidden; color: var(--white); background: radial-gradient(130% 120% at 0% 0%, #1A1B21, var(--ink) 60%); box-shadow: 0 2px 0 #fff inset, 0 24px 50px rgba(12,13,16,.28), 0 4px 10px rgba(12,13,16,.14); padding: 26px 24px; display: flex; flex-direction: column; isolation: isolate; }
.cover::before { content: ""; position: absolute; left: 30%; top: -30%; width: 34%; height: 170%; transform: rotate(32deg); background: linear-gradient(90deg, rgba(232,98,34,0), rgba(255,128,52,.75), rgba(232,98,34,0)); filter: blur(22px); z-index: -1; }
.cover::after { content: ""; position: absolute; left: 66%; top: -30%; width: 18%; height: 170%; transform: rotate(32deg); background: linear-gradient(90deg, rgba(160,52,14,0), rgba(170,58,16,.7), rgba(160,52,14,0)); filter: blur(20px); z-index: -1; }
.cover-mark { width: 30px; height: auto; }
.cover-title { margin-top: auto; font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -0.02em; }
.cover-sub { margin-top: 10px; font-size: 13px; line-height: 1.4; color: #E3E6EB; max-width: 22ch; }
.cover-foot { margin-top: 22px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.22); font-size: 11px; color: #C9CED6; }
.cover.cover-real { padding: 0; background: var(--ink); }
.cover.cover-real::before, .cover.cover-real::after { display: none; }
.cover.cover-real img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* The booklet: the cover on a stack of pages that turn as the reader scrolls the contents */
.book { position: sticky; top: 32px; perspective: 1600px; }
.book-stack { position: relative; aspect-ratio: 8.5 / 11; transform-style: preserve-3d; }
.book-stack { border-radius: 6px; box-shadow: 0 24px 50px rgba(12,13,16,.28), 0 4px 10px rgba(12,13,16,.14); }
.book .page { position: absolute; inset: 0; border-radius: 6px; transform-origin: left center; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 1.4s cubic-bezier(.4, .05, .15, 1), box-shadow 1.4s ease; box-shadow: 0 1px 0 rgba(12,13,16,.08), 0 0 0 1px rgba(12,13,16,.06); }
.book .page.is-turned { transform: rotateY(-180deg); box-shadow: none; pointer-events: none; }
.book .page:not(.page-cover) { background: var(--white); color: var(--text); padding: 22px 20px; display: flex; flex-direction: column; overflow: hidden; }
.book .page.page-dark { background: radial-gradient(130% 120% at 100% 0%, #2A1208, var(--ink) 55%); color: var(--white); }
.book .page.page-real { padding: 0; }
.book .page.page-real img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the page images are previews, not the guide: no dragging, selecting or opening them on their own */
.cover-real img, .book .page-real img { pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.book .page-cover::before, .book .page-cover::after { transition: opacity .5s ease; }
.book .page-cover.is-turned::before, .book .page-cover.is-turned::after { opacity: 0; }
.page-head { display: flex; align-items: center; gap: 10px; }
.page-no { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--orange); }
.page-rule { flex: 1; height: 2px; background: var(--orange); }
.page-title { margin-top: 26px; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.15; letter-spacing: -0.01em; }
.page-lines { margin-top: 20px; flex: 1; min-height: 0; display: grid; grid-auto-rows: 6px; gap: 9px; align-content: start; overflow: hidden; }
.page-lines i { display: block; height: 6px; border-radius: 3px; background: #E4E7EC; }
.page-lines i:nth-child(3n+2) { width: 88%; } .page-lines i:nth-child(4n+3) { width: 72%; } .page-lines i:nth-child(5n) { width: 80%; } .page-lines i:nth-child(7n) { width: 54%; }
.page-dark .page-lines i { background: rgba(255,255,255,.16); }
.book-edge { position: absolute; left: -1px; top: 6px; bottom: 6px; width: 0; border-radius: 2px 0 0 2px; background: repeating-linear-gradient(90deg, #FFFFFF 0 1px, #D5D9E0 1px 1.5px); transition: width 1.4s ease; }
@media (prefers-reduced-motion: reduce) { .book .page, .book-edge, .toc li { transition: none; } }

/* ---------- Excerpt ---------- */
.excerpt { background: var(--white); border-block: 1px solid var(--rule); }
.excerpt-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 72px; }
.excerpt .label { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.2; }
.excerpt .label small { display: block; margin-top: 8px; font-family: var(--body); font-weight: 400; font-size: 15px; color: var(--muted); }
.excerpt-text { font-family: var(--display); font-weight: 400; font-size: clamp(21px, 2vw, 25px); line-height: 1.5; color: #23262D; max-width: 40ch; }
.excerpt-text p { margin: 0 0 1em; }
.excerpt-text p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 72px; }
.faq { margin: 0; }
.faq div { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.faq div:first-child { border-top: 1px solid var(--rule); }
.faq dt { font-weight: 600; font-size: 18px; }
.faq dd { margin: 6px 0 0; color: #3A404A; max-width: 62ch; }
.back-to-form { display: inline-block; margin-top: 28px; font-weight: 600; font-size: 18px; color: var(--orange); }
.back-to-form:hover { color: var(--orange-deep); }

/* ---------- Footer ---------- */
.gfoot { background: var(--ink); color: var(--silver); padding: 40px 0; font-size: 14.5px; }
.gfoot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.gfoot a { color: var(--silver); }
.gfoot a:hover { color: var(--white); }
.gfoot nav { display: flex; flex-wrap: wrap; gap: 22px; }

/* ---------- Thank-you ---------- */
.ty .hero { padding-bottom: 96px; }
.ty-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; padding-top: 40px; }
.ty h1 { max-width: 16ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--radius-field); background: var(--orange); color: var(--white); font-weight: 600; font-size: 17px; text-decoration: none; }
.btn:hover { background: #D4561B; color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 32px; }
.btn-quiet { background: none; border: 1.5px solid rgba(255,255,255,.45); color: var(--white); font: inherit; font-weight: 500; font-size: 15px; min-height: 48px; padding: 0 18px; border-radius: var(--radius-field); cursor: pointer; }
.btn-quiet:hover { border-color: var(--white); }
.ty .cover { position: relative; top: 0; max-width: 300px; justify-self: center; }
.next-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.next { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; }
.next h3 { margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.2; }
.next p { margin: 10px 0 0; color: #3A404A; }
.next a { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 18px; color: var(--orange); }
.next a:hover { color: var(--orange-deep); }

/* ---------- Guides hub ---------- */
.hub-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.hub-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 26px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-card); padding: 24px; color: var(--text); text-decoration: none; }
.hub-item:hover { border-color: #AEB6C1; color: var(--text); }
.hub-item .cover { position: relative; top: 0; padding: 14px 12px; }
.hub-item .cover.cover-real { padding: 0; }
.hub-item .cover-title { font-size: 19px; }
.hub-item .cover-sub, .hub-item .cover-foot { display: none; }
.hub-item h3 { margin: 0; font-family: var(--display); font-size: 25px; line-height: 1.15; }
.hub-item p { margin: 10px 0 0; color: #3A404A; font-size: 16px; }
.hub-item .go { display: inline-block; margin-top: 14px; color: var(--orange); font-weight: 600; font-size: 18px; }

/* ---------- Small screens ---------- */
@media (max-width: 920px) {
  .ty-grid, .inside-grid, .excerpt-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "form" "more"; row-gap: 28px; }
  .hero .lede { margin-top: 8px; }
  .hero-light span:nth-child(1) { left: 40%; }
  .cover, .book { position: relative; top: 0; max-width: 260px; }
  .inside-grid .cover, .inside-grid .book { order: 2; }
  .section { padding: 64px 0; }
  .hub-list, .next-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .gf { padding: 24px 18px 20px; }
  .hub-item { grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .hub-item .cover-title { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
