
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fcfafb;
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
a { color: inherit; }

main { position: relative; isolation: isolate; }
.intro { position: relative; padding: 46px 0 34px; }
.intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -28px;
  top: 10px;
  width: 330px;
  height: 290px;
  background: linear-gradient(135deg, #ed245c12, #b2194010);
  clip-path: polygon(24% 30%, 100% 0, 84% 43%, 4% 78%, 21% 100%, 100% 69%, 100% 49%, 62% 67%, 48% 91%, 4% 100%, 0 86%);
  pointer-events: none;
}
.eyebrow, .card-kicker { color: var(--pink); font-size: 12px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow { margin: 0 0 12px; }
h1 { font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace; font-size: clamp(34px, 4vw, 44px); line-height: 1.2; letter-spacing: -.045em; margin: 0 0 12px; }
h2 { letter-spacing: -.035em; }
.intro .lead { font-size: 20px; line-height: 1.4; color: #455268; margin: 0; max-width: 800px; }
.intro .read-only { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

.demo-list { display: grid; gap: 18px; }
.demo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffffd9;
  box-shadow: 0 2px 8px #30202b06, 0 7px 24px #30202b03;
}
.preview { display: block; overflow: hidden; aspect-ratio: 1366 / 800; border-radius: 8px; border: 1px solid #e9e5e9; background: #fff; }
.preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.preview:hover { border-color: var(--pink); }
.card-copy { min-width: 0; padding: 10px 2px 10px 0; }
.card-kicker { margin: 0 0 10px; }
.card-copy h2 { font-size: clamp(23px, 2.1vw, 27px); line-height: 1.25; margin: 0 0 8px; }
.card-description { color: var(--muted); margin: 0; max-width: 410px; }
.card-note { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 12px 0 0; max-width: 410px; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.source { font-size: 14px; font-weight: 600; text-decoration: none; }
.source span { color: var(--pink); font-size: 20px; margin-left: 4px; }
.source:hover { text-decoration: underline; text-underline-offset: 4px; }
.open { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-width: 155px; padding: 10px 16px; border-radius: 9px; background: var(--pink-soft); color: #800d2d; font-size: 15px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background .15s; }
.open:hover { background: #f3a5b8; }
.open span { font-size: 23px; font-weight: 400; line-height: 1; }

.small-example { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 32px 0 42px; padding: 24px 28px; border: 1px solid #eee3e8; border-radius: 12px; background: #f8f0f3; }
.small-example .card-kicker { margin: 0 0 4px; }
.small-example h2 { font-size: 21px; margin: 0 0 4px; }
.small-example p:not(.card-kicker) { color: var(--muted); margin: 0; max-width: 650px; }
.small-example > a { white-space: nowrap; color: var(--pink-dark); font-size: 14px; font-weight: 650; text-decoration: none; }
.small-example > a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--pink-dark); outline-offset: 4px; }

@media (max-width: 900px) {
  .demo-card { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 22px; }
  .card-actions { flex-wrap: wrap; margin-top: 16px; }
  .intro::after { right: 0; opacity: .55; width: 250px; }
  .small-example { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (max-width: 650px) {
  .intro { padding: 34px 0 26px; }
  .intro .lead { font-size: 17px; }
  .intro::after { right: 0; width: 170px; height: 210px; opacity: .4; }
  .demo-card { grid-template-columns: 1fr; padding: 12px; gap: 18px; }
  .card-copy { padding: 0 4px 6px; }
  .card-copy h2 { font-size: 24px; }
  .card-kicker { font-size: 11px; }
  .card-actions { gap: 12px; }
  .open { min-width: 139px; }
  .small-example { padding: 22px; margin: 26px 0 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .open { transition: none; }
}
