/* Inkflip site. The page wears Dark Reader's own colours (night #181a1b, text #e8e6e3): it is
   the room the product lives in. White appears only as the problem; amber only on the download. */

@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-next-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-next-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-next-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --night: #181a1b;
  --panel: #202326;
  --line: #31353a;
  --ink: #e8e6e3;
  --soft: #c4c0ba;
  --haze: #9a9fa6;
  --lamp: #f2b45a;
  --lamp-ink: #1f1504;
  --link: #9cc3ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 18px/1.6 "Atkinson", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #c3dbff; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }

code, kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: #2a2d31;
  border-radius: 5px;
  padding: 0.12em 0.4em;
}
kbd { border: 1px solid var(--line); border-bottom-width: 2px; background: transparent; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

/* ---------------------------------------------------------------- header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}
.top-link { color: var(--soft); text-decoration: none; font-size: 16px; }
.top-link:hover { color: var(--ink); }

/* ------------------------------------------------------------------ hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
  padding: 36px 0 24px;
}

h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lead {
  margin: 24px 0 0;
  max-width: 46ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--soft);
}

.actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 15px 24px;
  border-radius: 12px;
  background: var(--lamp);
  color: var(--lamp-ink);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover { background: #f6c47a; color: var(--lamp-ink); }

.text-link { color: var(--ink); font-weight: 700; }
.fine { margin: 14px 0 0; color: var(--haze); font-size: 15px; }

/* The mock page: a dark problem page with the white diagram on it. */
.mock {
  padding: 26px 30px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.mock-text { max-width: 62ch; color: var(--soft); font-size: 16px; }
.mock-text p { margin: 0 0 10px; }
.mock-title { color: var(--ink); font-weight: 700; font-size: 21px; }
.mock-example { color: var(--ink); font-weight: 700; margin-top: 18px !important; }
.mock .compare { margin: 6px 0 16px; max-width: 660px; }
.mock .compare-stage { border-radius: 6px; border: 0; }

/* Inkflip's own CSS for this panel: invert to just under the panel colour, then lighten. */
.demo-panel { background: var(--panel); isolation: isolate; }
.demo-flip { filter: invert(0.88) hue-rotate(180deg); mix-blend-mode: lighten; }

.caption { margin: 16px 0 0; max-width: 66ch; color: var(--haze); font-size: 15px; }

/* ----------------------------------------------------------- compare tool */

.compare { margin: 0; --pos: 50%; }
.compare-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--night);
  touch-action: pan-y;
  user-select: none;
}
.compare-stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.compare-after-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--lamp);
  pointer-events: none;
}
.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: var(--night) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' fill='none' stroke='%23f2b45a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 12l-5 5 5 5M20 12l5 5-5 5'/%3E%3C/svg%3E") center / 34px no-repeat;
  border: 2px solid var(--lamp);
}
.compare-stage:has(.compare-range:focus-visible) .compare-handle::after {
  box-shadow: 0 0 0 5px rgba(242, 180, 90, 0.35);
}
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.tag {
  position: absolute;
  top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(24, 26, 27, 0.85);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  pointer-events: none;
}
.tag-before { left: 10px; }
.tag-after { right: 10px; }
figcaption { margin-top: 10px; color: var(--haze); font-size: 15px; line-height: 1.5; max-width: 62ch; }

/* -------------------------------------------------------------- sections */

section { padding: 72px 0 24px; }
h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 30ch;
}
.section-lead { margin: 16px 0 0; max-width: 60ch; color: var(--soft); font-size: 19px; }

/* Complaints: a typographic list, not cards. */
.quotes { list-style: none; margin: 36px 0 0; padding: 0; max-width: 860px; }
.quotes li { padding: 18px 0; border-top: 1px solid var(--line); }
.quotes li:last-child { border-bottom: 1px solid var(--line); }
.quotes q { display: block; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.32; font-weight: 700; quotes: "“" "”"; }
.quotes span { display: block; margin-top: 6px; color: var(--haze); font-size: 15px; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 28px;
  margin-top: 36px;
  align-items: start;
}
.g-stack { display: grid; gap: 40px; }
.g-wide { grid-column: 1 / -1; }
.g-half { max-width: 820px; }

.defs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 48px;
  margin: 36px 0 0;
  max-width: 960px;
}
.defs dt { font-weight: 800; font-size: 22px; }
.defs dd { margin: 6px 0 0; color: var(--soft); }

.points { list-style: none; margin: 30px 0 0; padding: 0; max-width: 780px; display: grid; gap: 18px; }
.points li { color: var(--soft); }
.points strong { color: var(--ink); }

.steps { margin: 30px 0 34px; padding-left: 1.4em; max-width: 720px; display: grid; gap: 14px; }
.steps li { padding-left: 6px; color: var(--soft); }
.steps li::marker { color: var(--lamp); font-weight: 800; }
.steps em { font-style: normal; font-weight: 700; color: var(--ink); }
.copy {
  margin-left: 4px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.copy:hover { border-color: var(--haze); }

/* ---------------------------------------------------------------- footer */

.foot {
  margin-top: 80px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--haze);
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot p { margin: 0; }
.foot a { color: var(--soft); margin-left: 18px; }
.foot a:first-child { margin-left: 0; }

/* --------------------------------------------------------------- privacy */

.doc { padding: 40px 0 0; max-width: 70ch; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); max-width: none; }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc p, .doc li { color: var(--soft); }
.doc .updated { color: var(--haze); font-size: 15px; }

/* ---------------------------------------------------------------- mobile */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  h1 { font-size: clamp(40px, 8vw, 60px); }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero { padding-top: 24px; }
  .lead { font-size: 18px; }
  .mock { padding: 20px 16px 16px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 36px; }
  .defs { grid-template-columns: 1fr; }
  section { padding-top: 56px; }
  .tag { font-size: 12px; top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
