/* Second Opinion setup flow. Second Opinion look: navy #0A0F23, white card, gold #C8922A, DM Serif Display + Inter. */

body.so-page { background: #0A0F23; color: #FFFFFF; font-family: Inter, system-ui, sans-serif; line-height: 1.5; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Stage, floating icons ---------- */
.so-stage { position: relative; overflow: hidden; padding: 28px 16px 56px; min-height: calc(100vh - 60px); }
.so-wrap { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }

.so-floats { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.so-float { position: absolute; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5)); }
.so-float path { stroke: #FFFFFF; stroke-width: 3; stroke-linejoin: round; stroke-opacity: 0.9; }
.so-float--1 { left: 5%; top: 70px; width: 120px; animation: so-drift1 9s ease-in-out infinite; }
.so-float--2 { right: 6%; top: 110px; width: 90px; animation: so-drift2 11s ease-in-out infinite; }
.so-float--3 { left: 10%; top: 520px; width: 70px; animation: so-drift2 11s ease-in-out infinite; }
.so-float--4 { right: 10%; top: 560px; width: 110px; animation: so-drift1 9s ease-in-out infinite; }
@keyframes so-drift1 { 0% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(18px, -22px) rotate(4deg); } 100% { transform: translate(0, 0) rotate(-6deg); } }
@keyframes so-drift2 { 0% { transform: translate(0, 0) rotate(5deg); } 50% { transform: translate(-20px, 16px) rotate(-5deg); } 100% { transform: translate(0, 0) rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .so-float { animation: none; } }
@media (max-width: 699px) { .so-floats { display: none; } }

/* ---------- Card ---------- */
.so-card { background: #FFFFFF; color: #0A0F23; border-radius: 20px; padding: 36px 44px 28px; box-shadow: 0 24px 60px rgba(10, 15, 35, 0.25); display: flex; flex-direction: column; gap: 22px; }
.so-card button { font-family: inherit; cursor: pointer; }
.so-card a { color: #0A0F23; }
.so-card a:hover { color: #3A3F55; }
.so-card :focus-visible { outline: 3px solid #0A0F23; outline-offset: 2px; }
.so-card h1:focus { outline: none; }

.so-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.so-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: 0.02em; }
.so-brand svg { width: 34px; height: 34px; }
.so-meta { display: flex; align-items: center; flex-wrap: wrap; }
.so-step { font-size: 13px; color: #4A4F63; }
.so-pill { font-size: 13px; font-weight: 600; color: #0A0F23; background: #FBF6EA; border: 1.5px solid #C8922A; border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.so-step:not(:empty) { margin-right: 10px; }

#so-body { display: flex; flex-direction: column; gap: 22px; }
.so-col { display: flex; flex-direction: column; gap: 16px; }
.so-col.g10 { gap: 10px; } .so-col.g12 { gap: 12px; } .so-col.g14 { gap: 14px; } .so-col.g18 { gap: 18px; } .so-col.g6 { gap: 6px; } .so-col.g8 { gap: 8px; }
.so-col > .so-btn, .so-col > a.so-btn { align-self: flex-start; }
.so-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.so-h1 { margin: 0; font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 34px; line-height: 1.15; color: #0A0F23; }
.so-h1--xl { font-size: 40px; line-height: 1.1; }
.so-h2 { margin: 6px 0 0; font-size: 19px; font-weight: 600; color: #0A0F23; }
.so-p { margin: 0; font-size: 19px; line-height: 1.6; color: #2A2F45; }
.so-p--lede { font-size: 17px; line-height: 1.5; }
.so-pre { white-space: pre-line; }
.so-note { margin: 0; font-size: 16px; color: #4A4F63; }
.so-small { font-size: 14px; color: #4A4F63; }

/* ---------- Buttons ---------- */
.so-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 2px solid #0A0F23; border-radius: 12px; background: #0A0F23; color: #FFFFFF; font: 600 17px Inter, sans-serif; text-decoration: none; text-align: left; }
.so-card a.so-btn { color: #FFFFFF; }
.so-btn:hover { filter: brightness(1.15); }
.so-btn--lg { min-height: 64px; padding: 0 32px; font-size: 22px; }
.so-btn--md { min-height: 56px; padding: 0 24px; font-size: 19px; }
.so-btn--ghost, .so-card a.so-btn--ghost { background: #FFFFFF; color: #0A0F23; }
.so-btn--ghost:hover { filter: none; background: #FBF6EA; }
.so-btn--sm { min-height: 44px; padding: 0 16px; font-size: 16px; border-radius: 10px; }
.so-btn--plain { background: transparent; border-color: transparent; color: #4A4F63; font-weight: 500; font-size: 15px; padding: 0 4px; min-height: 44px; }
.so-card a.so-btn--plain { color: #2A2F45; text-decoration: underline; }
.so-btn--plain:hover { filter: none; color: #0A0F23; }
.so-btn[disabled] { opacity: 0.6; cursor: wait; }

.so-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 16px; border: 2px solid #E4DCC8; background: #FFFFFF; border-radius: 12px; font: 600 19px Inter, sans-serif; color: #0A0F23; text-align: left; }
.so-opt:hover { border-color: #0A0F23; background: #FBF6EA; }
.so-opt--big { min-height: 68px; font-size: 20px; padding: 0 12px; }
.so-opt--tight { min-height: 52px; font-size: 16px; padding: 0 18px; }
.so-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #F4F1E8; display: inline-flex; align-items: center; justify-content: center; }

.so-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.so-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.so-grid3 .so-btn { min-height: 64px; font-size: 19px; justify-content: flex-start; }

/* ---------- Logos, screenshots, placeholders ---------- */
.so-logo { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 36px; border-radius: 8px; }
.so-logo img { display: block; max-height: 36px; max-width: 80px; }
.so-logo--ph { padding: 0 6px; border: 2px dashed #8A8478; color: #5A5548; font: 600 11px Inter, sans-serif; }
.so-logos { display: flex; gap: 8px; flex-wrap: wrap; }
.so-logos .so-logo { min-width: 40px; height: 32px; }

.so-shot-img { display: block; width: 100%; height: auto; border: 1px solid #D9D6CC; border-radius: 12px; }
.so-shot--ph { height: 150px; border: 2px dashed #D9CFB4; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #5A5F70; background: #FBF8F0; text-align: center; padding: 0 12px; }

.so-warn { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; background: #FDF1D8; border: 2px solid #C8922A; }
.so-warn svg { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: #7A5410; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.so-warn span { font-size: 19px; font-weight: 700; line-height: 1.4; color: #0A0F23; }

.so-blocked { border: 2px solid #8C1D18; border-radius: 12px; padding: 12px 14px; background: #FFF4F2; font-size: 16px; line-height: 1.5; color: #2A2F45; }
.so-blocked a { font-weight: 600; }

/* ---------- Email form ---------- */
.so-form { display: flex; flex-direction: column; gap: 8px; }
.so-label { font-size: 16px; font-weight: 600; }
.so-err { font-size: 15px; font-weight: 600; color: #8C1D18; }
.so-err:empty { display: none; }
.so-input { flex: 1 1 280px; min-height: 56px; padding: 0 16px; border: 2px solid #8A8478; border-radius: 12px; font: 400 19px Inter, sans-serif; color: #0A0F23; background: #FFFFFF; min-width: 0; }
.so-input[aria-invalid="true"] { border-color: #8C1D18; }

/* ---------- Mock, code boxes ---------- */
.so-mock { border: 1px solid #D9D6CC; border-radius: 12px; background: #FAFAF7; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.so-mock-title { font-size: 15px; font-weight: 600; color: #2A2F45; }
.so-field { display: flex; flex-direction: column; gap: 4px; }
.so-field-label { font-size: 13px; color: #4A4F63; }
.so-field-box { border: 1px solid #8A8478; border-radius: 8px; background: #FFFFFF; padding: 8px 12px; font-size: 15px; }
.so-field-box--hl { border: 3px solid #C8922A; font: 500 15px ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.so-mock-add { align-self: flex-end; border-radius: 8px; background: #2A2F45; color: #FFFFFF; padding: 8px 16px; font-size: 14px; font-weight: 600; }
.so-code { font: 500 16px ui-monospace, Menlo, monospace; background: #F4F1E8; border-radius: 10px; padding: 14px 16px; overflow-wrap: anywhere; }
.so-instr { font-size: 15px; line-height: 1.55; background: #F4F1E8; border-radius: 10px; padding: 12px 16px; white-space: pre-line; max-height: 190px; overflow-y: auto; }
.so-promptbox { flex: 1 1 260px; font-size: 16px; line-height: 1.5; background: #F4F1E8; border-radius: 10px; padding: 12px 14px; }

.so-video { position: relative; aspect-ratio: 16 / 9; max-height: 250px; width: 100%; border-radius: 12px; background: #0A0F23; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #FFFFFF; overflow: hidden; }
.so-video video, .so-video iframe { width: 100%; height: 100%; border: 0; background: #000; }
.so-play { width: 56px; height: 56px; border-radius: 50%; background: #C8922A; display: inline-flex; align-items: center; justify-content: center; }
.so-video-cap { font-size: 14px; color: #C9CCD6; text-align: center; padding: 0 12px; }

/* "See it work" videos on the welcome screen, stacked one per row at the full column width. */
.so-demo { display: flex; flex-direction: column; gap: 12px; }
.so-demo-grid { display: flex; flex-direction: column; gap: 16px; }
.so-demo-item { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.so-demo-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0A0F23; }
.so-demo-item--9x16 .so-demo-frame { aspect-ratio: 9 / 16; }
.so-demo-frame video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.so-demo-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: #C8922A; display: inline-flex; align-items: center; justify-content: center; pointer-events: none; }
.so-demo-item.is-playing .so-demo-play { display: none; }
.so-demo-item figcaption { font-size: 15px; line-height: 1.4; color: #2A2F45; text-align: center; }

.so-fallback { display: flex; flex-direction: column; gap: 6px; }
.so-fallback textarea { width: 100%; min-height: 96px; padding: 10px 12px; border: 2px solid #0A0F23; border-radius: 10px; font: 400 15px/1.5 Inter, sans-serif; color: #0A0F23; resize: vertical; }
.so-fallback p { margin: 0; font-size: 15px; font-weight: 600; color: #0A0F23; }

.so-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.so-foot-spacer { flex-grow: 1; }

/* ---------- Below the card ---------- */
.so-about { color: #E6E8F0; padding: 0 4px; }
.so-about h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 26px; color: #FFFFFF; margin-bottom: 8px; line-height: 1.2; }
.so-about p { font-size: 16px; line-height: 1.6; margin-bottom: 8px; max-width: none; }
.so-about a { color: #E2B865; }
.so-about a:hover { color: #FFFFFF; }
.so-noscript { color: #2A2F45; }

@media (max-width: 640px) {
  .so-stage { padding: 20px 16px 40px; }
  .so-card { padding: 22px 16px 20px; border-radius: 16px; }
  .so-h1 { font-size: 28px; }
  .so-h1--xl { font-size: 32px; }
  .so-p { font-size: 17px; }
  .so-grid2, .so-grid3 { grid-template-columns: minmax(0, 1fr); }
  .so-btn--lg { font-size: 19px; padding: 0 22px; }
  .so-opt, .so-opt--big { font-size: 18px; }
  .so-warn span { font-size: 17px; }
  .so-foot { gap: 8px; }
}
.so-prov { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font: 500 12px Inter, sans-serif; color: #15203E; }
.so-opt--tinted .so-ico { background: #2C5AA0; border-radius: 8px; }
.so-opt--claude .so-ico { background: none; }
