:root {
  --bg: #07111f;
  --nav: #081422;
  --card: #0e1c33;
  --elevated: #13263d;
  --hover: #173049;
  --line: #1c3d5c;
  --text: #f4f8fc;
  --muted: #b7c9dc;
  --accent: #7fdbef;
  --measure: 40rem;
  --content: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}

body.home {
  background:
    radial-gradient(760px 760px at calc(100% - 40px) -180px, rgba(26, 62, 102, 0.5), rgba(16, 36, 63, 0.22) 42%, transparent 72%),
    var(--bg);
}

img { max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover { color: var(--text); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--elevated);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 2;
}

.skip:focus { top: 12px; }

.site-header,
.site-footer {
  background: var(--nav);
  border-bottom: 1px solid var(--line);
}

.site-footer { border-bottom: 0; border-top: 1px solid var(--line); }

.bar,
.footer-inner,
.hero,
.section {
  width: min(var(--content), calc(100% - 64px));
  margin-inline: auto;
}

.site-header .bar,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  line-height: 0;
}

.brand img {
  width: 148px;
  height: auto;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
  padding: 8px;
  border-radius: 6px;
}

nav a:hover,
nav a[aria-current="page"] { color: var(--text); }

main { padding-bottom: 40px; }

.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  align-items: center;
  padding: 32px 0 8px;
}

.hero img {
  width: 72px;
  height: 72px;
}

h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.15;
}

.lede {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.availability {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 15px;
}

.section { padding: 20px 0 8px; }

.section h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.card a:hover h3 { color: var(--accent); }

.site-footer { margin-top: 24px; }

.footer-inner {
  align-items: flex-start;
  padding: 16px 0 24px;
}

.footer-brand img {
  width: 112px;
  height: auto;
}

.footer-meta,
.footer-links {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  padding: 8px;
  border-radius: 6px;
}

.footer-links a:hover { color: var(--text); }

.chrome-note { font-size: 12px; }

.legal {
  width: min(var(--measure), calc(100% - 64px));
  margin: 28px auto 0;
}

.legal h1 { margin-bottom: 8px; }

.legal .effective {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.legal h2 {
  margin: 24px 0 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.legal h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.legal p {
  margin: 0 0 12px;
  line-height: 1.5;
}

.legal ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.legal li { margin: 4px 0; }

.checkout-return .checkout-ref {
  color: var(--muted);
  font-size: 13px;
  word-break: break-all;
}

/* Support page — customer contact */
.support-page {
  --support-max: 760px;
  width: min(var(--support-max), calc(100% - 64px));
  margin: 40px auto 0;
  padding-bottom: 8px;
}

.support-hero {
  margin: 0 0 28px;
  text-align: left;
}

.support-hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.support-hero .lede {
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.support-card {
  margin: 0 0 20px;
  padding: 28px 28px 24px;
  background: linear-gradient(180deg, #10243a 0%, var(--card) 100%);
  border: 1px solid rgba(127, 219, 239, 0.35);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.support-card-title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.form-mode-notice {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(127, 219, 239, 0.08);
  border: 1px solid rgba(127, 219, 239, 0.28);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.form-mode-notice[hidden] {
  display: none !important;
}

.support-form {
  position: relative;
  display: block;
  width: 100%;
}

.support-form .field {
  display: block;
  width: 100%;
  margin: 0 0 16px;
}

.support-form label {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.support-form .req {
  color: var(--accent);
}

.support-form .optional {
  font-weight: 400;
  color: var(--muted);
}

.support-form input[type="text"],
.support-form input[type="email"],
.support-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a1829;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
}

.support-form input[type="text"],
.support-form input[type="email"] {
  min-height: 46px;
}

.support-form textarea {
  min-height: 160px;
  resize: vertical;
}

.support-form input::placeholder,
.support-form textarea::placeholder {
  color: #7f94ab;
}

.support-form input:hover,
.support-form textarea:hover {
  border-color: #2a5478;
}

.support-form input:focus,
.support-form textarea:focus,
.support-form input:focus-visible,
.support-form textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(127, 219, 239, 0.22);
}

.support-form input[aria-invalid="true"],
.support-form textarea[aria-invalid="true"] {
  border-color: #e8a0a0;
  box-shadow: 0 0 0 3px rgba(232, 160, 160, 0.18);
}

.field-error {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #f0c2c2;
}

.field-error[hidden] {
  display: none !important;
}

/* Honeypot: no layout space, not visible to ordinary visitors */
.support-form input.hp,
.support-form input.hp[hidden] {
  display: none !important;
}

.form-status {
  min-height: 1.35em;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.form-status:empty {
  display: none;
}

.form-status.is-ok { color: #b7e7c8; }
.form-status.is-error,
.form-status.is-warn { color: #f0c2c2; }

.form-actions {
  margin-top: 4px;
}

.support-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #9ae7f5 0%, var(--accent) 55%, #5fc4d8 100%);
  color: #07111f;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
}

.support-submit:hover:not(:disabled) {
  filter: brightness(1.04);
}

.support-submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.support-submit:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

.email-alt {
  margin: 0 0 28px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.support-aside {
  margin: 0 0 16px;
}

.support-aside h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.support-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.security-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .bar,
  .footer-inner,
  .hero,
  .section,
  .legal {
    width: min(var(--content), calc(100% - 32px));
  }

  .support-page {
    width: min(var(--support-max), calc(100% - 32px));
    margin-top: 28px;
  }

  .support-hero h1 {
    font-size: 28px;
  }

  .support-card {
    padding: 20px 16px 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .hero h1 { font-size: 32px; }

  .cards { grid-template-columns: 1fr; }

  .site-header .bar,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
