/* ==========================================================================
   The pages written for searches (AI companion, AI chat, AI friend, calls,
   language practice), after site.css. Ink and paper like the home page: a
   large headline, plain reading, hairlines between items and a short example
   conversation in bubbles. No drawings.
   ========================================================================== */

.g-hero { padding: clamp(48px, 7vw, 104px) 0 clamp(24px, 3vw, 40px); }
.g-hero-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 80px; align-items: end; }
/* One of TengoChat's drawn people beside the headline, with the lines of a conversation under it. */
.g-visual { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.g-figure { display: block; width: min(260px, 100%); height: auto; }
.g-hero h1 { max-width: 14em; margin: 0; font-size: clamp(42px, 6vw, 84px); font-weight: 600; line-height: 1; letter-spacing: -0.047em; text-wrap: balance; }
.g-lead { max-width: 34em; margin: 24px 0 0; color: var(--text-2); font-size: var(--fs-lead); line-height: 1.55; text-wrap: pretty; }
.g-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.g-note { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; color: var(--text-2); font-size: 15px; }
.g-note svg { flex: none; margin-top: 3px; color: var(--text); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; color: var(--text-3); font-size: 14px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--text-4); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text-3); }

.g-chips { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.g-chips .bub { align-self: flex-start; font-size: clamp(18px, 1.6vw, 22px); }
.g-chips .bub.me { align-self: flex-end; }

.g-sec { padding: clamp(64px, 8vw, 112px) 0 0; }
.g-h2 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; line-height: 1.05; letter-spacing: -0.037em; text-wrap: balance; }
.g-h2-solo { max-width: 16em; margin-bottom: 40px; }
.g-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 72px; align-items: start; }
.g-prose { max-width: 38em; color: var(--text-2); font-size: 17.5px; line-height: 1.65; }
.g-prose p { margin: 0 0 1em; }
.g-prose p:first-child { color: var(--text); }
.g-prose p:last-child { margin-bottom: 0; }
.g-side { margin: 16px 0 0; color: var(--text-2); }
.g-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 72px; align-items: end; margin-bottom: 40px; }
.g-head p { margin: 0; max-width: 36em; color: var(--text-2); font-size: 17px; }

.g-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.g-features li { padding: 24px 0 28px; border-top: 1px solid var(--line-2); }
.g-features h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; }
.g-features p { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }

.g-convo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 80px; align-items: center; }
.g-convo-copy p { margin: 18px 0 0; max-width: 32em; color: var(--text-2); font-size: 17px; }
.g-talk { max-width: 520px; margin: 0; justify-self: end; width: 100%; font-size: 17px; }
.g-talk-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.g-talk-top img { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); }
.g-talk-top span { display: flex; flex-direction: column; line-height: 1.3; }
.g-talk-top strong { font-size: 15.5px; font-weight: 600; }
.g-talk-top small { color: var(--text-2); font-size: 13.5px; }
.g-thread { display: flex; flex-direction: column; gap: 6px; }
.g-thread .bub { max-width: 88%; }
.g-thread .bub.them { align-self: flex-start; }
.g-thread .bub.me { align-self: flex-end; }
.g-thread .bub:not(.same) { margin-top: 8px; }
.g-thread .bub:first-child { margin-top: 0; }
.g-thread .bub.me.same { border-top-right-radius: 6px; }
.g-talk-note { margin: 18px 0 0; color: var(--text-3); font-size: 13px; }

.g-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.g-steps li { counter-increment: step; padding-top: 22px; border-top: 1.5px solid var(--text); }
.g-steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 36px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.g-steps h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.028em; }
.g-steps p { margin: 0; color: var(--text-2); font-size: 16px; }

.g-points { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.g-points li { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; line-height: 1.5; }
.g-points li svg { flex: none; margin-top: 4px; }

.g-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.g-related a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 0 26px; border-top: 1px solid var(--line-2); color: var(--text); text-decoration: none; }
.g-related strong { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color 140ms; }
.g-related a:hover strong { text-decoration-color: currentColor; }
.g-related span { color: var(--text-2); font-size: 15px; line-height: 1.5; }

.g-final { padding: clamp(88px, 11vw, 152px) 0; }
.g-final h2 { max-width: 13em; margin: 0; font-size: clamp(40px, 5.6vw, 80px); font-weight: 600; line-height: 1; letter-spacing: -0.047em; text-wrap: balance; }
.g-final p { max-width: 34em; margin: 20px 0 0; color: var(--text-2); font-size: var(--fs-lead); }

@media (max-width: 900px) {
  .g-hero-in, .g-split, .g-head, .g-convo { grid-template-columns: minmax(0, 1fr); }
  .g-features, .g-related { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .g-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .g-steps li::before { margin-bottom: 14px; }
  .g-talk { justify-self: start; }
  .g-chips { flex-direction: row; flex-wrap: wrap; }
  .g-figure { width: 180px; }
  .g-chips .bub, .g-chips .bub.me { align-self: auto; }
}
@media (max-width: 560px) {
  .g-features, .g-related { grid-template-columns: minmax(0, 1fr); }
  .g-ctas .lp-btn { flex: 1 1 100%; }
}
