/** Website start flow — wider layout, teaching modules */

.start-site {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  --layout-max: 480px;
  --start-mobile-ui-lift: 72px;
  --ob-footer-offset: calc(var(--safe-bottom) + var(--start-mobile-ui-lift));
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

/* Onboarding shell → see focus-flow.css */
.start-site:has(.focus-flow),
.start-site:has(.focus-unlock) {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.start-site > .focus-flow,
.start-site > .focus-unlock {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.start-site .ob-chrome-top,
.start-site .focus-flow .ob-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 767px) {
  .start-site {
    --start-mobile-ui-lift: 88px;
  }

  .start-site .ob-welcome-line1,
  .start-site .ob-welcome-line2 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .start-site .ob-step-headline .ob-welcome-line1,
  .start-site .ob-step-headline .ob-welcome-line2 {
    font-size: clamp(32px, 9vw, 44px);
  }
}

@media (min-width: 768px) {
  .start-site .ob-top,
  .start-site .ob-headline,
  .start-site .ob-main-lead,
  .start-site .ob-main-body,
  .start-site .ob-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .start-site .ob-intro {
    padding-top: 0;
  }
}

.start-site .screen {
  max-width: var(--layout-max);
}

.start-hero {
  text-align: center;
  padding: 56px 24px 32px;
}

.start-hero .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--flame);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.start-hero h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.start-hero h1 span {
  color: var(--flame);
}

.start-hero p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: min(640px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.start-split {
  display: grid;
  gap: 24px;
  padding: 0 24px 32px;
}

@media (min-width: 640px) {
  .start-split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .start-hero {
    padding: 72px 40px 40px;
  }

  .start-split,
  .btn-stack,
  .start-footer-link {
    padding-left: 40px;
    padding-right: 40px;
  }

  .start-site .unlock-panel {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.start-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.start-card h3 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 8px;
}

.start-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #ccc;
}

.start-card ul {
  margin-top: 12px;
  padding-left: 18px;
  font-size: 14px;
  color: #bbb;
  line-height: 1.6;
}

.teach-module {
  padding: 8px 0 24px;
}

.teach-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--flame);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.teach-module h2 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

.teach-module p {
  font-size: 16px;
  line-height: 1.65;
  color: #ccc;
  margin-bottom: 14px;
}

.teach-quote.testimony-block {
  margin-top: 20px;
}

.teach-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.teach-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.teach-stat .val {
  font-size: 24px;
  font-weight: 800;
  color: var(--flame);
}

.teach-stat .lbl {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.export-panel {
  padding: 0 0 32px;
}

.export-panel textarea {
  width: 100%;
  min-height: 120px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0a0a0a;
  color: #aaa;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  resize: vertical;
}

.export-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.export-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 16px;
}

.export-note a {
  color: var(--cyan);
}

.start-date-field {
  margin: 20px 0;
}

.start-date-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.start-date-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
}

.start-footer-link {
  text-align: center;
  padding: 24px;
  font-size: 14px;
}

.start-footer-link a {
  color: var(--cyan);
}

.start-combined-intro {
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.start-combined-intro .start-hero {
  padding: 40px 24px 24px;
}

.start-combined-intro .start-split {
  padding-bottom: 24px;
}

.start-site .ob-flow.start-combined-flow {
  min-height: auto;
}

.start-success {
  text-align: center;
  padding: 24px 0;
}

.start-success .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--flame);
  color: var(--btn-on-flame);
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.start-success.compact {
  padding: 24px 24px 8px;
  text-align: center;
}

.start-success.compact .check {
  width: 52px;
  height: 52px;
  font-size: 26px;
  margin-bottom: 16px;
}

.creating-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.creating-panel {
  text-align: center;
  width: 100%;
}

.creating-bar {
  height: 3px;
  border-radius: 2px;
  background: #262626;
  overflow: hidden;
  margin-top: 28px;
}

.creating-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--flame), transparent);
  animation: creating-slide 1s ease-in-out infinite;
}

@keyframes creating-slide {
  from { transform: translateX(-120%); }
  to { transform: translateX(320%); }
}

.unlock-screen {
  padding-bottom: 40px;
}

.unlock-panel {
  padding: 0 24px 32px;
  max-width: var(--layout-max);
  margin: 0 auto;
}

.unlock-lead {
  font-size: 16px;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 20px;
}

.unlock-title {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}

.unlock-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.unlock-box h3 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 12px;
}

.unlock-includes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.unlock-includes li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: #ddd;
}

.unlock-includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--flame);
  font-weight: 700;
}

.unlock-tagline {
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 16px 0 24px;
  text-align: center;
}

.unlock-cta {
  width: 100%;
}

.unlock-cta-secondary {
  width: 100%;
  margin-top: 12px;
}

.unlock-back-link {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.unlock-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.unlock-error {
  background: rgba(255, 204, 0, 0.15);
  border: 1px solid var(--flame);
  color: var(--flame);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 16px;
}

.unlock-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 16px;
  text-align: center;
}

.unlock-advanced {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.unlock-advanced summary {
  cursor: pointer;
  color: #888;
  margin-bottom: 8px;
}

.unlock-advanced p {
  margin-bottom: 8px;
  line-height: 1.5;
}

.email-login-panel {
  padding-top: 48px;
}

.email-login-panel .ob-welcome-line1,
.email-login-panel .ob-welcome-line2 {
  text-align: center;
}

.email-login-note {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
}

.email-login-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #aaa;
  text-align: center;
}

.install-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.install-box h3 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 10px;
}

.install-lead {
  font-size: 15px;
  line-height: 1.5;
  color: #ccc;
  margin-bottom: 14px;
}

.install-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.install-steps li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: #ddd;
}

.plan-ready-pwa-link {
  display: block;
  margin-top: 20px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--flame);
}

.plan-ready-pwa-link:active {
  opacity: 0.85;
}

.install-steps li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--flame);
}

.app-preview {
  text-align: center;
  margin-bottom: 24px;
}

.app-preview-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 12px;
}

.app-preview-phone {
  display: inline-block;
  padding: 10px;
  border-radius: 28px;
  background: linear-gradient(145deg, #1f1f1f, #0a0a0a);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.app-preview-phone img {
  display: block;
  width: 200px;
  height: auto;
  border-radius: 20px;
}

.app-preview-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
