/* Brisk on codice.pl. The Sentry pages' layout, in Brisk's violet, with its icon's token colors. */
:root {
  color-scheme: dark;
  --bg: #07060f;
  --panel: #12111d;
  --panel-2: #191827;
  --line: rgba(255, 255, 255, .09);
  --text: #e6e4f0;
  --muted: #a19fb4;
  --violet: #7a6bff;
  --violet-deep: #3b2db8;
  --lavender: #b4abff;
  --good: #8bd27a;
  /* The icon's code tokens, in their dark-appearance colors. */
  --t-keyword: #ff7ab2;
  --t-type: #5ea8ff;
  --t-function: #5dd8cf;
  --t-number: #ffa14f;
  --t-string: #8bd27a;
  --t-plain: #8a8f9c;
  --radius: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 17px/1.6 var(--font);
  color: var(--text);
  background: #05040b;
  min-height: 100vh;
}
/* The sky stays put while the page scrolls. It's painted on fixed layers of its own, not with
   background-attachment: fixed, which makes Safari repaint the whole page on every scroll step. */
body::before, .stars {
  content: ""; position: fixed; inset: 0; pointer-events: none; transform: translateZ(0);
}
body::before {
  z-index: -2;
  background:
    radial-gradient(1100px 650px at 50% -12%, #251c5c 0, transparent 60%),
    radial-gradient(900px 600px at 92% 105%, #1d1236 0, transparent 55%),
    linear-gradient(180deg, #08070f, #030209);
}
.stars {
  z-index: -1; opacity: .45;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 60%, #ddd6ff, transparent),
    radial-gradient(1px 1px at 40% 80%, #fff, transparent),
    radial-gradient(1px 1px at 85% 25%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, #fff, transparent),
    radial-gradient(1px 1px at 12% 65%, #fff, transparent),
    radial-gradient(1px 1px at 90% 80%, #ddd6ff, transparent);
}
a { color: var(--lavender); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .button:focus-visible, summary:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; }
kbd { white-space: nowrap; }

/* Side gutter only, so each section keeps its own vertical spacing. */
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

/* Header and footer */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--text); font-weight: 700; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--text); text-decoration: none; }
.foot { border-top: 1px solid var(--line); margin-top: 80px; padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
/* codice.pl's icon beside its name, as on the codice.pl home page. */
.foot .maker img { width: 22px; height: 22px; vertical-align: middle; margin: -3px 10px 0 0; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* Type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: #d3d0e2; max-width: 40ch; }
.muted { color: var(--muted); }
.gradient {
  background: linear-gradient(90deg, #9d91ff, #d6cfff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--lavender); margin-bottom: .8em; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 650;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
}
.button:hover { text-decoration: none; border-color: rgba(255, 255, 255, .25); }
/* White on #6a5af9, the lighter end, is 4.7:1. */
.button.primary { background: linear-gradient(90deg, #6a5af9, var(--violet-deep)); border-color: transparent; color: #fff; }
.button.primary:hover { filter: brightness(1.1); }
.button[aria-disabled="true"] { opacity: .65; pointer-events: none; }
.note { font-size: .9rem; color: var(--muted); }

/* Hero */
/* The text, then the window under it at full width: an editor window is too wide to read beside the text. */
.hero { display: grid; gap: 44px; padding-block: 48px 0; }
.hero .lead { max-width: 52ch; }
@media (max-width: 860px) { .hero { gap: 32px; padding-top: 20px; } }

/* The rendered icon carries its own edges; a CSS filter on a moving element would be redrawn every frame. */
.app-icon { display: block; width: 112px; height: 112px; margin: 0 0 22px -4px; animation: float 7s ease-in-out infinite; will-change: transform; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* A thin rule of the icon's code tokens, under the hero. */
.tokens { display: flex; gap: 8px; margin: 26px 0 0; }
.tokens i { display: block; height: 8px; border-radius: 4px; }

/* Screenshots: real captures of the app, made in a sample folder so they show no one's files. No CSS
   shadow: the captures carry macOS's own window shadow, and a blurred filter over images this large
   makes Safari repaint them as the page scrolls. */
.window-shot { display: block; width: 100%; height: auto; }
.hero .window-shot { max-width: 1040px; justify-self: center; }
.wide-shot { max-width: 960px; margin: 40px auto 0; }
/* The Settings capture is the window alone, with its shadow, on a transparent background. */
.settings-shot { max-width: 872px; margin: 28px auto 0; }
/* A capture inside a two-column section takes the whole row under both columns. */
.split > .span-all { grid-column: 1 / -1; margin-top: 8px; }
/* A capture in a narrow page, wider than its column and centered on the page. */
.doc .bleed { position: relative; left: 50%; transform: translateX(-50%); width: min(1040px, calc(100vw - 40px)); margin: 32px 0 8px; }
.bleed figcaption { max-width: 720px; margin: 14px auto 0; text-align: center; font-size: .92rem; }

/* Sections */
section { padding-top: 96px; }
@media (max-width: 860px) { section { padding-top: 72px; } }
section > .eyebrow + h2, .split > div > .eyebrow + h2 { margin-bottom: .6em; }
.section-text { max-width: 62ch; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* Six feature cards: three across, two across, then one, so no row is left half empty. */
.grid.features { grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
@media (max-width: 860px) { .grid.features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.features { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(26, 24, 40, .9), rgba(17, 16, 28, .9));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.card p { color: #c8c5d6; margin: 0; font-size: .97rem; }
.card p + p { margin-top: .7em; }
.icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(122, 107, 255, .16); color: var(--lavender); }
.icon svg { width: 22px; height: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.cards { align-items: stretch; gap: 18px; }
.card .actions { margin-top: auto; padding-top: 24px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 28px; position: relative; margin: 0 0 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: rgba(139, 210, 122, .16); box-shadow: inset 0 0 0 1.5px var(--good); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chip { padding: 5px 13px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font-size: .9rem; font-weight: 600; }

/* What people ask Siri: request bubbles, as Siri shows what was said. */
.asks { display: grid; gap: 12px; }
.ask {
  justify-self: start; max-width: 100%;
  background: rgba(30, 28, 48, .92); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px;
  padding: 12px 16px; font-size: 1rem; color: var(--text);
}
.ask:nth-child(even) { justify-self: end; border-radius: 18px 18px 6px 18px; }
.ask small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }

/* Keyboard shortcuts beside what they do. */
.keys { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: baseline; margin: 0; }
.keys dt { text-align: right; }
.keys dd { margin: 0; color: #c8c5d6; }

.price { text-align: center; align-items: center; padding: 44px 24px; }
.price .amount { font: 800 2.6rem/1.1 var(--font); letter-spacing: -.03em; margin: 8px 0 12px; }

/* Long text pages */
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .5em; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.doc .steps { padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 48px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; background: rgba(122, 107, 255, .18); color: var(--lavender);
}
.download { display: flex; flex-direction: row; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.sha { font-family: var(--mono); font-size: .8rem; word-break: break-all; color: var(--muted); flex-basis: 100%; margin: 0; }
.agents { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0 8px; }
@media (max-width: 560px) { .agents { grid-template-columns: 1fr; } }
.agents .card { padding: 16px 18px; }
.agents h3 { margin: 0 0 .3em; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: .7em 0 0; color: #c8c5d6; }

/* Home: the app's name sits beside the big icon; the header keeps only the navigation. */
.top-home { justify-content: flex-end; }
.hero-brand { display: flex; align-items: center; gap: 22px; margin: 0 0 26px -4px; }
.hero-brand .app-icon { margin: 0; }
.hero-name { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--text); }
@media (max-width: 560px) { .hero-brand { gap: 16px; } .hero-brand .app-icon { width: 88px; height: 88px; } }

@media (prefers-reduced-motion: reduce) {
  .app-icon { animation: none; }
}

@media (max-width: 560px) {
  .top { flex-wrap: wrap; row-gap: 10px; }
  .nav { gap: 16px; font-size: .9rem; }
  .keys { grid-template-columns: 1fr; gap: 2px; }
  .keys dt { text-align: left; margin-top: 8px; }
}
