/* Ruckus website. Colors match the app (src/constants/theme.ts). */
:root {
  --background: #111318;
  --surface: #1b1e25;
  --surface-raised: #252932;
  --border: #2e333d;
  --text: #ffffff;
  --text-secondary: #8b919d;
  --accent: #b9f46b;
  --on-accent: #111318;
  --danger: #ff7a6b;
  --radius-card: 28px;
  --radius-field: 20px;
  --max: 1080px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(17, 19, 24, 0.85);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(46, 51, 61, 0.6);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.site-header .logo img {
  width: 112px;
  height: auto;
}

.site-nav {
  display: flex;
  gap: 6px;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
}

/* Footer */
.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--text-secondary);
  font-size: 15px;
}

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

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* Type */
h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
}

h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
}

h3 {
  font-size: 19px;
  font-weight: 700;
}

.muted {
  color: var(--text-secondary);
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  filter: brightness(1.05);
}

.button:disabled {
  background: var(--surface-raised);
  color: var(--text-secondary);
  cursor: default;
}

.button.secondary {
  background: var(--surface-raised);
  color: var(--text);
}

/* Home */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 72px 0 32px;
}

.hero p.lede {
  font-size: 20px;
  margin: 20px 0 32px;
  max-width: 30ch;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
}

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

.phone {
  justify-self: center;
  width: min(320px, 80vw);
  aspect-ratio: 9 / 16;
  border-radius: 40px;
  overflow: hidden;
  border: 6px solid var(--surface-raised);
  background: var(--surface);
  box-shadow: 0 40px 120px rgba(185, 244, 107, 0.12);
}

.phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.card .num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
}

.card p {
  margin: 8px 0 0;
}

/* Inner pages */
.page {
  padding: 56px 0 0;
}

.page-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.page-head p {
  margin: 16px 0 0;
}

.narrow {
  max-width: 760px;
}

/* Support */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 15px;
  font-weight: 600;
}

.field .hint {
  font-weight: 400;
  color: var(--text-secondary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--background);
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
}

.notice.success {
  background: rgba(185, 244, 107, 0.12);
  color: var(--accent);
}

.notice.error {
  background: rgba(255, 122, 107, 0.12);
  color: var(--danger);
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq details:first-of-type {
  padding-top: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--text-secondary);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 10px 0 0;
  color: var(--text-secondary);
}

/* Legal documents (Termly text). Override its inline styles to match the site. */
.legal {
  padding-top: 24px;
  color: #d6d9df;
  font-size: 16px;
}

.legal ul {
  list-style-type: square;
}

.legal * {
  color: inherit !important;
  background: transparent !important;
  font-family: inherit !important;
  max-width: 100%;
}

.legal h1,
.legal h2,
.legal h3,
.legal strong,
.legal b {
  color: var(--text) !important;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
}

.legal h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}

.legal h3 {
  font-size: 18px;
  margin: 28px 0 8px;
}

.legal a {
  color: var(--accent) !important;
  word-break: break-word;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.legal td,
.legal th {
  border: 1px solid var(--border) !important;
  padding: 10px;
  vertical-align: top;
}

/* Small screens */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    text-align: left;
  }

  .steps,
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }

  .site-nav a {
    padding: 8px 8px;
    font-size: 14px;
  }

  .site-header .logo img {
    width: 92px;
  }

  .card {
    padding: 22px;
  }
}
