/*
 * huddlr.io: the same tokens as the app. Crisp white and near-black, with sunny yellow as the
 * one bold colour. --accent is for fills; text on white uses --accent-strong (deep amber).
 */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f4f1;
  --surface-3: #e9e9e4;
  --ink: #111111;
  --ink-2: #5c5c58;
  --ink-3: #8a8a84;
  --line: #ebebe6;
  --line-strong: #d6d6cf;
  --accent: #ffd23f;
  --accent-strong: #8a6400;
  --accent-soft: #fff3c4;
  --success: #15924d;
  --success-soft: #dcf5e6;
  --danger: #e0333f;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-hard: 4px 4px 0 #111;
  --shadow-soft: 0 24px 60px -24px rgba(17, 17, 17, 0.35);
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Archivo', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --max: 1160px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 100;
}
.skip:focus {
  left: 12px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.on-yellow {
  background: rgba(255, 210, 63, 0.9);
  border-bottom-color: rgba(17, 17, 17, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  font-stretch: 115%;
  letter-spacing: -0.02em;
}
.brand svg {
  width: 34px;
  height: 34px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  opacity: 0.8;
}
.nav-links a:hover {
  opacity: 1;
}
.nav-links a.btn-ink {
  color: #fff;
  opacity: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(17, 17, 17, 0.35);
}
.btn-yellow {
  background: var(--accent);
  color: var(--ink);
  box-shadow: var(--shadow-hard);
}
.btn-yellow:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #111;
}
.btn-white {
  background: #fff;
  color: var(--ink);
}
.btn-white:hover {
  background: var(--surface-2);
}
.btn-sm {
  height: 42px;
  padding: 0 18px;
  font-size: 15px;
}

/* Store badges: "coming soon" until the apps are live. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 18px 0 14px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  position: relative;
}
.store svg {
  width: 26px;
  height: 26px;
}
.store small {
  display: block;
  font-size: 11px;
  opacity: 0.75;
  line-height: 1.1;
}
.store strong {
  display: block;
  font-size: 17px;
  line-height: 1.15;
}
.store .soon {
  position: absolute;
  top: -9px;
  right: -8px;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 8px;
  letter-spacing: 0.02em;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--accent);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 72px 24px 96px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 14px;
  box-shadow: 3px 3px 0 #111;
}
.hero h1 {
  font-size: clamp(46px, 6.6vw, 86px);
  font-weight: 900;
  font-stretch: 118%;
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 22px 0 22px;
}
.hero .lede {
  font-size: clamp(18px, 1.6vw, 21px);
  max-width: 34ch;
  color: rgba(17, 17, 17, 0.8);
  font-weight: 500;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 20px;
}
.hero-note {
  font-size: 14px;
  color: rgba(17, 17, 17, 0.7);
  font-weight: 500;
}

/* Floating "sticker" cards, as on the app's sign-in screen. */
.sticker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: var(--shadow-hard);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  z-index: 3;
}
.sticker span[aria-hidden] {
  font-size: 20px;
}

/* ---------- Phone mock-ups (pure HTML, no screenshots) ---------- */
.stage {
  position: relative;
  min-height: 660px;
  padding-top: 44px;
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: 300px;
  height: 610px;
  border-radius: 46px;
  background: #111;
  padding: 11px;
  box-shadow: var(--shadow-soft), 0 0 0 2px #111;
}
.phone::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  border-radius: 999px;
  background: #111;
  z-index: 2;
}
.screen {
  height: 100%;
  border-radius: 36px;
  background: #fff;
  overflow: hidden;
  padding: 56px 16px 16px;
  font-size: 12.5px;
  line-height: 1.4;
}
.screen .app-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 115%;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.screen .muted {
  color: var(--ink-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--surface-2);
}
.chip.yellow {
  background: var(--accent);
}
.chip.green {
  background: var(--success-soft);
  color: var(--success);
}
.mini-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 11px 12px;
  margin-top: 10px;
  background: #fff;
}
.mini-card.best {
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 #111;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.time {
  font-weight: 800;
  font-size: 13.5px;
}
.dots {
  display: flex;
}
.dots i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -6px;
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.dots i:first-child {
  margin-left: 0;
}
.votes {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.votes span {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  border-radius: 999px;
  padding: 5px 0;
  background: var(--surface-2);
}
.votes span.on {
  background: var(--ink);
  color: #fff;
}
.heat {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-top: 8px;
}
.heat b {
  height: 12px;
  border-radius: 3px;
  background: rgba(21, 146, 77, var(--a, 0.12));
}
.mini-cta {
  margin-top: 12px;
  background: var(--accent);
  border-radius: 999px;
  text-align: center;
  padding: 10px;
  font-weight: 800;
  font-size: 13px;
}

/* ---------- Sections ---------- */
section {
  scroll-margin-top: 80px;
}
.section {
  padding: 104px 0;
}
.section-tight {
  padding: 72px 0;
}
.kicker {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 900;
  max-width: 18ch;
}
.section .intro {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 56ch;
  margin-top: 18px;
}

/* What is Huddlr: a plain definition, for people and for AI search. */
.definition {
  background: var(--ink);
  color: #fff;
}
.definition .wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.definition h2 {
  color: var(--accent);
  font-size: clamp(30px, 3.4vw, 42px);
}
.definition p {
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}
.definition p + p {
  margin-top: 16px;
}
.definition strong {
  color: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.step {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow-hard);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.step p {
  color: var(--ink-2);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.feature {
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface-2);
}
.feature .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.feature h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.feature p {
  color: var(--ink-2);
  font-size: 16px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media {
  order: -1;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 17px;
}
.checklist li::before {
  content: '';
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.panel {
  border-radius: 32px;
  background: var(--surface-2);
  padding: 40px;
  display: flex;
  justify-content: center;
}
.panel.yellow {
  background: var(--accent);
}
.card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: 22px;
}
.card h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.big-money {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  font-stretch: 112%;
  letter-spacing: -0.02em;
}
.transfer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.transfer:first-of-type {
  margin-top: 14px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex: none;
}
.payid {
  margin-top: 12px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Share-link mock: a message bubble in a group chat. */
.chat {
  width: 100%;
  max-width: 380px;
  display: grid;
  gap: 10px;
}
.bubble {
  max-width: 85%;
  padding: 11px 15px;
  border-radius: 20px;
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--line);
}
.bubble.me {
  justify-self: end;
  background: #0b84ff;
  color: #fff;
  border: 0;
}
.link-card {
  justify-self: end;
  width: 85%;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: var(--shadow-hard);
}
.link-card .top {
  background: var(--accent);
  padding: 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  font-stretch: 112%;
}
.link-card .bottom {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin-top: 40px;
  border-top: 2px solid var(--ink);
}
.faq details {
  border-bottom: 1px solid var(--line-strong);
  padding: 22px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 19px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--accent);
}
.faq details p,
.faq details ul {
  margin-top: 12px;
  color: var(--ink-2);
  max-width: 68ch;
}

/* ---------- CTA band + footer ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 40px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  color: #fff;
  max-width: 16ch;
  margin: 0 auto;
}
.cta-band h2 em {
  font-style: normal;
  color: var(--accent);
}
.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 19px;
  margin: 18px auto 32px;
  max-width: 44ch;
}
.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.cta-band .store {
  background: #fff;
  color: var(--ink);
}

.site-footer {
  padding: 72px 0 48px;
  border-top: 1px solid var(--line);
  margin-top: 104px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.footer-grid h3 {
  font-family: var(--font-sans);
  font-stretch: 100%;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 15px;
}
.footer-grid a {
  text-decoration: none;
  color: var(--ink-2);
}
.footer-grid a:hover {
  color: var(--ink);
}
.footer-tag {
  color: var(--ink-2);
  font-size: 15px;
  margin-top: 14px;
  max-width: 30ch;
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- Plain pages (privacy, terms, support) ---------- */
.page-head {
  background: var(--accent);
  padding: 72px 0 56px;
}
.page-head h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  font-stretch: 116%;
}
.page-head p {
  margin-top: 14px;
  font-size: 18px;
  max-width: 56ch;
  color: rgba(17, 17, 17, 0.78);
}
.prose {
  max-width: 760px;
  padding: 64px 24px 0;
  margin: 0 auto;
}
.prose h2 {
  font-size: 30px;
  margin: 48px 0 14px;
}
.prose h3 {
  font-size: 21px;
  margin: 30px 0 10px;
  font-stretch: 105%;
}
.prose p,
.prose ul,
.prose ol {
  color: #2b2b28;
  margin: 0 0 16px;
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li {
  margin-bottom: 8px;
}
.prose a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--accent-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 8px 0 24px;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.prose th {
  background: var(--surface-2);
}
.note {
  background: var(--accent-soft);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0 0 24px;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 8px;
}
.contact-cards .card {
  max-width: none;
}
.contact-cards .card p {
  margin: 6px 0 12px;
  font-size: 15px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .definition .wrap {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-media {
    order: 0;
  }
  .hero-grid {
    padding-top: 48px;
    gap: 32px;
  }
  .steps,
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links .hide-sm {
    display: none;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 16px;
  }
  .hero-grid {
    padding: 36px 16px 56px;
  }
  .steps,
  .features,
  .contact-cards {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 72px 0;
  }
  .stage {
    min-height: 0;
    transform: scale(0.92);
    transform-origin: top center;
    margin-bottom: -40px;
  }
  .sticker {
    display: none;
  }
  .cta-band {
    border-radius: 28px;
    padding: 56px 22px;
  }
  .panel {
    padding: 24px;
    border-radius: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    gap: 14px;
  }
  .hero-cta .btn {
    flex: 1 1 100%;
  }
}

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