/* aircrop.kamatiam.store. No inline styles anywhere: the CSP in _headers has style-src 'self'. */

:root {
  color-scheme: light dark;
  --bg: #f6f9fc;
  --surface: #ffffff;
  --text: #0f1b2d;
  --muted: #4a5a72;
  --line: #d9e2ee;
  --accent: #0b5fe0;          /* the icon's top color */
  --accent-text: #ffffff;
  --accent-hover: #0a52c2;
  --link: #0a55c9;
  --sky-top: #0b5fe0;
  --sky-bottom: #4cc6ff;
  --code-bg: #eef3f9;
  --focus: #0b5fe0;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 27 45 / 6%), 0 8px 24px rgb(15 27 45 / 6%);
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f18;
    --surface: #121a27;
    --text: #e8eef7;
    --muted: #a3b1c6;
    --line: #243247;
    --accent: #4cb4ff;
    --accent-text: #04121f;
    --accent-hover: #7cc8ff;
    --link: #7cc4ff;
    --sky-top: #072f74;
    --sky-bottom: #1f78b4;
    --code-bg: #182335;
    --focus: #7cc4ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

img, svg, video { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.1rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin: 0.3em 0; }
code, kbd { overflow-wrap: anywhere; font: 0.9em ui-monospace, "SF Mono", Menlo, monospace; background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 5px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 0.5em 1em; border-radius: 8px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; }
.site-nav ul { display: flex; gap: 4px 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 28px 0 56px; }
.hero .wrap { display: grid; gap: 36px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.badge { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 0.15em 0.7em; margin-bottom: 1em; }

.download { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 1.6em; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--accent-text);
  font-weight: 650; font-size: 1.05rem; text-decoration: none;
  padding: 0.8em 1.4em; border-radius: 12px; min-height: 48px;
}
.button:hover { background: var(--accent-hover); text-decoration: none; }
.button svg { width: 20px; height: 20px; }
.button.secondary { background: transparent; color: var(--text); border: 1.5px solid var(--muted); }
.button.secondary:hover { border-color: var(--text); background: transparent; }
.fine { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* The hero clip: the burst as shot beside Aircrop's crops, one video so the halves stay in step. */
.hero-media { margin: 0; }
.hero-video { width: 100%; height: auto; aspect-ratio: 1284 / 426; border-radius: 10px; box-shadow: var(--shadow); background: #0b1626; }
.hero-media figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--muted); }

/* App demos: screen recordings of the Aircrop window, full width so its text stays readable. */
.demos { display: grid; gap: 32px; margin-top: 28px; }
.demo { margin: 0; }
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 1000; border-radius: 10px; box-shadow: var(--shadow); background: #1e1e1e; }
.demo figcaption { margin-top: 10px; color: var(--muted); max-width: 46em; }
.demo figcaption strong { color: var(--text); }
.halves { display: grid; grid-template-columns: 1fr 1fr; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
.section-intro { color: var(--muted); max-width: 40em; font-size: 1.08rem; }

.features { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p, .card ul { color: var(--muted); margin: 0; }
.card ul { margin-top: 0.4em; }
.card .icon { width: 34px; height: 34px; margin-bottom: 12px; color: var(--accent); }
.card .icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { margin: 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700; margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }

.two-col { display: grid; gap: 32px; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1fr; } }

dl.specs { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
dl.specs dt { color: var(--muted); }
dl.specs dd { margin: 0; }
@media (max-width: 420px) {
  dl.specs { grid-template-columns: 1fr; gap: 2px; }
  dl.specs dd { margin-bottom: 10px; }
}

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel > :last-child { margin-bottom: 0; }

.tip { display: flex; gap: 20px 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tip p { max-width: 36em; }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 1.8em; }
.checks li::before { content: ""; position: absolute; left: 0.15em; top: 0.45em; width: 0.95em; height: 0.55em; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* Release notes */
.release { padding: 8px 0 24px; }
.release + .release { border-top: 1px solid var(--line); padding-top: 32px; }
.release-meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 1em; }
.prose { max-width: 44em; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }

/* Acknowledgments */
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.page { padding: 24px 0 64px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }
