/* MyReels Onboarding — Apple aesthetic */
:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-soft: rgba(0, 113, 227, 0.12);
  --line: rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --nav-h: 52px;
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(0, 113, 227, 0.08), transparent 55%),
    var(--bg);
  line-height: 1.45;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.ob-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(251, 251, 253, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.ob-nav__brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.ob-nav__tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  padding: 6px 10px;
  border-radius: 980px;
  background: var(--blue-soft);
}

.ob {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.ob__intro {
  margin-bottom: 28px;
}

.ob__eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 8px;
}

.ob__intro h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.ob__lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 52ch;
}

.ob__time {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.ob-form {
  display: grid;
  gap: 16px;
}

.ob-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
}

.ob-card h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.ob-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.ob-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.ob-field {
  display: grid;
  gap: 6px;
}

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

.ob-field span {
  font-size: 13px;
  font-weight: 550;
  color: var(--text-secondary);
}

.ob-field input,
.ob-field select,
.ob-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-alt);
  font: inherit;
  font-size: 15px;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.ob-field textarea {
  resize: vertical;
  min-height: 84px;
}

.ob-field input:focus,
.ob-field select:focus,
.ob-field textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.ob-checks {
  display: grid;
  gap: 8px;
  margin: 12px 0 8px;
}

.ob-checks--wrap {
  grid-template-columns: repeat(2, 1fr);
}

.ob-checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.ob-checks label:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.ob-checks input {
  accent-color: var(--blue);
}

.ob-submit {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 8px 0 24px;
}

.ob-btn {
  width: min(100%, 360px);
  height: 52px;
  border: none;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.ob-btn:hover {
  background: var(--blue-hover);
}

.ob-btn:active {
  transform: scale(0.98);
}

.ob-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ob-fine {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 42ch;
}

.ob-form.is-success {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
}

.ob-form.is-success h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.ob-form.is-success p {
  color: var(--text-secondary);
  font-size: 16px;
}

@media (max-width: 640px) {
  .ob-grid,
  .ob-checks--wrap {
    grid-template-columns: 1fr;
  }

  .ob {
    width: calc(100% - 24px);
    padding-top: 28px;
  }
}
