/* Intact site. Tokens follow the app (app/src/app.css), light and dark. */
:root {
  --fog: #e8ece9;
  --surface: #f6f8f6;
  --raised: #ffffff;
  --ink: #1e2a27;
  --muted: #5d6a65;
  --line: #d3dbd6;
  --accent: #176448;
  --accent-ink: #ffffff;
  --mint: #a8e6c8;
  --mint-edge: #e9fbf2;
  --pine-deep: #145140;
  --caution: #8a5a12;
  --caution-soft: #f6ead2;
  --shadow: 0 1px 2px rgba(30, 42, 39, 0.08), 0 14px 36px rgba(30, 42, 39, 0.12);

  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-frame: 22px;
  --r-control: 10px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fog: #16201c;
    --surface: #1e2a25;
    --raised: #24322c;
    --ink: #e5ece8;
    --muted: #9aaaa3;
    --line: #2f3f38;
    --accent: #4fc594;
    --accent-ink: #0f1a16;
    --mint: #6fcfa2;
    --mint-edge: #c9f3df;
    --pine-deep: #0f3a2e;
    --caution: #e7b86a;
    --caution-soft: #2f2a1c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font: 17px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

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

code {
  font: 0.86em/1.4 var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Bar --- */
.bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 19px/1 var(--font-round); }
.bar-link { font-weight: 600; text-decoration: none; }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* --- Hero --- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 40px 0 88px;
}
h1 {
  font: 700 clamp(40px, 5.6vw, 64px)/1.03 var(--font-round);
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  max-width: 12ch;
}
.lede { font-size: 19px; color: var(--muted); max-width: 33em; margin: 0 0 34px; }

.install-label { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.command {
  display: flex;
  align-items: stretch;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  box-shadow: var(--shadow);
  max-width: 560px;
}
.command code {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 14px 16px;
  font-size: 13.5px;
  overflow-x: auto;
  white-space: nowrap;
  overflow-wrap: normal;
}
.copy {
  flex: none;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  color: var(--accent);
  font: 600 14px/1 var(--font-ui);
  padding: 0 18px;
  border-radius: 0 var(--r-control) var(--r-control) 0;
  cursor: pointer;
}
.copy:hover { background: var(--surface); }
.copy[data-done] { color: var(--ink); }
.install-alt { margin: 12px 0 0; font-size: 14px; color: var(--muted); max-width: 560px; }

/* --- Compare: the app's portrait clip frames --- */
.compare { margin: 0; }
.frames { display: flex; gap: 22px; justify-content: center; align-items: flex-end; }
.frame {
  position: relative;
  width: min(220px, 40vw);
  aspect-ratio: 9 / 16;
  border-radius: var(--r-frame);
  overflow: hidden;
  background: var(--pine-deep);
  box-shadow: var(--shadow);
}
.frame.usual { width: min(180px, 33vw); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* A normal upload: the same picture at a tiny resolution, scaled up. */
.usual img { image-rendering: pixelated; }

.frame-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #f4faf7;
  background: linear-gradient(rgba(10, 30, 23, 0), rgba(10, 30, 23, 0.82) 42%);
}
.frame-title { font: 700 15px/1.25 var(--font-round); margin-bottom: 4px; }
.stat { font-size: 13px; }
.tick { margin-top: 8px; font-size: 12px; font-weight: 600; display: flex; gap: 6px; align-items: center; color: #a8e6c8; }
.tick::before {
  content: "";
  width: 14px; height: 14px; flex: none;
  border-radius: 50%;
  background: #a8e6c8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23145140' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.kept { outline: 3px solid var(--mint); outline-offset: 4px; }
.compare figcaption { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }

/* --- Sections --- */
h2 { font: 700 30px/1.15 var(--font-round); letter-spacing: -0.015em; margin: 0 0 24px; }
h3 { font: 700 19px/1.3 var(--font-round); margin: 0 0 6px; }

.steps { padding: 0 0 80px; }
.steps ol {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 18px;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 15px/1 var(--font-round);
  margin-bottom: 14px;
}
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

.inside { padding: 0 0 72px; }
.inside-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.inside-grid p { margin: 0; max-width: 34em; }

.caveat {
  background: var(--caution-soft);
  border-left: 4px solid var(--caution);
  border-radius: 6px 14px 14px 6px;
  padding: 22px 26px;
  margin: 0 0 72px;
  max-width: 820px;
}
.caveat h2 { font-size: 21px; margin-bottom: 8px; color: var(--caution); }
.caveat p { margin: 0; }

.details { padding: 0 0 72px; max-width: 820px; }
details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
details p { margin: 0 0 16px; color: var(--muted); }

.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.foot p { margin: 0 0 6px; max-width: 60em; }

/* --- Small screens --- */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 16px 0 64px; }
  .steps ol, .inside-grid { grid-template-columns: 1fr; }
  .inside-grid { gap: 16px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .bar { padding: 16px; }
  main { padding: 0 16px; }
  .frames { gap: 14px; }
  .command code { font-size: 12.5px; padding: 12px; white-space: normal; overflow-wrap: anywhere; }
}

