/* Captr: ink and paper, with the marquee amber of the app icon's crop corners */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #141a24;
  --ink-soft: #3d4757;
  --muted: #6b7486;
  --line: rgba(20, 26, 36, 0.1);
  --link: #9a5b00;
  --amber: #f5a524;
  --amber-hover: #ffb840;
  --amber-ink: #1b1300;
  --amber-soft: #fff1d6;
  --night: #141a24;
  --night-2: #0b0f15;
  --shadow: 0 24px 60px -20px rgba(14, 19, 27, 0.35);
  --radius: 18px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e131b;
    --surface: #161c26;
    --ink: #e9edf3;
    --ink-soft: #b7c0ce;
    --muted: #8a94a6;
    --line: rgba(233, 237, 243, 0.12);
    --link: #f7b955;
    --amber-soft: #3a2c12;
    --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
figure, picture { margin: 0; }
a { color: var(--link); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; }
kbd {
  font: 600 0.85em var(--font);
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  white-space: nowrap;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--amber-hover); transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; margin-top: -2px; }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 20px var(--font-display); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a:not(.btn) { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* Hero: the slides' ink, in both appearances */

.hero {
  position: relative;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(245, 165, 36, 0.16), transparent 70%),
    linear-gradient(180deg, var(--night), var(--night-2));
  color: #fff;
  padding: 80px 0 0;
  overflow: hidden;
}
.hero-text { max-width: 760px; margin: 0 auto; text-align: center; }
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); }
.hero h1 { font-size: clamp(44px, 6.6vw, 78px); font-weight: 800; }
.hero .lede { color: #c3cad6; margin-inline: auto; }
.lede { font-size: 20px; color: var(--ink-soft); margin: 0 0 32px; max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; }
.cta-note { font-size: 15px; color: #9aa4b4; }
.hero-shot {
  position: relative;
  max-width: 1000px;
  margin: 56px auto 0;
  padding: 0 24px;
}
.hero-shot img {
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 80px -20px rgba(245, 165, 36, 0.35), 0 30px 80px rgba(0, 0, 0, 0.5);
}
/* The icon's crop corners, framing the window */
.marks { position: absolute; inset: -18px 6px auto; height: 120%; pointer-events: none; }
.marks::before, .marks::after {
  content: ""; position: absolute; top: 0; width: 46px; height: 46px; border: 5px solid var(--amber);
}
.marks::before { left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.marks::after { right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }

/* Sections */

section { padding: 96px 0; }
.section-title { font-size: clamp(32px, 4.2vw, 46px); text-align: center; }
.section-lede { max-width: 42em; margin: 0 auto 48px; text-align: center; color: var(--ink-soft); font-size: 19px; }

.feature { padding: 80px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.feature-flip .feature-text { order: 2; }
.feature h2 { font-size: clamp(28px, 3.4vw, 40px); }
.feature-text p { color: var(--ink-soft); margin: 0 0 1em; }
.feature-text ul { color: var(--ink-soft); padding-left: 1.2em; margin: 0 0 1em; }
.feature-text li::marker { color: var(--amber); }
.feature-shot { justify-self: center; position: relative; }
.feature-shot img { border-radius: 12px; box-shadow: var(--shadow); max-height: 560px; width: auto; }
.shot-narrow img { max-width: min(100%, 400px); }
.shot-stack { display: grid; gap: 20px; justify-items: center; }
.shot-stack img { max-width: min(100%, 360px); }
.tag {
  display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px;
  background: var(--amber-soft); color: var(--link); font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
}

/* The tour */

.tour { background: var(--surface); border-block: 1px solid var(--line); }
.tour video { width: 100%; max-width: 960px; margin: 0 auto; border-radius: 16px; box-shadow: var(--shadow); background: var(--night); }

.grid-section { background: var(--surface); border-block: 1px solid var(--line); }
.grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.grid h3 { font-size: 19px; margin-bottom: 6px; }
.grid p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.grid li::before {
  content: ""; display: block; width: 22px; height: 22px; margin-bottom: 12px;
  border: 3px solid var(--amber); border-radius: 4px; border-right-color: transparent; border-bottom-color: transparent;
}

.privacy-band { text-align: center; padding: 80px 0; }
.privacy-band h2 { font-size: clamp(28px, 3.4vw, 38px); }
.privacy-band p { color: var(--ink-soft); font-size: 19px; margin: 0 auto; max-width: 40em; }

.closing {
  text-align: center;
  color: #fff;
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(245, 165, 36, 0.18), transparent 70%),
    linear-gradient(180deg, var(--night), var(--night-2));
}
.closing img { margin: 0 auto 24px; }
.closing h2 { font-size: clamp(28px, 3.6vw, 42px); max-width: 18em; margin: 0 auto 32px; }
.closing-note { margin: 24px 0 0; color: #c3cad6; font-size: 16px; }
.closing-note a { color: var(--amber); }

/* Footer */

.footer { padding: 32px 0; font-size: 15px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }
.footer a { color: inherit; }
.footer a.coffee { color: var(--link); font-weight: 600; text-decoration: none; }
.footer a.coffee:hover { text-decoration: underline; }

/* Text pages */

.prose { max-width: 720px; padding-top: 56px; padding-bottom: 80px; }
.prose h1 { font-size: 44px; font-weight: 800; }
.prose h2 { font-size: 22px; margin-top: 2em; scroll-margin-top: 80px; }
.prose h3 { font-size: 17px; margin: 1.4em 0 0.3em; }
.prose p, .prose ul { color: var(--ink-soft); }
.muted { color: var(--muted) !important; }
.contents { padding: 16px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.contents ul { margin: 6px 0 0; padding-left: 1.2em; }

/* Contact form */

.contact > .muted { margin: 0 0 28px; }
.contact-form { display: grid; gap: 20px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form label { display: block; color: var(--ink); font-weight: 700; }
.contact-form .optional, .contact-form .field-help { color: var(--muted); font-size: 13px; font-weight: 400; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 16px;
  padding: 11px 13px; margin-top: 7px;
}
.contact-form input, .contact-form select { height: 49px; }
.contact-form label .field-help { display: block; margin-top: 7px; }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.contact-form .btn { border: 0; cursor: pointer; justify-self: start; font: 600 16px var(--font); }
.contact-form .btn:disabled { opacity: 0.6; cursor: wait; }
.contact-human-check { display: grid; gap: 10px; color: var(--ink); font-weight: 700; }
.contact-human-check .turnstile { min-height: 65px; }
.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-status { margin: -12px 0 0; min-height: 1.5em; }
.contact-status[data-kind="error"] { color: #ac2340; }
.contact-status[data-kind="ok"] { color: #166c40; }
.contact-email { margin-top: 24px; }

/* The panel that replaces the form once the server answers: a screenshot framed by crop marks */
.contact-form[hidden], .contact-result[hidden] { display: none; }
.contact-result {
  --glow: rgba(245, 165, 36, 0.16);
  display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 40px 26px 36px; border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(70% 55% at 50% 0%, var(--glow), transparent 70%), var(--surface);
  box-shadow: var(--shadow);
  animation: result-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.contact-result:focus { outline: none; }
.contact-result[data-kind="error"] { --glow: rgba(220, 60, 100, 0.14); }
.result-art { width: 136px; height: auto; margin-bottom: 14px; overflow: visible; }
.result-window { fill: var(--bg); stroke: var(--line); stroke-width: 2; }
.result-marks { fill: none; stroke: var(--amber); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; animation: result-snap 0.7s 0.15s cubic-bezier(0.3, 0.7, 0.2, 1.3) both; transform-origin: 80px 80px; }
.result-check { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; animation: result-draw 0.5s 0.6s ease-out both; }
.contact-result[data-kind="error"] .result-marks { stroke: #e0557a; }
.contact-result[data-kind="error"] .result-check { display: none; }
.result-title { font-size: 30px; font-weight: 800; margin: 0; color: var(--ink); }
.contact-result .result-text { margin: 0 auto 20px; max-width: 440px; }
.contact-result .btn { border: 0; cursor: pointer; font: 600 16px var(--font); }
@keyframes result-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
@keyframes result-snap { from { transform: scale(1.35); opacity: 0; } }
@keyframes result-draw { from { stroke-dashoffset: 60; } }
@media (prefers-reduced-motion: reduce) {
  .contact-result, .result-marks, .result-check { animation: none !important; }
}
@media (prefers-color-scheme: dark) {
  .contact-status[data-kind="error"] { color: #ff9caa; }
  .contact-status[data-kind="ok"] { color: #92e3b2; }
}

/* Small screens */

@media (max-width: 860px) {
  .hero { padding-top: 56px; }
  .feature-inner { grid-template-columns: 1fr; gap: 36px; }
  .feature-flip .feature-text { order: 0; }
  .grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .feature { padding: 56px 0; }
  .marks { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .nav-links .btn-small { display: none; }
  .lede { font-size: 18px; }
  .contact-form { padding: 20px; }
  .contact-form-row { grid-template-columns: 1fr; }
}
