/* Mirrors the paid Flutter shell; palette, Inter and icon assets are shared. */
@font-face { font-family: Inter; src: url('assets/assets/fonts/Inter-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url('assets/assets/fonts/Inter-Medium.ttf'); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url('assets/assets/fonts/Inter-SemiBold.ttf'); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url('assets/assets/fonts/Inter-Bold.ttf'); font-weight: 700; font-display: swap; }
@font-face { font-family: MaterialIcons; src: url('assets/fonts/MaterialIcons-Regular.otf'); }
#paid-entry-startup { position: fixed; inset: 0; z-index: 2147483647; overflow: hidden; box-sizing: border-box; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); background: #fff; color: #181619; font: 16px/1.5 Inter, sans-serif; }
#paid-entry-startup [hidden], #paid-entry-startup[hidden] { display: none; }
.paid-entry-startup-content { margin: 0 auto; height: 100%; min-height: 0; display: flex; flex-direction: column; }
.paid-entry-startup-header { height: 52px; padding: 4px 24px; box-sizing: border-box; display: flex; align-items: center; flex-shrink: 0; }
.paid-entry-startup-header img { object-fit: contain; }
.paid-entry-startup-progress { flex-shrink: 0; height: 8px; margin: 12px 16px 28px 12px; border-radius: 999px; background: #e9fef5; overflow: hidden; }
.paid-entry-startup-progress::before { content: ''; display: block; height: 100%; width: calc(100% / 15); background: #16db93; }
#paid-entry-startup[data-step=fake] .paid-entry-startup-progress::before { width: calc(200% / 15); }
.paid-entry-startup-body { flex: 1; min-height: 0; overflow: auto; padding: 0 24px; overscroll-behavior: contain; }
#paid-entry-startup-heading { font-size: 28px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; margin: 0 0 16px; font-weight: 600; }
#paid-entry-startup-message { margin: 0 0 24px; color: #545454; }
#paid-entry-startup-options { display: grid; gap: 12px; }
#paid-entry-startup-options button { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; text-align: left; border: 1px solid #dadada; border-radius: 12px; background: white; color: #222; font: inherit; cursor: pointer; }
.paid-entry-icon { font: 24px/1 MaterialIcons; flex-shrink: 0; }
.paid-entry-option-label { flex: 1; }
.paid-entry-check { display: none; font-size: 20px; margin-left: -4px; }
#paid-entry-startup-options button[aria-pressed=true] { border: 2px solid #16db93; background: #e8fbf4; }
#paid-entry-startup-options button[aria-pressed=true] .paid-entry-check { display: inline; }
#paid-entry-startup-next { flex-shrink: 0; margin: 12px 28px 16px; width: calc(100% - 56px); height: 56px; border: 0; border-radius: 32px; color: white; background: #16db93; font: 600 16px/1.5 Inter, sans-serif; cursor: pointer; }
#paid-entry-startup-next:disabled { background: #f2f2f2; color: #9e9e9e; }
#paid-entry-startup-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
#paid-entry-startup-retry { border: 0; border-radius: 12px; padding: 12px 24px; background: #16db93; color: #fff; font: inherit; cursor: pointer; }
#paid-entry-startup-actions a { color: inherit; text-underline-offset: 4px; }
#paid-entry-startup :focus-visible { outline: 2px solid #16db93; outline-offset: 3px; }
#paid-entry-startup[data-step=fake] .paid-entry-startup-body { display: flex; flex-direction: column; justify-content: safe center; padding: 0 20px; }
#paid-entry-startup-animation { width: 100%; height: 30vh; object-fit: contain; flex-shrink: 0; margin-bottom: 24px; }
#paid-entry-startup[data-step=fake] h1 { font-size: 26px; font-weight: 500; line-height: 1.5; margin-bottom: 20px; }
#paid-entry-startup[data-step=fake] h1 .paid-entry-emphasis { color: #a71e1e; font-weight: 700; }
#paid-entry-startup[data-step=fake] h1 .paid-entry-emphasis:nth-child(2) { font-size: 30px; }
#paid-entry-startup[data-step=fake] p { margin-bottom: 0; }
@media (max-height: 699px) {
    #paid-entry-startup-heading { font-size: 24px; line-height: 1.25; margin-bottom: 12px; }
    .paid-entry-startup-progress { margin-bottom: 20px; }
    #paid-entry-startup-message { margin-bottom: 16px; }
}

@media (min-width: 1024px) { .paid-entry-startup-content { max-width: 640px; } }

/* Accepted input and atomic handoff expose pending work instead of inert Next. */
#paid-entry-startup-next[aria-busy=true] { background: #16db93; color: white; cursor: progress; }
#paid-entry-startup-next[aria-busy=true]::before { content: ''; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -3px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: paid-entry-next-spin .8s linear infinite; }
@keyframes paid-entry-next-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #paid-entry-startup-next[aria-busy=true]::before { animation: none; } }
