:root {
  --bg: #f7f9f4;
  --paper: #ffffff;
  --paper-soft: #fbf7eb;
  --ink: #17201b;
  --muted: #59665f;
  --line: #d7e0d8;
  --green: #176c54;
  --green-deep: #0f4939;
  --green-soft: #e6f4ed;
  --gold: #8b6100;
  --gold-bright: #d59a16;
  --gold-soft: #fff3c8;
  --danger: #9e2929;
  --danger-soft: #fff0f0;
  --shadow: 0 18px 46px rgba(35, 51, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(217, 167, 40, 0.22), transparent 24rem),
    radial-gradient(circle at 86% 16%, rgba(20, 104, 79, 0.18), transparent 28rem),
    linear-gradient(145deg, #f9fbf5 0%, #eef5ec 50%, #fff7dd 100%);
  font-family: Aptos, "Avenir Next", "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #116b9c;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--green-deep);
  font-weight: 850;
}

.skip-link:focus {
  transform: none;
}

.shape-grade {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 17%, rgba(255, 255, 255, 0.22) 17.4% 18.2%, transparent 18.7% 100%),
    linear-gradient(64deg, transparent 0 41%, rgba(23, 108, 84, 0.08) 41.2% 51%, transparent 51.4% 100%),
    linear-gradient(143deg, transparent 0 62%, rgba(213, 154, 22, 0.12) 62.2% 70%, transparent 70.5% 100%);
}

.shape-grade span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.38);
  transform: skewX(-18deg);
  opacity: 0.72;
}

.shape-grade span:nth-child(1) {
  top: 8%;
  left: 58%;
  width: 250px;
  height: 520px;
  background: linear-gradient(137deg, rgba(255, 255, 255, 0.42), rgba(213, 154, 22, 0.2) 44%, rgba(23, 108, 84, 0.1));
}

.shape-grade span:nth-child(2) {
  top: 18%;
  left: 72%;
  width: 160px;
  height: 410px;
  background: linear-gradient(128deg, rgba(255, 255, 255, 0.36), rgba(23, 108, 84, 0.18) 48%, rgba(213, 154, 22, 0.1));
}

.shape-grade span:nth-child(3) {
  right: -5%;
  bottom: 5%;
  width: 300px;
  height: 560px;
  background: linear-gradient(151deg, rgba(255, 255, 255, 0.32), rgba(213, 154, 22, 0.16) 42%, rgba(23, 108, 84, 0.12));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(221, 229, 220, 0.82);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

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

nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

nav a,
.nav-action {
  min-height: 38px;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: var(--green);
  background: var(--green-soft);
}

.nav-action {
  color: #654500;
  background: var(--gold-soft);
  border: 1px solid rgba(139, 97, 0, 0.28);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: 60px 0 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.document-hero h1 {
  margin: 0;
  font-size: clamp(62px, 9.4vw, 118px);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: #38453d;
  font-size: 24px;
  line-height: 1.48;
}

.hero-actions,
.app-actions,
.error-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #23352b, #176c54);
}

.button.secondary {
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 38px 0 0;
}

.metric-strip div {
  padding: 16px 0;
  border-top: 1px solid rgba(23, 108, 84, 0.22);
}

.metric-strip dt {
  font-size: 28px;
  font-weight: 950;
}

.metric-strip dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.console-visual {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(221, 229, 220, 0.88);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 244, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-visual::after {
  content: "";
  position: absolute;
  right: 8%;
  top: -12%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(217, 167, 40, 0.12);
}

.console-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.console-head img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  padding: 7px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 30px rgba(29, 63, 48, 0.08);
}

.console-head strong,
.console-head span {
  display: block;
}

.console-head span {
  color: var(--muted);
  font-weight: 750;
}

.console-flow {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr;
  align-items: center;
  gap: 8px;
  margin: 34px 0;
}

.console-flow span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  background: #dff6d0;
  font-weight: 900;
}

.console-flow i {
  height: 2px;
  background: linear-gradient(90deg, var(--gold-bright), var(--green));
}

.balance-panel {
  padding: 24px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #946b0e);
}

.balance-panel small,
.balance-panel strong {
  display: block;
}

.balance-panel small {
  opacity: 0.88;
  font-weight: 850;
  text-transform: uppercase;
}

.balance-panel strong {
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.12;
}

.console-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.console-table div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.console-table span {
  color: var(--muted);
  font-weight: 750;
}

.console-table b {
  text-align: right;
}

.service-band,
.ledger-section,
.app-band,
.compliance-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0;
}

.service-band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  border-top: 1px solid rgba(23, 108, 84, 0.18);
  border-bottom: 1px solid rgba(23, 108, 84, 0.18);
}

.service-band h2,
.section-head h2,
.app-band h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.service-band > p,
.app-band p {
  margin: 30px 0 0;
  color: #38453d;
  font-size: 20px;
  line-height: 1.68;
}

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

.ledger {
  border-top: 1px solid var(--line);
}

.ledger article {
  display: grid;
  grid-template-columns: 70px minmax(220px, 0.9fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.ledger span {
  color: var(--gold);
  font-weight: 950;
}

.ledger h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

.ledger p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.app-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: end;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.app-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.policy-list {
  display: grid;
  gap: 12px;
}

.policy-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.policy-row:last-child {
  border-bottom: 1px solid var(--line);
}

.policy-row:hover span {
  color: var(--green);
}

.policy-row span {
  font-size: 24px;
  font-weight: 950;
}

.policy-row small {
  color: var(--muted);
  font-size: 16px;
}

.document-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 80px;
}

.document-hero {
  padding: 60px 0 42px;
  border-bottom: 1px solid var(--line);
}

.document-hero h1 {
  max-width: 1000px;
  font-size: clamp(48px, 6.4vw, 76px);
}

.document-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.document-hero .document-meta {
  font-size: 14px;
  font-weight: 800;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(23, 108, 84, 0.22);
  border-radius: 999px;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 850;
}

.language-switch:hover,
.language-switch:focus-visible {
  background: var(--green-soft);
}

.document-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 42px;
  padding-top: 36px;
}

.document-side {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.document-side a {
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  font-weight: 850;
}

.document-side a:hover,
.document-side a:focus-visible {
  color: var(--green-deep);
  background: var(--green-soft);
  border-color: rgba(23, 108, 84, 0.12);
}

.policy-body,
.support-card,
.app-summary {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.policy-body p,
.policy-body li,
.support-card p,
.support-card li,
.app-summary p,
.app-summary li {
  font-size: 16px;
  line-height: 1.72;
}

.policy-body h2 {
  margin: 2.2em 0 0.65em;
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.policy-body h2:first-child {
  margin-top: 0;
}

.policy-body h3 {
  margin: 1.8em 0 0.55em;
  font-size: 21px;
  line-height: 1.2;
}

.policy-body h4 {
  font-size: 17px;
}

.policy-body a,
.support-card a {
  color: var(--green-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

.policy-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
}

.policy-body th,
.policy-body td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.policy-body th {
  background: var(--green-soft);
}

.legal-callout,
.notice-card,
.alert-card,
.success-card,
.error-card {
  margin: 24px 0;
  padding: 20px;
  border-left: 5px solid var(--green);
  border-radius: 12px;
  background: var(--green-soft);
}

.notice-card {
  border-left-color: var(--gold);
  background: var(--gold-soft);
}

.alert-card {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.error-card {
  border: 1px solid rgba(144, 35, 35, 0.25);
  border-left: 5px solid var(--danger);
  background: var(--danger-soft);
}

.success-card {
  border: 1px solid rgba(23, 108, 84, 0.24);
}

.legal-callout p,
.notice-card p,
.alert-card p,
.success-card p,
.error-card p {
  margin-bottom: 0;
}

.legal-callout strong,
.notice-card strong,
.alert-card strong,
.success-card strong,
.error-card strong {
  display: block;
  font-size: 18px;
}

.app-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 24px;
  padding: 42px 0 0;
}

.app-overview .notice-card {
  align-self: start;
  margin: 0;
}

.app-summary h2 {
  margin-top: 0;
  font-size: 30px;
}

.app-summary ol {
  margin-bottom: 0;
  padding-left: 22px;
}

.compliance-section.compact {
  width: 100%;
  padding-bottom: 0;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1.25fr);
  gap: 26px;
  padding-top: 36px;
}

.support-sidebar {
  display: grid;
  gap: 18px;
  align-self: start;
}

.support-card h2,
.support-card h3 {
  margin-top: 0;
}

.support-card ul {
  padding-left: 20px;
}

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

.support-form fieldset {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  border: 0;
}

.support-form legend {
  margin-bottom: 16px;
  font-size: 28px;
  font-weight: 900;
}

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

.field {
  display: grid;
  gap: 7px;
}

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

.field label,
.checkbox-field label {
  font-weight: 850;
}

.field small,
.form-note {
  color: var(--muted);
  line-height: 1.5;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #aebbb2;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}

.checkbox-field input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
}

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

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.faq-list details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list details p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  margin-top: 20px;
  padding: 54px clamp(20px, 4vw, 54px) 42px;
  color: #f8f2ee;
  background: #2b2424;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.9fr 1fr;
  gap: 38px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.footer-lead {
  max-width: 320px;
  color: rgba(248, 242, 238, 0.78);
  line-height: 1.6;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.site-footer a,
.site-footer span {
  display: block;
  margin: 10px 0;
  color: rgba(248, 242, 238, 0.84);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

.legal-exact {
  width: min(980px, 100%);
  margin: 44px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(248, 242, 238, 0.18);
  text-align: center;
}

.legal-exact p {
  max-width: 900px;
  margin: 0 auto 14px;
  color: #fff;
  font-size: 15px;
  line-height: 1.75;
}

.legal-exact p:last-child {
  margin-bottom: 0;
  font-weight: 850;
}

.error-actions {
  margin: 34px 0;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    margin-right: auto;
  }

  nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  .nav-action {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(58px, 14vw, 88px);
  }

  .service-band,
  .section-head,
  .app-band {
    display: block;
  }

  .app-actions {
    justify-content: flex-start;
    margin-top: 28px;
  }

  .ledger article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-grid,
  .document-shell,
  .app-overview,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .document-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 14px;
  }

  .nav-action {
    width: 100%;
    text-align: center;
  }

  .hero,
  .service-band,
  .ledger-section,
  .app-band,
  .compliance-section,
  .document-main {
    width: min(100% - 28px, 1180px);
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-lead {
    font-size: 19px;
  }

  .console-visual,
  .policy-body,
  .support-card,
  .app-summary {
    padding: 20px;
    border-radius: 14px;
  }

  .console-flow {
    grid-template-columns: 1fr;
  }

  .console-flow i {
    display: none;
  }

  .metric-strip,
  .form-grid,
  .document-side {
    grid-template-columns: 1fr;
  }

  .metric-strip dt {
    font-size: 24px;
  }

  .service-band,
  .ledger-section,
  .app-band,
  .compliance-section {
    padding: 58px 0;
  }

  .document-hero {
    padding-top: 38px;
  }

  .document-hero h1 {
    font-size: 44px;
  }

  .document-hero p:not(.eyebrow) {
    font-size: 18px;
  }

  .footer-grid {
    gap: 24px;
  }

  .legal-exact p {
    font-size: 14px;
  }
}

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

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