/* ==========================================================================
   G Apps · Site Principal — tokens e base
   Escuro: azul-marinho profundo com luzes azul, violeta e rosa.
   Claro: cinza azulado suave (sem branco estourado).
   Cada app tem a sua cor: G Delivery = azul · G Post = violeta → rosa.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}

:root {
  --font: "Manrope", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.48, 0.64, 1);
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
  --wrap: 1200px;
  --gutter: 18px;
  --header-h: 66px;
  --secao: clamp(84px, 11vw, 140px);
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 74px; }
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #070912;
  --page-2: #0b0e1c;
  --surface: rgba(19, 23, 43, 0.72);
  --surface-2: rgba(15, 19, 37, 0.86);
  --surface-solid: #10142a;
  --raised: #1b2142;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --input-bg: rgba(6, 8, 18, 0.7);
  --header-bg: rgba(7, 9, 18, 0.7);
  --menu-bg: rgba(16, 20, 40, 0.96);
  --modal-bg: linear-gradient(160deg, #151a36 0%, #0b0e1d 100%);

  --edge: rgba(160, 175, 255, 0.11);
  --edge-strong: rgba(160, 175, 255, 0.22);
  --hl: rgba(255, 255, 255, 0.08);

  --text: #f4f6ff;
  --text-soft: #cbd1ec;
  --muted: #959ec3;
  --quiet: #687196;

  /* Família G (botões principais) */
  --brand-grad: linear-gradient(110deg, #3b82ff 0%, #7c5cff 50%, #d946ef 100%);
  --text-grad: linear-gradient(100deg, #a9c6ff 0%, #b69bff 45%, #f5a8f0 100%);

  /* G Delivery (azul) */
  --accent: #4b8bff;
  --accent-2: #2563eb;
  --accent-bright: #9cc0ff;
  --accent-soft: rgba(75, 139, 255, 0.15);
  --accent-soft-2: rgba(75, 139, 255, 0.28);
  --accent-border: rgba(110, 160, 255, 0.42);
  --accent-grad: linear-gradient(135deg, #4b8bff 0%, #2f6cf2 55%, #2453d6 100%);
  --on-accent: #ffffff;

  /* G Post (violeta → rosa) */
  --post: #b26bff;
  --post-2: #ec4899;
  --post-bright: #ddb6ff;
  --post-soft: rgba(178, 107, 255, 0.15);
  --post-soft-2: rgba(178, 107, 255, 0.28);
  --post-border: rgba(200, 140, 255, 0.42);
  --post-grad: linear-gradient(135deg, #8b5cf6 0%, #c026d3 55%, #ec4899 100%);

  --cyan: #46d3ef;
  --cyan-soft: rgba(70, 211, 239, 0.14);
  --amber: #f6bb68;
  --amber-soft: rgba(246, 187, 104, 0.14);
  --amber-border: rgba(246, 187, 104, 0.38);
  --red: #ff8473;
  --red-soft: rgba(255, 132, 115, 0.14);
  --ok: #46d3ef;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 16px -4px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 20px 44px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.3), 0 44px 100px -24px rgba(0, 0, 0, 0.8);
  --glow-accent: 0 14px 36px -8px rgba(59, 130, 255, 0.6);
  --glow-post: 0 14px 36px -8px rgba(192, 38, 211, 0.55);
  --glow-brand: 0 14px 40px -10px rgba(124, 92, 255, 0.65);
  --spot: rgba(124, 92, 255, 0.14);

  --orb-a: rgba(59, 130, 255, 0.34);
  --orb-b: rgba(139, 92, 246, 0.28);
  --orb-c: rgba(236, 72, 153, 0.18);
  --grid-line: rgba(160, 175, 255, 0.05);
  --grain-opacity: 0.06;
  --backdrop: rgba(3, 4, 10, 0.74);
  --google-bg: #f5f6fb;
  --google-text: #1f1f1f;
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #e9ecf5;
  --page-2: #e1e5f0;
  --surface: rgba(248, 249, 253, 0.78);
  --surface-2: rgba(243, 245, 251, 0.92);
  --surface-solid: #f5f6fb;
  --raised: #d9deeb;
  --glass: rgba(25, 35, 80, 0.045);
  --glass-hover: rgba(25, 35, 80, 0.085);
  --input-bg: rgba(255, 255, 255, 0.85);
  --header-bg: rgba(233, 236, 245, 0.76);
  --menu-bg: rgba(245, 246, 251, 0.97);
  --modal-bg: linear-gradient(160deg, #f6f7fc 0%, #e6e9f3 100%);

  --edge: rgba(30, 40, 90, 0.1);
  --edge-strong: rgba(30, 40, 90, 0.2);
  --hl: rgba(255, 255, 255, 0.8);

  --text: #0e1328;
  --text-soft: #2a3150;
  --muted: #535c7c;
  --quiet: #737c9b;

  --brand-grad: linear-gradient(110deg, #2563eb 0%, #6d4aff 50%, #c026d3 100%);
  --text-grad: linear-gradient(100deg, #2155d8 0%, #6d3ff0 50%, #c0269e 100%);

  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-bright: #1d4fd8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --accent-soft-2: rgba(37, 99, 235, 0.2);
  --accent-border: rgba(37, 99, 235, 0.34);
  --accent-grad: linear-gradient(135deg, #3b7cf5 0%, #2563eb 55%, #1d4ed8 100%);
  --on-accent: #ffffff;

  --post: #9333ea;
  --post-2: #db2777;
  --post-bright: #8b2fd8;
  --post-soft: rgba(147, 51, 234, 0.1);
  --post-soft-2: rgba(147, 51, 234, 0.2);
  --post-border: rgba(147, 51, 234, 0.32);
  --post-grad: linear-gradient(135deg, #7c3aed 0%, #b62bc9 55%, #db2777 100%);

  --cyan: #0a86a8;
  --cyan-soft: rgba(10, 134, 168, 0.11);
  --amber: #a85f00;
  --amber-soft: rgba(184, 106, 0, 0.12);
  --amber-border: rgba(184, 106, 0, 0.34);
  --red: #c93434;
  --red-soft: rgba(201, 52, 52, 0.1);
  --ok: #0a86a8;

  --shadow-sm: 0 1px 2px rgba(20, 30, 70, 0.08), 0 6px 16px -6px rgba(20, 30, 70, 0.16);
  --shadow-md: 0 2px 4px rgba(20, 30, 70, 0.06), 0 20px 44px -14px rgba(20, 30, 70, 0.26);
  --shadow-lg: 0 4px 10px rgba(20, 30, 70, 0.08), 0 44px 100px -28px rgba(20, 30, 70, 0.38);
  --glow-accent: 0 12px 30px -8px rgba(37, 99, 235, 0.5);
  --glow-post: 0 12px 30px -8px rgba(147, 51, 234, 0.45);
  --glow-brand: 0 12px 32px -10px rgba(109, 74, 255, 0.55);
  --spot: rgba(109, 74, 255, 0.08);

  --orb-a: rgba(59, 130, 255, 0.22);
  --orb-b: rgba(139, 92, 246, 0.18);
  --orb-c: rgba(236, 72, 153, 0.12);
  --grid-line: rgba(30, 40, 90, 0.06);
  --grain-opacity: 0.04;
  --backdrop: rgba(25, 30, 55, 0.45);
  --google-bg: #ffffff;
  --google-text: #1f1f1f;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--page);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.3s, color 0.3s;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent-soft-2); color: var(--text); }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ic { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--accent-grad); color: var(--on-accent); font-weight: 700;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- Botões */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s, filter 0.25s;
}
.btn .ic { transition: transform 0.35s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn-primary,
.btn-delivery,
.btn-post { color: #fff; }
.btn-primary { background: var(--brand-grad); box-shadow: var(--glow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-delivery { background: var(--accent-grad); box-shadow: var(--glow-accent), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-post { background: var(--post-grad); box-shadow: var(--glow-post), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary::after,
.btn-delivery::after,
.btn-post::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.32) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease);
}
.btn-primary:hover::after,
.btn-delivery:hover::after,
.btn-post:hover::after { transform: translateX(130%); }
.btn-primary:hover, .btn-delivery:hover, .btn-post:hover { filter: brightness(1.08); }
.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--edge-strong);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: var(--glass-hover); border-color: var(--accent-border); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-bloco { width: 100%; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; filter: none; }
.btn:disabled .ic { transform: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--edge);
  background: var(--glass);
  color: var(--text-soft);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.icon-btn:hover { background: var(--glass-hover); color: var(--text); border-color: var(--edge-strong); }
.icon-btn .ic { width: 19px; height: 19px; }

/* ---------------------------------------------------------------- Textos */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--edge-strong);
  background: var(--glass);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-grad);
}
.eyebrow-app::before { display: none; }
.eyebrow-app img { width: 20px; height: 20px; border-radius: 6px; }
.eyebrow-delivery { color: var(--accent-bright); border-color: var(--accent-border); background: var(--accent-soft); }
.eyebrow-post { color: var(--post-bright); border-color: var(--post-border); background: var(--post-soft); }
.eyebrow-amber { color: var(--amber); border-color: var(--amber-border); background: var(--amber-soft); }
.eyebrow-amber::before { background: currentColor; }

h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.05; font-weight: 800; }
h1 em, h2 em, h3 em, .serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-right: 0.06em;
  background: var(--em-grad, var(--text-grad));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.t-delivery { color: var(--accent-bright); }
.t-post { color: var(--post-bright); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--edge-strong);
  color: var(--text-soft);
  background: var(--glass);
  white-space: nowrap;
}
.chip-accent { color: var(--accent-bright); border-color: var(--accent-border); background: var(--accent-soft); }
.chip-post { color: var(--post-bright); border-color: var(--post-border); background: var(--post-soft); }
.chip-amber { color: var(--amber); border-color: var(--amber-border); background: var(--amber-soft); }
.chip-cyan { color: var(--cyan); border-color: var(--cyan-soft); background: var(--cyan-soft); }
.chip-red { color: var(--red); border-color: var(--red-soft); background: var(--red-soft); }
.chip .g-logo { width: 13px; height: 13px; }
