/* ==========================================================================
   Red Penguin: guided setup
   Two panes. The left one talks to the person, one step at a time; the right
   one draws what the step is about.
   ========================================================================== */

.start { min-height: 100%; }
.wizard { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); min-height: 100vh; }

.pane { min-width: 0; }
.pane-form { display: grid; grid-template-rows: auto auto 1fr auto; padding: 26px 56px 26px 60px; max-width: 760px; width: 100%; justify-self: end; }
.pane-head { grid-row: 1; display: flex; align-items: center; justify-content: space-between; height: 44px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { display: block; margin-top: -2px; }
.brand-name { font-family: var(--font-display); font-size: 26px; line-height: 1; letter-spacing: -.01em; }

.progress { grid-row: 2; display: grid; gap: 8px; margin: 34px 0 0; max-width: 480px; }
.progress[hidden] { display: grid !important; visibility: hidden; }
.progress-label { font-size: 12.500px; color: var(--ink-3); font-weight: 500; letter-spacing: .02em; }
.progress-track { display: flex; gap: 6px; }
.progress-seg { flex: 1; height: 4px; border-radius: 999px; background: var(--line-2); overflow: hidden; position: relative; }
.progress-seg::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.progress-seg.is-done::after, .progress-seg.is-current::after { transform: scaleX(1); }
.progress-seg.is-current::after { background: var(--accent); }

.step-host { grid-row: 3; display: grid; align-content: center; padding: 30px 0 40px; }
.step { max-width: 480px; animation: step-in .55s var(--ease) both; }
.step.is-leaving { animation: step-out .28s var(--ease-soft) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes step-out { to { opacity: 0; transform: translateY(-8px); } }

.step-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.500px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.step-title { margin-top: 12px; font-size: clamp(36px, 3.400vw, 48px); text-wrap: balance; }
.step-lede { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.step-lede + .step-lede { margin-top: 10px; }
.step-body { margin-top: 28px; display: grid; gap: 18px; }
.step-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.step-note { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.step-note a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.step-note a:hover { color: var(--ink); text-decoration-color: var(--accent); }

.welcome-list { display: grid; gap: 12px; margin-top: 26px; }
.welcome-list li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; font-size: 15px; color: var(--ink-2); }
.welcome-list li b { color: var(--ink); font-weight: 500; }
.welcome-list .n {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
}

/* a callout that offers something already found */
.found {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  padding: 16px 18px; border-radius: var(--r-lg);
  background: var(--accent-wash); border: 1px solid rgba(var(--accent-rgb), .25);
}
.found-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card); color: var(--accent-ink); box-shadow: var(--shadow-1); }
.found-ico svg { width: 18px; height: 18px; }
.found h3 { font-size: 15px; font-weight: 600; }
.found p { margin-top: 3px; font-size: 13.500px; color: var(--ink-2); line-height: 1.5; }
.found .step-actions { margin-top: 12px; }

/* the two ways in */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-3); }
.seg button { height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13.500px; font-weight: 500; color: var(--ink-2); transition: background-color .2s, color .2s, box-shadow .2s; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }

.form { display: grid; gap: 16px; }
.form.is-shaking { animation: shake .4s var(--ease-soft); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 44px; }
.input-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.form-error { display: flex; gap: 8px; align-items: flex-start; font-size: 13.500px; color: var(--bad); line-height: 1.5; }
.form-error svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.form-error:empty { display: none; }

/* the walk-through for people without keys */
.guide { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.guide-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 16px; }
.guide-step + .guide-step { border-top: 1px solid var(--line); }
.guide-step .n { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px; background: var(--paper-2); font-family: var(--font-mono); font-size: 11.500px; color: var(--ink-2); }
.guide-step p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.guide-step p b { color: var(--ink); font-weight: 500; }
.guide-step .guide-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.copyable {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px 0 10px;
  border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12.500px; color: var(--ink);
}
.copyable button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--ink-3); }
.copyable button:hover { background: var(--card); color: var(--ink); }
.copyable button svg { width: 13px; height: 13px; }
.guide-foot { padding: 12px 16px; background: var(--paper-2); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.guide-foot .faint { font-size: 12.500px; }

.fine { border: 1px solid var(--line); border-radius: var(--r-md); }
.fine summary { display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; list-style: none; font-size: 13.500px; font-weight: 500; color: var(--ink-2); }
.fine summary::-webkit-details-marker { display: none; }
.fine summary svg { width: 15px; height: 15px; color: var(--ink-3); transition: transform .3s var(--ease); }
.fine[open] summary svg { transform: rotate(90deg); }
.fine-body { padding: 0 14px 14px; font-size: 13.500px; line-height: 1.55; color: var(--ink-2); display: grid; gap: 8px; }

/* success */
.done-banner {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: var(--r-lg);
  background: var(--ok-wash); border: 1px solid rgba(46, 139, 87, .25);
  animation: rise-in .5s var(--ease) both;
}
:root[data-theme="dark"] .done-banner { border-color: rgba(111, 207, 151, .3); }
.done-check { width: 44px; height: 44px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.done-check svg { width: 22px; height: 22px; }
.done-check svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-banner h3 { font-size: 15.500px; font-weight: 600; color: var(--ink); }
.done-banner p { margin-top: 2px; font-size: 13.500px; color: var(--ink-2); }

.status-line { display: inline-flex; align-items: center; gap: 8px; font-size: 13.500px; color: var(--ink-2); }

/* who to reach */
.aud-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.aud {
  display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; text-align: left;
  padding: 13px 14px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line-2);
  transition: border-color .15s, box-shadow .2s, transform .2s var(--ease), background-color .2s;
}
.aud:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.aud[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.aud-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); }
.aud[aria-pressed="true"] .aud-ico { background: var(--accent-wash); color: var(--accent-ink); }
.aud-ico svg { width: 17px; height: 17px; }
.aud b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.aud small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.aud-other { grid-column: 1 / -1; }
.count-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.count-row .label { margin-right: 6px; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.field-row .switch > span:last-child { white-space: nowrap; }
.field-row .hint { font-size: 12.500px; color: var(--ink-3); }

.pane-foot { grid-row: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.pane-foot-note { font-size: 12.500px; }

/* --- the drawing pane -------------------------------------------------------- */
.pane-art {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--paper-2);
  background-image: radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 0); background-size: 22px 22px;
  border-left: 1px solid var(--line);
  display: grid; place-items: center; padding: 60px;
}
.pane-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 55%, rgba(var(--accent-rgb), .10), transparent 70%); pointer-events: none; }
.art-host { position: relative; width: min(520px, 100%); display: grid; place-items: center; }
.art { width: 100%; animation: art-in .7s var(--ease) both; }
.art.is-leaving { animation: art-out .3s var(--ease-soft) both; }
@keyframes art-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes art-out { to { opacity: 0; transform: translateY(-10px) scale(.99); } }

.art-mascot { display: grid; place-items: center; }
.art-welcome { display: grid; gap: 0; justify-items: center; }
.art-welcome-cards { display: grid; gap: 10px; width: min(360px, 100%); margin-top: -8px; }
.mini { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; font-size: 13.500px; box-shadow: var(--shadow-2); }
.mini:nth-child(2) { transform: translateX(28px); }
.mini:nth-child(3) { transform: translateX(-16px); opacity: .85; }

/* the mock forms */
.art-reddit { display: grid; gap: 22px; }
.mock { position: relative; border-radius: 18px; padding: 18px 20px 16px; box-shadow: var(--shadow-2); font-size: 13px; }
.mock-title { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; letter-spacing: .01em; }
.mock-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 6px 0; }
.mock-label { color: var(--ink-3); font-size: 12.500px; text-align: right; }
.mock-field {
  height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--paper);
  display: flex; align-items: center; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.mock-field-empty { color: var(--ink-3); }
.mock-field.is-hot { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); font-weight: 500; }
.mock-radios { display: flex; gap: 14px; }
.mock-radio { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12.500px; }
.mock-radio::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--paper); }
.mock-radio.is-on { color: var(--ink); font-weight: 500; }
.mock-radio.is-on::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 50%); }
.mock-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.mock-button { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--paper-3); color: var(--ink); font-weight: 500; font-size: 12.500px; border: 1px solid var(--line-2); }
.mock-app { display: flex; gap: 12px; align-items: center; }
.mock-app-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--paper-3); border: 1px solid var(--line-2); flex: none; }
.mock-app-name { font-weight: 600; color: var(--ink); }
.mock-app-name .faint { font-weight: 400; font-size: 12px; margin-left: 4px; }
.mock-app-id { font-size: 12.500px; color: var(--ink-2); margin-top: 2px; padding: 2px 6px; margin-left: -6px; border-radius: 6px; background: var(--accent-wash); display: inline-block; }
.mock-row-secret { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.mock-row-secret .mock-field { background: var(--accent-wash); border-color: rgba(var(--accent-rgb), .3); font-size: 12px; }
.callout {
  position: absolute; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; background: var(--ink); color: var(--on-ink);
  font-size: 12px; white-space: nowrap; box-shadow: var(--shadow-2);
  animation: callout-in .6s .4s var(--spring) both;
}
.callout b { font-weight: 600; color: var(--accent); }
:root[data-theme="dark"] .callout b { color: var(--accent-hover); }
.callout::before { content: ""; position: absolute; width: 8px; height: 8px; background: var(--ink); transform: rotate(45deg); }
.callout-a { right: -14px; top: 96px; }
.callout-a::before { left: -3px; top: 11px; }
.callout-b { left: 60px; top: -16px; }
.callout-b::before { left: 18px; bottom: -3px; }
.callout-c { right: -10px; bottom: 10px; }
.callout-c::before { left: -3px; top: 11px; }
@keyframes callout-in { from { opacity: 0; transform: translateY(6px) scale(.95); } to { opacity: 1; transform: none; } }
.art-reddit[data-phase="after"] .mock[data-mock="create"] { opacity: .35; transform: scale(.96); }
.art-reddit .mock { transition: opacity .5s var(--ease-soft), transform .6s var(--ease); }

/* brain comparison */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; width: 100%; }
.compare-col { display: grid; gap: 10px; align-content: start; }
.compare-ask { border-radius: 14px; box-shadow: var(--shadow-1); }
.compare-typed { padding: 12px 14px; font-size: 13px; }
.compare-out { border-radius: 14px; padding: 14px; font-size: 12.500px; line-height: 1.5; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.compare-out-basic { display: flex; gap: 8px; color: var(--ink-2); }
.compare-out-basic svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); margin-top: 1px; }
.compare-out-smart { display: grid; gap: 10px; }
.compare-plan { display: flex; align-items: baseline; gap: 8px; color: var(--ink-2); }
.compare-num { font-size: 34px; line-height: .9; color: var(--ink); letter-spacing: -.03em; }

/* audience preview */
.art-audience { display: grid; gap: 0; justify-items: center; }
.art-mascot-small { margin-bottom: -6px; position: relative; z-index: 1; }
.preview-composer { width: 100%; border-radius: 20px; }
.preview-text { padding: 18px 20px 6px; font-size: 17px; line-height: 1.5; min-height: 58px; }
.preview-composer .send-btn { pointer-events: none; }
.art-caption { margin-top: 16px; font-size: 13px; color: var(--ink-3); text-align: center; }

/* --- narrow screens ---------------------------------------------------------- */
@media (max-width: 960px) {
  .wizard { grid-template-columns: 1fr; }
  .pane-form { justify-self: stretch; max-width: none; padding: 20px 22px 24px; grid-template-rows: auto auto auto auto; }
  .pane-art { position: static; height: auto; min-height: 320px; padding: 36px 22px; border-left: 0; border-top: 1px solid var(--line); order: 2; }
  .step-host { align-content: start; padding: 26px 0 30px; }
  .step-title { font-size: 34px; }
  .aud-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .callout-a { right: 8px; }
}
