:root {
  --amp-green: #18b84f;
  --amp-green-dark: #128442;
  --amp-green-bright: #20dc4d;
  --amp-mint: #f0fbf3;
  --amp-silver: #eef1ef;
  --amp-slate: #0f172a;
  --amp-muted: #64748b;
  --amp-border: #d8e3dc;
  --amp-white: #ffffff;
  --amp-shadow: 0 18px 48px rgba(15, 23, 42, .12);
  --amp-radius: 16px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--amp-slate);
  background:
    radial-gradient(circle at 20% 0%, rgba(32, 220, 77, .2), transparent 32rem),
    radial-gradient(circle at 88% 8%, rgba(121, 239, 151, .16), transparent 26rem),
    linear-gradient(135deg, #fbfdfb 0%, #eef6f0 44%, #f8fbf8 100%);
  line-height: 1.55;
}

a { color: var(--amp-green-dark); font-weight: 800; }

.amp-app-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 92px;
}

.amp-language-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.amp-lang-toggle {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #b8efc8;
  border-radius: 999px;
  color: var(--amp-green-dark);
  background: rgba(255,255,255,.92);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.amp-hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  padding: 28px;
  border: 1px solid rgba(24, 184, 79, .24);
  border-radius: var(--amp-radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(240,251,243,.92)),
    linear-gradient(120deg, rgba(32,220,77,.14), transparent);
  box-shadow: var(--amp-shadow);
}

.amp-logo {
  display: block;
  max-width: 430px;
  width: 100%;
  height: auto;
  margin: 0 auto 18px;
}

.amp-logo-main {
  margin-bottom: 0;
}

.amp-hero-copy {
  min-width: 0;
  max-width: 850px;
}

.amp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 7px 12px;
  color: var(--amp-green-dark);
  background: #e9faee;
  border: 1px solid #b8efc8;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  color: var(--amp-slate);
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 5vw, 4.2rem); letter-spacing: 0; }
h2 { font-size: clamp(1.45rem, 3vw, 2.2rem); }
h3 { font-size: 1.08rem; }

.amp-hero p {
  max-width: 680px;
  margin: 14px auto 0;
  color: #334155;
  font-size: 1.02rem;
}

.amp-hero-panel {
  width: min(100%, 520px);
  padding: 20px;
  color: white;
  border-radius: 14px;
  background: linear-gradient(145deg, #128442, #18b84f 52%, #41df68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}

.amp-hero-panel strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
}

.amp-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.amp-card {
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--amp-border);
  border-radius: 12px;
  background: rgba(255,255,255,.88);
}

.amp-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--amp-green-dark);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.amp-form-wrap {
  position: relative;
  overflow: clip;
  border: 1px solid rgba(24, 184, 79, .22);
  border-radius: var(--amp-radius);
  background: rgba(255,255,255,.92);
  box-shadow: var(--amp-shadow);
}

.amp-progress {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  color: white;
  background: linear-gradient(90deg, #128442, #18b84f);
}

.amp-progress-meter {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
}

.amp-progress-bar {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #bbf7d0, #ffffff);
  transition: width .25s ease;
}

.amp-form {
  padding: 22px;
}

.amp-step {
  display: none;
  animation: ampFade .18s ease-out;
}

.amp-step.is-active { display: block; }

@keyframes ampFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.amp-section-note {
  margin: 10px 0 18px;
  color: var(--amp-muted);
}

.amp-policy-box {
  max-height: 540px;
  overflow: auto;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--amp-border);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(240,253,244,.82), rgba(248,250,252,.98)),
    #f8fafc;
}

.amp-policy-box.expanded {
  display: grid;
  gap: 12px;
}

.behavior-list {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding-left: 1.25rem;
  list-style-position: outside;
}

.policy-segment {
  padding: 14px;
  border: 1px solid rgba(24, 184, 79, .2);
  border-radius: 10px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.policy-segment h3 {
  margin-bottom: 8px;
  color: var(--amp-green-dark);
}

.policy-segment p {
  margin: 0 0 10px;
  color: #334155;
}

.policy-segment p:last-child { margin-bottom: 0; }

.policy-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.25rem;
}

.policy-list li {
  padding-left: .15rem;
  color: #334155;
}

.policy-list li::marker,
.behavior-list li::marker {
  color: var(--amp-green-dark);
  font-weight: 900;
}

.policy-list .is-important {
  padding: 12px 14px;
  border: 1px solid #fbbf24;
  border-radius: 10px;
  color: #78350f;
  background: #fffbeb;
  font-weight: 900;
}

.policy-list .is-important::marker {
  color: #d97706;
}

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

.amp-grid.compact { max-width: 520px; }

.amp-notice {
  margin: 12px 0 16px;
  padding: 16px;
  border: 1px solid rgba(24, 184, 79, .24);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(232,248,238,.95), rgba(255,255,255,.92)),
    #fff;
}

.amp-notice strong,
.amp-notice span {
  display: block;
}

.amp-notice strong {
  color: var(--amp-green-dark);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.amp-notice span {
  margin-top: 4px;
  color: #475569;
  font-size: .9rem;
}

.amp-notice p {
  margin: 10px 0 0;
  color: #172033;
}

.amp-field { margin-bottom: 14px; }

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

.amp-field label,
.amp-check span {
  display: block;
  margin-bottom: 6px;
  color: #172033;
  font-weight: 800;
  font-size: .92rem;
}

.amp-field input,
.amp-field select,
.amp-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1.5px solid var(--amp-border);
  border-radius: 10px;
  color: var(--amp-slate);
  background: #fff;
  font: inherit;
}

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

.amp-field input:focus,
.amp-field select:focus,
.amp-field textarea:focus,
.signature-pad:focus-within {
  outline: none;
  border-color: var(--amp-green);
  box-shadow: 0 0 0 4px rgba(24,184,79,.14);
}

.amp-hint {
  display: block;
  margin-top: 5px;
  color: var(--amp-muted);
  font-size: .82rem;
}

.amp-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #b8efc8;
  border-radius: 12px;
  background: var(--amp-mint);
}

.amp-check input { width: 18px; height: 18px; margin-top: 2px; }

.amp-upload-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.amp-upload {
  padding: 14px;
  border: 1px dashed #a7cbb1;
  border-radius: 12px;
  background: #fbfdfb;
}

.signature-pad {
  border: 1.5px solid var(--amp-border);
  border-radius: 12px;
  background: #fff;
}

.signature-pad canvas {
  display: block;
  width: 100%;
  height: 190px;
  touch-action: none;
}

.signature-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-top: 1px solid var(--amp-border);
}

.amp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.amp-badge {
  padding: 7px 10px;
  border: 1px solid #b8efc8;
  border-radius: 999px;
  color: #14532d;
  background: #f0fdf4;
  font-size: .78rem;
  font-weight: 900;
}

.amp-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--amp-border);
}

.amp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #18b84f, #10a95c);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.amp-btn.secondary {
  color: var(--amp-green-dark);
  background: #e9faee;
  border: 1px solid #b8efc8;
}

.amp-btn:disabled { opacity: .6; cursor: not-allowed; }

.amp-status {
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 12px;
  font-weight: 800;
}

.amp-status.success { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }
.amp-status.error { color: #9a3412; background: #fff7ed; border: 1px solid #fed7aa; }

.faq-tools {
  margin: 28px 0 12px;
}

.faq-tools input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--amp-border);
  border-radius: 10px;
  font: inherit;
}

.faq-item {
  border-bottom: 1px solid var(--amp-border);
  background: rgba(255,255,255,.7);
}

.faq-question {
  width: 100%;
  padding: 16px 0;
  border: 0;
  color: var(--amp-slate);
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-answer { display: none; padding: 0 0 16px; color: #475569; }
.faq-item.is-open .faq-answer { display: block; }

.mobile-quick-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: none;
  gap: 10px;
  padding: 10px;
  background: rgba(15, 23, 42, .92);
  backdrop-filter: blur(10px);
}

.mobile-quick-bar a {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  color: white;
  background: var(--amp-green);
  text-align: center;
  text-decoration: none;
}

.mobile-quick-bar a:last-child { background: #1e293b; }

.hidden { display: none !important; }

@media (max-width: 820px) {
  .amp-hero { padding: 22px; }
  .amp-bento, .amp-grid, .amp-upload-list { grid-template-columns: 1fr; }
  .amp-language-bar { justify-content: center; }
  .amp-progress { align-items: flex-start; flex-direction: column; }
  .amp-progress-meter { width: 100%; flex: none; }
  .amp-actions { flex-direction: column-reverse; }
  .amp-actions .amp-btn { width: 100%; }
  .mobile-quick-bar { display: flex; }
}
