:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #666666;
  --line: #e6e6e6;
  --soft: #f7f7f7;
  --paper: #ffffff;
  --brand: #111111;
  --accent: #e96f2c;
  --accent-soft: #fff0e7;
  --accent-line: #fed7aa;
  --accent-ink: #7c2d12;
  --shadow: 0 22px 70px rgba(17, 17, 17, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ffffff;
  --muted: #c7c7c7;
  --line: #454545;
  --soft: #1b1b1b;
  --paper: #0b0b0b;
  --brand: #ffffff;
  --accent: #ff8a3d;
  --accent-soft: #2a1408;
  --accent-line: #9a3412;
  --accent-ink: #ffb37a;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, #fff7f1 0, #ffffff 34%, #f7f7f7 100%);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

:root[data-theme="dark"] body {
  background:
    linear-gradient(180deg, #1f0f05 0, #0b0b0b 34%, #111111 100%);
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(230, 230, 230, 0.86);
  background: rgba(255, 247, 241, 0.9);
  backdrop-filter: blur(16px);
}

:root[data-theme="dark"] .site-header {
  border-bottom-color: rgba(47, 47, 47, 0.86);
  background: rgba(12, 12, 12, 0.9);
}

.nav {
  display: flex;
  max-width: 1120px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 18px 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

:root[data-theme="dark"] .brand-mark {
  color: #111111;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

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

.theme-toggle {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  padding: 0 14px;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.utility-toggle {
  display: flex;
  justify-content: flex-end;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px 0;
}

.hero,
.support-hero,
.section,
.legal-page,
.contact-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px;
}

.hero {
  display: grid;
  min-height: 500px;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 48px;
}

.support-hero {
  padding-bottom: 42px;
  text-align: center;
}

.support-hero.compact {
  padding-bottom: 28px;
}

.pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 0 18px;
  text-transform: uppercase;
}

:root[data-theme="dark"] .pill {
  background: rgba(17, 17, 17, 0.82);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.1;
}

h1 {
  font-size: clamp(44px, 7vw, 72px);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(26px, 4vw, 38px);
}

h3 {
  font-size: 21px;
}

.lead {
  max-width: 660px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 20px;
}

.hero .lead {
  margin-left: 0;
  margin-right: 0;
}

.hero .actions .button {
  flex: 0 1 190px;
}

.hero-visual {
  position: relative;
  min-height: 350px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(17, 17, 17, 0.98), rgba(17, 17, 17, 0.86)),
    linear-gradient(35deg, transparent 0 58%, rgba(233, 111, 44, 0.72) 58% 64%, transparent 64% 100%);
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] .hero-visual {
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.98), rgba(17, 17, 17, 0.92)),
    linear-gradient(35deg, transparent 0 58%, rgba(255, 138, 61, 0.74) 58% 64%, transparent 64% 100%);
}

.device-panel {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: 18px;
}

.panel-line {
  height: 10px;
  margin: 13px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.panel-line.short {
  width: 62%;
}

.panel-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font-size: 13px;
  font-weight: 900;
  padding: 0 14px;
}

.section.alt {
  max-width: none;
  background: var(--soft);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  padding: 24px;
}

:root[data-theme="dark"] .card {
  background: rgba(17, 17, 17, 0.92);
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.app-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  padding: 18px;
}

:root[data-theme="dark"] .app-row {
  background: rgba(17, 17, 17, 0.92);
}

.app-icon {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 18px;
  background: var(--accent);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.support-card {
  display: grid;
  max-width: 1040px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 42px;
  align-items: center;
  margin: 24px auto 42px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  padding: 40px;
}

:root[data-theme="dark"] .support-card,
:root[data-theme="dark"] .resource-card,
:root[data-theme="dark"] .contact-panel {
  background: rgba(17, 17, 17, 0.92);
}

.support-copy {
  display: grid;
  gap: 14px;
}

.support-copy p {
  margin: 0;
  color: var(--muted);
}

.support-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  color: var(--brand);
  font-size: 27px;
}

.reply-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink) !important;
  font-size: 14px;
  font-weight: 850;
  padding: 0 14px;
}

.support-actions {
  display: grid;
  gap: 16px;
}

.email-display {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f3f3f3;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  text-align: center;
  padding: 0 18px;
}

:root[data-theme="dark"] .email-display,
:root[data-theme="dark"] .button:not(.primary) {
  background: #1b1b1b;
}

.button-row,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  flex: 1 1 160px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f3f3f3;
  color: var(--brand);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

:root[data-theme="dark"] .button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #111111;
}

.button:focus-visible,
.resource-card:focus-visible {
  outline: 3px solid rgba(233, 111, 44, 0.28);
  outline-offset: 3px;
}

.tip {
  margin: 0;
  border: 1px solid var(--accent-line);
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 16px 18px;
}

.resource-strip {
  display: grid;
  max-width: 1040px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.resource-card {
  display: grid;
  gap: 4px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  padding: 22px 24px;
  text-decoration: none;
}

:root[data-theme="dark"] .resource-card {
  background: rgba(17, 17, 17, 0.76);
}

.resource-card span {
  font-size: 18px;
  font-weight: 900;
}

.resource-card small {
  color: var(--muted);
  font-size: 15px;
}

.section.narrow {
  max-width: 800px;
  padding-top: 20px;
  text-align: center;
}

.section.narrow .muted {
  margin: 18px 0 0;
}

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

.legal-page {
  max-width: 880px;
}

.legal-page h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.legal-page h2 {
  margin-top: 38px;
  font-size: 27px;
}

.legal-page h3 {
  margin-top: 28px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page ul {
  padding-left: 22px;
}

.notice {
  margin-top: 26px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 18px;
}

.contact-panel {
  max-width: 860px;
  margin: 0 auto 72px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  padding: 30px;
}

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

.field {
  display: grid;
  gap: 7px;
  align-content: start;
}

.field label,
.check-field {
  color: var(--ink);
  font-weight: 850;
  line-height: 1.2;
}

.field small,
.form-status {
  color: var(--muted);
}

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

.field input,
.field select {
  height: 52px;
  line-height: 1.2;
  padding-bottom: 0;
  padding-top: 0;
}

:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea {
  background: #111111;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(233, 111, 44, 0.18);
}

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

.check-field {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-weight: 750;
  line-height: 1.45;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

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

.turnstile-field {
  min-height: 65px;
}

.form-status {
  min-height: 26px;
  font-weight: 800;
}

.form-status.success {
  color: var(--accent-ink);
}

.form-status.error {
  color: #9a3412;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

:root[data-theme="dark"] .site-footer {
  background: rgba(11, 11, 11, 0.86);
}

.footer-inner {
  display: grid;
  max-width: 1120px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  margin: 0 auto;
  padding: 30px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  font-weight: 800;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .nav-links {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .theme-toggle {
    min-width: 78px;
  }

  .hero,
  .support-hero,
  .section,
  .legal-page,
  .contact-page {
    padding: 52px 18px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-visual {
    min-height: 260px;
  }

  .support-card {
    grid-template-columns: 1fr;
    gap: 26px;
    margin: 10px 16px 36px;
    padding: 24px;
  }

  .resource-strip,
  .grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .app-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .app-row .button {
    grid-column: 1 / -1;
  }

  .app-icon {
    width: 58px;
    height: 58px;
  }

  .button-row,
  .actions {
    flex-direction: column;
  }

  .button {
    flex-basis: auto;
  }

  .hero .actions .button {
    flex: 0 0 auto;
    width: 100%;
  }

  .contact-panel {
    padding: 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
