/* Easy Installer website. Design source: the Pencil file (landing page, guide, personal note). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/inter-tight.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
}

:root {
  --bg: #fbf8f2;
  --bg-alt: #f3ede2;
  --surface: #ffffff;
  --ink: #10263f;
  --ink-2: #4a5b70;
  --ink-3: #6b788a;
  --line: #e6ded0;
  --accent: #1f6fd6;
  --accent-dark: #1a5fb4;
  --accent-soft: #e3eefb;
  --box-soft: #f6e7cf;
  --brown: #3d2810;
  --brown-2: #5c4220;
  --brown-3: #8a5a22;
  --gold: #a8691f;
  --night: #0e1b2c;
  --night-2: #16263b;
  --good: #2e9e5b;
  --bad: #c2410c;
  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --pad-x: clamp(20px, 6.6vw, 96px);
  --pad-y: clamp(72px, 9vw, 120px);
  --max: 1248px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
code, pre { font-family: var(--font-mono); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad-x)); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--pad-y) 0; }
.section--surface { background: var(--surface); }
.section--alt { background: var(--bg-alt); }
.section--warm { background: var(--box-soft); }
.section--night { background: var(--night); color: #fff; }

.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.115em; text-transform: uppercase;
  color: var(--accent);
}
.section--night .kicker { color: #7fb3f5; }
.section--warm .kicker { color: var(--gold); }
.h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.03em;
}
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--ink-2); }
.section--night .lead { color: #a9b6c7; }
.section-head { display: grid; gap: 16px; max-width: 860px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 12px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background-color .15s, transform .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgb(31 111 214 / 20%); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { color: var(--ink); padding-inline: 22px; }
.btn--ghost:hover { background: rgb(16 38 63 / 6%); }

.icon { width: 22px; height: 22px; flex: none; color: var(--accent); }

/* --- Navigation ---------------------------------------------------------------------- */
.nav { padding: 24px 0; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: -0.015em; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-links .gh {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px;
}
.nav-links .gh svg { width: 16px; height: 16px; }

/* --- Hero ---------------------------------------------------------------------------- */
.hero { padding-top: clamp(40px, 5vw, 72px); text-align: center; overflow: hidden; }
.hero-copy { display: grid; justify-items: center; gap: 28px; max-width: 1120px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--box-soft); color: var(--brown-3); font-size: 13px; font-weight: 600;
}
.eyebrow svg { width: 15px; height: 15px; }
.hero h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(44px, 6.6vw, 80px); line-height: 1.02; letter-spacing: -0.032em;
}
.hero h1 span { display: block; }
.hero .lead { max-width: 680px; font-size: clamp(17px, 1.6vw, 20px); }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 8px; }
.meta { font-size: 13px; color: var(--ink-3); }
.stage { position: relative; max-width: 1120px; margin: 56px auto 0; height: clamp(360px, 46vw, 560px); }
.stage::before {
  content: ""; position: absolute; inset: 60px 60px -40px; border-radius: 40px 40px 0 0;
  background: linear-gradient(180deg, var(--accent-soft), var(--box-soft));
}
.stage .window {
  position: absolute; left: 50%; top: 96px; width: min(760px, 86%); transform: translateX(-50%);
  border-radius: 14px; box-shadow: 0 24px 60px rgb(16 38 63 / 20%);
}
.chip {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
  text-align: left; font-size: 12px; box-shadow: 0 12px 30px rgb(16 38 63 / 13%);
}
.chip--file { left: 20px; top: 250px; background: var(--surface); border: 1px solid var(--line); }
.chip--file .file-icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
  background: var(--box-soft); color: var(--brown-3);
}
.chip--file .file-icon svg { width: 20px; height: 20px; }
.chip--file strong { display: block; font-family: var(--font-mono); font-weight: 500; }
.chip--file small { font-size: 12px; color: var(--ink-3); }
.chip--done { right: 20px; top: 420px; gap: 10px; background: var(--night); color: #fff; font-size: 13px; font-weight: 500; }
.chip--done svg { width: 18px; height: 18px; color: #7cd69b; }

/* --- 01 Install ---------------------------------------------------------------------- */
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.install-steps { display: grid; gap: 36px; }
.steps { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; }
.num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 700;
}
.steps strong { display: block; font-size: 17px; font-weight: 600; padding-top: 3px; }
.steps p { font-size: 15px; color: var(--ink-2); }
.small-note { font-size: 14px; color: var(--ink-3); }
.terminal { border-radius: 14px; overflow: hidden; background: var(--night); color: #e6edf5; }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: var(--night-2); color: #7a8ca3; font-size: 13px; }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff6159aa; }
.terminal-bar i:nth-child(2) { background: #ffbd2eaa; }
.terminal-bar i:nth-child(3) { background: #28c941aa; }
.terminal-bar span { margin-left: 12px; }
.terminal pre { margin: 0; padding: 24px 28px 30px; font-size: 14px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.terminal .c { color: #5e7491; }
.install-terminal h3 { font-size: 17px; font-weight: 600; margin-bottom: 20px; }

/* --- 02 Without / with --------------------------------------------------------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-top: 64px; }
.section--night .terminal { background: var(--night-2); border: 1px solid #24364d; }
.section--night .terminal .terminal-bar { background: #1b2d45; }
.with-card { background: var(--surface); color: var(--ink); border-radius: 14px; padding: 8px 28px; }
.with-card h3 {
  display: flex; align-items: center; gap: 10px; padding: 20px 0 8px;
  font-size: 14px; font-weight: 700; color: var(--accent-dark);
}
.with-card h3 img { width: 22px; height: 22px; }
.with-list { list-style: none; margin: 0; padding: 0; }
.with-list li { display: grid; grid-template-columns: 40px 1fr 20px; gap: 16px; align-items: center; padding: 20px 0; }
.with-list li + li { border-top: 1px solid var(--line); }
.icon-tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.icon-tile svg { width: 20px; height: 20px; }
.with-list strong { display: block; font-size: 16px; font-weight: 600; }
.with-list span { font-size: 14px; color: var(--ink-2); }
.with-list .ok { width: 20px; height: 20px; color: var(--good); }

/* --- Install & update ---------------------------------------------------------------- */
.feature-split { display: grid; grid-template-columns: 540px 1fr; gap: 72px; align-items: center; }
.feature-split .h2 { font-size: clamp(32px, 3.8vw, 46px); }
.mini-steps { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.mini-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; align-items: center; }
.mini-steps strong { display: block; font-size: 17px; font-weight: 600; }
.mini-steps div span { font-size: 15px; color: var(--ink-2); }
.update-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; padding-top: 28px; border-top: 1px solid var(--line); list-style: none; margin: 0; padding-left: 0; }
.update-grid li { display: flex; gap: 12px; }
.update-grid .icon { width: 20px; height: 20px; }
.update-grid strong { display: block; font-size: 16px; font-weight: 600; }
.update-grid span { font-size: 14px; color: var(--ink-2); }
.note-box { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--bg-alt); font-size: 14px; color: var(--ink-2); }
.note-box svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.stack { display: grid; gap: 36px; }
.screens { position: relative; aspect-ratio: 636 / 640; }
.screens::before {
  content: ""; position: absolute; left: 8%; top: 0; right: 0; bottom: 0; border-radius: 28px;
  background: linear-gradient(180deg, var(--accent-soft), var(--box-soft));
}
.screens img { position: absolute; border-radius: 12px; }
.screens .back { left: 0; top: 6%; width: 88%; box-shadow: 0 20px 50px rgb(16 38 63 / 19%); }
.screens .front { right: 0; top: 58%; width: 72%; border: 4px solid var(--surface); box-shadow: 0 24px 50px rgb(16 38 63 / 25%); }

/* --- Trust & the rest ---------------------------------------------------------------- */
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; }
.split-head p { max-width: 440px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.bento { display: grid; grid-template-columns: 1fr 400px; gap: 24px; }
.bento-row-2 { grid-template-columns: 400px 1fr; margin-top: 24px; }
.card { background: var(--surface); border-radius: 20px; padding: 32px; }
.card h3 { font-family: var(--font-head); font-size: 24px; font-weight: 700; letter-spacing: -0.017em; line-height: 1.2; }
.card p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-title { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.card-title .icon { width: 26px; height: 26px; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--box-soft); color: var(--brown-3); font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.card--shot { display: flex; flex-direction: column; gap: 16px; padding-bottom: 0; overflow: hidden; }
.card--shot .shot { flex: 1; min-height: 300px; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; overflow: hidden; }
.card--shot .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.trust-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.trust-pair figure { margin: 0; padding: 20px; border-radius: 20px; background: var(--bg); display: grid; gap: 16px; align-content: start; }
.trust-pair .shot { height: 300px; border-radius: 12px; overflow: hidden; }
.trust-pair .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.trust-pair figcaption { display: grid; grid-template-columns: 24px 1fr; gap: 14px; font-size: 14px; color: var(--ink-2); }
.trust-pair figcaption strong { display: block; font-size: 16px; }
.trust-pair .good strong, .trust-pair .good svg { color: var(--good); }
.trust-pair .warn strong, .trust-pair .warn svg { color: #d9480f; }
.trust-pair figcaption svg { width: 24px; height: 24px; }
.small-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.small-cards .card { padding: 28px; display: grid; gap: 12px; align-content: start; }
.small-cards h3 { font-size: 19px; }
.small-cards .icon { width: 26px; height: 26px; }

/* --- 03 Old habits ------------------------------------------------------------------- */
.habits-top { display: grid; grid-template-columns: 560px 1fr; gap: 80px; align-items: start; }
.habits-top .h2 { color: var(--brown); margin-top: 16px; }
.habits-top .body { display: grid; gap: 20px; padding-top: 30px; font-size: 18px; line-height: 1.6; color: var(--brown-2); }
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 48px 0 0; padding: 0; list-style: none; }
.platform { display: grid; gap: 20px; align-content: start; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.platform--bad { background: #fff4ee; border-color: #f2c5ae; }
.platform .os { font-size: 13px; font-weight: 700; letter-spacing: 0.09em; color: var(--ink-3); }
.platform .file {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 14px; font-weight: 500;
}
.platform .file svg { width: 18px; height: 18px; color: var(--ink-2); }
.platform--bad .file svg { color: var(--brown-3); }
.platform h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.platform .result { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.platform .result svg { width: 20px; height: 20px; color: var(--good); }
.platform--bad .result { color: #b23a0b; }
.platform--bad .result svg { color: #d9480f; }
.flow-label { margin: 48px 0 16px; font-size: 16px; font-weight: 600; color: var(--brown-2); }
.flow { display: flex; align-items: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
.flow li.step {
  flex: 1; display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 14px;
  background: var(--surface); font-size: 17px; font-weight: 600; box-shadow: 0 6px 18px rgb(61 40 16 / 8%);
}
.flow li.step svg, .flow li.step img { width: 26px; height: 26px; flex: none; color: var(--brown-3); }
.flow li.step:last-child svg { color: var(--good); }
.flow li.arrow svg { width: 22px; height: 22px; color: var(--gold); }
/* --- CTA + footer -------------------------------------------------------------------- */
.cta { text-align: center; padding: 96px 0; }
.cta .wrap { display: grid; justify-items: center; gap: 24px; }
.cta h2 { font-family: var(--font-head); font-size: clamp(32px, 3.8vw, 44px); font-weight: 700; letter-spacing: -0.027em; line-height: 1.1; }
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand img { width: 28px; height: 28px; }
.footer .brand span { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--ink-2); letter-spacing: 0; }
.footer ul { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; margin: 0; padding: 0; }
.footer a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }

/* --- 404 page ----------------------------------------------------------------------- */
.page-head { padding: 96px 0 72px; }
.page-head .wrap { display: grid; gap: 20px; }
.page-head h1 { max-width: 900px; font-family: var(--font-head); font-size: clamp(40px, 5.2vw, 64px); font-weight: 700; letter-spacing: -0.031em; line-height: 1.04; }
.page-head .lead { max-width: 760px; font-size: clamp(17px, 1.6vw, 20px); }

/* --- Personal note ------------------------------------------------------------------- */
.note-grid { display: grid; grid-template-columns: 480px 1fr; gap: 96px; }
.note-grid h1 { font-family: var(--font-head); font-size: clamp(40px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.032em; line-height: 1.05; margin: 20px 0 24px; }
.note-grid .hook { font-family: var(--font-head); font-size: 24px; font-weight: 600; letter-spacing: -0.017em; line-height: 1.3; color: #f0c27f; }
.note-grid .kicker { color: #f0c27f; }
.note-body { display: grid; gap: 24px; padding-top: 44px; font-size: 19px; line-height: 1.65; color: #c3ced9; }
.signature { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; font-size: 18px; }
.signature img { width: 32px; height: 32px; }

/* --- Responsive ---------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .feature-split, .habits-top, .note-grid { grid-template-columns: 1fr; gap: 48px; }
  .bento, .bento-row-2 { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: repeat(2, 1fr); }
  .habits-top .body, .note-body { padding-top: 0; }
  .screens { max-width: 640px; }
}
@media (max-width: 860px) {
  .nav-links li:not(:last-child) { display: none; }
  .install-grid, .compare, .trust-pair { grid-template-columns: 1fr; }
  .small-cards { grid-template-columns: 1fr 1fr; }
  .split-head { flex-direction: column; align-items: start; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow li.arrow { align-self: center; transform: rotate(90deg); }
  .stage .chip { display: none; }
  .stage .window { top: 40px; width: 94%; }
  .stage::before { inset: 20px 0 -40px; }
  .update-grid { grid-template-columns: 1fr; }
  .terminal pre { padding: 20px; font-size: 12.5px; }
}
@media (max-width: 560px) {
  .platforms, .small-cards { grid-template-columns: 1fr; }
  .stage { height: auto; aspect-ratio: 760 / 600; }
  .with-card { padding: 4px 20px; }
  .card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
