/* InkReset landing — shares the app's paper-and-chrome palette. */

:root {
  --paper: #f1ecdf;
  --paper-deep: #e7e1d1;
  --surface: #faf7ee;
  --surface-raised: #fffdf7;
  --ink: #141815;
  --ink-soft: #38403a;
  --muted: #6e756c;
  --muted-strong: #555d55;
  --line: #d9d2bf;
  --line-soft: #e6e0d0;

  --accent: #e0472a;
  --accent-deep: #b6341b;
  --accent-soft: #f7ded6;
  --good: #2c7a58;
  --warning: #a9721a;
  --warning-soft: #f4e6c8;

  --chrome: #191e1b;
  --chrome-2: #222823;
  --chrome-line: #38423a;
  --chrome-text: #e9e5d8;
  --chrome-muted: #9aa397;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-md: 0 1px 0 rgba(20, 24, 21, 0.04), 0 22px 44px -30px rgba(20, 24, 21, 0.55);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --- top bar ------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(25, 30, 27, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--chrome-line);
  color: var(--chrome-text);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 15px;
}

.brand img { width: 26px; height: 26px; border-radius: 7px; }

.topnav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 13.5px;
}

.topnav a {
  text-decoration: none;
  color: var(--chrome-muted);
  transition: color 0.15s;
}

.topnav a:hover { color: var(--chrome-text); }

.lang {
  border: 1px solid var(--chrome-line);
  border-radius: 999px;
  padding: 5px 11px;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--chrome-muted);
}

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(224, 71, 42, 0.9);
}

.btn-primary:hover { background: var(--accent-deep); }

.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--ink-soft); }

.topbar .btn {
  padding: 9px 16px;
  font-size: 13px;
}

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

.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(700px 420px at 12% -10%, rgba(224, 71, 42, 0.10), transparent 70%),
    linear-gradient(180deg, var(--paper) 0%, #f4f0e4 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(20, 24, 21, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 24, 21, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
}

.kicker { color: var(--accent); margin-bottom: 18px; }

h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 28px;
  max-width: 54ch;
  font-size: 17.5px;
  color: var(--muted-strong);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.meta {
  margin-top: 20px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-shot {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 10px;
  box-shadow: var(--shadow-md);
}

.hero-shot img { border-radius: 12px; }

/* --- warning strip ------------------------------------------------------ */

.strip {
  background: var(--chrome);
  color: var(--chrome-text);
  border-block: 1px solid var(--chrome-line);
}

.strip-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  font-size: 14.5px;
}

.strip b { color: #fff; }
.strip .mark { color: var(--accent); font-size: 18px; line-height: 1.2; }

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

section { padding: 68px 0; }

.section-head { max-width: 62ch; margin-bottom: 34px; }

h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.section-head p { margin: 0; color: var(--muted-strong); }

/* tested hardware */
.tested {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.tested .tag { color: var(--warning); }
.tested p { margin: 0 0 10px; color: var(--muted-strong); }
.tested p:last-child { margin-bottom: 0; }

/* feature grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.01em;
}

.card p { margin: 0; font-size: 14.5px; color: var(--muted-strong); }

.card .num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* screenshots */
.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 8px;
}

.shot.wide { grid-column: 1 / -1; }

.shot img { border-radius: 8px; }

/* install */
.install {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  border: 1px solid var(--line);
}

.step h3 { margin: 6px 0 10px; font-family: var(--font-display); font-size: 17px; }

.step code {
  display: block;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--chrome);
  color: var(--chrome-text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  overflow-x: auto;
  white-space: nowrap;
}

.step p { margin: 0; font-size: 14px; color: var(--muted-strong); }

.step a { color: var(--accent-deep); }

/* safety list */
.safety {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety li {
  position: relative;
  padding-left: 22px;
  color: var(--muted-strong);
  font-size: 14.5px;
}

.safety li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* faq */
.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }

.faq p { margin: 10px 0 0; color: var(--muted-strong); font-size: 14.5px; max-width: 78ch; }

/* seo article */
.article { background: var(--paper-deep); border-block: 1px solid var(--line); }
.article p { color: var(--muted-strong); max-width: 76ch; }
.article h3 { font-family: var(--font-display); font-size: 18px; margin: 26px 0 8px; }
.article ol { color: var(--muted-strong); max-width: 76ch; padding-left: 20px; }
.article li { margin-bottom: 8px; }

/* footer */
footer {
  background: var(--chrome);
  color: var(--chrome-muted);
  padding: 34px 0;
  font-size: 13px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
}

.foot .brand { font-size: 13px; color: var(--chrome-text); }
.foot .spacer { margin-left: auto; }
.foot a { text-decoration: none; color: var(--chrome-text); }
.foot a:hover { color: var(--accent); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install { grid-template-columns: 1fr; }
  .tested { grid-template-columns: 1fr; gap: 12px; }
  .topnav { display: none; }
}

@media (max-width: 680px) {
  .cards,
  .shots,
  .safety { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 36px; }
  section { padding: 48px 0; }
  .wrap { width: min(1180px, 100% - 32px); }
  .btn { width: 100%; justify-content: center; }
  .topbar .btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
