/* SmallDocs grid homepage (/home-grid) - left third identity + right two-thirds drill-down squares */
:root {
  --paper:      #F6F4F1;
  --white:      #FFFFFF;
  --ink:        #1B1815;
  --ink-2:      #56504A;
  --ink-3:      #938C82;
  --line:       #E7E2DA;
  --line-2:     #DAD3C9;
  --accent:     #2563EB;
  --accent-ink: #1D4ED8;
  --r-sm:       8px;
  --r:          12px;
  --r-lg:       22px;
  --t-sm:       0.9375rem;
  --t-label:    13px;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --mono:       'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.home-grid {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-anchor: none;
}
::selection { background: color-mix(in srgb, var(--accent) 18%, transparent); }
a { color: inherit; }

.hg-wrap {
  width: 100%;
  max-width: 790px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Top Bar ────────────────────────────────────────────────────────────── */
.hg-topbar .hg-wrap {
  max-width: none;
  padding: 0 16px;
}
.hg-topbar-in {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hg-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid #D4CFC9;
  background: #EDE8E2;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background .12s, border-color .12s;
}
.hg-login:hover { background: #E5DFD7; border-color: #C2BBB0; }
.hg-login:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Main Centered Vertical Layout (Bubbles + Intro above Squares) ─────── */
.hg-main {
  flex: 1;
  padding: 8px 0 64px;
}
.homepage-referral {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  font-size: 14px;
  line-height: 1.5;
}
.homepage-referral p + p { margin-top: 6px; color: var(--ink-3); }

.hg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

/* ── Intro Block: Overlapping Proof Bubbles + Headline + Two Paragraphs ─── */
.hg-left {
  position: static;
  min-width: 0;
}
.hg-stickers {
  --hg-sticker-size: clamp(140px, 20.5vw, 175px);
  --hg-github-size: clamp(88px, 12.8vw, 106px);
  position: relative;
  width: 100%;
  height: calc(var(--hg-sticker-size) + 12px);
  margin-bottom: 18px;
  user-select: none;
  -webkit-user-select: none;
}
.hg-sticker {
  --hg-angle: 6deg;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--hg-sticker-size);
  height: var(--hg-sticker-size);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: clamp(11.5px, 1.12vw, 14px);
  line-height: 1.24;
  text-align: center;
  touch-action: pan-y;
  cursor: grab;
  will-change: transform;
  transform: translate3d(0, 6px, 0) rotate(var(--hg-angle));
  filter: drop-shadow(0 5px 7px rgb(27 24 21 / 13%));
}
.hg-sticker.is-dragging { cursor: grabbing; }
.hg-sticker-copy {
  position: relative;
  display: block;
  padding: 14% 12%;
}
.hg-sticker-copy strong {
  display: block;
  margin: 2px 0 4px;
  font-size: 2em;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.hg-sticker-github {
  --hg-angle: -8deg;
  z-index: 1;
  width: var(--hg-github-size);
  height: var(--hg-github-size);
  background: #F3B35A;
  color: var(--ink);
  font-size: clamp(10.5px, 0.95vw, 12px);
  transform: translate3d(calc(var(--hg-sticker-size) * 0.78), calc(var(--hg-sticker-size) - var(--hg-github-size) + 6px), 0) rotate(var(--hg-angle));
}
.hg-sticker-github .hg-sticker-copy {
  width: 100%;
  padding: 12% 10%;
  line-height: 1.15;
}
.hg-sticker-github strong { margin: 0; line-height: 1; }
.hg-sticker-github-label { display: block; font-size: 1.12em; line-height: 1.15; }
.hg-sticker-github a { text-decoration: underline; text-underline-offset: .15em; }
.hg-sticker-github a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.hg-title {
  font-size: clamp(1.75rem, 1.4rem + 0.9vw, 2.1rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.032em;
  color: var(--ink);
}
.hg-sub {
  margin-top: 14px;
  font-size: clamp(17.5px, 1.2vw + 10px, 20px);
  font-weight: 525;
  line-height: 1.4;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.hg-explainer {
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.62;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ── Right Two-Thirds: Drill-Down Stage ─────────────────────────────────── */
.hg-stage {
  min-width: 0;
  padding-top: 0;
}
.hg-view[hidden] { display: none; }
.hg-view.is-active {
  animation: hgFade .14s ease both;
}
@keyframes hgFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Root Two Big Squares */
.hg-root-squares {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.hg-square {
  min-height: 256px;
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-family: var(--font);
  cursor: pointer;
  position: relative;
  isolation: isolate;
  background: transparent;
  border: none;
}
.hg-square::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  transform-origin: center;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  transition: transform .2s cubic-bezier(.25, 1.25, .5, 1), box-shadow .18s ease, background-color .16s ease;
}
.hg-square:hover::before {
  transform: translateZ(0) scale(1.012, 1.016);
}
.hg-square:active::before {
  transform: translateZ(0) scale(0.996);
}
.hg-square-top,
.hg-square-bottom {
  position: relative;
  z-index: 1;
}
.hg-square:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.hg-square-learn {
  color: var(--ink);
}
.hg-square-learn::before {
  background-color: var(--white);
  box-shadow: 0 2px 6px rgba(27, 24, 21, .05), 0 10px 24px rgba(27, 24, 21, .05);
}
.hg-square-learn:hover::before {
  box-shadow: 0 3px 10px rgba(27, 24, 21, .08), 0 18px 36px rgba(27, 24, 21, .11);
}
.hg-square-learn:active::before {
  box-shadow: 0 1px 3px rgba(27, 24, 21, .07), 0 4px 10px rgba(27, 24, 21, .06);
}

.hg-square-install {
  color: #fff;
}
.hg-square-install::before {
  background-color: var(--accent);
  box-shadow: 0 2px 6px rgba(37, 99, 235, .18), 0 12px 28px rgba(37, 99, 235, .16);
}
.hg-square-install:hover::before {
  background-color: var(--accent-ink);
  box-shadow: 0 4px 12px rgba(29, 78, 216, .26), 0 18px 36px rgba(29, 78, 216, .22);
}
.hg-square-install:active::before {
  box-shadow: 0 1px 4px rgba(29, 78, 216, .20), 0 6px 14px rgba(29, 78, 216, .16);
}

.hg-square-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hg-square-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hg-square-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid transparent;
}
.hg-square-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.hg-square-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hg-square-title {
  font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.65rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.026em;
}
.hg-square-desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 28ch;
}
.hg-square-install .hg-square-desc {
  color: rgba(255, 255, 255, 0.88);
}
.hg-square-arrow {
  margin-top: 8px;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  transform-origin: center;
  transition: color .15s ease, transform .22s cubic-bezier(.34, 1.65, .64, 1);
}
.hg-square:hover .hg-square-arrow {
  transform: scale(1.25);
}
.hg-square:active .hg-square-arrow {
  transform: scale(0.96);
}
.hg-square-learn:hover .hg-square-arrow {
  color: var(--ink);
}
.hg-square-install .hg-square-arrow {
  color: rgba(255, 255, 255, 0.85);
}
.hg-square-install:hover .hg-square-arrow {
  color: #fff;
}

/* Navigation / Back Bar */
.hg-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}
.hg-back,
.hg-install-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(27, 24, 21, .06), 0 3px 10px rgba(27, 24, 21, .04);
  transition: background .12s, box-shadow .12s, transform .12s;
}
.hg-back:hover {
  background: #EFECE7;
}
.hg-install-pill {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, .18);
}
.hg-install-pill:hover {
  background: var(--accent-ink);
}
.hg-back:focus-visible,
.hg-install-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Learn More 2x2 Grid */
.hg-learn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
}
.hg-tile {
  min-height: 204px;
  border-radius: 20px;
  padding: 24px;
  position: relative;
  isolation: isolate;
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: var(--font);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  cursor: pointer;
}
.hg-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  background-color: var(--white);
  box-shadow: 0 1px 3px rgba(27, 24, 21, .04), 0 8px 20px rgba(27, 24, 21, .05);
  transform-origin: center;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  transition: transform .2s cubic-bezier(.25, 1.25, .5, 1), box-shadow .18s ease;
}
.hg-tile:hover::before {
  transform: translateZ(0) scale(1.012, 1.017);
  box-shadow: 0 3px 10px rgba(27, 24, 21, .08), 0 16px 30px rgba(27, 24, 21, .10);
}
.hg-tile:active::before {
  transform: translateZ(0) scale(0.996);
  box-shadow: 0 1px 3px rgba(27, 24, 21, .06), 0 4px 10px rgba(27, 24, 21, .05);
}
.hg-tile-icon,
.hg-tile-body,
.hg-tile-arrow {
  position: relative;
  z-index: 1;
}
.hg-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.hg-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hg-tile-samples .hg-tile-icon { background: #EAF2FE; color: #1D4ED8; }
.hg-tile-video .hg-tile-icon   { background: #FEF3DC; color: #B45309; }
.hg-tile-try .hg-tile-icon     { background: #E6F6EC; color: #15803D; }
.hg-tile-icon-hn {
  background: #FF6600;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.hg-tile-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hg-tile-body strong {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.hg-tile-body span {
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--ink-2);
}
.hg-tile-arrow {
  margin-top: auto;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  transform-origin: center;
  transition: color .15s ease, transform .22s cubic-bezier(.34, 1.65, .64, 1);
}
.hg-tile:hover .hg-tile-arrow {
  color: var(--ink);
  transform: scale(1.25);
}
.hg-tile:active .hg-tile-arrow {
  transform: scale(0.96);
}

/* Spacious Drill-Down Content Card */
.hg-card {
  background: var(--white);
  border: none;
  border-radius: 22px;
  padding: 28px 32px 32px;
  box-shadow: 0 1px 3px rgba(27, 24, 21, .04), 0 10px 28px rgba(27, 24, 21, .05);
}
.hg-card-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hg-card-lead {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.58;
  color: var(--ink-2);
}

/* Samples inside drill-down card */
.learn-items {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sample-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sample-group + .sample-group { margin-top: 14px; }
.sample-group-heading {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}
.learn-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink-2);
  font-size: var(--t-sm);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.learn-item:hover { background: #F0EBE3; color: var(--ink); }
.learn-item[data-sample]:not([data-sample-standard]) { background: var(--sample-background); }
.learn-item[data-sample]:not([data-sample-standard]):hover {
  background: color-mix(in srgb, var(--sample-background) 88%, var(--ink) 12%);
}
.learn-item-prompt { flex: 1; min-width: 0; }
.learn-item-icon { flex-shrink: 0; margin-left: auto; color: var(--ink-3); transition: color .12s; }
.learn-item:hover .learn-item-icon { color: var(--accent); }

/* Video inside drill-down card */
.hg-video-wrap {
  margin-top: 20px;
}
.hg-video-wrap .vid-screen { border-radius: 14px; }
.hg-video-wrap .vid-play { border: 0; width: 100%; font-family: var(--font); }
.hg-video-wrap .vid-play em { font-size: var(--t-sm); }

/* Try Without Installing inside drill-down card (spacious) */
.hg-card-try .sdoc-try-box {
  margin-top: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.hg-card-try .sdoc-try-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.hg-card-try .sdoc-try-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.hg-card-try .sdoc-try-guide-link {
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.hg-card-try .sdoc-try-guide-link:hover { color: var(--ink); }
.hg-card-try .sdoc-try-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 16px 18px;
}
.hg-card-try .sdoc-try-prompt-text {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: anywhere;
}
/* Specificity (0,4,0) beats cli-setup.css's .sdoc-install .sdoc-install-copy */
.hg-card-try .sdoc-try-box .sdoc-install-copy.sdoc-try-copy {
  align-self: flex-start;
  width: auto;
  flex: 0 0 auto;
  height: 40px;
  padding: 0 18px;
  gap: 8px;
  border-radius: 8px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.hg-card-try .sdoc-try-box .sdoc-install-copy.sdoc-try-copy:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}
.hg-card-try .sdoc-try-box .sdoc-install-copy.sdoc-try-copy.done {
  background: #1E8E3E;
  border-color: #1E8E3E;
}
.hg-card-try .sdoc-try-box .sdoc-install-copy.sdoc-try-copy svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.hg-card-try .sdoc-try-footnote {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
}
.hg-card-try .sdoc-install-status {
  margin: 8px 0 0;
  font-size: 13px;
  color: #166534;
}

/* Hacker News Praise inside drill-down card */
.hg-praise-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.hn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 5px;
  background: #FF6600;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}
.praise-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.praise-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 148px;
  background: var(--paper);
  border-radius: var(--r);
  padding: 15px 16px;
}
.praise-card blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.praise-context {
  margin-top: auto;
  align-self: flex-end;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-3);
  text-decoration: none;
  transition: color .12s;
}
.praise-context:hover { color: var(--accent); }

/* Install Now & Talk to Sales Controls */
.homepage-start {
  margin-top: 22px;
  width: 100%;
}
.homepage-google,
.homepage-direct > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: #1f1f1f;
  font-size: var(--t-sm);
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}
.homepage-google:hover { background: #F4F2EE; }
.homepage-direct > summary {
  list-style: none;
  justify-content: space-between;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.homepage-direct > summary::-webkit-details-marker { display: none; }
.homepage-direct > summary:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}
.homepage-direct + .homepage-direct {
  margin-top: 10px;
}
.homepage-direct.homepage-mcp > summary {
  background: #F3B35A;
  border-color: #F3B35A;
  color: var(--ink);
}
.homepage-direct.homepage-mcp > summary:hover {
  background: #E9A443;
  border-color: #E9A443;
}
.homepage-direct[open] > summary .sdoc-install-chevron { transform: rotate(90deg); }
.homepage-direct-panel {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
}
.homepage-google:focus-visible,
.homepage-direct > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.homepage-google-icon { width: 20px; height: 20px; flex-shrink: 0; }
.homepage-signup-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  font-size: var(--t-label);
  color: var(--ink-3);
}
.homepage-signup-divider::before,
.homepage-signup-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.teams-form { display: grid; gap: 14px; margin-top: 18px; }
.homepage-email {
  display: flex;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  margin-top: 0;
}
.tf-field { flex: 1; min-width: 0; }
.tf-field label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--t-label);
  font-weight: 500;
  color: var(--ink-2);
}
.tf-field .tf-opt { font-weight: 400; color: var(--ink-3); }
.tf-field input,
.tf-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s ease;
}
.tf-field input:focus,
.tf-field textarea:focus { border-color: var(--accent); }
.tf-field textarea { resize: vertical; min-height: 96px; }
.homepage-email input {
  height: 100%;
  background: #fff;
  border-radius: var(--r) 0 0 var(--r);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: var(--t-sm);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 11px 18px;
  transition: background .15s ease;
}
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn:disabled { opacity: .6; }
.homepage-email button { border-radius: 0 var(--r) var(--r) 0; }

.homepage-sales-link {
  margin-top: 14px;
  font-size: var(--t-label);
  color: var(--ink-2);
}
.homepage-sales-link a,
.hg-link-btn {
  color: inherit;
  font: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.homepage-sales-link a:hover,
.hg-link-btn:hover { color: var(--ink); }
.tf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tf-actions { display: flex; align-items: center; gap: 14px; }
.tf-status { font-size: var(--t-label); color: var(--ink-2); }
.tf-status.err { color: #B4231F; }
.tf-note { font-size: var(--t-label); color: var(--ink-3); }
.start-status:empty { display: none; }
.start-status { margin-top: 10px; }
.teams-thanks {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--r);
  padding: 20px 22px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.hg-footer { padding: 0 0 36px; }
.hg-footer-inner { padding-top: 28px; border-top: 1px solid var(--line); }
.hg-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.hg-footer-links h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.hg-footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
  list-style: none;
}
.hg-footer-links a {
  color: var(--ink-2);
  font-size: 13px;
  text-decoration: none;
}
.hg-footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hg-footer-company {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hg-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hg-left { position: static; }
  .hg-stage { padding-top: 0; }
  .hg-square { aspect-ratio: auto; min-height: 230px; }
}
@media (max-width: 640px) {
  .hg-wrap { padding: 0 18px; }
  .hg-root-squares,
  .hg-learn-grid,
  .praise-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }
  .hg-square { min-height: 196px; padding: 22px; border-radius: 20px; }
  .hg-tile { min-height: 144px; padding: 20px; border-radius: 18px; }
  .hg-card { padding: 22px 18px 24px; border-radius: 18px; }
  .homepage-google, .homepage-direct > summary { min-height: 48px; }
  .homepage-email { flex-direction: column; }
  .homepage-email input, .homepage-email button { min-height: 48px; }
  .homepage-email input { font-size: 16px; border-radius: var(--r) var(--r) 0 0; }
  .homepage-email .btn { border-radius: 0 0 var(--r) var(--r); }
  .hg-card-try .sdoc-try-box .sdoc-install-copy.sdoc-try-copy { width: 100%; height: 44px; justify-content: center; }
  .hg-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hg-view.is-active { animation: none; }
  .hg-square, .hg-tile, .hg-square::before, .hg-tile::before, .hg-square-arrow, .hg-tile-arrow, .hg-square-arrow svg, .hg-tile-arrow svg { transition: none; }
  .hg-square:hover::before, .hg-tile:hover::before { transform: none; }
}
