/* Prompt & Error page. Loaded after styles.css, so it reuses its variables and nav/footer. */
.pe { --r: 18px; }
.pe section { padding: 72px 0; }
.pe section + section { border-top: 1px solid var(--line); }
.pe .alt { background: var(--bg-soft); }
.pe-narrow { max-width: 880px; margin: 0 auto; }
.pe h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 10px; }
.pe .sub { color: var(--ink-soft); font-size: 17px; margin: 0 0 36px; max-width: 58ch; }
.grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero */
.pe-hero { text-align: center; padding: 88px 0 72px !important; position: relative; overflow: hidden; }
.pe-hero::before { content: ""; position: absolute; left: 50%; top: 40%; width: 900px; height: 520px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(123,108,252,.14), transparent 70%); z-index: -1; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.pe-hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -.045em; margin: 22px auto 20px; max-width: 17ch; text-wrap: balance; }
.pe-hero .lede { color: var(--ink-soft); font-size: clamp(17px, 2vw, 20px); max-width: 52ch; margin: 0 auto 30px; }
.pe-hero .signup { margin: 0 auto; justify-content: center; }
.pe-hero .fine { color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }
.pe-hero .jump { display: inline-block; margin-top: 26px; font-weight: 700; font-size: 14.5px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.step .n { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-bottom: 16px; }
.step h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.errorlog { margin-top: 22px; display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--r); background: linear-gradient(135deg, rgba(109,94,252,.08), rgba(155,92,246,.08)); border: 1px solid rgba(109,94,252,.18); }
.errorlog strong { display: block; font-size: 18px; margin-bottom: 4px; }
.errorlog p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.log { flex: none; font: 600 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--ink-soft); }
.log b { color: #b3261e; font-weight: 700; } .log i { color: #1a7f4b; font-style: normal; font-weight: 700; }

/* Roadmap path */
.phase { margin: 0 0 6px; padding-left: 58px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.path { list-style: none; margin: 0 0 22px; padding: 0; position: relative; }
.path::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); opacity: .35; }
.stage { position: relative; padding-left: 58px; margin: 0 0 12px; }
.stage .num { position: absolute; left: 0; top: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: #fff; color: var(--accent); border: 2px solid rgba(109,94,252,.45); z-index: 1; }
.stage details { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
.stage details[open] { border-color: rgba(109,94,252,.4); box-shadow: var(--shadow); }
.stage summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 20px; position: relative; }
.stage summary::-webkit-details-marker { display: none; }
.stage summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 600; color: var(--muted); transition: transform .2s; }
.stage details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--accent); }
.stage h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.stage .tag { margin: 2px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 18px; }
.chips span { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-soft); }
.stage.open-first .num { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }

/* Goals + tracks */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.c { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.c h3 { margin: 0 0 6px; font-size: 17px; }
.c p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.quote { grid-column: span 3; padding: 26px 28px; border-radius: var(--r); background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.quote small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .8; margin-bottom: 8px; }
.quote p { margin: 0; font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; margin-bottom: 12px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.badge.first { background: rgba(109,94,252,.1); color: var(--accent); border-color: rgba(109,94,252,.25); }
.real { margin: 26px 0 0; color: var(--muted); font-size: 14px; }
.pe .subscribe-cta { margin: 0; }

@media (max-width: 760px) {
  .pe section { padding: 56px 0; }
  .steps, .cards { grid-template-columns: 1fr; }
  .quote { grid-column: auto; }
  .errorlog { flex-direction: column; align-items: flex-start; }
}
