:root {
  --ec-pink: #ff2b7a;
  --ec-pink-strong: #ff166c;
  --ec-bg: #fff7fb;
  --ec-card: rgba(255, 255, 255, 0.92);
  --ec-card-solid: #ffffff;
  --ec-text: #171226;
  --ec-muted: #7b748c;
  --ec-border: #ffd7e7;
  --ec-border-soft: rgba(255, 144, 189, 0.18);
  --ec-shadow: 0 18px 50px rgba(255, 43, 122, 0.1);
  --ec-shadow-soft: 0 12px 32px rgba(255, 43, 122, 0.08);
  --ec-radius-xl: 34px;
  --ec-radius-lg: 24px;
  --ec-radius-pill: 999px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 24%, transparent 58%),
    linear-gradient(180deg, #fff9fc 0%, #fff4f9 44%, #fff8fb 100%);
  color: var(--ec-text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

body.ec-static-page {
  min-height: 100vh;
}

.ec-static-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(88px, 1fr) auto minmax(88px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 24px 14px;
  background: rgba(255, 250, 252, 0.82);
  backdrop-filter: blur(18px);
}

.ec-header-left,
.ec-header-right {
  display: flex;
  align-items: center;
}

.ec-header-right {
  justify-content: flex-end;
}

.ec-back-btn,
.ec-header-action {
  border: none;
  text-decoration: none;
  color: var(--ec-pink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ec-shadow-soft);
  font: inherit;
  font-weight: 800;
}

.ec-back-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 1.8rem;
  line-height: 1;
}

.ec-header-action {
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--ec-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.96rem;
}

.ec-brand {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 34px;
  line-height: 1;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.035em;
  color: #ff2d7a;
  text-align: center;
  white-space: nowrap;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.ec-brand-mark {
  font-size: 0.78em;
  line-height: 1;
  filter: drop-shadow(0 8px 14px rgba(255, 47, 122, 0.16));
}

.ec-page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px 40px;
}

.ec-stack {
  display: grid;
  gap: 20px;
}

.ec-hero-card,
.ec-content-card {
  background: var(--ec-card);
  border: 1px solid var(--ec-border-soft);
  border-radius: var(--ec-radius-xl);
  box-shadow: var(--ec-shadow);
  backdrop-filter: blur(14px);
}

.ec-hero-card {
  padding: 30px;
}

.ec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--ec-radius-pill);
  background: rgba(255, 43, 122, 0.1);
  color: var(--ec-pink);
  font-size: 0.92rem;
  font-weight: 800;
}

.ec-hero-title {
  margin: 18px 0 12px;
  color: var(--ec-text);
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.ec-hero-copy {
  margin: 0;
  max-width: 800px;
  color: var(--ec-muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.ec-content-card {
  padding: 26px;
}

.ec-section-title {
  margin: 0 0 18px;
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.ec-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.ec-form-label,
.ec-form-field > span,
.ec-form-field label,
.ec-content-card label {
  color: var(--ec-text);
  font-size: 0.98rem;
  font-weight: 700;
}

.ec-input,
.ec-textarea,
.ec-select,
.ec-content-card input,
.ec-content-card textarea,
.ec-content-card select {
  width: 100%;
  border: 1px solid rgba(213, 207, 223, 0.96);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ec-text);
  padding: 15px 16px;
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.ec-textarea,
.ec-content-card textarea {
  min-height: 140px;
  resize: vertical;
}

.ec-input:focus,
.ec-textarea:focus,
.ec-select:focus,
.ec-content-card input:focus,
.ec-content-card textarea:focus,
.ec-content-card select:focus {
  outline: none;
  border-color: var(--ec-pink);
  box-shadow: 0 0 0 4px rgba(255, 43, 122, 0.1);
}

.ec-select,
.ec-content-card select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #9b92a8 50%),
    linear-gradient(135deg, #9b92a8 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 4px),
    calc(100% - 14px) calc(50% - 4px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.ec-primary-btn {
  min-height: 58px;
  border: none;
  border-radius: var(--ec-radius-pill);
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--ec-pink), var(--ec-pink-strong));
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(255, 43, 122, 0.24);
}

.ec-primary-btn:disabled {
  opacity: 0.58;
  box-shadow: none;
}

.ec-legal-list {
  margin: 10px 0 0;
  padding-left: 20px;
}

.ec-legal-section {
  padding: 22px 0;
  border-bottom: 1px solid rgba(223, 217, 232, 0.46);
}

.ec-legal-section:first-child {
  padding-top: 0;
}

.ec-legal-section:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.ec-legal-section h3 {
  margin: 0 0 12px;
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ec-legal-section p,
.ec-legal-section li,
.ec-body-copy,
.ec-note {
  color: var(--ec-muted);
  font-size: 1rem;
  line-height: 1.78;
}

.ec-note {
  margin: 16px 0 0;
}

.ec-warning {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 111, 145, 0.12);
  border: 1px solid rgba(255, 93, 134, 0.18);
  color: #b63c61 !important;
}

.ec-update {
  margin: 18px 0 0;
  text-align: center;
  color: var(--ec-muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .ec-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ec-static-header {
    grid-template-columns: minmax(56px, 1fr) auto minmax(56px, 1fr);
    gap: 10px;
    padding: 14px 16px 12px;
  }

  .ec-back-btn {
    width: 48px;
    height: 48px;
    font-size: 1.55rem;
  }

  .ec-header-action {
    min-height: 46px;
    padding: 0 16px;
    font-size: 0.9rem;
  }

  .ec-brand {
    gap: 6px;
    font-size: clamp(1.45rem, 6vw, 2rem);
  }

  .ec-page-shell {
    padding: 12px 16px 28px;
  }

  .ec-hero-card,
  .ec-content-card {
    border-radius: 26px;
  }

  .ec-hero-card,
  .ec-content-card {
    padding: 20px;
  }

  .ec-hero-title {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .ec-hero-copy,
  .ec-legal-section p,
  .ec-legal-section li,
  .ec-body-copy,
  .ec-note {
    font-size: 0.98rem;
  }
}
