:root {
  --sapphire: #0B1F4B;
  --sapphire-deep: #071634;
  --accent: #1E4D8C;
  --accent-bright: #2E6BBF;
  --cream: #FAF7F2;
  --cream-warm: #F2EDE4;
  --ink: #16233D;
  --ink-soft: #4A566E;
  --line: #E0D8CA;
  --magenta: #C24BB8;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 31, 75, .06), 0 12px 32px rgba(11, 31, 75, .08);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:focus-visible, button:focus-visible, .prompt:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cream);
  color: var(--sapphire);
  padding: 14px 18px;
  z-index: 10;
  font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--sapphire);
  color: var(--cream);
  padding: 52px 0 78px;
}

.hero-bg {
  position: absolute;
  inset: -8%;
  z-index: -2;
  background-image: url("assets/ryan-hayes-full-bleed.png");
  background-size: cover;
  background-position: 50% 22%;
  filter: blur(46px) saturate(.75) brightness(.55);
  transform: scale(1.15);
  opacity: .85;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 18% 10%, rgba(30, 77, 140, .55), transparent 60%),
    linear-gradient(170deg, rgba(11, 31, 75, .82) 0%, rgba(7, 22, 52, .94) 70%);
}

.hero-inner {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero { padding: 80px 0 96px; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #BFD2F0;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 800;
  color: #fff;
  text-wrap: balance;
}

.lede {
  margin: 0 0 22px;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: #E6EAF4;
  max-width: 48ch;
}

.byline {
  margin: 0 0 30px;
  font-size: .95rem;
  color: #AFC2E0;
}

.btn-jump {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--sapphire);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  transition: transform .15s ease, background .15s ease;
}
.btn-jump:hover { transform: translateY(-2px); background: #fff; }

.hero-card {
  margin: 0;
  width: min(300px, 78vw);
  justify-self: center;
}
@media (min-width: 900px) { .hero-card { width: 340px; } }
.hero-card img {
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .14);
}

/* ---------- sections ---------- */

main { padding: 0 0 8px; }

.howto {
  margin-top: -46px;
  position: relative;
  z-index: 2;
}

.howto h2, .closer h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.howto {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 24px;
  max-width: 1040px;
}
@media (min-width: 900px) { .howto { padding: 32px 36px 28px; } }

.steps {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 14px;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
}

.num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sapphire);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: .85rem;
  font-weight: 700;
}

.note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .95rem;
}

.section-title {
  margin: 56px 0 22px;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  letter-spacing: -.015em;
  color: var(--sapphire);
}

/* ---------- prompt cards ---------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 22px;
  scroll-margin-top: 20px;
}
@media (min-width: 760px) { .card { padding: 28px 30px; } }

.card-accent { border-top: 3px solid var(--magenta); }

.card-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.logo {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream-warm);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.logo img { width: 100%; height: 100%; object-fit: cover; }

.logo-mark {
  color: var(--magenta);
  background: #FBF1FA;
  border-color: #EAD3E7;
}
.logo-mark svg { width: 26px; height: 26px; }

.card h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  letter-spacing: -.01em;
  color: var(--sapphire);
}

.blurb {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 62ch;
}

.prompt-shell { position: relative; }

.prompt {
  margin: 0;
  background: var(--sapphire-deep);
  color: #DFE7F5;
  border-radius: 12px;
  padding: 18px 18px 20px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: hidden;
}

.prompt.is-collapsed {
  max-height: 260px;
  overflow: hidden;
}

.prompt-shell.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(to bottom, rgba(7, 22, 52, 0), rgba(7, 22, 52, .97));
  pointer-events: none;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.btn-copy, .btn-expand {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, transform .1s ease;
}

.btn-copy {
  background: var(--accent);
  color: #fff;
  min-width: 152px;
}
.btn-copy:hover { background: var(--accent-bright); }
.btn-copy:active { transform: translateY(1px); }
.btn-copy.is-copied { background: #14663F; }

.btn-expand {
  background: transparent;
  color: var(--accent);
  border-color: var(--line);
}
.btn-expand:hover { background: var(--cream-warm); }

.status {
  font-size: .95rem;
  font-weight: 600;
  color: #14663F;
  min-height: 1.2em;
}
.status.is-error { color: #A1341F; }

/* ---------- closer + footer ---------- */

.closer {
  margin: 46px auto 64px;
  max-width: 760px;
  text-align: left;
}
.closer p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--line);
  padding-left: 18px;
}

.site-footer {
  background: var(--sapphire);
  color: #C7D5EC;
  padding: 46px 0 40px;
}

.footer-inner { text-align: center; }

.footer-lead {
  margin: 0 0 18px;
  color: var(--cream);
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-bottom: 20px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
}
.footer-links a:hover { background: rgba(255, 255, 255, .1); }

.footer-fine {
  margin: 0;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8FA6C9;
}
