/* ==================================================================
   Doegode presenter pages — brand stylesheet (mobile-first)
   Matches doegode.com: Liquid Glass surfaces, Overpass + Roboto,
   navy / blue / yellow palette. Base rules = phones; min-width
   breakpoints enhance tablet (768px) and desktop (1100px).
   ================================================================== */

:root {
  --navy: #0e2b3e;
  --navy-2: #123650;
  --blue: #1e7bc0;
  --blue-light: #3b9be0;
  --yellow: #fed700;
  --ink: #1d2a38;
  --muted: #4a5a6a;
  --bg: #edf3f9;

  --glass: rgba(255, 255, 255, .62);
  --glass-edge: rgba(255, 255, 255, .75);
  --blur: saturate(170%) blur(14px);
  --sheen: linear-gradient(135deg, rgba(255,255,255,.65) 0%, rgba(255,255,255,.12) 38%, rgba(255,255,255,0) 60%);
  --shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 -1px 0 rgba(255,255,255,.35) inset,
            0 18px 40px -22px rgba(14,43,62,.28), 0 2px 6px rgba(14,43,62,.06);

  --r-xl: 24px;
  --gutter: 16px;
  --font-head: "Overpass", "Roboto", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(700px 500px at 0% 8%, rgba(30,123,192,.22), transparent 60%),
    radial-gradient(600px 500px at 100% 40%, rgba(64,196,222,.20), transparent 62%),
    radial-gradient(700px 600px at 40% 98%, rgba(254,215,0,.12), transparent 60%);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
.tm { font-size: .55em; vertical-align: super; line-height: 0; margin-left: .03em; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- Buttons (pill, 48px tap targets) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 15px/1 var(--font-body); letter-spacing: .01em;
  text-decoration: none; text-align: center; border: 0; cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 13px; text-transform: uppercase; }
.btn--yellow {
  color: #1d2a38;
  background: linear-gradient(180deg, #ffe866 0%, var(--yellow) 55%, #f2c800 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.85) inset, 0 -1px 0 rgba(0,0,0,.08) inset, 0 8px 20px -8px rgba(254,215,0,.55);
}
.btn--blue {
  color: #fff;
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue) 60%, #17689f 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 10px 22px -10px rgba(30,123,192,.6);
}
.btn--glass {
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.4);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset;
}
.btn--outline { color: var(--blue); background: rgba(255,255,255,.7); border: 1px solid rgba(30,123,192,.35); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- Floating glass nav ---------- */
.nav {
  position: fixed; z-index: 50; top: calc(10px + env(safe-area-inset-top)); left: 50%;
  transform: translateX(-50%); width: calc(100% - 20px); max-width: 1140px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 6px 6px 18px; border-radius: 999px;
  background: rgba(14,43,62,.48); border: 1px solid rgba(255,255,255,.26);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 14px 30px -16px rgba(0,0,0,.5);
}
.nav__brand img { width: 120px; height: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 82svh; display: flex; align-items: flex-end; color: #fff;
  background: var(--navy) url("/brand/hero-900.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,43,62,.72) 0%, rgba(14,43,62,.40) 32%, rgba(14,43,62,.70) 62%, rgba(14,43,62,.95) 100%);
}
.hero__inner { position: relative; width: 100%; max-width: 1140px; margin: 0 auto; padding: 120px 20px 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font: 700 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--yellow); }
.eyebrow span { color: #fff; text-transform: none; letter-spacing: .06em; }
.eyebrow--dark { color: var(--blue); }
.hero__title {
  margin: 0; font: 900 clamp(40px, 11vw, 48px)/1.02 var(--font-head); letter-spacing: -.015em;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero__sub {
  margin: 0; font: 500 clamp(19px, 5.2vw, 22px)/1.3 var(--font-body); color: rgba(255,255,255,.94);
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero__sub::before { content: ""; display: block; width: 64px; height: 5px; border-radius: 3px; background: var(--yellow); margin: 18px 0 14px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }

/* ---------- Glass cards ---------- */
.main { max-width: 1140px; margin: 0 auto; padding: 24px var(--gutter) 40px; display: grid; gap: 20px; }
.card {
  position: relative; border-radius: var(--r-xl); padding: 16px;
  background: var(--sheen), var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow);
}
.card--video { margin-top: -40px; }
.card__head { display: flex; align-items: center; gap: 12px; margin: 4px 4px 14px; }
.card__logo { width: 120px; height: auto; flex: 0 0 auto; }
.card__label { display: flex; flex-direction: column; gap: 5px; padding-left: 12px; border-left: 2px solid rgba(30,123,192,.28); }
.card__name { margin: 0; font: 900 20px/1 var(--font-head); color: var(--navy); letter-spacing: -.01em; }
.card__name .tm { color: var(--blue); }
.card__eyebrow { display: flex; align-items: center; gap: 8px; font: 700 10px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.card__eyebrow::before { content: ""; width: 16px; height: 3px; border-radius: 2px; background: var(--yellow); flex: 0 0 auto; }
.card__note { margin: 10px 4px 0; font-size: 13px; color: var(--muted); }

/* ---------- Video player ---------- */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--navy); box-shadow: 0 20px 50px -24px rgba(14,43,62,.6); }
.player__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.player.is-playing .player__play { display: none; }
.player__play:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }

/* ---------- CTA ---------- */
.card--cta { padding: 24px 20px; }
.cta__title { margin: 0 0 10px; font: 900 26px/1.15 var(--font-head); color: var(--navy); letter-spacing: -.01em; }
.cta__text { margin: 0 0 20px; color: var(--muted); }
.cta__actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Footer (dark glass) ---------- */
.footer { background: linear-gradient(180deg, var(--navy-2) 0%, #0b2232 100%); color: #fff; padding: 32px var(--gutter) calc(20px + env(safe-area-inset-bottom)); text-align: center; }
.footer__card {
  max-width: 1092px; margin: 0 auto; padding: 24px 20px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.03) 50%), rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset;
}
.footer__card img { width: 150px; margin: 0 auto 12px; }
.footer__tag { margin: 0 0 12px; font-weight: 500; color: rgba(255,255,255,.9); }
.footer__links { margin: 0; display: flex; justify-content: center; align-items: center; gap: 4px; flex-wrap: wrap; }
.footer__links a { color: #fff; text-decoration: none; padding: 11px 6px; }
.footer__links a:hover { text-decoration: underline; }
.footer__links span { color: rgba(255,255,255,.4); }
.footer__legal { margin: 18px 0 0; font-size: 13px; color: rgba(255,255,255,.7); }

/* ================= Tablet (>= 768px) ================= */
@media (min-width: 768px) {
  :root { --blur: saturate(180%) blur(22px); --r-xl: 28px; --gutter: 24px; }
  .nav { top: calc(16px + env(safe-area-inset-top)); width: calc(100% - 32px); padding: 10px 10px 10px 24px; }
  .nav__brand img { width: 160px; }
  .hero { min-height: min(78vh, 760px); background-image: url("/brand/hero-1920.jpg"); }
  .hero__inner { padding: 140px 24px 72px; }
  .eyebrow { font-size: 13px; }
  .hero__title { font-size: clamp(56px, 7vw, 68px); }
  .hero__sub { font-size: clamp(24px, 3vw, 28px); }
  .hero__sub::before { width: 76px; margin: 22px 0 18px; }
  .hero__actions, .cta__actions { flex-direction: row; flex-wrap: wrap; }
  .card { padding: 24px; }
  .card--video { margin-top: -64px; }
  .card__logo { width: 160px; }
  .card__label { padding-left: 16px; }
  .card__name { font-size: 24px; }
  .card__eyebrow { font-size: 11.5px; letter-spacing: .16em; }
  .card--cta { padding: 36px 40px; }
  .cta__title { font-size: 32px; }
  .footer__card { padding: 32px; }
}

/* ================= Desktop (>= 1100px) ================= */
@media (min-width: 1100px) {
  :root { --blur: saturate(180%) blur(24px); --r-xl: 32px; }
  body { background-attachment: fixed; }
  .hero__title { font-size: 76px; }
  .hero__sub { font-size: 32px; }
  .main { gap: 28px; padding-bottom: 64px; }
  .card { padding: 32px; }
  .card--cta { padding: 44px 48px; }
}

/* ---------- Hover only where a mouse exists ---------- */
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
}

/* ---------- Accessibility & fallbacks ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card { background: rgba(255,255,255,.95); }
  .nav { background: rgba(14,43,62,.92); }
}
@media (prefers-reduced-transparency: reduce) {
  .card { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav { background: rgba(14,43,62,.95); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ==================================================================
   Shared-template additions (all go.doegode.com pages)
   ================================================================== */
/* Compact hero for thank-you, 404 and preview pages */
.hero--compact { min-height: 0; }
.hero--compact .hero__inner { padding: 112px 20px 72px; }
@media (min-width: 768px) { .hero--compact { min-height: 0; } .hero--compact .hero__inner { padding: 140px 24px 104px; } }
.hero__lead { margin: 18px 0 0; max-width: 640px; font-size: 17px; color: rgba(255,255,255,.9); text-shadow: 0 2px 12px rgba(0,0,0,.35); }
@media (min-width: 768px) { .hero__lead { font-size: 19px; } }

/* Portrait (phone-recorded) video */
.player--portrait { aspect-ratio: 410 / 816; max-width: 340px; margin: 0 auto; }
@media (min-width: 768px) { .player--portrait { max-width: 380px; } }

/* Play badge for videos without a branded poster */
.player--icon .player__play::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%);
  border-radius: 50%; background: linear-gradient(180deg, #ffe866 0%, var(--yellow) 55%, #f2c800 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.85) inset, 0 12px 30px -8px rgba(0,0,0,.55);
}
.player--icon .player__play::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-36%, -50%);
  border-style: solid; border-width: 14px 0 14px 23px; border-color: transparent transparent transparent var(--navy);
}

/* Link-button card (root page) and centered message card */
.card__title { margin: 4px 0 10px; font: 900 24px/1.15 var(--font-head); color: var(--navy); letter-spacing: -.01em; }
@media (min-width: 768px) { .card__title { font-size: 30px; } }
.card--message { padding: 28px 22px; }
.card--message p { margin: 0 0 18px; font-size: 17px; }
@media (min-width: 768px) { .card--message { padding: 40px 48px; } }

/* Short pages: keep the footer pinned to the bottom of the viewport */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body > .footer { margin-top: auto; }
.card .eyebrow { align-items: flex-start; }
.card .eyebrow::before { margin-top: .35em; flex: 0 0 auto; }
body:not(:has(main)) > .hero { flex: 1 0 auto; }

/* ==================================================================
   Light-blue brand hero (team boardroom photo) — opt in with .hero--team
   ================================================================== */
.hero--team {
  background-color: var(--blue);
  background-image: url("/brand/hero-team-900.jpg");
  background-position: 80% 0;
}
.hero--team::before {
  background:
    linear-gradient(180deg, rgba(30,123,192,.28) 0%, rgba(30,123,192,.55) 34%, rgba(23,104,166,.90) 58%, rgba(14,60,100,.97) 100%);
}
.hero--team .hero__title, .hero--team .hero__sub, .hero--team .hero__lead { text-shadow: 0 2px 16px rgba(8,40,70,.45); }
@media (min-width: 768px) {
  .hero--team { background-image: url("/brand/hero-team-1535.jpg"); background-position: center 30%; }
  .hero--team::before {
    background:
      linear-gradient(90deg, rgba(14,60,100,.94) 0%, rgba(23,104,166,.86) 36%, rgba(59,155,224,.40) 66%, rgba(59,155,224,.10) 100%),
      linear-gradient(180deg, rgba(14,43,62,0) 70%, rgba(14,43,62,.45) 100%);
  }
  .hero--team .hero__inner > * { max-width: 620px; }
}

/* ==================================================================
   Contact card (founder): photo · name/title · email/phone · QR
   ================================================================== */
.contact { display: grid; gap: 20px; justify-items: center; text-align: center; padding: 26px 20px; }
.contact__photo {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover;
  border: 4px solid #fff; box-shadow: 0 0 0 2px var(--blue), 0 14px 30px -14px rgba(14,43,62,.55);
}
.contact__name { margin: 0; font: 900 28px/1.05 var(--font-head); color: var(--blue); letter-spacing: -.01em; }
.contact__role { margin: 6px 0 0; font: 700 16px/1.2 var(--font-body); color: var(--navy); }
.contact__links { display: grid; gap: 10px; width: 100%; margin-top: 16px; }
.contact__link {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 16px;
  border-radius: 14px; background: rgba(255,255,255,.75); border: 1px solid rgba(30,123,192,.22);
  color: var(--ink); font-weight: 500; text-decoration: none;
}
.contact__link svg { width: 18px; height: 18px; flex: 0 0 auto; fill: var(--blue); }
.contact__link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.contact__book { width: 100%; }
.contact__qr { display: grid; gap: 10px; justify-items: center; }
.contact__qr img { width: 168px; height: 168px; padding: 10px; background: #fff; border-radius: 16px; box-shadow: 0 10px 26px -14px rgba(14,43,62,.5); }
.contact__qr p { margin: 0; font: 700 11px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
@media (hover: hover) { .contact__link:hover { border-color: var(--blue); } }
@media (min-width: 900px) {
  .contact { grid-template-columns: auto 1fr auto; align-items: center; justify-items: start; text-align: left; gap: 36px; padding: 36px 44px; }
  .contact__photo { width: 140px; height: 140px; }
  .contact__name { font-size: 36px; }
  .contact__links { grid-template-columns: 1fr 1fr; max-width: 520px; }
  .contact__link { justify-content: flex-start; }
  .contact__book { width: auto; }
  .contact__qr { padding-left: 36px; border-left: 1px solid rgba(30,123,192,.22); }
}

/* Phones: photo band on top (wall branding visible), copy on solid brand blue below */
@media (max-width: 767px) {
  .hero--team { background-size: 230% auto; background-position: 86% 0; background-color: #17689f; }
  .hero--team::before {
    background: linear-gradient(180deg, rgba(30,123,192,.10) 0, rgba(30,123,192,.22) 200px, rgba(23,104,166,.88) 330px, #17689f 420px, #0e3c64 100%);
  }
  .hero--team .hero__inner { padding-top: 300px; }
}

/* Keep brand casing inside uppercase labels (e.g. eGRC, ERSaaS) */
.nocase { text-transform: none; }

/* Contact card: optional third link (Visit doegode.com) spans the full row on desktop */
@media (min-width: 900px) { .contact__link--site { grid-column: 1 / -1; } }

/* Hero eyebrow: one text run; brand word keeps its casing and shows in white */
.eyebrow > .eyebrow__text { color: inherit; letter-spacing: inherit; text-transform: inherit; }
.eyebrow .brandword { color: #fff; }

/* Captions (WebVTT): translucent brand-navy instead of solid black */
.player__video::cue {
  color: #fff;
  background-color: rgba(14, 43, 62, .58);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
}

/* Content column always uses the full available width (body is a flex column for the sticky footer,
   which otherwise lets <main> shrink to its content). Wider column on large desktop monitors. */
.main { width: 100%; }
@media (min-width: 1600px) {
  .main { max-width: 1280px; }
  .hero__inner { max-width: 1280px; }
  .nav { max-width: 1280px; }
  .footer__card { max-width: 1232px; }
  .player--portrait { max-width: 420px; }
}
