/* hangout.chat promotional site. The store screenshots' language: dark ink, each
   section lit by one character's room colour (--tint), heavy tight headlines with the
   accent phrase in that colour. */

:root {
  --ink: #0d1014;
  --ink-2: #14181e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #a1a7b0;
  --radius: 20px;
  --wrap: 1120px;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", "PingFang TC", "Noto Sans TC", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: normal; color: var(--tint, #9cc9c1); }
:focus-visible { outline: 2px solid #9cc9c1; outline-offset: 3px; border-radius: 6px; }

/* ── top bar ─────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(20px, calc((100vw - var(--wrap)) / 2));
  background: rgba(13, 16, 20, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.web-pill {
  font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted);
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14);
  transition: color .15s, border-color .15s, background .15s;
}
.web-pill:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.04); }

/* ── shared section shell ────────────────────────────────── */
main > section {
  position: relative;
  padding: 96px max(20px, calc((100vw - var(--wrap)) / 2));
  isolation: isolate;
}
main > section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 0%, color-mix(in srgb, var(--tint) 22%, transparent), transparent 70%);
}
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
:lang(ja) h1, :lang(ja) h2, :lang(zh-Hant-TW) h1, :lang(zh-Hant-TW) h2, :lang(ko) h1, :lang(ko) h2 { letter-spacing: -0.01em; line-height: 1.15; word-break: keep-all; }
h1 { font-size: clamp(44px, 6.4vw, 84px); }
h2 { font-size: clamp(34px, 4.6vw, 60px); }
p { line-height: 1.55; }

/* ── hero ────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 0.85fr 1.3fr; align-items: center; gap: 24px;
  min-height: min(860px, calc(100vh - 57px));
  padding-top: 64px !important; padding-bottom: 64px !important;
}
.hero::before { background: radial-gradient(70% 70% at 75% 35%, color-mix(in srgb, var(--tint) 26%, transparent), transparent 70%), radial-gradient(50% 50% at 10% 90%, rgba(169, 214, 160, 0.10), transparent 70%) !important; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: #c9ced6; max-width: 34em; margin: 24px 0 32px; }

.hero-phones { position: relative; height: min(700px, 74vh); }
.phone { position: absolute; width: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55)); }
.phone-front { height: 96%; left: 50%; top: 2%; z-index: 2; transform: translateX(-50%); }
.phone-left, .phone-right { height: 78%; top: 13%; }
.phone-left { left: -9%; transform: rotate(-11deg); }
.phone-right { right: -9%; transform: rotate(11deg); }

/* ── store badges ────────────────────────────────────────── */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge { display: block; height: 52px; border-radius: 10px; line-height: 0; }
.badge img { height: 52px; width: auto; }
.badge-apple img { height: 52px; }
/* Google's badge carries its own transparent margin; crop it to Apple's height. */
.badge-play { overflow: hidden; }
.badge-play img { height: 76px; margin: -12px -11px; }
.badge-soon { position: relative; cursor: default; }
.badge-soon img { filter: grayscale(1); opacity: 0.45; }
.badge-soon .soon {
  position: absolute; right: -6px; top: -9px;
  font: 700 10px/1 system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase;
  color: #0d1014; background: #a9d6a0; padding: 4px 7px; border-radius: 999px;
}
.badge-soon { overflow: visible; }
.badge-soon img { clip-path: inset(12px 11px round 8px); }
html[data-os="android"] .badge-play:not(.badge-soon) { order: -1; }
.badge:not(.badge-soon) { transition: transform .15s; }
.badge:not(.badge-soon):hover { transform: translateY(-1px); }

/* ── features ────────────────────────────────────────────── */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.feature.flip .feature-copy { order: 2; }
.feature::before { background: radial-gradient(45% 60% at var(--glow-x, 72%) 50%, color-mix(in srgb, var(--tint) 18%, transparent), transparent 70%) !important; }
.feature.flip::before { --glow-x: 28%; }
.feature-copy p { font-size: clamp(17px, 1.4vw, 19px); color: #c9ced6; max-width: 30em; margin-top: 20px; }
.feature-shot { display: flex; justify-content: center; }
.feature-shot img { width: min(330px, 78vw); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5)); }

/* ── cast ────────────────────────────────────────────────── */
.cast { text-align: center; }
.cast h2 { margin-bottom: 40px; }
.cast ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.cast li { display: grid; justify-items: center; gap: 10px; font-weight: 600; color: #d7dbe1; }
.cast img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; padding: 4px; border: 3px solid var(--ring); background: var(--ink-2); }

/* ── final call to action ────────────────────────────────── */
.final { text-align: center; display: grid; justify-items: center; gap: 28px; padding-bottom: 120px !important; }
.final h2 { max-width: 16em; }
.final .badges { justify-content: center; }

/* ── footer ──────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  padding: 40px max(20px, calc((100vw - var(--wrap)) / 2)) 56px;
  color: var(--muted); font-size: 14px;
  display: grid; gap: 18px;
}
.disclosure { margin: 0; max-width: 60em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot-langs a[aria-current] { color: var(--text); font-weight: 600; }
.operator { margin: 0; font-size: 13px; }

/* ── legal and reset pages ───────────────────────────────── */
.legal-main { max-width: 760px; margin: 0 auto; padding: 64px 20px 96px; }
.legal-main h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 24px; }
.legal-main h2 { font-size: 30px; margin: 56px 0 16px; letter-spacing: -0.02em; }
.legal-main h3 { font-size: 18px; margin: 28px 0 8px; }
.legal-main p, .legal-main li, .legal-main dd { color: #c9ced6; font-size: 16px; }
.legal-main li { line-height: 1.55; margin: 6px 0; }
.legal-main a { color: #9cc9c1; }
.legal-main dt { font-weight: 700; margin-top: 18px; }
.legal-main dd { margin: 6px 0 0; }
.legal-banner { border: 1px solid var(--line); background: var(--ink-2); border-radius: var(--radius); padding: 6px 20px; }
.policy { display: inline-block; margin: 48px 0 -40px; font-size: 12px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0d1014 !important; background: #9cc9c1; padding: 4px 10px; border-radius: 999px; }
.reset form, .reset #done { display: grid; gap: 16px; max-width: 420px; }
.field { display: grid; gap: 8px; font-weight: 600; }
.field input { font: inherit; color: var(--text); background: var(--ink-2); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; padding: 12px 14px; }
.button { display: inline-block; font: inherit; font-weight: 700; color: #0d1014; background: #f4f4f5; border: 0; border-radius: 999px; padding: 12px 22px; text-decoration: none; cursor: pointer; }
.button:disabled { opacity: .5; cursor: default; }
.legal-main a.button { color: #0d1014; }
.hint.bad { color: #ff9b8f; }

/* ── small screens ───────────────────────────────────────── */
@media (max-width: 860px) {
  main > section { padding-top: 72px; padding-bottom: 72px; }
  .hero { grid-template-columns: 1fr; text-align: center; min-height: 0; gap: 48px; padding-top: 40px !important; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .badges { justify-content: center; }
  .hero-phones { height: 500px; width: min(560px, 100%); margin: 0 auto; }
  .phone-left { left: -5%; }
  .phone-right { right: -5%; }

  .feature { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .feature.flip .feature-copy { order: 0; }
  .feature-copy p { margin-left: auto; margin-right: auto; }
  .cast ul { gap: 18px; }
  .cast img { width: 72px; height: 72px; }
}
@media (max-width: 420px) {
  .web-pill { padding: 6px 11px; font-size: 12px; }
  .hero-phones { height: 440px; }
  .badges { gap: 10px; }
  .badge, .badge img { height: 46px; }
  .badge-play img { height: 67px; margin: -10.5px -10px; }
  .badge-soon img { clip-path: inset(10.5px 10px round 7px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
