:root {
  --ink: #173f41;
  --ink-strong: #102f31;
  --coral: #ff6f61;
  --coral-dark: #d94f44;
  --teal: #42c4c3;
  --teal-dark: #167f83;
  --paper: #ffffff;
  --mist: #f2f8f7;
  --line: #dbe9e7;
  --muted: #5e7474;
  --warning: #a65b16;
  --shadow: 0 18px 45px rgba(16, 63, 65, 0.12);
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-strong);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral-dark);
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink-strong);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(219, 233, 231, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  min-height: 72px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-strong);
  font-size: 20px;
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink-strong);
  background: var(--mist);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  color: var(--ink-strong);
  background: var(--mist);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  content: "";
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 0.28) 100%), url("assets/auth_bg.png");
  background-position: center;
  background-size: cover;
}

.hero-inner {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 80px 24px 110px;
}

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

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  align-items: center;
  gap: 9px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  background: var(--coral);
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink-strong);
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(44px, 7vw, 78px);
  font-weight: 820;
}

.hero-copy > p {
  max-width: 590px;
  margin: 26px 0 0;
  color: #3f5d5d;
  font-size: 20px;
}

.hero-actions,
.support-actions {
  display: flex;
  margin-top: 34px;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 10px 24px rgba(217, 79, 68, 0.23);
}

.button-primary:hover {
  color: #fff;
  background: var(--coral-dark);
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink-strong);
  background: rgba(255, 255, 255, 0.82);
}

.button-secondary:hover {
  color: var(--ink-strong);
  border-color: var(--teal);
  background: #fff;
}

.trust-row {
  display: flex;
  margin-top: 42px;
  flex-wrap: wrap;
  gap: 12px 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.trust-row span::before {
  margin-right: 8px;
  color: var(--teal-dark);
  content: "✓";
}

.band {
  padding: 86px 24px;
}

.band-mist {
  background: var(--mist);
}

.band-dark {
  color: #dceceb;
  background: var(--ink-strong);
}

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

.section-heading {
  display: grid;
  margin-bottom: 38px;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  align-items: end;
  gap: 40px;
}

.section-heading h2 {
  font-size: clamp(32px, 5vw, 50px);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.feature {
  min-height: 255px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.feature-number {
  display: inline-grid;
  width: 40px;
  height: 40px;
  margin-bottom: 34px;
  border-radius: 50%;
  place-items: center;
  color: var(--ink-strong);
  background: #dff7f5;
  font-size: 13px;
  font-weight: 850;
}

.feature:nth-child(2) .feature-number,
.feature:nth-child(5) .feature-number {
  background: #ffe5df;
}

.feature h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 70px;
}

.split h2 {
  font-size: clamp(34px, 5vw, 52px);
}

.split p {
  color: var(--muted);
  font-size: 17px;
}

.signal-list {
  display: grid;
  gap: 1px;
  border-top: 1px solid var(--line);
}

.signal-row {
  display: grid;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 150px 1fr;
  gap: 24px;
}

.signal-row strong {
  color: var(--teal-dark);
}

.signal-row span {
  color: var(--muted);
}

.dark-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.dark-callout h2 {
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
}

.dark-callout p {
  max-width: 580px;
  margin: 16px 0 0;
  color: #bcd1d0;
}

.dark-callout .button-secondary {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.page-hero {
  padding: 76px 24px 58px;
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}

.page-hero .content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.page-hero p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.doc-meta {
  min-width: 210px;
  padding-left: 22px;
  border-left: 3px solid var(--coral);
  color: var(--muted);
  font-size: 14px;
}

.doc-meta strong {
  display: block;
  color: var(--ink-strong);
}

.legal-layout {
  display: grid;
  max-width: var(--content);
  margin: 0 auto;
  padding: 60px 24px 96px;
  grid-template-columns: 230px minmax(0, 720px);
  justify-content: space-between;
  gap: 70px;
}

.legal-nav {
  position: sticky;
  top: 100px;
  align-self: start;
}

.legal-nav span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-nav a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--coral-dark);
}

.legal-copy section {
  padding: 0 0 38px;
  scroll-margin-top: 100px;
}

.legal-copy h2 {
  margin-bottom: 15px;
  font-size: 25px;
}

.legal-copy p {
  margin: 0 0 12px;
  color: #425e5f;
}

.legal-note {
  margin-top: 8px;
  padding: 20px 22px;
  border-left: 3px solid var(--teal);
  background: var(--mist);
  color: var(--muted);
}

.support-intro {
  display: grid;
  padding: 70px 24px;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1.1fr);
  gap: 72px;
}

.support-intro h2 {
  font-size: clamp(32px, 5vw, 48px);
}

.support-intro p {
  color: var(--muted);
}

.contact-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-panel h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.contact-panel dl {
  margin: 26px 0 0;
}

.contact-panel div {
  display: grid;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 115px 1fr;
  gap: 18px;
}

.contact-panel dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.contact-panel dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

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

.help-item {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.help-item h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.help-item p {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 22px 44px 22px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 750;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 21px;
  right: 8px;
  color: var(--teal-dark);
  content: "+";
  font-size: 22px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 760px;
  margin: -2px 0 22px;
  color: var(--muted);
}

.site-footer {
  padding: 56px 24px 28px;
  color: #bcd1d0;
  background: var(--ink-strong);
}

.footer-grid {
  display: grid;
  max-width: var(--content);
  margin: 0 auto;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 50px;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  max-width: 330px;
  margin: 18px 0 0;
  color: #9fbab9;
}

.footer-links h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: #bcd1d0;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  max-width: var(--content);
  margin: 46px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  justify-content: space-between;
  gap: 20px;
  color: #88a6a5;
  font-size: 13px;
}

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

  .site-nav {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    padding: 22px 24px;
    align-items: stretch;
    flex-direction: column;
    background: #fff;
  }

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

  .site-nav a {
    padding: 13px 12px;
    font-size: 17px;
  }

  .hero {
    min-height: 720px;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.8) 62%, rgba(255, 255, 255, 0.2) 100%), url("assets/auth_bg.png");
    background-position: 57% center;
  }

  .hero-inner {
    padding-top: 72px;
    align-self: start;
  }

  .hero-copy > p {
    font-size: 18px;
  }

  .section-heading,
  .split,
  .page-hero .content-shell,
  .support-intro,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dark-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .legal-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }

  .legal-nav span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 580px) {
  .nav-shell {
    padding: 0 16px;
  }

  .hero-inner,
  .band,
  .page-hero,
  .support-intro,
  .legal-layout {
    padding-right: 18px;
    padding-left: 18px;
  }

  h1 {
    font-size: 43px;
  }

  .hero {
    min-height: 690px;
  }

  .hero-actions,
  .support-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feature-grid,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 0;
  }

  .signal-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .page-hero {
    padding-top: 54px;
  }

  .doc-meta {
    padding-top: 12px;
    padding-left: 0;
    border-top: 3px solid var(--coral);
    border-left: 0;
  }

  .legal-nav {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 22px;
  }

  .contact-panel div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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