/* Hallmark: Product introduction with the xangi cover. */
/* Pair the cover illustration with the introduction, then show concrete conversation examples. */
:root {
  color-scheme: dark;
  --background: #100f14;
  --panel: #191820;
  --panel-light: #231f2a;
  --ink: #f7f4fb;
  --muted: #c1b9cb;
  --soft: #a39bad;
  --line: #3c3544;
  --accent: #a9cfff;
  --accent-ink: #0d274b;
  --clear: transparent;
  --font: system-ui, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --mono: ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--background); font: 1rem/1.7 var(--font); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-color: var(--soft); text-underline-offset: .27em; }
a:hover { color: var(--accent); }
a:active { filter: brightness(.85); }
button { font: inherit; }
button:disabled { cursor: default; opacity: .6; }
button:active { filter: brightness(.85); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; top: .7rem; left: 1rem; transform: translateY(-200%); background: var(--background); z-index: 3; }
.skip:focus { transform: none; }
.shell { width: min(100% - 5rem, 73rem); margin-inline: auto; }
.header, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.header { min-height: 5rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.65rem; font-weight: 780; letter-spacing: -.055em; text-decoration: none; line-height: 1; }
.mark { flex: none; width: .82em; aspect-ratio: 1; background: var(--accent); clip-path: polygon(0 0, 24% 0, 50% 32%, 76% 0, 100% 0, 100% 24%, 68% 50%, 100% 76%, 100% 100%, 76% 100%, 50% 68%, 24% 100%, 0 100%, 0 76%, 32% 50%, 0 24%); }
nav, .footer > div { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2rem); }
nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav-github { color: var(--ink); }
.hero { min-height: 35rem; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 4vw, 4.25rem); padding-block: 4.5rem; }
h1, h2 { margin: 0; line-height: 1.18; overflow-wrap: break-word; min-width: 0; letter-spacing: -.06em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.15vw, 3.75rem); font-weight: 800; }
h1 span { display: block; }
h1 span + span { color: var(--accent); margin-top: .12em; }
h2 { font-size: clamp(1.9rem, 3.65vw, 3.25rem); font-weight: 750; }
p { margin: 1.25rem 0 0; color: var(--muted); }
.hero-copy > p { max-width: 30rem; font-size: 1.08rem; line-height: 1.9; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.button { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; padding: .62rem 1.05rem; border: 1px solid var(--line); font-size: .95rem; font-weight: 700; text-decoration: none; border-radius: .5rem; }
.primary { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.primary:hover { color: var(--accent-ink); box-shadow: inset 0 0 0 2px var(--accent-ink); }
.secondary:hover { border-color: var(--accent); }
.hero-cover { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 1rem; }
.demo-wrap, .start-wrap { background: var(--panel); border-block: 1px solid var(--line); }
.demo-grid, .product, .start-grid { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3.5rem, 7vw, 6.2rem); align-items: start; }
.section-copy > p { max-width: 25rem; }
.examples { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.examples button { cursor: pointer; padding: .46rem .75rem; min-height: 2.75rem; background: var(--clear); border: 1px solid var(--line); color: var(--ink); border-radius: .45rem; font-size: .9rem; }
.examples button:hover { border-color: var(--accent); }
.examples button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.conversation { background: var(--background); border: 1px solid var(--line); border-radius: .85rem; }
.conversation-head { display: flex; align-items: center; gap: .65rem; border-bottom: 1px solid var(--line); padding: .84rem 1.1rem; }
.example-label { margin-inline-start: auto; color: var(--soft); font-size: .85rem; }
.conversation dl { margin: 0; padding: 1.05rem; display: grid; gap: .9rem; }
.conversation dl > div { padding: .64rem .85rem; background: var(--panel); border-radius: .5rem; }
.conversation dl .request { background: var(--panel-light); }
.conversation dl .note { background: var(--clear); border-top: 1px solid var(--line); border-radius: 0; padding-bottom: .05rem; }
dt { font-size: .9rem; color: var(--accent); font-weight: 700; }
dd { margin: .15rem 0 0; }
.note dd { color: var(--muted); font-size: .9rem; }
.features { list-style: none; margin: 1.7rem 0 0; padding: 0; }
.features li { border-top: 1px solid var(--line); padding-block: .7rem; }
.features li span { display: block; color: var(--muted); }
.product-shot { margin: .25rem 0 0; }
.product-shot a { display: block; }
.product-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: .7rem; }
figcaption { color: var(--soft); margin-top: .5rem; font-size: .875rem; }
.steps { margin: 0; padding-inline-start: 1.65rem; }
.steps li { padding: 0 0 .5rem .3rem; }
.steps li::marker { color: var(--accent); font-weight: 700; }
code { font-family: var(--mono); background: var(--panel-light); padding: .1em .3em; border-radius: .2rem; color: var(--accent); }
.footer { min-height: 6rem; }
.footer > div { font-size: .92rem; }
@media (max-width: 55rem) {
  .shell { width: min(100% - 3rem, 73rem); }
  .hero { min-height: auto; gap: 1.5rem; padding-block: 3.5rem; }
  h1 { font-size: clamp(1.8rem, 4.3vw, 3.25rem); }
}
@media (max-width: 43rem) {
  .shell { width: calc(100% - 2rem); }
  .header { min-height: 4.15rem; }
  .hero, .demo-grid, .product, .start-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 2rem; padding-block: 3rem; }
  h1 { font-size: clamp(2.05rem, 7.8vw, 3.35rem); }
  .footer { min-height: 5rem; }
}
