:root {
  --theme-border-radius: 30px;
  --theme-box-shadow: 0 0 40px -10px rgba(0, 0, 0, 0.1), 0 0 25px -15px rgba(0, 0, 0, 0.05);
  --theme-box-border: 1px solid var(--brand-grey);
  --theme-text-color: #4c4c4c;
  --brand-dark: #4c4c4c;
  --brand-light-grey: #fafafa;
  --brand-grey: #dcdcdc;
  --brand-red: #ff5555;
  --brand-orange: #ffb048;
  --brand-green: #5ebc2a;
  --brand-blue: #1b70ac;
  --brand-purple: #65498a;
  --brand-red-alpha: rgba(255, 85, 85, 0.1);
  --brand-red-alpha-strong: rgba(255, 85, 85, 0.2);
  --brand-white-alpha: rgba(255, 255, 255, 0.12);
  --header-text-color: #ffffff;
  --gradient-bg: linear-gradient(187deg, #ff5555 0%, rgba(255, 176, 72, 0.42) 85%);
  --radial-gradient-bg:
    radial-gradient(circle at 30% 100%, rgba(255, 255, 255, 0.5), transparent 40%),
    radial-gradient(circle at 70% 10%, rgba(255, 85, 85, 1), transparent 100%),
    radial-gradient(circle at 40% 90%, rgba(255, 176, 72, 1), transparent 100%);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --app-width: min(100%, 1180px);
  --app-height: 100vh;
  --content-width: min(100%, 960px);
}

@supports (height: 100dvh) {
  :root {
    --app-height: 100dvh;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  font-family: "Lexend Deca", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--theme-text-color);
  background: var(--radial-gradient-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

a {
  color: inherit;
}

.shadow-box,
.surface-card,
.card {
  border-radius: var(--theme-border-radius);
  box-shadow: var(--theme-box-shadow);
  border: var(--theme-box-border);
  background: #ffffff;
}

.screen-shell {
  position: relative;
  width: 100%;
  min-height: var(--app-height);
  padding:
    calc(16px + var(--safe-top))
    calc(16px + var(--safe-right))
    calc(28px + var(--safe-bottom))
    calc(16px + var(--safe-left));
}

.screen-shell__inner {
  width: 100%;
  max-width: var(--app-width);
  margin: 0 auto;
}

.brand-logo {
  width: min(240px, 52vw);
  height: auto;
}

.brand-eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.brand-title {
  margin: 0;
  color: var(--header-text-color);
  font-size: clamp(2.1rem, 7vw, 4rem);
  line-height: 1;
  font-weight: 700;
}

.brand-subtitle {
  margin: 0;
  color: var(--header-text-color);
  font-size: clamp(1rem, 3vw, 1.4rem);
  line-height: 1.35;
  max-width: 34rem;
}

.body-title {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.1;
  color: var(--brand-dark);
}

.body-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(76, 76, 76, 0.9);
}

.muted-copy {
  color: rgba(76, 76, 76, 0.72);
}

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  min-width: 120px;
  padding: 16px 28px;
  border: none;
  border-radius: var(--theme-border-radius);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}

.btn:hover,
.button:hover {
  transform: translateY(-1px);
}

.btn:active,
.button:active {
  transform: scale(0.985);
}

.btn:disabled,
.btn[aria-disabled="true"],
.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary,
.button.button-primary {
  background: var(--brand-red);
  color: #ffffff;
}

.btn-primary:hover,
.button.button-primary:hover {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-orange) 100%);
}

.btn-secondary,
.button.button-secondary {
  background: #ffffff;
  color: var(--brand-red);
  border: 2px solid var(--brand-red);
}

.btn-secondary:hover,
.button.button-secondary:hover {
  background: var(--brand-red-alpha);
}

.btn-tertiary {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px);
}

.btn-ghost,
.button.button-ghost {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid rgba(76, 76, 76, 0.15);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-red-alpha);
  color: var(--brand-red);
  font-size: 0.875rem;
  font-weight: 600;
}

.input-label {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 0.95rem;
  font-weight: 600;
}

.text-input,
.text-area,
.select-input {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 22px;
  border: 2px solid var(--brand-grey);
  background: #ffffff;
  color: var(--brand-dark);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.text-input:focus,
.text-area:focus,
.select-input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px var(--brand-red-alpha);
}

.text-area {
  min-height: 120px;
  resize: vertical;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eyebrow {
  margin: 0;
  color: rgba(76, 76, 76, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stack-xl {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
