/* hangmates.com — the Game Night look, by hand. No build step. */

:root {
  color-scheme: dark;
  --ground: #17152B;
  --surface: #232042;
  --surface-2: #2A2650;
  --line: #3A3566;
  --text: #F3F1FF;
  --text-soft: #DCD8F5;
  --muted: #B3AED6;
  --action: #FFC940;
  --action-text: #1B1830;
  --blue: #3C9BE0;
  --red: #E8544B;
  --green: #4FB477;
  --orange: #F2A03D;
  --purple: #A87BD8;
  --pink: #E06BA8;
  --display: 'Fredoka', system-ui, sans-serif;
  --body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 18px;
  --gutter: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--action); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(23, 21, 43, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58, 53, 102, 0.6);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; gap: 3px; text-decoration: none; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.header-cta { padding: 9px 16px; font-size: 16px; white-space: nowrap; }
@media (max-width: 760px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 420px) {
  .site-header .wrap { gap: 10px; padding: 0 16px; }
  .brand { gap: 2px; }
  .brand .tile { width: 19px; height: 24px; font-size: 13px; border-radius: 5px; }
  .header-cta { padding: 8px 12px; font-size: 15px; }
}

/* Letter tiles: the wordmark and decoration */
.tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 31px; border-radius: 6px;
  color: var(--ground); font: 700 18px var(--display);
}
.tile:nth-child(odd) { transform: rotate(-3deg); }
.tile:nth-child(even) { transform: rotate(2deg); }
.tile.big { width: 56px; height: 66px; border-radius: 13px; font-size: 38px; }
.c0 { background: var(--blue); } .c1 { background: var(--red); } .c2 { background: var(--green); }
.c3 { background: var(--orange); } .c4 { background: var(--purple); } .c5 { background: var(--pink); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 14px; border: 0;
  background: var(--action); color: var(--action-text);
  font: 600 19px var(--display); text-decoration: none; cursor: pointer;
}
.button.secondary { background: var(--surface-2); color: var(--text); }
.button:hover { filter: brightness(1.06); }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 700; }
.hero .lead { font-size: 20px; color: var(--text-soft); margin: 18px 0 28px; max-width: 34ch; }
.hero .tiles { display: flex; gap: 6px; margin-bottom: 22px; }
/* "Hangman, with your" + MATES in tiles: the brand as the punchline. */
.hero h1 .hero-mates { display: inline-flex; vertical-align: middle; margin: 6px 0 0 6px; }
.hero h1 .hero-hang { display: inline-flex; vertical-align: middle; margin: 0 4px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
}

/* Phone frame around a clip or screenshot */
.phone {
  position: relative; width: 100%; max-width: 300px; margin: 0 auto;
  aspect-ratio: 9 / 19.5; border-radius: 44px; padding: 10px;
  background: #0E0C1C; border: 2px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.phone > img, .phone > video {
  width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: var(--ground);
}

/* Sections */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head p { color: var(--text-soft); margin: 12px 0 0; font-size: 18px; }
.eyebrow {
  display: inline-block; margin-bottom: 10px; color: var(--action);
  font: 600 14px var(--display); letter-spacing: 0.12em; text-transform: uppercase;
}

/* Clips with sound */
.clip { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.sound {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(14, 12, 28, 0.78); color: var(--text);
  font: 700 14px var(--body);
}
.sound svg { width: 18px; height: 18px; }
.sound[aria-pressed="true"] { background: var(--action); color: var(--action-text); }
.sound .wave { display: none; }
.sound[aria-pressed="true"] .wave { display: inline; }
.sound[aria-pressed="true"] .x { display: none; }

/* Theme cards */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.theme { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.theme .clip, .theme .still { aspect-ratio: 1.926 / 1; border-radius: 0; }
.theme .still { width: 100%; height: auto; object-fit: cover; background: var(--ground); }
.theme-body { padding: 18px 20px 22px; }
.theme-body h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.theme-body p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.tag {
  padding: 2px 8px; border-radius: 6px; font: 700 12px var(--body); letter-spacing: 0.06em;
  background: var(--surface-2); color: var(--muted);
}
.tag.pro { background: var(--action); color: var(--action-text); }
@media (max-width: 900px) { .themes { grid-template-columns: 1fr; max-width: 560px; } }
/* The seasonal theme gets the whole row: the still beside its text. */
.theme.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr; align-items: center; }
.theme.wide .theme-body { padding: 24px 28px; }
.theme.wide .theme-body p { font-size: 17px; }
@media (max-width: 900px) { .theme.wide { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step img { border-radius: 22px; border: 2px solid var(--line); max-width: 240px; height: auto; }
.step h3 { font-size: 22px; margin: 18px 0 6px; }
.step p { margin: 0; color: var(--text-soft); }
.step .num { font: 700 15px var(--display); color: var(--action); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step img { max-width: 220px; }
}

/* Make your own category: the headline feature, right under the hero */
.spotlight { background: var(--surface); }
.spotlight .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.spotlight h2 { font-size: clamp(30px, 4vw, 44px); margin: 8px 0 14px; }
.spotlight .lead { margin: 0 0 24px; }
.spotlight-demo { height: auto; background: var(--ground); margin-bottom: 24px; }
.spotlight-gap { margin-top: 18px; }
.spotlight .answers { grid-template-columns: 1fr; }
.spotlight-points { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; color: var(--text-soft); }
.spotlight-points strong { color: var(--text); }
.spotlight-phone img { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; border-radius: 28px; border: 2px solid var(--line); }
@media (max-width: 860px) {
  .spotlight .wrap { grid-template-columns: 1fr; gap: 36px; }
  .spotlight-phone img { max-width: 240px; }
}

/* "With friends" / "On your own" headings above each row of steps */
.steps-title { font-size: 24px; margin: 8px 0 24px; color: var(--action); }
.steps + .steps-title { margin-top: 56px; }

/* Built-in categories */
.category-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.category-list li { padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 2px solid var(--line); font: 700 16px var(--body); }
.category-more { margin: 20px 0 0; color: var(--text-soft); }

/* Screenshot pair above the feature grid */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: center; gap: 48px; margin-bottom: 40px; }
.gallery figure { margin: 0; text-align: center; }
.gallery img { width: 100%; height: auto; border-radius: 22px; border: 2px solid var(--line); }
.gallery figcaption { margin-top: 12px; color: var(--text-soft); font-size: 16px; }
@media (max-width: 600px) { .gallery { grid-template-columns: minmax(0, 220px); gap: 32px; } }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.feature h3 { font-size: 20px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--text-soft); font-size: 16px; }
.feature .dot { width: 12px; height: 12px; border-radius: 4px; margin-bottom: 14px; transform: rotate(-6deg); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.features.two { grid-template-columns: 1fr 1fr; max-width: 860px; }
@media (max-width: 600px) { .features.two { grid-template-columns: 1fr; } }

/* How our words are made */
.words-hero { padding-bottom: 8px; }
.words-hero .wrap { display: block; }
.words-hero h1 { font-size: clamp(38px, 5.5vw, 58px); font-weight: 700; max-width: 16ch; }
.words-hero .lead { max-width: 46ch; }
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.demo-wide { grid-column: 1 / -1; }
.demo-step .num { font: 700 15px var(--display); color: var(--action); }
.demo-step h3 { font-size: 22px; margin: 4px 0 12px; }
.demo-card { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; height: calc(100% - 60px); }
.demo-wide .demo-card { height: auto; }
.demo-card.typed { border: 2px solid var(--line); }
.demo-card.typed p { margin: 8px 0 0; font-size: 18px; color: var(--text); }
.demo-label { display: block; color: var(--muted); font: 700 13px var(--body); letter-spacing: 0.04em; }
.demo-chip {
  display: inline-block; margin-top: 12px; padding: 10px 16px; border-radius: 12px;
  background: var(--action); color: var(--action-text); font: 600 22px var(--display);
}
.demo-small { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.answers { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.answers li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); }
.answers strong { font: 600 19px var(--display); letter-spacing: 0.08em; color: var(--text); }
.answers span { color: var(--text-soft); font-size: 15px; }
.words-notes { max-width: 760px; margin-top: 36px; }
@media (max-width: 760px) {
  .demo { grid-template-columns: 1fr; }
  .demo-card { height: auto; }
  .answers { grid-template-columns: 1fr; }
}

/* Free vs Pro */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; }
.plan { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 2px solid transparent; }
.plan.pro { border-color: var(--action); }
.plan h3 { font-size: 26px; }
.plan .price { font: 600 18px var(--display); color: var(--muted); margin: 4px 0 18px; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: var(--text-soft); }
.plan li::before {
  content: ''; position: absolute; left: 0; top: 13px; width: 14px; height: 14px; border-radius: 4px;
  background: var(--green); transform: rotate(-6deg);
}
.plan.pro li::before { background: var(--action); }
.plans-note { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 860px; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }

/* Closing call */
.cta { text-align: center; }
.cta .tiles { display: flex; justify-content: center; gap: 6px; margin-bottom: 20px; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); }
.cta p { color: var(--text-soft); margin: 12px auto 26px; max-width: 40ch; }
.cta .store-buttons { justify-content: center; }

/* Long pages (support, privacy): one column, wider on a big screen */
.prose-page { padding-top: 48px; padding-bottom: 64px; max-width: 820px; }
.prose h1 { font-size: clamp(34px, 5vw, 46px); margin-bottom: 6px; }
.prose h2 { font-size: 22px; margin: 34px 0 8px; scroll-margin-top: 84px; }
.prose p { margin: 0 0 14px; color: var(--text-soft); }
.prose .note { color: var(--muted); font-size: 15px; }
.prose strong { color: var(--text); }

/* Inside the app's browser sheet: they already have it. */
.in-app .header-cta, .in-app .nav, .in-app [data-store-buttons], .in-app .store-note, .in-app .cta { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .copy { margin-left: auto; }
@media (max-width: 600px) { .site-footer .copy { margin-left: 0; width: 100%; } }
