/* ==========================================================================
   Innspire mobile landing page
   Built from Figma frame `innspire.com - mobile-landing-page` (2176:6906).
   Mobile-only fixed 420px column, centered on wider viewports.
   ========================================================================== */

/* ---- Fonts --------------------------------------------------------------- */
@font-face {
  font-family: "Söhne";
  src: url("assets/fonts/Sohne-Buch.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("assets/fonts/Sohne-Kraftig.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("assets/fonts/Sohne-Halbfett.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rhymes Display";
  src: url("assets/fonts/RhymesDisplay-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens (from Figma variables) -------------------------------- */
:root {
  --color-fg:           #171717;
  --color-bg:           #ffffff;
  --color-muted:        #737373;
  --color-secondary:       #f5f5f5;
  --color-secondary-hover: #fafafa;
  --color-secondary-fg:    #1f1f1f;
  --color-border:       rgba(0, 0, 0, 0.10);

  --font-sans:  "Söhne", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Rhymes Display", "Cormorant Garamond", Georgia, serif;

  --space-1:   4px;
  --space-1-5: 6px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-12:  48px;
  --space-16:  64px;

  --radius-1-5:  6px;
  --radius-2:    8px;
  --radius-pill: 9999px;
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: #ffffff;             /* surrounds the centered column on wide viewports */
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

p { margin: 0; }

h1, h2, h3 { margin: 0; font-weight: 400; }

hr { border: 0; margin: 0; }

/* ---- Page shell ---------------------------------------------------------- */
.page {
  width: 420px;
  margin: 0 auto;
  background: var(--color-bg);
  min-height: 100vh;
  overflow: hidden;
}

/* ---- Top nav / logo ------------------------------------------------------ */
.topbar {
  display: flex;
  align-items: center;
  padding: var(--space-5) var(--space-4);
}

.logo { display: block; height: 18px; }
.logo img { display: block; height: 100%; width: auto; }

/* ---- Type ramp ----------------------------------------------------------- */
.eyebrow {
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.display {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -1px;
  color: var(--color-fg);
}

.lede {
  font-size: 17px;
  line-height: 26px;
  color: var(--color-fg);
}

.section-heading {
  font-weight: 500;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.1px;
  color: #000;
  padding: var(--space-4);
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { display: flex; flex-direction: column; }

.hero-image { padding: 0 var(--space-4); }

.hero-image img {
  width: 100%;
  aspect-ratio: 640 / 360;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

.hero-copy {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero-heading { display: flex; flex-direction: column; }

/* ---- Separator ----------------------------------------------------------- */
/* Figma wraps the 1px line in a 16px-tall zone; reproduce with 7.5px margin
   above and below the line so the total band is 16px. */
.sep {
  height: 1px;
  background: var(--color-border);
  margin: 7.5px var(--space-4);
}

/* ---- Shared row title + body text ---------------------------------------- */
.row-title,
.card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  font-weight: 500;
  font-size: 17px;
  line-height: 26px;
  color: var(--color-fg);
}

.row-text,
.card-text {
  margin-top: 2px;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-fg);
}

.chev {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--color-fg);
}

/* ---- Media row ("Try it now") -------------------------------------------- */
.media-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
}

.media-thumb {
  flex: 0 0 120px;
  width: 120px;
  height: 90px;
  border-radius: var(--radius-2);
  overflow: hidden;
  background: var(--color-secondary);
}

.media-thumb img { width: 100%; height: 100%; object-fit: cover; }

.media-body { flex: 1 1 0; min-width: 0; }

/* ---- Quick menu ---------------------------------------------------------- */
.quick-menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4) var(--space-6);
}

.quick-menu-title {
  flex-basis: 100%;
  padding: var(--space-1) 0;
}

.quick-item {
  flex: 1 1 0;
  min-width: 160px;
  max-width: 224px;
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
  padding: var(--space-3);
  border-radius: var(--radius-1-5);
  background: var(--color-secondary);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #000;
  transition: opacity 120ms ease;
}

.quick-item:hover { opacity: 0.85; }

.icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: block;
}

/* ---- Two-column card row (GM / TV) --------------------------------------- */
.cards-2col {
  display: flex;
  gap: var(--space-6);
  padding: 0 var(--space-4);
}

.card-stacked {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--space-4) 0;
}

/* The GM / TV thumbnails are autoplay videos in Figma with no exported still,
   so they fall back to the design-system secondary surface as a placeholder. */
.card-stacked .thumb {
  width: 100%;
  aspect-ratio: 182 / 121.43;
  border-radius: var(--radius-2);
  overflow: hidden;
  background: var(--color-secondary);
}

.card-stacked .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-stacked .card-body { display: block; margin-top: var(--space-2); }

/* ---- Featured person ----------------------------------------------------- */
.person-featured {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
}

.portrait {
  flex: 0 0 103px;
  width: 103px;
  height: 154px;
  border-radius: var(--radius-2);
  overflow: hidden;
  background: var(--color-secondary);
}

.portrait img { width: 100%; height: 100%; object-fit: cover; }

.person-body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.person-copy { display: flex; flex-direction: column; }

/* ---- Icon buttons (mail / LinkedIn) -------------------------------------- */
.actions { display: flex; gap: var(--space-1); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2);
  background: transparent;
  color: var(--color-fg);
  transition: background-color 120ms ease;
}

.icon-btn:hover { background: var(--color-secondary); }

/* ---- People list --------------------------------------------------------- */
.people-list { padding: 0 var(--space-2); }

.people-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.people-row:last-child { border-bottom: 0; }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-secondary);
}

.who { flex: 1 1 0; min-width: 0; }

.who .name { font-weight: 500; font-size: 17px; line-height: 26px; color: var(--color-fg); }
.who .role { font-weight: 400; font-size: 14px; line-height: 20px; color: var(--color-muted); }

/* ---- Footer -------------------------------------------------------------- */
.footer {
  padding: var(--space-16) var(--space-6) 0;
}

.micro-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-16) 0;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  line-height: 16px;
  color: var(--color-fg);
}

.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); }

.footer-logo { display: block; width: 100%; }
.footer-logo img { width: 100%; height: auto; }

/* ---- Bottom sheet (iOS-style modal) -------------------------------------- */
/* Native <dialog>; pinned to the bottom of the 420px column and slid up. */
.sheet {
  position: fixed;
  inset: auto 0 0 0;            /* bottom, full width; centered by margin below */
  width: 420px;
  max-width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 16px 16px 0 0;
  background: var(--color-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
}

/* Fill variant: take a fixed tall height (for the full-bleed iframe). */
.sheet--fill { height: 92vh; height: 92dvh; }

.sheet.is-open { transform: translateY(0); }

.sheet::backdrop { background: rgba(0, 0, 0, 0.4); }

.sheet-header {
  position: relative;
  flex-shrink: 0;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--space-4);
  cursor: grab;
  touch-action: none;            /* let JS handle the vertical drag */
}

/* Bar variant: taller header with a divider and a corner close button. */
.sheet-header--bar {
  min-height: 56px;
  border-bottom: 1px solid var(--color-border);
}

.sheet-header:active { cursor: grabbing; }

/* iOS grabber handle */
.sheet-grabber {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.18);
}

/* Secondary icon button (design-system "Round, Secondary" variant) */
.sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-secondary);
  color: var(--color-fg);
  cursor: pointer;
  transition: background-color 120ms ease;
}

.sheet-close:hover { background: var(--color-secondary-hover); }
.sheet-close .icon { width: 16px; height: 16px; }

.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

.sheet-iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Content sheet (text + actions, e.g. "Try our Guest Journey") */
.sheet-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5) var(--space-16);
}

.trynow-head { display: flex; flex-direction: column; gap: var(--space-1); }

.trynow-title {
  font-weight: 500;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.1px;
  color: var(--color-fg);
}

.trynow-lede { font-size: 17px; line-height: 26px; color: var(--color-fg); }

.trynow-actions { display: flex; flex-direction: column; gap: var(--space-2); }

.trynow-reason {
  margin-top: var(--space-2);
  font-size: 12px;
  line-height: 16px;
  color: var(--color-muted);
}

/* Secondary button (full-width, label + leading icon) */
.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3) var(--space-8);
  border: 0;
  border-radius: var(--radius-2);
  background: var(--color-secondary);
  color: var(--color-secondary-fg);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.btn-secondary:hover { background: var(--color-secondary-hover); }

@media (prefers-reduced-motion: reduce) {
  .sheet { transition: none; }
}

/* ---- Small-viewport guard ------------------------------------------------ */
@media (max-width: 420px) {
  .page { width: 100%; }
}

/* ==========================================================================
   Cookie consent banner (ported from innspire.com)
   ========================================================================== */
.cc-banner {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 60;
}

@media (min-width: 480px) {
  .cc-banner {
    left: auto;
    width: 380px;
  }
}

.cc-card {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-bg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.cc-title {
  font-weight: 600;
  font-size: 17px;
  line-height: 26px;
  color: var(--color-fg);
}

.cc-text {
  margin-top: var(--space-2);
  font-size: 14px;
  line-height: 20px;
  color: var(--color-muted);
}

.cc-link {
  font-weight: 500;
  color: var(--color-fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-link:hover { opacity: 0.7; }

.cc-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.cc-btn {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 0;
  border-radius: var(--radius-2);
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  transition: background-color 120ms ease, opacity 120ms ease;
}
.cc-btn--secondary { background: var(--color-secondary); color: var(--color-secondary-fg); }
.cc-btn--secondary:hover { background: var(--color-secondary-hover); }
.cc-btn--primary { background: var(--color-fg); color: #ffffff; }
.cc-btn--primary:hover { opacity: 0.88; }

