/* =============================================================================
   Kriyasya Graphology Analysis — world stylesheet (v2, light-first)
   Built on the platform design tokens (assets/css/tokens.css): --lv-* colours, type,
   spacing, radius, shadows and motion. Follows the platform light/dark switch.
   Visual motif: ink-on-paper — ink blue for handwriting evidence, faint ruled paper
   texture in heroes, violet for actions, gold only for "best value".
   ============================================================================= */

/* ---- World tokens ---------------------------------------------------------- */
.grp-body {
  --g-ink: #2b4c9b;            /* handwriting "ink" (evidence glyphs, highlights) */
  --g-ink-soft: #e9eefb;
  --g-paper: #fffdf8;
  --g-paper-line: rgba(43, 76, 155, .07);
  --g-violet: var(--lv-violet, #7c5cff);
  --g-violet-soft: #efeafe;
  --g-violet-ink: #5a3fe0;     /* AA on white for small violet text */
  --g-gold: var(--lv-gold-2, #e7b84e);
  --g-gold-soft: #fff4d6;
  --g-good: #0f7a59;  --g-good-bg: #e3f6ee;
  --g-grow: #9a5b00;  --g-grow-bg: #fff1d9;
  --g-care: #b42318;  --g-care-bg: #fdecea;
  --g-radius: var(--lv-r-lg, 20px);
  --g-radius-sm: var(--lv-r-md, 14px);
  --g-shadow: var(--lv-sh-sm, 0 2px 8px rgba(26,18,48,.06));
  --g-shadow-md: var(--lv-sh-md, 0 8px 26px rgba(26,18,48,.10));
  --g-maxw: 1180px;
  --g-read: 68ch;

  margin: 0;
  background: var(--lv-bg-grad, var(--lv-bg, #f6f5fb));
  color: var(--lv-ink, #1a1230);
  font-family: var(--lv-font-body, 'Inter', system-ui, sans-serif);
  font-size: 16px;
  line-height: var(--lv-lh, 1.6);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:root[data-theme="dark"] .grp-body {
  --g-ink: #9db6ff; --g-ink-soft: rgba(157,182,255,.12);
  --g-paper: var(--lv-surface, #1a1436); --g-paper-line: rgba(157,182,255,.06);
  --g-violet-soft: rgba(124,92,255,.18); --g-violet-ink: #c4b3ff;
  --g-gold-soft: rgba(231,184,78,.14);
  --g-good: #5fd39a; --g-good-bg: rgba(34,197,94,.14);
  --g-grow: #f1cd6d; --g-grow-bg: rgba(234,179,8,.14);
  --g-care: #ff9a8f; --g-care-bg: rgba(239,68,68,.14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .grp-body {
    --g-ink: #9db6ff; --g-ink-soft: rgba(157,182,255,.12);
    --g-paper: var(--lv-surface, #1a1436); --g-paper-line: rgba(157,182,255,.06);
    --g-violet-soft: rgba(124,92,255,.18); --g-violet-ink: #c4b3ff;
    --g-gold-soft: rgba(231,184,78,.14);
    --g-good: #5fd39a; --g-good-bg: rgba(34,197,94,.14);
    --g-grow: #f1cd6d; --g-grow-bg: rgba(234,179,8,.14);
    --g-care: #ff9a8f; --g-care-bg: rgba(239,68,68,.14);
  }
}

.grp-body *, .grp-body *::before, .grp-body *::after { box-sizing: border-box; }
.grp-body img, .grp-body svg { max-width: 100%; }
.grp-body a { color: var(--g-violet-ink); text-underline-offset: 3px; }
.grp-body a:hover { text-decoration-thickness: 2px; }
.grp-body :focus-visible { outline: none; box-shadow: var(--lv-ring, 0 0 0 3px rgba(124,92,255,.35)); border-radius: 10px; }

/* ---- Layout ---------------------------------------------------------------- */
.grp-wrap { width: 100%; max-width: var(--g-maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.grp-main { padding: 20px 0 72px; }
.grp-section { margin: 72px 0 0; }
.grp-section:first-child { margin-top: 0; }
.grp-section__head { max-width: 720px; margin: 0 0 28px; }
.grp-section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.grp-stack > * + * { margin-top: 16px; }
.grp-grid { display: grid; gap: 20px; }
.grp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grp-grid--3, .grp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grp-grid--2, .grp-grid--3, .grp-grid--4 { grid-template-columns: 1fr; } }

/* ---- Type ------------------------------------------------------------------ */
.grp-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--g-violet-ink); }
.grp-kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .7; }
.grp-kicker--plain::before { display: none; }
.grp-h1, .grp-h2, .grp-h3 { font-family: var(--lv-font-display, 'Cormorant Garamond', Georgia, serif); color: var(--lv-ink); font-weight: 700; letter-spacing: -.01em; margin: 0; }
.grp-h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); line-height: 1.04; }
.grp-h2 { font-size: clamp(1.75rem, 3.4vw, 2.35rem); line-height: 1.12; }
.grp-h3 { font-size: 1.45rem; line-height: 1.2; }
.grp-h4 { font-size: 1rem; font-weight: 700; margin: 0; color: var(--lv-ink); }
.grp-lede { font-size: clamp(1.02rem, 1.6vw, 1.14rem); color: var(--lv-ink-soft); max-width: var(--g-read); margin: 14px 0 0; }
.grp-muted { color: var(--lv-ink-soft); }
.grp-small { font-size: .86rem; color: var(--lv-ink-soft); line-height: 1.55; }
.grp-tiny { font-size: .78rem; color: var(--lv-ink-mute); }
.grp-read { max-width: var(--g-read); }
.grp-num { font-variant-numeric: tabular-nums; }
.grp-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- Buttons & chips ------------------------------------------------------- */
.grp-btn {
  --b-bg: var(--lv-surface); --b-fg: var(--lv-ink); --b-bd: var(--lv-border-2, #d9d4ec);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--lv-r-pill, 999px);
  border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font: 600 .95rem/1.2 var(--lv-font-body); text-decoration: none; cursor: pointer;
  transition: transform var(--lv-dur-1, .14s) var(--lv-ease), box-shadow var(--lv-dur-2, .26s) var(--lv-ease), background var(--lv-dur-2) var(--lv-ease);
}
.grp-body a.grp-btn { color: var(--b-fg); }
.grp-btn:hover { transform: translateY(-1px); box-shadow: var(--g-shadow-md); text-decoration: none; }
.grp-btn:active { transform: translateY(0); }
.grp-btn[disabled], .grp-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.grp-btn--primary { --b-bg: var(--g-violet); --b-fg: #fff; --b-bd: transparent; box-shadow: 0 8px 22px rgba(124,92,255,.28); }
.grp-btn--primary:hover { --b-bg: #6b49f5; }
.grp-btn--gold { --b-bg: var(--lv-grad-gold, #f4cf6b); --b-fg: var(--lv-on-gold, #1a1230); --b-bd: transparent; background: var(--lv-grad-gold, #f4cf6b); box-shadow: var(--lv-sh-gold, 0 10px 30px rgba(231,184,78,.35)); }
.grp-btn--ghost { --b-bg: transparent; }
.grp-btn--quiet { --b-bg: transparent; --b-bd: transparent; padding-left: 10px; padding-right: 10px; }
.grp-btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1.02rem; }
.grp-btn--sm { min-height: 36px; padding: 6px 14px; font-size: .86rem; }
.grp-btn--block { width: 100%; }
.grp-btn .grp-ic { width: 18px; height: 18px; }
.grp-ic { width: 20px; height: 20px; flex: 0 0 auto; }

.grp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--lv-surface-2, #f4f2fb); color: var(--lv-ink-soft); white-space: nowrap; }
.grp-chip--violet { background: var(--g-violet-soft); color: var(--g-violet-ink); }
.grp-chip--gold { background: var(--g-gold-soft); color: #7a5300; }
.grp-chip--good { background: var(--g-good-bg); color: var(--g-good); }
.grp-chip--grow { background: var(--g-grow-bg); color: var(--g-grow); }
.grp-chip--care { background: var(--g-care-bg); color: var(--g-care); }
.grp-score { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 30px; padding: 0 10px; border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--g-violet-soft); color: var(--g-violet-ink); }

/* ---- Cards ----------------------------------------------------------------- */
.grp-card { background: var(--lv-surface, #fff); border: 1px solid var(--lv-border, #e7e3f3); border-radius: var(--g-radius); padding: clamp(18px, 2.6vw, 28px); box-shadow: var(--g-shadow); }
.grp-card--flat { box-shadow: none; }
.grp-card--tint { background: var(--lv-surface-2, #f4f2fb); border-color: transparent; box-shadow: none; }
.grp-card--link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform var(--lv-dur-2) var(--lv-ease), box-shadow var(--lv-dur-2) var(--lv-ease), border-color var(--lv-dur-2) var(--lv-ease); }
.grp-body a.grp-card--link { color: inherit; }
.grp-card--link:hover { transform: translateY(-3px); box-shadow: var(--g-shadow-md); border-color: var(--lv-border-2); text-decoration: none; }
.grp-card__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grp-tile { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--g-ink-soft); color: var(--g-ink); flex: 0 0 auto; }
.grp-tile--violet { background: var(--g-violet-soft); color: var(--g-violet-ink); }
.grp-tile--gold { background: var(--g-gold-soft); color: #8a5a00; }

/* ---- Notices --------------------------------------------------------------- */
.grp-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--g-radius-sm); background: var(--g-gold-soft); color: var(--lv-ink); font-size: .9rem; line-height: 1.6; border: 1px solid rgba(231,184,78,.35); }
.grp-note strong { color: var(--lv-ink); }
.grp-note--info { background: var(--g-ink-soft); border-color: rgba(43,76,155,.16); }
.grp-note--good { background: var(--g-good-bg); border-color: transparent; }
.grp-note .grp-ic { margin-top: 2px; }
.grp-support { padding: 20px 22px; border-radius: var(--g-radius); background: var(--g-care-bg); border: 1px solid rgba(180,35,24,.22); border-left: 5px solid var(--g-care); }
.grp-support h2, .grp-support h3 { margin: 0 0 6px; font-size: 1.1rem; }
.grp-support ul { margin: 10px 0 0; padding-left: 18px; }
.grp-support li { margin: 4px 0; }

/* ---- Landing hero ---------------------------------------------------------- */
.grp-hero { position: relative; overflow: hidden; margin-top: 8px; padding: clamp(28px, 5vw, 64px); border-radius: var(--lv-r-xl, 28px); background: var(--lv-grad-hero, linear-gradient(160deg,#f8f6ff,#eef2ff 55%,#f0fafa)); border: 1px solid var(--lv-border); box-shadow: var(--g-shadow); }
.grp-hero::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, transparent 0 31px, var(--g-paper-line) 31px 32px); pointer-events: none; }
.grp-hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .grp-hero__grid { grid-template-columns: 1fr; } }
.grp-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.grp-trustrow { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--lv-ink-soft); }
.grp-trustrow li { display: inline-flex; align-items: center; gap: 8px; }
.grp-trustrow .grp-ic { color: var(--g-good); width: 18px; height: 18px; }

/* Sample report preview (decorative, illustrative) */
.grp-preview { position: relative; background: var(--lv-surface); border: 1px solid var(--lv-border); border-radius: 22px; padding: 22px; box-shadow: var(--lv-sh-lg, 0 20px 50px rgba(26,18,48,.16)); transform: rotate(.6deg); }
.grp-preview__tag { position: absolute; top: -12px; right: 18px; }
.grp-preview__title { font-family: var(--lv-font-display); font-size: 1.7rem; font-weight: 700; margin: 6px 0 2px; }
.grp-preview__rows { display: grid; gap: 10px; margin-top: 14px; }
.grp-preview__row { display: grid; grid-template-columns: 120px 1fr 38px; align-items: center; gap: 10px; font-size: .84rem; color: var(--lv-ink-soft); }
.grp-preview__glyphs { display: flex; gap: 10px; margin-top: 16px; }
.grp-preview__glyphs span { flex: 1; background: var(--g-paper); border: 1px solid var(--lv-border); border-radius: 12px; padding: 6px; display: flex; justify-content: center; }
.grp-preview__glyphs svg { width: 72px; height: 54px; }

/* ---- Meters ---------------------------------------------------------------- */
.grp-meter { height: 8px; border-radius: 999px; background: var(--lv-surface-2, #f4f2fb); overflow: hidden; }
.grp-meter > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--g-violet), #a98bff); }
.grp-meter--ink > i { background: linear-gradient(90deg, var(--g-ink), #6f8fd8); }

/* ---- Products -------------------------------------------------------------- */
.grp-feature { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; padding: clamp(22px, 3.4vw, 40px); border-radius: var(--lv-r-xl, 28px); background: linear-gradient(var(--lv-surface), var(--lv-surface)) padding-box, linear-gradient(135deg, #f4cf6b, #7c5cff) border-box; border: 2px solid transparent; box-shadow: var(--g-shadow-md); }
@media (max-width: 860px) { .grp-feature { grid-template-columns: 1fr; } }
.grp-feature__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 18px; }
@media (max-width: 520px) { .grp-feature__list { grid-template-columns: 1fr; } }
.grp-feature__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.grp-feature__list .grp-ic { color: var(--g-good); width: 18px; height: 18px; margin-top: 3px; }
.grp-pricebox { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px; border-radius: 20px; background: var(--lv-surface-2); }
.grp-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.grp-price__now { font-family: var(--lv-font-display); font-size: 3rem; font-weight: 700; line-height: 1; color: var(--lv-ink); font-variant-numeric: tabular-nums; }
.grp-price__unit { font-weight: 600; color: var(--lv-ink-soft); }
.grp-price__was { color: var(--lv-ink-mute); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.grp-price__save { color: var(--g-good); font-weight: 700; font-size: .9rem; }

.grp-product { min-height: 100%; }
.grp-product__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.grp-product h3 { font-size: 1.12rem; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.grp-product p { margin: 0; font-size: .9rem; color: var(--lv-ink-soft); }
.grp-product__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.grp-product__cta { font-weight: 600; color: var(--g-violet-ink); display: inline-flex; align-items: center; gap: 6px; }

.grp-guardian { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
@media (max-width: 720px) { .grp-guardian { grid-template-columns: 1fr; } }

/* ---- How it works / trust / FAQ -------------------------------------------- */
.grp-how { counter-reset: how; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
@media (max-width: 900px) { .grp-how { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .grp-how { grid-template-columns: 1fr; } }
.grp-how li { counter-increment: how; position: relative; padding: 24px 20px 20px; border-radius: var(--g-radius); background: var(--lv-surface); border: 1px solid var(--lv-border); }
.grp-how li::before { content: counter(how); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--g-violet-soft); color: var(--g-violet-ink); font-weight: 800; margin-bottom: 12px; }
.grp-how h3 { margin: 0 0 6px; font-size: 1.02rem; }
.grp-how p { margin: 0; font-size: .9rem; color: var(--lv-ink-soft); }

.grp-faq { display: grid; gap: 10px; max-width: 820px; }
.grp-faq details { background: var(--lv-surface); border: 1px solid var(--lv-border); border-radius: var(--g-radius-sm); padding: 0 20px; }
.grp-faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.grp-faq summary::-webkit-details-marker { display: none; }
.grp-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--g-violet-ink); transition: transform var(--lv-dur-2); }
.grp-faq details[open] summary::after { transform: rotate(45deg); }
.grp-faq details p { margin: 0 0 16px; color: var(--lv-ink-soft); font-size: .93rem; }

.grp-resume { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Wizard (analyze) ------------------------------------------------------ */
.grp-stepper { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; counter-reset: st; }
.grp-stepper li { counter-increment: st; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; font-size: .86rem; font-weight: 600; color: var(--lv-ink-mute); background: var(--lv-surface); border: 1px solid var(--lv-border); }
.grp-stepper li::before { content: counter(st); flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; background: var(--lv-surface-2); color: var(--lv-ink-soft); }
.grp-stepper li[aria-current="step"] { color: var(--lv-ink); border-color: var(--g-violet); box-shadow: 0 0 0 3px rgba(124,92,255,.12); }
.grp-stepper li[aria-current="step"]::before { background: var(--g-violet); color: #fff; }
.grp-stepper li.is-done { color: var(--lv-ink-soft); }
.grp-stepper li.is-done::before { content: "✓"; background: var(--g-good-bg); color: var(--g-good); }
@media (max-width: 640px) { .grp-stepper li span { display: none; } .grp-stepper li { justify-content: center; } }

.grp-layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .grp-layout-2 { grid-template-columns: 1fr; } }
.grp-summary { position: sticky; top: 88px; }
.grp-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; margin: 14px 0 0; font-size: .92rem; }
.grp-summary dd { padding-left: 12px; }
.grp-summary dt { color: var(--lv-ink-soft); }
.grp-summary dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.grp-summary .grp-total { border-top: 1px solid var(--lv-border); padding-top: 10px; font-size: 1.05rem; }

.grp-panel { scroll-margin-top: 90px; }
.grp-panel + .grp-panel { margin-top: 18px; }
.grp-panel__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.grp-panel__num { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--g-violet-soft); color: var(--g-violet-ink); flex: 0 0 auto; }
.grp-panel[data-state="done"] .grp-panel__num { background: var(--g-good-bg); color: var(--g-good); }
.grp-panel[data-state="locked"] { opacity: .6; }

.grp-spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 640px) { .grp-spec { grid-template-columns: 1fr; } }
.grp-spec div { padding: 12px 14px; border-radius: 14px; background: var(--lv-surface-2); font-size: .88rem; }
.grp-spec strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--lv-ink-mute); margin-bottom: 2px; }
.grp-prompt { margin: 16px 0 0; padding: 16px 18px; border-radius: 14px; background: var(--g-paper); border: 1px dashed rgba(43,76,155,.3); font-size: .95rem; color: var(--lv-ink); background-image: repeating-linear-gradient(0deg, transparent 0 27px, var(--g-paper-line) 27px 28px); }

.grp-consent { display: grid; gap: 10px; }
.grp-consent label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--lv-border); background: var(--lv-surface); cursor: pointer; font-size: .9rem; line-height: 1.6; transition: border-color var(--lv-dur-2), background var(--lv-dur-2); }
.grp-consent label:hover { border-color: var(--lv-border-2); }
.grp-consent input { margin-top: 3px; width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--g-violet); }
.grp-consent label:has(input:checked) { border-color: var(--g-violet); background: var(--g-violet-soft); }

.grp-drop { display: block; width: 100%; padding: 34px 20px; text-align: center; border: 2px dashed var(--lv-border-2); border-radius: var(--g-radius); background: var(--g-paper); cursor: pointer; color: inherit; font: inherit; transition: border-color var(--lv-dur-2), background var(--lv-dur-2); }
.grp-drop:hover, .grp-drop.is-over { border-color: var(--g-violet); background: var(--g-violet-soft); }
.grp-drop[aria-disabled="true"] { cursor: not-allowed; opacity: .6; }
.grp-drop__title { display: block; font-weight: 700; font-size: 1.05rem; margin: 10px 0 4px; }
.grp-upload-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.grp-previewimg { display: none; margin: 16px auto 0; max-width: 420px; border-radius: 16px; overflow: hidden; border: 1px solid var(--lv-border); box-shadow: var(--g-shadow); }
.grp-previewimg img { display: block; width: 100%; height: auto; }
.grp-sample-prompt + .grp-sample-prompt { margin-top: 18px; }
.grp-standard-prompt { margin: 10px 0 0; padding: 16px; white-space: pre-wrap; font: 500 .9rem/1.65 var(--lv-font-body); color: var(--lv-ink); background: var(--g-paper); border: 1px solid var(--lv-border); border-radius: 14px; }
.grp-sample-context { display: grid; gap: 12px; margin-top: 12px; padding: 16px; border: 1px solid var(--lv-border); border-radius: 16px; background: var(--lv-surface-2); }
.grp-context-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.grp-field { display: grid !important; gap: 6px !important; align-items: stretch !important; }
.grp-field > span { font-size: .82rem; font-weight: 700; color: var(--lv-ink-soft); }
.grp-sample-uploads { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.grp-sample-upload { min-width: 0; padding: 14px; border: 1px solid var(--lv-border); border-radius: 16px; background: var(--lv-surface-2); }
.grp-sample-upload .grp-drop { margin-top: 10px; padding: 22px 12px; }
.grp-sample-upload .grp-previewimg { max-width: 100%; }
@media (max-width:700px) { .grp-context-grid,.grp-sample-uploads { grid-template-columns: 1fr; } }
.grp-tips { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 560px) { .grp-tips { grid-template-columns: 1fr; } }
.grp-tip { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; font-size: .86rem; background: var(--lv-surface-2); }
.grp-tip svg { flex: 0 0 auto; width: 76px; height: 56px; border-radius: 10px; }
.grp-tip--good strong { color: var(--g-good); }
.grp-tip--bad strong { color: var(--g-care); }

.grp-progress { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.grp-progress li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--lv-ink-mute); }
.grp-progress li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--lv-border-2); flex: 0 0 auto; }
.grp-progress li.is-active { color: var(--lv-ink); font-weight: 600; }
.grp-progress li.is-active::before { border-color: var(--g-violet); border-top-color: transparent; animation: grp-spin .9s linear infinite; }
.grp-progress li.is-done { color: var(--lv-ink-soft); }
.grp-progress li.is-done::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; border-color: var(--g-good); background: var(--g-good-bg); color: var(--g-good); }
@keyframes grp-spin { to { transform: rotate(360deg); } }

.grp-status { min-height: 1.4em; margin-top: 12px; font-size: .92rem; }
.grp-status--error { color: var(--g-care); }
.grp-status--ok { color: var(--g-good); }

.grp-dialog { border: 0; padding: 0; border-radius: 24px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--lv-surface); color: var(--lv-ink); box-shadow: var(--lv-sh-lg); }
.grp-dialog::backdrop { background: rgba(26,18,48,.55); backdrop-filter: blur(4px); }
.grp-dialog__body { padding: clamp(20px, 4vw, 32px); }
.grp-q { border: 1px solid var(--lv-border); border-radius: 16px; padding: 14px 16px; margin: 0 0 12px; }
.grp-q legend { padding: 0 6px; font-weight: 600; }
.grp-opt { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin-top: 8px; border-radius: 12px; border: 1px solid var(--lv-border); cursor: pointer; font-size: .93rem; }
.grp-opt:has(input:checked) { border-color: var(--g-violet); background: var(--g-violet-soft); }
.grp-opt input { accent-color: var(--g-violet); width: 18px; height: 18px; }

/* ---- Report ---------------------------------------------------------------- */
.grp-report { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1020px) { .grp-report { grid-template-columns: 1fr; } }
.grp-rail { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding: 18px 12px; }
.grp-rail__label { margin: 4px 10px 8px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lv-ink-mute); }
.grp-rail ol, .grp-rail ul { list-style: none; margin: 0; padding: 0; }
.grp-rail a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: .9rem; color: var(--lv-ink); text-decoration: none; }
.grp-body .grp-rail a { color: var(--lv-ink); }
.grp-rail a:hover { background: var(--lv-surface-2); }
.grp-rail a[aria-current="true"] { background: var(--g-violet-soft); color: var(--g-violet-ink); font-weight: 600; }
.grp-rail__score { font-size: .8rem; font-weight: 700; color: var(--g-violet-ink); font-variant-numeric: tabular-nums; }
.grp-rail hr { border: 0; border-top: 1px solid var(--lv-border); margin: 12px 8px; }
@media (max-width: 1020px) {
  .grp-rail { position: sticky; top: 64px; z-index: 5; max-height: none; overflow-x: auto; padding: 8px; border-radius: 16px; background: var(--lv-surface-glass, rgba(255,255,255,.9)); backdrop-filter: blur(10px); }
  .grp-rail__label, .grp-rail hr, .grp-rail__extra { display: none; }
  .grp-rail ol { display: flex; gap: 6px; white-space: nowrap; }
  .grp-rail a { padding: 8px 12px; }
}

.grp-rhero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: center; padding: clamp(22px, 3.6vw, 40px); border-radius: var(--lv-r-xl, 28px); background: var(--lv-grad-hero); border: 1px solid var(--lv-border); box-shadow: var(--g-shadow); }
.grp-rhero::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, transparent 0 31px, var(--g-paper-line) 31px 32px); pointer-events: none; }
.grp-rhero > * { position: relative; }
@media (max-width: 760px) { .grp-rhero { grid-template-columns: 1fr; } }
.grp-rhero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.grp-rhero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.grp-radar svg { width: 100%; height: auto; }

.grp-block { margin-top: 24px; scroll-margin-top: 90px; }
.grp-block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.grp-block__head .grp-kicker { margin-bottom: 6px; }

.grp-takeaways { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.grp-takeaways li { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; }
.grp-takeaways li b { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.grp-takeaways .t-good b { background: var(--g-good-bg); color: var(--g-good); }
.grp-takeaways .t-grow b { background: var(--g-grow-bg); color: var(--g-grow); }
.grp-takeaways .t-care b { background: var(--g-care-bg); color: var(--g-care); }

.grp-chcard { display: flex; flex-direction: column; gap: 8px; min-height: 100%; }
.grp-chcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grp-chcard__num { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lv-ink-mute); }
.grp-chcard h3 { font-family: var(--lv-font-display); font-size: 1.35rem; margin: 0; }
.grp-chcard p { margin: 0; font-size: .9rem; color: var(--lv-ink-soft); }

.grp-chapter { scroll-margin-top: 90px; }
.grp-chapter__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.grp-chapter__style { font-family: var(--lv-font-display); font-size: 1.25rem; font-style: italic; color: var(--g-ink); margin: 6px 0 0; }
.grp-dims { display: grid; gap: 14px; margin-top: 18px; }
.grp-dim__row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.grp-dim p { margin: 6px 0 0; font-size: .86rem; color: var(--lv-ink-soft); }
.grp-try { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--g-ink-soft); font-size: .92rem; }
.grp-try strong { color: var(--g-ink); }

.grp-evidence { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.grp-glyph { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--g-paper); border: 1px solid var(--lv-border); }
.grp-glyph svg { width: 84px; height: 63px; flex: 0 0 auto; }
.grp-glyph b { display: block; font-size: .92rem; }
.grp-glyph span { display: block; font-size: .84rem; color: var(--lv-ink-soft); }
.grp-glyph em { display: block; font-style: normal; font-size: .8rem; color: var(--lv-ink-mute); }
.grp-glyph small { display: block; margin-top: 5px; font-size: .74rem; line-height: 1.45; color: var(--lv-ink-mute); }
.grp-evidence-chain { margin-top: 10px; border: 1px solid var(--lv-border); border-radius: 12px; background: var(--lv-surface-2); }
.grp-evidence-chain > summary { padding: 10px 12px; cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--g-violet-ink); }
.grp-evidence-chain__item { margin: 0 10px 10px; padding: 10px 12px; border-radius: 10px; background: var(--lv-surface); border: 1px solid var(--lv-border); }
.grp-evidence-chain__item p { margin: 4px 0; font-size: .78rem; line-height: 1.55; overflow-wrap: anywhere; }

.grp-measures { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.grp-measure { padding: 14px 16px; border-radius: 16px; background: var(--lv-surface-2); }
.grp-measure dt { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lv-ink-mute); }
.grp-measure dd { margin: 4px 0 0; }
.grp-measure .v { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.grp-letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.grp-letter { display: flex; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--lv-border); background: var(--lv-surface); }
.grp-letter__char { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--lv-font-display); font-size: 1.6rem; font-weight: 700; font-style: italic; background: var(--g-ink-soft); color: var(--g-ink); }
.grp-letter h3 { margin: 0 0 4px; font-size: .95rem; }
.grp-letter p { margin: 0; font-size: .86rem; color: var(--lv-ink-soft); }

.grp-strain { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 20px; align-items: center; }
@media (max-width: 680px) { .grp-strain { grid-template-columns: 1fr; } }
.grp-markers { display: grid; gap: 12px; margin-top: 16px; }
.grp-marker { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--lv-border); background: var(--lv-surface); }
.grp-marker h3 { margin: 0 0 8px; font-size: 1rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grp-marker p { margin: 4px 0 0; font-size: .9rem; color: var(--lv-ink-soft); }
.grp-marker p strong { color: var(--lv-ink); }

.grp-drills { display: grid; gap: 14px; }
.grp-drill { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 18px; align-items: center; padding: 18px; border-radius: 18px; border: 1px solid var(--lv-border); background: var(--lv-surface); }
@media (max-width: 680px) { .grp-drill { grid-template-columns: 1fr; } }
.grp-drill h3 { margin: 0 0 6px; font-size: 1.05rem; }
.grp-drill p { margin: 6px 0 0; font-size: .9rem; }
.grp-drill__art { border-radius: 14px; background: var(--g-paper); padding: 8px; }
.grp-drill__art svg { background: transparent !important; border: 0 !important; }

.grp-tracker { margin-top: 20px; padding: 20px; border-radius: 18px; background: var(--lv-surface-2); }
.grp-tracker__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.grp-tracker-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
@media (max-width: 560px) { .grp-tracker-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.grp-day-cell { min-height: 44px; border-radius: 10px; border: 1px solid var(--lv-border); background: var(--lv-surface); color: var(--lv-ink-soft); font: 600 .82rem/1 var(--lv-font-body); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: background var(--lv-dur-1), border-color var(--lv-dur-1); }
.grp-day-cell small { font-size: .6rem; opacity: .7; }
.grp-day-cell:hover { border-color: var(--g-violet); }
.grp-day-cell.checked { background: var(--g-violet); border-color: var(--g-violet); color: #fff; }
.grp-phases { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
@media (max-width: 560px) { .grp-phases { grid-template-columns: 1fr; } }
.grp-phases div { padding: 10px 12px; border-radius: 12px; background: var(--lv-surface); font-size: .84rem; }
.grp-phases b { display: block; font-size: .8rem; color: var(--g-violet-ink); }
.grp-goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.grp-goal { padding: 14px; border-radius: 14px; background: var(--lv-surface); border: 1px solid var(--lv-border); font-size: .88rem; }
.grp-goal__nums { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0; font-weight: 700; font-variant-numeric: tabular-nums; }

.grp-qa-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 16px; }
.grp-input { flex: 1; min-width: 220px; min-height: 48px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--lv-border-2); background: var(--lv-surface); color: var(--lv-ink); font: inherit; }
.grp-input:focus { outline: none; border-color: var(--g-violet); box-shadow: var(--lv-ring); }
textarea.grp-input { width: 100%; min-height: 84px; resize: vertical; }
.grp-prompt-chip { display: inline-flex; margin: 0 8px 8px 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--lv-border-2); background: var(--lv-surface); color: var(--lv-ink-soft); font: 500 .86rem/1.3 var(--lv-font-body); cursor: pointer; text-align: left; }
.grp-prompt-chip:hover { border-color: var(--g-violet); color: var(--g-violet-ink); }
.grp-inquiry-item { padding: 14px 16px; border-radius: 14px; background: var(--lv-surface-2); margin-top: 10px; }
.grp-inquiry-item .q { font-weight: 700; margin-bottom: 4px; }
.grp-plain { font-size: .8rem; color: var(--lv-ink-mute); margin-top: 6px; }

.grp-stars { display: flex; justify-content: center; gap: 4px; margin: 12px 0; }
.grp-stars button { background: none; border: 0; padding: 4px; font-size: 2rem; line-height: 1; color: var(--lv-border-2); cursor: pointer; border-radius: 8px; }
.grp-stars button.active, .grp-stars button:hover { color: var(--g-gold); }

.grp-glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 24px; margin: 14px 0 0; }
.grp-glossary dt { font-weight: 700; margin-top: 10px; }
.grp-glossary dd { margin: 2px 0 0; color: var(--lv-ink-soft); font-size: .9rem; }

.grp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 18px; }
.grp-crumbs { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--lv-ink-mute); }
.grp-crumbs a { color: var(--lv-ink-soft); text-decoration: none; }
.grp-crumbs a:hover { color: var(--g-violet-ink); text-decoration: underline; }

.grp-audio { display: inline-flex; align-items: center; gap: 8px; }
.grp-audio-wave { display: none; gap: 3px; align-items: flex-end; height: 16px; }
.grp-audio-wave.playing { display: inline-flex; }
.grp-audio-wave span { width: 3px; height: 6px; border-radius: 2px; background: var(--g-violet); animation: grp-wave 1s ease-in-out infinite; }
.grp-audio-wave span:nth-child(2) { animation-delay: .15s; } .grp-audio-wave span:nth-child(3) { animation-delay: .3s; } .grp-audio-wave span:nth-child(4) { animation-delay: .45s; }
@keyframes grp-wave { 0%,100% { height: 5px; } 50% { height: 16px; } }

.grp-gate { text-align: center; max-width: 560px; margin: 0 auto; }
.grp-empty { text-align: center; padding: 48px 20px; }

/* ---- Motion & print -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .grp-body *, .grp-body *::before, .grp-body *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grp-preview { transform: none; }
}
@media print {
  .grp-body { background: #fff; color: #000; }
  .grp-rail, .grp-rhero__actions, .grp-toolbar, .grp-qa-form, .grp-prompt-chips, .grp-stars, .grp-feedback, .grp-noprint, #lvh, .lv-legal-bar { display: none !important; }
  .grp-report { display: block; }
  .grp-card, .grp-rhero, .grp-marker, .grp-drill { box-shadow: none; break-inside: avoid; }
  .grp-rhero::before, .grp-hero::before { display: none; }
}

/* ---- Layout refinements (v2.1) --------------------------------------------- */
.grp-hero__ctas .grp-btn { flex: 0 0 auto; }
.grp-product__top .grp-chip { white-space: normal; text-align: right; max-width: 62%; line-height: 1.3; }
.grp-rail__extra-item a { font-size: .86rem; color: var(--lv-ink-soft); }
.grp-rhero { grid-template-columns: minmax(0, 1fr) 380px; }
@media (max-width: 1180px) { .grp-rhero { grid-template-columns: 1fr; } .grp-radar { max-width: 460px; margin: 0 auto; } }
.grp-rhero { grid-template-columns: 1fr; }
.grp-glance { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 440px); gap: 24px; align-items: center; }
@media (max-width: 900px) { .grp-glance { grid-template-columns: 1fr; } }
.grp-rhero .grp-lede { max-width: 72ch; }

/* ---- Layout refinements (v2.2) --------------------------------------------- */
/* Keep the single-column report inside the viewport (1fr would grow with the nowrap tab strip). */
@media (max-width: 1020px) { .grp-report { grid-template-columns: minmax(0, 1fr); } }
.grp-report > * { min-width: 0; }
.grp-status:empty { min-height: 0; margin: 0; }

/* Hero fact strip */
.grp-rhero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; }
.grp-rhero__facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; min-width: 108px; padding: 10px 14px; border-radius: 14px; background: var(--lv-surface, #fff); border: 1px solid var(--lv-border); }
.grp-rhero__facts dt { font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: var(--lv-ink-mute); }
.grp-rhero__facts dd { margin: 0 0 2px; font-family: var(--lv-font-display); font-size: 1.45rem; font-weight: 700; line-height: 1.1; color: var(--g-ink); font-variant-numeric: tabular-nums; }
.grp-rhero__facts dd.grp-rhero__fact-text { font-family: var(--lv-font-body); font-size: .95rem; line-height: 1.35; padding-top: 4px; }

@media (max-width: 560px) {
  .grp-rhero__facts > div { flex: 1 1 calc(50% - 10px); min-width: 0; }
  .grp-rhero__actions .grp-btn--primary { flex: 1 1 100%; justify-content: center; }
  .grp-rail a { padding: 7px 10px; font-size: .86rem; }
}

/* Landing: keep both hero CTAs on one row at laptop widths; let product chips wrap under the icon if tight. */
.grp-hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
@media (max-width: 900px) { .grp-hero__grid { grid-template-columns: minmax(0, 1fr); } }
.grp-hero__ctas .grp-btn--lg { padding-left: 24px; padding-right: 24px; }
.grp-product__top { flex-wrap: wrap; }
.grp-product__top .grp-chip { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .grp-hero__ctas .grp-btn { flex: 1 1 100%; }
  .grp-pricebox .grp-btn { padding-left: 16px; padding-right: 16px; }
}
/* Wizard on phones: show the price/order summary before the steps, not after the upload box. */
@media (max-width: 960px) { .grp-layout-2 > .grp-summary { position: static; order: -1; } }

/* P0 evidence state: an unavailable feature is shown honestly, never as a zero score. */
.grp-dim--unassessed { opacity: .78; }
.grp-dim--unassessed .grp-num { color: var(--lv-ink-mute); font-size: .82rem; font-weight: 600; }
