/* Topside: the page borrows the menu bar's own look. Indigo from the app icon, cool paper, system type. */
:root {
  --ink: #14163a;
  --paper: #eef0f7;
  --card: #ffffff;
  --blue: #4b5bf0;
  --deep: #21246b;
  --muted: #5d6285;
  --line: #d5d9ea;
  --bar: 34px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 24px; }

/* The navigation is a menu bar. Its right side is the demo. */
.menubar {
  position: sticky; top: 0; z-index: 10; height: var(--bar);
  display: flex; align-items: center; gap: 4px; padding: 0 14px;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(20, 22, 58, .1); font-size: 14px; white-space: nowrap;
}
.menubar a { color: var(--ink); text-decoration: none; padding: 3px 10px; border-radius: 6px; }
.menubar a:hover { background: rgba(20, 22, 58, .08); }
.menubar .app { font-weight: 700; }
.menubar .status { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.menubar .glyph { width: 18px; height: 18px; display: block; color: var(--ink); }
.menubar .clock { font-variant-numeric: tabular-nums; }
.more {
  width: 28px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--ink);
  font: inherit; font-weight: 700; letter-spacing: 1px; cursor: pointer; padding: 0 0 6px;
}
.more:hover, .more[aria-expanded="true"] { background: rgba(20, 22, 58, .1); }
.tray {
  position: fixed; top: calc(var(--bar) + 7px); right: 96px; z-index: 9;
  display: flex; align-items: center; gap: 14px; height: var(--bar); padding: 0 14px;
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(20, 22, 58, .12); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(33, 36, 107, .18);
  opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none;
  transition: opacity .18s ease, transform .22s cubic-bezier(.2, .9, .3, 1.2);
}
.tray.open { opacity: 1; transform: none; pointer-events: auto; }
.tray .glyph { width: 18px; height: 18px; color: var(--ink); }
.tray .rule { width: 1px; height: 16px; background: var(--line); }
.tray .hint { font-size: 13px; color: var(--muted); padding-left: 4px; }

/* Hero */
.hero { padding-block: 108px 72px; }
.hero h1 {
  font-size: clamp(44px, 7.4vw, 92px); line-height: .98; letter-spacing: -.035em; font-weight: 800;
  margin: 0 0 28px; max-width: 11ch;
}
.hero p { font-size: 21px; line-height: 1.45; max-width: 34em; margin: 0 0 34px; color: var(--deep); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-block; padding: 13px 22px; border-radius: 12px; border: 0; cursor: pointer;
  font: inherit; font-weight: 650; text-decoration: none; background: var(--blue); color: #fff;
}
.button:hover { background: #3c4be0; }
.button.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button.quiet:hover { background: rgba(20, 22, 58, .06); }
.fine, .hero p.fine { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* The three rows, drawn the way the settings window draws them */
section { padding-block: 64px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; max-width: 20ch; }
.lede { max-width: 38em; margin: 0 0 34px; color: var(--deep); }
.rows { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: center; }
.row h3 { margin: 0; font-size: 17px; }
.row p { margin: 2px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.strip {
  display: flex; align-items: center; gap: 16px; min-height: 46px; padding: 0 16px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
.strip .glyph { width: 20px; height: 20px; flex: none; color: var(--ink); }
.strip .spacer { font-size: 14px; font-weight: 600; border: 1px dashed #b3b8d4; border-radius: 5px; padding: 1px 6px; }
.strip .ours { color: var(--blue); box-shadow: 0 0 0 1.5px var(--blue); border-radius: 6px; padding: 2px 5px; width: 30px; height: 24px; }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px 40px; margin-top: 44px; }
.points h3 { margin: 0 0 4px; font-size: 17px; }
.points p { margin: 0; color: var(--muted); font-size: 16px; }
kbd { font: inherit; font-size: .92em; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }

/* The maker's note: the one loud block */
.note { background: var(--deep); color: #fff; border-radius: 28px; padding: clamp(32px, 6vw, 72px); }
.note p { font-size: clamp(21px, 2.6vw, 30px); line-height: 1.32; letter-spacing: -.01em; margin: 0 0 22px; max-width: 26em; }
.note p:last-of-type { margin-bottom: 0; }
.note .who { margin-top: 30px; font-size: 16px; color: #b9c0ff; }

/* Pricing */
.price { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 48px; align-items: start; }
.ticket { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.ticket .amount { font-size: 76px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ticket .was { font-size: 22px; color: var(--muted); text-decoration: line-through; margin-left: 10px; font-weight: 500; }
.ticket .terms { margin: 10px 0 24px; color: var(--muted); }
.ticket .button { width: 100%; text-align: center; margin-bottom: 10px; }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { padding: 14px 0; border-top: 1px solid var(--line); }
.facts li:first-child { border-top: 0; padding-top: 0; }
.facts strong { display: block; }
.facts span { color: var(--muted); font-size: 16px; }

.faq details { border-top: 1px solid var(--line); padding: 16px 0; max-width: 46em; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: 10px 0 0; color: var(--deep); }

footer { padding-block: 44px 64px; font-size: 14px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 10px; }
footer a { color: var(--muted); }

/* Legal pages */
.legal { max-width: 44em; padding: 72px 24px; margin: 0 auto; }
.legal h1 { font-size: 40px; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 6px; }
.legal h2 { font-size: 21px; margin: 34px 0 8px; max-width: none; letter-spacing: 0; }
.legal .dated { color: var(--muted); margin: 0 0 28px; }

@media (max-width: 760px) {
  .menubar .links { display: none; }
  .tray { right: 12px; }
  .tray .hint { display: none; }
  .hero { padding-block: 64px 48px; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .price { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tray { transition: none; }
}
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
