/* QuantyGPT public first page (index.html, Debu 2 Dec 2026): one headline, one line, one ask box, voice call and
   video call, a row of job chips; one short "What your assistant can do" section. Light first (ground #ffffff, clay accent), dark when the
   phone is dark or the theme button says so. Phone first (390 px), then laptop. Every box 2px corners. */
.qg-home {
  --bg: #ffffff; --surface: #f3efe8; --surface-raised: #f3efe8; --text: #1f1d1a; --muted: #6b655c;
  --mint: #a8492b; --line: #dcd4c6; --edge: #6b655c; --on-accent: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .qg-home {
    --bg: #1c1b19; --surface: #2a2723; --surface-raised: #2a2723; --text: #f2ede4; --muted: #b5ac9f;
    --mint: #e39573; --line: #3f3a34; --edge: #8c8376; --on-accent: #1c1b19;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] .qg-home {
  --bg: #1c1b19; --surface: #2a2723; --surface-raised: #2a2723; --text: #f2ede4; --muted: #b5ac9f;
  --mint: #e39573; --line: #3f3a34; --edge: #8c8376; --on-accent: #1c1b19;
  color-scheme: dark;
}

/* The shared header and footer in this page's colours */
.qg-home .site-header, .qg-home .site-footer { border-color: var(--line); }
.qg-home .nav-signin { border-color: var(--edge); }
.qg-home .nav-signin:hover { background: var(--surface); border-color: var(--mint); }
.qg-home .brand img { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qg-home .brand img { filter: none; } }
:root[data-theme="dark"] .qg-home .brand img { filter: none; }
.qg-home ::selection { color: var(--on-accent); background: var(--mint); }
.qg-home .beta { color: var(--mint); background: transparent; border-color: currentColor; }
.qg-home .home-main { background: none; padding: 0 1.125rem 2rem; }

/* First screen (Debu, 2 Dec 2026, 9:37 AM IST): a top bar, one short greeting in the middle of an otherwise empty
   screen, and one ask bar pinned at the bottom. Nothing else; everything else is below the fold or in the menu. */
.qg-home .header-inner { justify-content: flex-start; gap: .35rem; }
.qg-home .brand { margin-right: auto; }
.qh-menu {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; margin-left: -.6rem; border-radius: 2px; color: var(--text);
}
.qh-menu:hover { background: var(--surface); }
.qh-menu svg { width: 1.3rem; height: 1.3rem; }
.qg-home .site-header nav { gap: .5rem; }
.qg-home .theme-button { min-width: 36px; min-height: 36px; font-size: .8rem; }
.qg-home .nav-about { display: none; }  /* the About page stays in the footer and the menu's no-JavaScript list */

.qh-hero {
  display: flex; flex-direction: column; justify-content: center;
  max-width: 40rem; margin: 0 auto; padding: 1.5rem 0;
  /* the screen less the header (4.2rem + its line) and the ask bar (4rem): the greeting sits in the free space */
  min-height: calc(100vh - 4.2rem - 1px - 4rem); min-height: calc(100svh - 4.2rem - 1px - 4rem - env(safe-area-inset-bottom));
  text-align: center;
}
.qg-home .qh-hero .brand-kicker { margin: 0 auto .7rem; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
.qg-home .qh-hero .brand-kicker sup { position: relative; top: -.1em; }
.qg-home .qh-hero .brand-kicker sup a {  /* the footnote mark: a 44 px target that takes no room */
  display: inline-block; min-width: 44px; min-height: 44px; margin: -20px -17px -20px -16px;
  line-height: 44px; text-align: center; vertical-align: middle;
}
.qh-hero h1 {
  margin: 0 auto;
  font-size: clamp(1.625rem, 7vw, 2.25rem); line-height: 1.15; font-weight: 600; letter-spacing: -.03em;
  text-wrap: balance;
}
.qh-hero h1 span { display: block; color: var(--mint); }
.qh-hindi { margin: .8rem auto 0; color: var(--muted); font-size: .875rem; font-weight: 400; line-height: 1.5; text-wrap: balance; }

/* The ask bar: pinned at the bottom above the safe area; the page keeps room for it, so it never covers text */
.qg-home { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
.qh-ask {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: flex-end; gap: .15rem;
  max-width: 40rem; margin: 0 auto; padding: .6rem 1.125rem calc(.6rem + env(safe-area-inset-bottom));
  background: var(--bg);
}
.qh-ask::before {  /* the field's frame: one quiet 2px box around the text and the three buttons */
  content: ""; position: absolute; inset: .6rem 1.125rem calc(.6rem + env(safe-area-inset-bottom));
  border: 1px solid var(--edge); border-radius: 2px; pointer-events: none;
}
.qh-ask:focus-within::before { border-color: var(--mint); }
.qh-ask textarea {
  flex: 1; min-width: 0; min-height: 44px; max-height: 8rem; padding: .7rem .2rem .7rem .75rem; border: 0; outline: none;
  resize: none; background: transparent; color: var(--text); font-size: .9375rem; line-height: 1.4;
}
.qh-ask textarea::placeholder { color: var(--muted); opacity: 1; }
.qh-icon, .qh-ask-button {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 2px; color: var(--muted);
}
.qh-icon svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.qh-icon:hover { color: var(--text); background: var(--surface); }
.qh-ask-button {
  padding: 0; cursor: pointer; border: 1px solid var(--mint); background: var(--mint); color: var(--on-accent);
}
.qh-ask-button svg { width: 1.1rem; height: 1.1rem; }
.qh-ask-button:hover { filter: brightness(1.08); }
.qh-ask-button:disabled { cursor: default; }
.qg-home .free-line { margin: .5rem 0 0; color: var(--muted); font-size: .8125rem; text-align: left; }

/* What your assistant can do: only the services that run today, in groups (the list without JavaScript) */
.qh-can { max-width: 40rem; margin: 1.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.qh-can h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.qh-can-lead, .qh-can-memory { margin: .3rem 0 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.qh-can-memory .beta { margin-left: .2rem; }
.qh-can:focus { outline: none; }
.qh-groups { margin-top: 1.1rem; }
.qh-group { margin: 0 0 .9rem; }
.qh-group h3 {
  margin: 0 0 .15rem; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.qh-group ul { list-style: none; margin: 0; padding: 0; }
.qh-group li[hidden] { display: none; }
.qh-group a {
  display: flex; flex-direction: column; justify-content: center; gap: .05rem; min-height: 44px; padding: .4rem .6rem;
  margin: 0 -.6rem; border-radius: 2px; color: var(--text); text-decoration: none;
}
.qh-group a:hover { background: var(--surface); }
.qh-group strong { font-size: .9375rem; font-weight: 600; }
.qh-group a > span { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.qh-group .beta { margin-left: .3rem; }

/* The phone sheet ("More"): full screen, its own scroll, the page behind locked */
.qh-locked, .qh-locked body { overflow: hidden; }
.qh-sheet {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); color: var(--text); padding: 0 1.125rem 2rem;
}
.qh-sheet[hidden] { display: none; }
.qh-sheet-head, .qh-side-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.qh-sheet-head {
  position: sticky; top: 0; z-index: 1; margin: 0 -1.125rem .8rem; padding: .6rem 1.125rem;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.qh-sheet .qh-groups, .qh-side .qh-groups { margin-top: 0; }
.qh-sheet-head h2, .qh-side-head h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.qh-close {
  min-width: 44px; min-height: 44px; padding: 0; cursor: pointer; border: 1px solid var(--line); border-radius: 2px;
  background: var(--bg); color: var(--text); font-size: 1.25rem; line-height: 1;
}
.qh-close:hover { border-color: var(--mint); }

/* The laptop side panel: only from 1024 px, slim, open by default; the page shifts right and stays centred */
.qh-side { display: none; }
@media (min-width: 64rem) {
  .qh-has-side.qh-side-open .qh-side {
    display: block; position: fixed; left: 0; bottom: 0; top: calc(4.6rem + 1px); z-index: 20; width: 220px;
    overflow-y: auto; padding: .8rem .9rem 1.5rem; background: var(--surface); border-right: 1px solid var(--line);
  }
  .qh-side-head { margin-bottom: .6rem; }
  .qh-side .qh-group { margin-bottom: .7rem; }
  .qh-side .qh-group a { margin: 0 -.5rem; padding: .3rem .5rem; }
  .qh-side .qh-group a > span { display: none; }
  .qh-side .qh-group strong { font-size: .875rem; font-weight: 550; }
  .qh-side .qh-group a:hover { background: var(--bg); }
  .qh-has-side.qh-side-open .home-main, .qh-has-side.qh-side-open .site-footer { width: auto; margin-left: 220px; }
  .qh-has-side .qh-can { display: none; }  /* the panel shows the list; the lower copy is for no JavaScript */
}

.qh-notes { max-width: 40rem; margin: 1.5rem auto 0; color: var(--muted); font-size: .8125rem; line-height: 1.55; }
.qh-notes p { margin: 0 0 .35rem; }
.qg-home .footer-inner a { color: var(--text); }

@media (min-width: 38rem) {
  .qg-home .home-main { padding-inline: 2rem; }
  .qh-hero { min-height: calc(100vh - 4.6rem - 1px - 4rem); min-height: calc(100svh - 4.6rem - 1px - 4rem - env(safe-area-inset-bottom)); }
}
