@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600..900&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --bg: #f3f8ff;
  --bg-2: #e7f5ff;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --ink: #18263b;
  --muted: #57708a;
  --line: rgba(24, 38, 59, 0.12);
  --sky: #8dd8ff;
  --sea: #4f9eff;
  --leaf: #4fb66d;
  --gold: #ffcd57;
  --shadow: 0 24px 70px rgba(24, 38, 59, 0.14);
  --shadow-soft: 0 14px 32px rgba(24, 38, 59, 0.1);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(141, 216, 255, 0.36), transparent 22%),
    radial-gradient(circle at top right, rgba(255, 205, 87, 0.28), transparent 18%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 54%, #eef6ff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 38, 59, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 38, 59, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  text-wrap: balance;
}

p,
dl {
  margin: 0;
}

.profile-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 52px;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 24px;
}

.hero-card,
.panel {
  position: relative;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.6), transparent 20%),
    radial-gradient(circle at 84% 18%, rgba(255, 205, 87, 0.12), transparent 18%);
  pointer-events: none;
}

.hero-card {
  padding: 28px;
  position: sticky;
  top: 24px;
  align-self: start;
}

.eyebrow,
.kicker,
.pill,
.button {
  letter-spacing: 0.08em;
}

.eyebrow,
.kicker {
  margin-bottom: 10px;
  color: #3878aa;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 0.95;
}

.lede {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.status-stack,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-stack {
  margin-top: 22px;
}

.hero-actions {
  margin-top: 22px;
}

.pill,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font: inherit;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.pill {
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.pill.alt {
  background: rgba(141, 216, 255, 0.16);
}

.button {
  padding: 0 16px;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(135deg, var(--sky), var(--sea));
  color: #05213b;
  border-color: transparent;
  box-shadow: 0 10px 0 rgba(24, 38, 59, 0.1);
}

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

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 158, 255, 0.34);
  box-shadow: 0 14px 0 rgba(24, 38, 59, 0.1);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.banner {
  min-height: 24px;
  margin-top: 18px;
  color: #295f3e;
  line-height: 1.5;
}

.banner[data-kind="success"] {
  color: #1f7240;
}

.banner[data-kind="warning"] {
  color: #916000;
}

.banner[data-kind="error"] {
  color: #b33a42;
}

.content {
  display: grid;
  gap: 24px;
}

.panel {
  padding: 24px;
}

.small {
  font-size: 14px;
}

.inline-note {
  font-size: 14px;
  color: var(--muted);
}

.auth-panel {
  display: grid;
  gap: 20px;
}

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

.auth-card {
  padding: 20px;
  border-radius: 22px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.auth-card h3 {
  margin-top: 2px;
  font-size: 24px;
  line-height: 1.04;
}

.form {
  display: grid;
  gap: 14px;
}

.form.compact {
  max-width: 560px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

textarea {
  min-height: 120px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(79, 158, 255, 0.28);
  outline-offset: 2px;
  border-color: rgba(79, 158, 255, 0.42);
}

.form-status {
  min-height: 24px;
  color: var(--muted);
}

.form-status[data-kind="success"] {
  color: #1f7240;
}

.form-status[data-kind="warning"] {
  color: #916000;
}

.form-status[data-kind="error"] {
  color: #b33a42;
}

.profile-area {
  display: grid;
  gap: 24px;
}

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

.hidden {
  display: none;
}

.panel-head {
  position: relative;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  z-index: 1;
}

.details {
  position: relative;
  display: grid;
  gap: 12px;
  z-index: 1;
}

.details div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(24, 38, 59, 0.08);
  box-shadow: var(--shadow-soft);
}

.details dt {
  color: var(--muted);
  font-size: 13px;
}

.details dd {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 800;
  word-break: break-word;
}

.flow-list {
  position: relative;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.6;
  z-index: 1;
}

.flow-list li + li {
  margin-top: 10px;
}

@media (max-width: 960px) {
  .profile-shell {
    grid-template-columns: 1fr;
  }

  .hero-card {
    position: static;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .profile-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .hero-card,
  .panel {
    border-radius: 22px;
    padding: 20px;
  }

  .button {
    width: 100%;
  }
}
