/* Rassberry marketing — aligned with app theme (colors.ts) */
@font-face {
  font-family: "Krungthep";
  src: url("../fonts/Krungthep.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060606;
  --bg-elevated: #0a0a0a;
  --surface: #121212;
  --surface2: #1a1a1a;
  --border: #2e2e2e;
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.55);
  --pink: #f80e61;
  --pink-border: #dc0c56;
  --pink-soft: rgba(248, 14, 97, 0.14);
  --mint: #5fd38d;
  --magenta: #e843b8;
  --control: #ebebeb;
  --control-text: #060606;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  /* Same display font as the mobile app (single-weight Krungthep.ttf) */
  --font-display: "Krungthep", var(--font-sans);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pink);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: normal;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  margin-top: 0;
}

h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.45rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 6, 6, 0.85);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.logo img {
  display: block;
  height: 34px;
  width: auto;
}

@media (min-width: 480px) {
  .logo img {
    height: 38px;
  }
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav a.is-active {
  color: var(--pink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 4px 24px rgba(248, 14, 97, 0.35);
}

.btn--primary:hover {
  background: var(--pink-border);
  color: #fff;
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--pink);
  color: var(--pink);
}

main {
  overflow-x: hidden;
}

.section {
  padding: 4.5rem 1.5rem;
}

.section--tight {
  padding-top: 2.5rem;
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.hero {
  padding: 4rem 1.5rem 5rem;
  position: relative;
}

.hero__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mint);
  margin-bottom: 1rem;
}

.hero__lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 36ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__card {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero__card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse, rgba(248, 14, 97, 0.2) 0%, transparent 65%);
  pointer-events: none;
}

.hero__card-inner {
  position: relative;
}

.hero__stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.hero__stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero__stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--pink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.features {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(248, 14, 97, 0.45);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

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

.values {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

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

.cta-band {
  background: linear-gradient(135deg, rgba(248, 14, 97, 0.12) 0%, rgba(95, 211, 141, 0.08) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.support-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.support-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.support-card p {
  margin: 0;
  font-size: 0.95rem;
}

.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal__meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.help-topics {
  display: grid;
  gap: 1rem;
}

.help-topic {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.help-topic h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.help-topic p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Simple forms (mailto handoff — no server) */
.web-form {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.web-form__title {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.web-form__lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.form-field .optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
}

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

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

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
  line-height: 1.45;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.form-check input {
  margin-top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--pink);
}

.form-check label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.callout {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface2);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 1.5rem 0;
}

.callout strong {
  color: var(--text);
}

.support-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1rem;
  margin: 0 0 1.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.support-subnav a {
  color: var(--text-muted);
  font-weight: 600;
}

.support-subnav a:hover {
  color: var(--pink);
}

.support-subnav a.is-active {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.venue-highlight {
  border-left: 3px solid var(--mint);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
  margin-top: 2rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 720px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.25rem;
    gap: 0.75rem;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.5rem 0;
  }
}
