/* Emojim — the app's "Volt" identity on the web: a night so deep it reads as
   black, translucent surfaces, and electric lime kept for the main action. */

@font-face {
  font-family: "Grandstander";
  src: url("/fonts/Grandstander.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #c5f05a;
  --on-ink: #0b1004;
  --bg: #07090f;
  --fg: #f2f3ee;
  --fg-2: rgba(242, 243, 238, 0.62);
  --fg-3: rgba(242, 243, 238, 0.38);
  --surface: rgba(255, 255, 255, 0.055);
  --surface-raised: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.1);
  --glow: rgba(197, 240, 90, 0.18);

  /* --font-script is set per page for languages Grandstander can't draw. */
  --font-playful: "Grandstander", var(--font-script, ui-rounded), system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans",
    "Noto Sans Arabic", "Noto Sans Devanagari", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 24px;
  --gutter: clamp(16px, 4vw, 32px);
  --tracking-display: -0.035em;

  color-scheme: dark;
}

/* Scripts where tight tracking breaks glyphs or joins. */
:root:is([data-lang="ar"], [data-lang="hi"], [data-lang="zh"], [data-lang="ja"]) {
  --tracking-display: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: var(--ink);
  color: var(--on-ink);
}

/* The soft lime light at the top of every page. */
.glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  background: radial-gradient(ellipse 60% 70% at 62% 0%, var(--glow), rgba(197, 240, 90, 0.045) 55%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap.narrow {
  max-width: 820px;
}

/* MARK: Type */

.eyebrow {
  font: 600 12.5px/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px;
}

h2,
h3,
.legal h1 {
  font-family: var(--font-playful);
  font-weight: 900;
  font-variation-settings: "wght" 900;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(34px, 5vw, 54px);
  text-wrap: balance;
}

h3 {
  font-size: 22px;
}

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--fg-2);
  max-width: 34em;
  text-wrap: pretty;
}

.note {
  font-size: 13.5px;
  color: var(--fg-3);
}

/* MARK: Buttons — capsules, lime for the main action. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  font: 700 17px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.btn-lime {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: 0 8px 28px rgba(197, 240, 90, 0.28);
}

.btn-lime svg {
  fill: currentColor;
  stroke: none;
}

a.btn:hover {
  transform: translateY(-1px);
}

a.btn:active {
  transform: scale(0.97);
}

.btn.is-soon {
  cursor: default;
}

.btn-soft {
  background: var(--surface-raised);
  color: var(--fg);
  font-weight: 600;
}

.btn-soft:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14.5px;
}

[dir="rtl"] .btn svg:last-child:not(:first-child),
[dir="rtl"] .pair svg {
  transform: scaleX(-1);
}

/* MARK: Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: linear-gradient(to bottom, rgba(7, 9, 15, 0.85), rgba(7, 9, 15, 0.55));
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.is-scrolled .site-header {
  border-bottom-color: var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 900 23px/1 "Grandstander", system-ui, sans-serif;
  font-variation-settings: "wght" 900;
  direction: ltr;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-inline-start: 12px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-2);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--fg);
  background: var(--surface);
}

.header-end {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* MARK: Language menu */

.lang-menu {
  position: relative;
}

.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px 0 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  list-style: none;
  font-size: 14.5px;
  font-weight: 500;
  user-select: none;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

.lang-menu summary svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang-menu summary svg:last-child {
  width: 14px;
  height: 14px;
  color: var(--fg-3);
  transition: transform 0.2s ease;
}

.lang-menu[open] summary svg:last-child {
  transform: rotate(180deg);
}

.lang-menu ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: 210px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(20, 23, 30, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  max-height: min(70vh, 520px);
  overflow: auto;
}

.lang-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
}

.lang-menu li a:hover {
  background: var(--surface-raised);
}

.lang-menu li a[aria-current] {
  color: var(--ink);
  font-weight: 600;
}

.lang-menu li svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* MARK: Hero */

.hero {
  padding: clamp(36px, 7vw, 84px) 0 clamp(28px, 4vw, 48px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.hero-title {
  font: 800 clamp(48px, 7.4vw, 92px) / 0.98 var(--font-body);
  letter-spacing: var(--tracking-display);
  margin-bottom: 22px;
  text-wrap: balance;
}

:root:is([data-lang="ar"], [data-lang="hi"]) .hero-title {
  line-height: 1.2;
}

/* Keep CJK headlines from breaking mid-word. */
:root:is([data-lang="ja"], [data-lang="zh"]) :is(.hero-title, h2, h3, .phone-title) {
  word-break: auto-phrase;
}

.hero-title em {
  font-style: normal;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
}

/* A hand of stickers fanned around the phone, like the splash screen. */
.fan {
  position: absolute;
  width: clamp(104px, 13vw, 156px);
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5));
  z-index: 2;
  animation: float 4.8s ease-in-out infinite;
}

.fan-a { inset-inline-start: 0; top: 9%; --r: -14deg; }
.fan-b { inset-inline-end: 0; top: 2%; --r: 12deg; animation-delay: -1.2s; }
.fan-c { inset-inline-start: 3%; bottom: 10%; --r: -8deg; animation-delay: -2.4s; }
.fan-d { inset-inline-end: 2%; bottom: 16%; --r: 10deg; animation-delay: -3.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-10px) rotate(calc(var(--r) * 0.8)); }
}

/* MARK: Phone — PackView's "your pack is ready" screen. */

.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  aspect-ratio: 300 / 620;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(145deg, #2a2d33, #121418 40%, #1d2026);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.12),
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(197, 240, 90, 0.12);
  direction: ltr;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 50% at 62% 0%, rgba(197, 240, 90, 0.2), transparent 70%), var(--bg);
  display: flex;
  flex-direction: column;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px 0 30px;
  height: 46px;
  font: 600 14px/1 var(--font-body);
}

.island {
  width: 92px;
  height: 27px;
  border-radius: 20px;
  background: #000;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.bars i {
  width: 3px;
  background: var(--fg);
  border-radius: 1px;
}

.bars i:nth-child(1) { height: 5px; }
.bars i:nth-child(2) { height: 8px; }
.bars i:nth-child(3) { height: 11px; }

.phone-body {
  padding: 14px 16px 0;
  flex: 1;
}

[dir="rtl"] .phone-body,
[dir="rtl"] .phone-cta {
  direction: rtl;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 900 15px/1 "Grandstander", system-ui;
  font-variation-settings: "wght" 900;
  margin-bottom: 16px;
  direction: ltr;
}

.phone-top img {
  border-radius: 6px;
}

.phone-top .pill {
  margin-left: auto;
  font: 600 11px/1 var(--font-mono);
  padding: 5px 8px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--on-ink);
}

.phone-title {
  font: 800 24px/1.1 var(--font-body);
  letter-spacing: var(--tracking-display);
}

.phone-sub {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--fg-2);
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 14px;
}

.phone-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.phone-cta {
  display: grid;
  gap: 7px;
  padding: 12px 16px 22px;
  background: linear-gradient(to bottom, transparent, var(--bg) 30%);
}

.mini-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  border-radius: 99px;
  font: 700 13px/1 var(--font-body);
}

.mini-btn.lime {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: 0 6px 16px rgba(197, 240, 90, 0.25);
}

.mini-btn.soft {
  background: var(--surface-raised);
  font-weight: 600;
}

.mini-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* MARK: Marquee — rows of stickers drifting in opposite directions. */

.marquee {
  display: grid;
  gap: 12px;
  padding: 12px 0 8px;
  overflow: hidden;
  direction: ltr;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: drift 70s linear infinite;
}

.marquee-row:nth-child(2) .marquee-track {
  animation-direction: reverse;
  animation-duration: 82s;
}

.marquee-track img {
  width: 96px;
  height: 96px;
  flex: none;
}

@keyframes drift {
  to { transform: translateX(calc(-50% - 7px)); }
}

/* MARK: Sections */

.section {
  padding: clamp(64px, 10vw, 128px) 0 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-head .lede {
  margin-top: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* MARK: Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.step-copy {
  padding: 22px 24px 26px;
}

.step-copy p {
  margin-top: 8px;
  color: var(--fg-2);
  font-size: 15.5px;
}

.step-number {
  display: inline-block;
  font: 600 12px/1 var(--font-mono);
  color: var(--ink);
  margin-bottom: 10px;
}

.visual {
  height: 230px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(197, 240, 90, 0.08), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slots {
  gap: 10px;
  padding: 0 18px;
}

.slot {
  flex: 1;
  max-width: 96px;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 6px;
  text-align: center;
}

.slot span {
  font-size: 11.5px;
  line-height: 1.2;
  color: var(--fg-2);
}

.slot.is-next {
  border: 1.5px solid var(--ink);
  background: rgba(197, 240, 90, 0.07);
  box-shadow: 0 0 24px rgba(197, 240, 90, 0.18);
}

.slot.is-next span {
  color: var(--ink);
}

.guide {
  width: 52px;
  fill: none;
  stroke: var(--fg-3);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.is-next .guide {
  stroke: var(--ink);
}

.progress {
  flex-direction: column;
  position: relative;
  gap: 4px;
}

.ring {
  width: 112px;
  height: 112px;
  transform: rotate(-90deg);
  fill: none;
  stroke-width: 9;
}

.ring circle:first-child {
  stroke: var(--surface-raised);
}

.ring-fill {
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-dasharray: 72 100;
  filter: drop-shadow(0 0 6px rgba(197, 240, 90, 0.5));
}

.is-in .ring-fill {
  animation: fill 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes fill {
  from { stroke-dasharray: 0 100; }
}

.ring-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -78%);
  font: 700 22px/1 var(--font-mono);
}

.drawing {
  margin-top: 12px;
  font: 800 17px/1.2 var(--font-body);
}

.tips {
  position: relative;
  height: 20px;
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--fg-3);
}

.tip {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tip.is-on {
  opacity: 1;
  transform: none;
}

.chat {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 0 22px;
}

.bubble {
  align-self: flex-start;
  max-width: 82%;
  padding: 9px 14px;
  border-radius: 18px 18px 18px 6px;
  background: var(--surface-raised);
  font-size: 14px;
  line-height: 1.35;
}

[dir="rtl"] .bubble {
  border-radius: 18px 18px 6px 18px;
}

.bubble-sticker {
  align-self: flex-end;
  width: 92px;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
  transform: rotate(4deg);
}

.bubble-sticker.second {
  width: 74px;
  margin-top: -54px;
  margin-inline-end: 84px;
  transform: rotate(-8deg);
}

/* MARK: Sticker grid */

.sticker-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1), background 0.2s ease, border-color 0.2s ease;
}

.tile img {
  width: 82%;
  height: auto;
}

.tile:hover {
  transform: rotate(-4deg) scale(1.07);
  background: var(--surface-raised);
  border-color: rgba(197, 240, 90, 0.4);
  z-index: 1;
}

.tile:nth-child(even):hover {
  transform: rotate(4deg) scale(1.07);
}

.tile-emoji {
  position: absolute;
  inset-inline-end: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 15px;
  border-radius: 99px;
  background: rgba(7, 9, 15, 0.75);
  border: 1px solid var(--line);
}

/* MARK: Features */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.feature p {
  color: var(--fg-2);
  font-size: 15.5px;
}

.feature > div:first-child,
.feature-icon {
  margin-bottom: 16px;
}

.like {
  grid-row: span 2;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(197, 240, 90, 0.16), transparent 70%),
    var(--surface);
}

.like-stack {
  position: relative;
  flex: 1;
  min-height: 260px;
  display: grid;
  place-items: center;
}

.like-stack img:first-child {
  width: 210px;
  transform: rotate(-6deg);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.5));
}

.like-stack img:last-child {
  position: absolute;
  width: 120px;
  inset-inline-end: 6%;
  bottom: 4%;
  transform: rotate(10deg);
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
}

.app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px 0 11px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 14.5px;
  direction: ltr;
}

.chip svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.chip.wa {
  background: rgba(37, 211, 102, 0.14);
  color: #4ee38a;
}

.chip.im {
  background: rgba(10, 132, 255, 0.16);
  color: #5aa9ff;
}

.pairs {
  display: grid;
  gap: 6px;
}

.pair {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pair-emoji {
  font-size: 26px;
  width: 40px;
  text-align: center;
}

.pair svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--fg-3);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pair img {
  width: 46px;
  height: 46px;
}

.team {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  background:
    radial-gradient(ellipse 60% 90% at 0% 50%, rgba(197, 240, 90, 0.12), transparent 70%),
    var(--surface);
}

[dir="rtl"] .team {
  background:
    radial-gradient(ellipse 60% 90% at 100% 50%, rgba(197, 240, 90, 0.12), transparent 70%),
    var(--surface);
}

.team .team-art {
  margin: 0;
  flex: none;
}

.team-art img {
  width: 170px;
  transform: rotate(-4deg);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.45));
}

.team-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 12.5px;
  font-weight: 700;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.swatch {
  width: 36px;
  height: 22px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--a) 50%, var(--b) 50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.redraw-art {
  display: flex;
  align-items: center;
  gap: 6px;
}

.redraw-art img {
  width: 76px;
  height: 76px;
}

.redraw-art img:first-child {
  opacity: 0.45;
  filter: grayscale(0.6);
}

.redraw-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 99px;
  background: var(--surface-raised);
}

.redraw-icon svg,
.feature-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(197, 240, 90, 0.12);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

/* MARK: FAQ */

.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: background 0.2s ease;
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.075);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 17.5px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  transition: transform 0.25s ease;
}

.faq-item[open] summary svg {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 22px 22px;
  color: var(--fg-2);
  font-size: 16px;
}

/* MARK: Final call to action */

.final {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  border-radius: 36px;
  background:
    radial-gradient(ellipse 70% 70% at 50% 0%, rgba(197, 240, 90, 0.2), transparent 70%),
    var(--surface);
}

.final h2 {
  margin-top: 8px;
}

.final .btn {
  margin-top: 14px;
}

.final-fan {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.final-fan img {
  width: 112px;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45));
}

.final-fan img:nth-child(1) { transform: rotate(-12deg) translateX(14px); }
.final-fan img:nth-child(2) { width: 142px; position: relative; z-index: 1; }
.final-fan img:nth-child(3) { transform: rotate(12deg) translateX(-14px); }

/* MARK: Footer */

.site-footer {
  margin-top: clamp(64px, 10vw, 128px);
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--fg-2);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-top .brand {
  color: var(--fg);
}

.footer-links,
.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-links a,
.footer-langs a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-langs a:hover {
  color: var(--ink);
}

.footer-langs {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  gap: 6px 16px;
  color: var(--fg-3);
}

.footer-legal {
  margin-top: 18px;
  color: var(--fg-3);
  font-size: 13px;
}

/* MARK: Legal pages */

.legal {
  padding-top: clamp(40px, 7vw, 80px);
}

.legal h1 {
  font-size: clamp(34px, 6vw, 60px);
  hyphens: auto;
  overflow-wrap: break-word;
}

.updated {
  margin-top: 12px;
  font: 500 13px/1.4 var(--font-mono);
  color: var(--fg-3);
}

.translation-note {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--fg-2);
}

.translation-note a {
  color: var(--ink);
}

.legal > .lede {
  margin-top: 28px;
  max-width: none;
  color: var(--fg);
}

.legal section {
  margin-top: 44px;
}

.legal h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 14px;
}

.legal h2 .num {
  font: 600 13px/1 var(--font-mono);
  color: var(--ink);
}

.legal section p {
  color: var(--fg-2);
  margin-top: 12px;
}

.legal strong {
  color: var(--fg);
}

.legal a {
  color: var(--ink);
}

.legal-switch {
  margin-top: 56px;
}

.legal-switch .btn {
  color: var(--fg);
  text-decoration: none;
}

.not-found {
  min-height: 80vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 12px;
}

.not-found h1 {
  font: 900 72px/1 "Grandstander", system-ui;
  font-variation-settings: "wght" 900;
}

.not-found a {
  color: var(--ink);
}

/* MARK: Scroll reveal (only once JS is running) */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* MARK: Responsive */

@media (max-width: 1020px) {
  .nav-links {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-copy .lede {
    margin-inline: auto;
  }

  .hero-actions {
    align-items: center;
  }

  .hero-visual {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .like {
    grid-row: span 1;
    grid-column: span 2;
  }

  .sticker-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header-row {
    gap: 12px;
  }

  .lang-menu summary span {
    display: none;
  }

  :root:is([data-lang="ja"], [data-lang="zh"], [data-lang="hi"], [data-lang="ru"]) .hero-title {
    font-size: 42px;
  }

  .hero-visual {
    min-height: 0;
    padding: 12px 0 8px;
  }

  .phone {
    width: min(270px, 72vw);
  }

  .fan {
    width: 92px;
  }

  .fan-a { inset-inline-start: -6px; top: 4%; }
  .fan-b { inset-inline-end: -6px; top: 0; }
  .fan-c { inset-inline-start: -10px; bottom: 6%; }
  .fan-d { inset-inline-end: -10px; bottom: 12%; }

  .btn {
    min-height: 54px;
    padding: 0 22px;
    font-size: 16px;
  }

  .hero-actions .btn,
  .final .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .marquee-track img {
    width: 76px;
    height: 76px;
  }

  .sticker-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .like,
  .team {
    grid-column: auto;
  }

  .team {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-art img {
    width: 140px;
  }

  .faq-item summary {
    font-size: 16.5px;
    padding: 18px;
  }

  .faq-item p {
    padding: 0 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fan,
  .marquee-track,
  .is-in .ring-fill {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
