:root {
  --paper: #FFF4E8;
  --card: #FFFFFF;
  --sunken: #F6E9DA;
  --ink: #1D1A1F;
  --muted: #6F6670;
  --line: #EADBCB;
  --red: #FF4B2B;
  --red-deep: #C82E15;
  --red-fill: #C8321A;
  --red-fill-edge: #8F1D0A;
  --red-text: #C82E15;
  --sun: #FFC83D;
  --sun-ink: #1D1A1F;
  --mint: #22C47E;
  --mint-ink: #0F6F46;
  --lavender: #8B7CFF;
  --sky: #3BA7FF;
  --shadow: 0 18px 42px rgba(29, 26, 31, 0.08);
  --shadow-sm: 0 8px 20px rgba(29, 26, 31, 0.05);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --font-display: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Quicksand", "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141216;
    --card: #221F26;
    --sunken: #1B181E;
    --ink: #F6EFE7;
    --muted: #B3AAB2;
    --line: #34303A;
    --red: #FF5E40;
    --red-deep: #B02810;
    --red-fill: #C8321A;
    --red-fill-edge: #7A1808;
    --red-text: #FF7A5E;
    --sun: #FFCF57;
    --sun-ink: #1D1A1F;
    --mint: #3BD994;
    --mint-ink: #8EF0C0;
    --lavender: #A79BFF;
    --sky: #5DB8FF;
    --shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.32);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--red-text);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.86;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.wrap-narrow {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 2px 0 var(--red-deep);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 8px 12px;
  border-radius: 12px;
  transition: background-color 0.15s ease;
}

.nav a:hover {
  background: var(--sunken);
  opacity: 1;
}

.nav a[aria-current="page"] {
  background: var(--sunken);
  color: var(--red-text);
}

.nav a.lang-switch {
  background: var(--card);
  border: 1.5px solid var(--line);
  padding: 6px 12px;
  margin-left: 4px;
}

@media (max-width: 680px) {
  .hide-sm {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 48px 0 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 36px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 32px 0 28px;
    gap: 28px;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--mint) 15%, transparent);
  color: var(--mint-ink);
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.15rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 16px 0 16px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 56ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: var(--red-fill);
  color: #FFFFFF;
  box-shadow: 0 4px 0 var(--red-fill-edge), var(--shadow-sm);
}

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

.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--red-fill-edge);
}

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  opacity: 1;
  background: var(--sunken);
}

.release-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 700;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Interactive preview phone card */
.showcase {
  display: flex;
  justify-content: center;
}

.phone-card {
  width: 100%;
  max-width: 390px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 32px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.group-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
}

.timer-panel {
  background: linear-gradient(180deg, color-mix(in srgb, var(--sun) 18%, var(--sunken)) 0%, var(--sunken) 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px 16px 20px;
  text-align: center;
}

.timer-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.1rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.timer-sub {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
  margin-top: 2px;
}

.arcade-wrap {
  margin: 16px auto 10px;
  width: 132px;
  height: 142px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arcade-btn {
  position: relative;
  width: 126px;
  height: 126px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.arcade-base {
  position: absolute;
  inset: 0;
  transform: translateY(10px);
  border-radius: 50%;
  background: var(--red-deep);
}

.arcade-cap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF8566 0%, var(--red) 72%);
  box-shadow: 0 14px 26px rgba(255, 75, 43, 0.34);
  display: grid;
  place-items: center;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.16s ease;
}

.arcade-cap::before {
  content: "";
  position: absolute;
  top: 16%;
  left: 22%;
  width: 42%;
  height: 16%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  transform: rotate(-18deg);
}

.arcade-btn:hover .arcade-cap {
  transform: translateY(2px);
}

.arcade-btn:active .arcade-cap {
  transform: translateY(8px);
  box-shadow: 0 4px 10px rgba(255, 75, 43, 0.25);
}

.arcade-hint {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink);
}

.members-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--sunken);
  border-radius: 18px;
}

.avatars {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 0.9rem;
  border: 2.5px solid var(--card);
}

.avatar.done::after {
  content: "✓";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mint);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
  display: grid;
  place-items: center;
  border: 2px solid var(--card);
}

.polaroid {
  margin-top: 14px;
  background: var(--sunken);
  border-radius: 20px;
  padding: 12px;
  border: 1px solid var(--line);
}

.polaroid-photo {
  position: relative;
  border-radius: 14px;
  height: 130px;
  background: linear-gradient(155deg, #FF7A5E 0%, #FFB86C 48%, #7E74F2 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.polaroid-sun {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFE066;
}

.polaroid-hill {
  position: absolute;
  bottom: -14px;
  left: -10px;
  right: -10px;
  height: 54px;
  border-radius: 55% 45% 0 0;
  background: #1C7C54;
}

.caption-sticker {
  position: relative;
  z-index: 1;
  background: var(--sun);
  color: var(--sun-ink);
  font-weight: 800;
  font-size: 0.84rem;
  padding: 5px 11px;
  border-radius: 10px;
  transform: rotate(-1.5deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.reactions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.react-chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.react-chip.active {
  border-color: var(--red);
  background: color-mix(in srgb, var(--red) 12%, var(--card));
}

/* Sections */
.section {
  padding: 44px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-text);
  margin-bottom: 8px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-intro {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 64ch;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 820px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 12px 0 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.15rem;
}

.badge-red { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red-text); }
.badge-sun { background: color-mix(in srgb, var(--sun) 26%, transparent); color: #8A5A00; }
.badge-mint { background: color-mix(in srgb, var(--mint) 16%, transparent); color: var(--mint-ink); }
.badge-sky { background: color-mix(in srgb, var(--sky) 16%, transparent); color: #0B63B0; }
.badge-lav { background: color-mix(in srgb, var(--lavender) 18%, transparent); color: #4E40B8; }

@media (prefers-color-scheme: dark) {
  .badge-sun { color: var(--sun); }
  .badge-sky { color: var(--sky); }
  .badge-lav { color: var(--lavender); }
}

.honest-box {
  background: var(--sunken);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 24px;
  align-items: center;
}

@media (max-width: 780px) {
  .honest-box {
    grid-template-columns: 1fr;
  }
}

.honest-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.honest-list li + li {
  margin-top: 6px;
}

.legal-links-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--sunken);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.legal-link-row:hover {
  opacity: 1;
  background: var(--line);
}

/* Legal document pages */
.doc-main {
  padding: 36px 0 64px;
}

.doc-header {
  margin-bottom: 24px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.doc-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
  .doc-card {
    padding: 20px 18px;
  }
}

.doc-card h2 {
  font-size: 1.25rem;
  margin: 28px 0 10px;
}

.doc-card h2:first-of-type {
  margin-top: 8px;
}

.doc-card p, .doc-card li {
  color: var(--ink);
}

.doc-card ul, .doc-card ol {
  padding-left: 22px;
  margin: 8px 0 14px;
}

.doc-card li + li {
  margin-top: 6px;
}

.doc-callout {
  background: var(--sunken);
  border-left: 4px solid var(--red);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn, .arcade-cap {
    transition: none;
  }
}

@media print {
  body {
    background: #FFFFFF;
    color: #000000;
  }
  .topbar, .footer {
    display: none;
  }
  .doc-card {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
