:root {
  --green: var(--accent);
  --green-dark: var(--accent-text);
  --warm: var(--page-bg);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --line: var(--border-color);
  --white: var(--surface-raised-bg);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-width: none;
  background: var(--page-bg);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--page-bg);
  overflow-x: hidden;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 700;
}

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

.page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  background: var(--page-bg);
  overflow: hidden;
}

.topbar {
  height: 44px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--topbar-bg);
  color: var(--topbar-text);
  font-size: 14px;
  font-weight: 560;
}

.topbar span:last-child {
  opacity: 0.78;
}

.site-header {
  position: relative;
  z-index: 5;
  height: 82px;
  margin-bottom: -82px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--hero-chrome-text);
}

.logo {
  font-size: 38px;
  line-height: 0.9;
  letter-spacing: 8px;
  font-weight: 300;
}

.logo small {
  display: block;
  margin-top: 5px;
  margin-left: 44px;
  font-size: 8px;
  letter-spacing: 7px;
  font-weight: 600;
}

.header-contact {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 14px;
  font-weight: 720;
}

.header-pill {
  padding: 10px 15px;
  border: 1px solid var(--hero-chrome-border);
  border-radius: 4px;
  background: var(--hero-chrome-bg);
  color: var(--hero-chrome-text);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 600px;
  padding: 142px 84px 64px;
  color: var(--hero-text);
  background-color: var(--hero-fallback-bg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(590px, 100%);
  padding-top: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--hero-eyebrow);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--accent);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  font-weight: 620;
  letter-spacing: 0;
}

.hero p {
  margin: 0;
  max-width: 520px;
  color: var(--hero-text-muted);
  font-size: 18px;
  line-height: 1.58;
}

.section {
  padding: 76px 84px;
  background: var(--page-bg);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.14;
  font-weight: 620;
  letter-spacing: 0;
}

.section-head p {
  margin: 0;
  max-width: 430px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

.contact-card {
  min-height: 250px;
  padding: 34px;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--surface-raised-bg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-label {
  margin: 0 0 18px;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-value {
  margin: 0 0 16px;
  color: var(--text-primary);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.16;
  font-weight: 650;
  letter-spacing: 0;
  word-break: break-word;
}

.contact-link {
  color: inherit;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--accent-hover);
  text-decoration: underline;
  outline: none;
}

.contact-text {
  margin: 0;
  max-width: 530px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.email-action {
  width: fit-content;
  min-width: 164px;
  height: 50px;
  margin-top: 24px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: 15px;
  font-weight: 760;
  box-shadow: var(--shadow-button);
  cursor: pointer;
}

.pending-badge {
  width: fit-content;
  margin: 24px 0 0;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 13px;
  font-weight: 740;
}

.message-band {
  padding: 58px 84px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--band-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.message-title {
  display: block;
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 620;
  color: var(--text-primary);
}

.message-band p {
  margin: 0;
  max-width: 650px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.62;
}

.message-mark {
  flex: 0 0 auto;
  min-width: 132px;
  height: 66px;
  margin: 0;
  padding: 0 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--badge-bg);
  color: var(--accent-text);
  font-size: 18px;
  font-weight: 780;
}

.bottom {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 360px;
  padding: 76px 84px;
  color: var(--hero-text);
  background-color: var(--bottom-fallback-bg);
}

.bottom h2,
.bottom > p,
.bottom .tagline {
  position: relative;
  z-index: 2;
}

.bottom h2 {
  width: min(580px, 100%);
  margin-bottom: 18px;
  color: var(--hero-text);
  font-size: clamp(28px, 3.5vw, 42px);
}

.bottom > p {
  width: min(470px, 100%);
  margin: 0 0 28px;
  color: var(--hero-text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.tagline {
  display: inline-block;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  color: var(--hero-eyebrow);
  font-size: 18px;
  font-weight: 760;
}

footer {
  padding: 38px 84px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 14px;
}

footer .logo {
  margin-bottom: 18px;
  font-size: 30px;
  letter-spacing: 7px;
}

footer .logo small {
  margin-left: 34px;
  letter-spacing: 5px;
}

footer p {
  margin: 0;
  color: var(--footer-muted);
  line-height: 1.6;
}

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

.footer-contact strong {
  display: block;
  margin-bottom: 8px;
  color: var(--footer-heading);
  font-size: 14px;
}

.footer-contact span {
  display: block;
  color: var(--footer-muted);
  line-height: 1.6;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--footer-link-hover);
  text-decoration: underline;
  outline: none;
}

.support-form-section {
  background: var(--surface-bg);
  scroll-margin-top: 24px;
}

.public-flash {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.public-flash-item {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.public-flash-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: var(--success-border);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 18px;
}

.public-flash-error {
  background: var(--error-bg);
  color: var(--error-text);
  border-color: var(--error-border);
}

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

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

.support-form .field {
  display: grid;
  gap: 6px;
}

.support-form label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.support-form .field-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.support-form .optional {
  color: var(--text-secondary);
  font-weight: 500;
}

.support-form .input,
.support-form .textarea,
.support-form select.input {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--text-primary);
  padding: 12px 12px;
  font: inherit;
  box-sizing: border-box;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.support-form .input::placeholder,
.support-form .textarea::placeholder {
  color: var(--text-muted);
}

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

.support-form .input:hover,
.support-form .textarea:hover,
.support-form select.input:hover {
  border-color: var(--input-hover-border);
  background: var(--input-hover-bg);
}

.support-form .input:focus,
.support-form .textarea:focus,
.support-form select.input:focus {
  outline: none;
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-ring);
  background: var(--input-bg);
}

.support-form .field:focus-within .field-head label {
  color: var(--accent-text);
}

.support-form .field-full {
  grid-column: 1 / -1;
}

.support-form .field-error {
  margin: 0;
  color: var(--error-text);
  font-size: 13px;
}

.support-form .field.has-error .input,
.support-form .field.has-error .textarea,
.support-form .field.has-error select.input {
  border-color: var(--error-border);
}

.support-form .field.has-error .input:hover,
.support-form .field.has-error .textarea:hover,
.support-form .field.has-error select.input:hover {
  border-color: var(--error-border);
}

.support-form .field.has-error .input:focus,
.support-form .field.has-error .textarea:focus,
.support-form .field.has-error select.input:focus {
  border-color: var(--error-border);
  box-shadow: var(--error-focus-ring);
}

.support-form .field.has-error:focus-within .field-head label {
  color: var(--error-text);
}

.support-submit {
  margin-top: 4px;
}

.support-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.field-help {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-review {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--error-border);
  background: var(--error-bg);
  color: var(--error-text);
  font-weight: 700;
}

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.form-modal.is-open {
  display: flex;
}

.form-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-overlay);
}

.form-modal-panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(90vh, 640px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 28px 24px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--surface-raised-bg);
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  overflow-wrap: anywhere;
}

.form-modal-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
  color: var(--text-primary);
}

.form-modal-panel p {
  margin: 0 0 22px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.form-modal-success {
  border-top: 6px solid var(--accent);
}

.form-modal-mail_failed {
  border-top: 6px solid var(--warning-accent);
}

.form-modal-failed {
  border-top: 6px solid var(--error-border);
}

.form-modal-close {
  margin-top: 0;
  width: 100%;
}

body.modal-open {
  overflow: hidden;
}

.js-ready .form-modal.is-open .form-modal-panel {
  animation: form-modal-in 220ms ease;
}

@keyframes form-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-ready .form-modal.is-open .form-modal-panel {
    animation: none;
  }
}

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

/* Tablet / small desktop: light padding only — keep desktop layout >= 768px */
@media (max-width: 960px) and (min-width: 768px) {
  .topbar,
  .site-header,
  .hero,
  .section,
  .message-band,
  .bottom,
  footer {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Mobile-first Contact Us layout */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
  }

  .page {
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar {
    height: auto;
    min-height: 36px;
    padding: 8px 16px;
    gap: 8px;
    font-size: 12px;
  }

  .topbar span:last-child {
    display: none;
  }

  .site-header {
    height: auto;
    margin-bottom: 0;
    padding: 14px 16px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    background: var(--header-bg);
    color: var(--text-primary);
  }

  .header-pill,
  .theme-toggle {
    border-color: var(--border-color);
    background: var(--surface-raised-bg);
    color: var(--text-primary);
  }

  .site-header .logo {
    font-size: 24px;
    letter-spacing: 5px;
  }

  .site-header .logo small {
    margin-top: 4px;
    margin-left: 26px;
    letter-spacing: 5px;
  }

  .header-contact {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .header-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero {
    min-height: 0;
    padding: 24px 16px 28px;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    padding-top: 0;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .eyebrow::before {
    width: 24px;
  }

  .hero h1 {
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.5;
  }

  .section {
    padding: 36px 16px;
  }

  .section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
  }

  .section-head h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .section-head p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.55;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .support-submit {
    width: 100%;
  }

  .contact-card {
    min-height: 0;
    padding: 22px;
    gap: 0;
  }

  .contact-label {
    margin-bottom: 12px;
  }

  .contact-value {
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.25;
  }

  .contact-text {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.55;
  }

  .email-action {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    height: auto;
    margin-top: 18px;
    padding: 14px 18px;
    font-size: 15px;
  }

  .pending-badge {
    margin-top: 18px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .message-band {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 28px 16px;
  }

  .message-band > div {
    width: 100%;
  }

  .message-title {
    margin-bottom: 8px;
    font-size: 22px;
    line-height: 1.25;
  }

  .message-band p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.55;
  }

  .message-mark {
    flex: 0 0 auto;
    align-self: flex-start;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 780;
    line-height: 1.3;
  }

  .bottom {
    min-height: 0;
    padding: 40px 16px;
  }

  .bottom h2 {
    width: 100%;
    margin-bottom: 12px;
    font-size: 26px;
    line-height: 1.2;
  }

  .bottom > p {
    width: 100%;
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.55;
  }

  .tagline {
    font-size: 15px;
  }

  footer {
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  footer .logo {
    margin-bottom: 10px;
    font-size: 24px;
    letter-spacing: 5px;
  }

  footer .logo small {
    margin-left: 26px;
    letter-spacing: 4px;
  }

  footer p {
    font-size: 14px;
    line-height: 1.55;
  }

  .footer-contact {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-contact strong {
    margin-bottom: 4px;
  }

  .footer-contact span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
