:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-soft: #eeeeea;
  --text: #191a1c;
  --muted: #666a70;
  --line: #ddddda;
  --accent: #007a78;
  --accent-soft: #d8f2ef;
  --shadow: 0 24px 70px rgba(20, 24, 31, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #101113;
    --surface: #181a1d;
    --surface-soft: #202327;
    --text: #f2f2ef;
    --muted: #a5a8ad;
    --line: #2b2e33;
    --accent: #72e8df;
    --accent-soft: #153b3a;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101113;
  --surface: #181a1d;
  --surface-soft: #202327;
  --text: #f2f2ef;
  --muted: #a5a8ad;
  --line: #2b2e33;
  --accent: #72e8df;
  --accent-soft: #153b3a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
  transition: background-color 220ms ease, color 220ms ease;
}

a {
  color: inherit;
}

.site-header,
.hero,
.section,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand,
nav,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
}

nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

nav a,
footer a {
  text-decoration: none;
}

nav a,
.theme-toggle,
footer a {
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.theme-toggle {
  min-height: 32px;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

nav a[aria-current="page"],
nav a:hover,
footer a:hover {
  color: var(--accent);
}

footer span {
  margin-right: auto;
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  padding: 78px 0 92px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 640px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.36;
}

.store-badge {
  min-height: 60px;
}

.screenshot-frame {
  margin: 0;
  justify-self: end;
  animation: floatIn 700ms cubic-bezier(.2, .8, .2, 1) both;
}

.screenshot-frame img {
  display: block;
  width: min(100%, 548px);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy > * {
  animation: riseIn 560ms ease both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 60ms;
}

.hero-copy > :nth-child(3) {
  animation-delay: 120ms;
}

.hero-copy > :nth-child(4) {
  animation-delay: 180ms;
}

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-heading h2,
.note p,
.policy h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
}

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

article,
.policy-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, background-color 220ms ease;
}

article:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

h3,
.policy-card h2 {
  margin-bottom: 10px;
  font-size: 19px;
}

article p,
.policy-card p,
.note p,
.policy .lede {
  color: var(--muted);
  line-height: 1.6;
}

.note {
  padding-top: 72px;
}

.note p {
  max-width: 760px;
  color: var(--text);
}

.policy {
  width: min(920px, calc(100% - 40px));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: 84px 0;
}

.policy .lede {
  max-width: 720px;
  margin-bottom: 32px;
  font-size: clamp(18px, 2.2vw, 24px);
}

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

.policy-body a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.updated {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

footer {
  justify-content: flex-start;
  gap: 18px;
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero,
  .feature-list,
  .policy-body {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 72px;
  }

  .screenshot-frame {
    justify-self: stretch;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

.support-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: 72px 0 88px;
}

.support-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.support-heading h1 {
  font-size: clamp(40px, 6vw, 72px);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 18px;
  align-items: start;
}

.ticket-workspace {
  display: grid;
  gap: 18px;
}

.ticket-form,
.support-guide,
.ticket-column {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ticket-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.form-row {
  display: grid;
  gap: 8px;
}

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

label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 128px;
  padding: 12px;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

.primary-button {
  justify-self: start;
  min-height: 42px;
  padding: 0 16px;
  color: #001f20;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

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

.ticket-column {
  min-height: 260px;
  padding: 16px;
}

.ticket-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ticket-column-head h2,
.support-guide h2 {
  margin: 0;
  font-size: 18px;
}

.ticket-column-head span,
.ticket-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.ticket-list {
  display: grid;
  gap: 10px;
}

.ticket-card {
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  animation: riseIn 260ms ease both;
}

.ticket-card h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.ticket-card p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.ticket-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ticket-action {
  min-height: 30px;
  padding: 0 10px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.empty-state {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.support-guide {
  position: sticky;
  top: 18px;
  padding: 20px;
}

.support-guide ol {
  margin: 14px 0 18px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.support-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .support-layout,
  .ticket-board,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .support-guide {
    position: static;
  }
}
.bot-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.admin-tools {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-token-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.turnstile-wrap {
  min-height: 65px;
}

.ticket-comments {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.ticket-comment {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-comment {
  border-color: var(--accent);
}

.ticket-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.ticket-comment p,
.reply-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.reply-panel {
  margin-top: 12px;
}

.reply-panel summary {
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.reply-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.reply-form textarea {
  min-height: 84px;
}