/* Copyslate — copyslate.com
   Graphite / silver, Liquid Glass, dark. Inter Tight for display, Inter for text. */

:root {
  --bg: #131417;
  --bg-lift: #1d1e23;
  --text: #f5f5f7;
  --muted: #9b9ca3;
  --dim: #8b8c94;
  --silver: #d9dce2;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-hi: rgba(255, 255, 255, 0.09);
  --ink: #eceef2; /* line-drawing stroke */
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);
  --r-frame: 20px;
  --r-card: 14px;
  --r-ctl: 11px;
  --gutter: 24px;
  --max: 1180px;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(120% 70% at 70% -10%, #26272d 0%, var(--bg) 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
p a:hover { text-decoration-color: var(--silver); }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(217, 220, 226, 0.25); }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Type scale: 17 / 20 / 26 / 40 / 56 / 76 */
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: 0.98; letter-spacing: -0.04em; }
h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.02; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); line-height: 1.5; max-width: 34em; }
.small { font-size: 14px; color: var(--muted); }
kbd.key {
  display: inline-grid; place-items: center;
  min-width: 1.9em; height: 1.9em; padding: 0 0.45em;
  font: 600 0.82em/1 var(--body);
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 1px 2px rgba(0,0,0,0.5);
  vertical-align: 0.1em;
  margin: 0 0.08em;
}
.keys { white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 20px;
  border-radius: var(--r-ctl);
  font: 500 16px/1 var(--body);
  color: var(--bg);
  background: linear-gradient(180deg, #ffffff, #d7dae0);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 1px 0 #fff, 0 10px 30px rgba(0,0,0,0.4);
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, 0 14px 36px rgba(0,0,0,0.5); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn.ghost {
  color: var(--text);
  background: var(--glass);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn.ghost:hover { background: var(--glass-hi); }
.badge { display: inline-block; border-radius: 8px; }
.badge img { height: 56px; width: auto; }

/* Glass surfaces */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-frame);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), var(--shadow);
}

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.top.is-scrolled {
  background: rgba(19, 20, 23, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.top .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 17px/1 var(--body); letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.top nav { display: flex; gap: 22px; margin-left: 8px; font-size: 15px; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.top .cta { margin-left: auto; height: 38px; padding: 0 14px; font-size: 14px; }
@media (max-width: 720px) { .top nav { display: none; } }

/* Hero */
.hero { padding: clamp(40px, 8vh, 96px) 0 clamp(48px, 8vh, 110px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 .line { display: block; overflow: hidden; }
.hero .lead { margin: 28px 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero .price-note { color: var(--muted); font-size: 15px; }
.hero .price-note strong { color: var(--text); font-weight: 500; }
.hero-art { position: relative; aspect-ratio: 560 / 640; max-width: 560px; justify-self: end; width: 100%; }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art .real {
  position: absolute; inset: 3% 8%;
  border-radius: 22px; overflow: hidden;
  background-image: url("../img/1-history.webp");
  background-size: auto 118%;
  background-position: 80.6% 50%;
  opacity: 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 440px; }
}

/* Line drawings */
.draw { color: var(--ink); }
.draw * { vector-effect: non-scaling-stroke; }
.draw .s { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.draw .s.thin { stroke-width: 1; opacity: 0.6; }
.draw .s.soft { opacity: 0.45; }
.draw .t { font: 500 13px/1 var(--body); fill: var(--muted); }
.draw .t.lg { font-size: 15px; fill: var(--text); }
.draw .t.xs { font-size: 10px; }
@media (max-width: 860px) {
  /* the drawings scale down with the viewport, so their labels scale up to stay legible */
  .draw .t { font-size: 19px; }
  .draw .t.lg { font-size: 21px; }
  .draw .t.xs { font-size: 15px; }
  .progress-hint { display: none; }
}
.draw .t.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.draw .fill-soft { fill: rgba(29,30,35,0.96); stroke: none; }
.draw .cap { fill: rgba(255,255,255,0.08); stroke: currentColor; stroke-width: 1.2; }
.draw .cap-t { font: 600 13px/1 var(--body); fill: var(--text); text-anchor: middle; }
.draw .photo { opacity: 0; }

/* Sections */
section { padding: clamp(64px, 10vh, 128px) 0; }
section + section { border-top: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.two > .copy { max-width: 520px; }
.two .lead { margin-top: 20px; }
.two.flip > .copy { order: 2; }
@media (max-width: 860px) { .two, .two.flip > .copy { grid-template-columns: 1fr; order: initial; } }

.shot { border-radius: var(--r-frame); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-lift); }
.shot img { width: 100%; height: auto; }
.shot.wide { margin-top: clamp(40px, 6vh, 72px); }

/* How it works: three keycap-marked steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.step { padding: 26px 26px 28px; border-radius: var(--r-frame); }
.step .keys { font-size: 22px; margin-bottom: 18px; display: inline-flex; gap: 2px; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Canvas: pinned scrub */
.canvas-stage { position: relative; }
.canvas-stage .two { min-height: 70vh; }
.canvas-art { aspect-ratio: 720 / 480; width: 100%; }
.canvas-art svg { width: 100%; height: 100%; }
.progress-hint { margin-top: 18px; color: var(--dim); font-size: 14px; }

/* Tool row */
.tools { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; margin-top: 56px; }
.tool { text-align: center; padding: 22px 8px 18px; border-radius: var(--r-card); }
.tool svg { width: 44px; height: 44px; margin: 0 auto 12px; }
.tool span { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .tools { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .tools { grid-template-columns: repeat(3, 1fr); } }

/* Mood board demo (Flip) */
.board { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-frame); padding: 0; overflow: hidden; }
.board .bar { position: absolute; left: 0; right: 0; top: 0; height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 14px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.board .bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); display: inline-block; }
.board .bar i:first-child { background: #ff5f57; } .board .bar i:nth-child(2) { background: #febc2e; } .board .bar i:nth-child(3) { background: #28c840; }
.board .bar b { font-weight: 500; color: var(--text); margin-left: 6px; }
.board .item { position: absolute; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.45); will-change: transform; }
.board .item img { width: 100%; height: 100%; object-fit: cover; }
.board .note { background: rgba(255,255,255,0.07); border: 1px solid var(--line); padding: 10px 12px; font-size: 12px; line-height: 1.4; color: var(--text); }
.board[data-layout="a"] .i1 { left: 4%; top: 12%; width: 44%; height: 42%; }
.board[data-layout="a"] .i2 { left: 52%; top: 12%; width: 44%; height: 42%; }
.board[data-layout="a"] .i3 { left: 4%; top: 58%; width: 30%; height: 36%; }
.board[data-layout="a"] .i4 { left: 64%; top: 58%; width: 32%; height: 36%; }
.board[data-layout="a"] .n1 { left: 37%; top: 62%; width: 24%; }
.board[data-layout="b"] .i1 { left: 4%; top: 12%; width: 28%; height: 38%; }
.board[data-layout="b"] .i2 { left: 35%; top: 12%; width: 61%; height: 52%; }
.board[data-layout="b"] .i3 { left: 4%; top: 54%; width: 28%; height: 40%; }
.board[data-layout="b"] .i4 { left: 35%; top: 68%; width: 36%; height: 26%; }
.board[data-layout="b"] .n1 { left: 74%; top: 68%; width: 22%; }
.demo-actions { display: flex; gap: 12px; margin-top: 18px; }

/* Pins demo (Flip) */
.panel { width: 100%; max-width: 440px; padding: 14px; border-radius: 22px; }
.panel .search { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: var(--dim); font-size: 15px; }
.panel .search svg { width: 16px; height: 16px; }
.panel .group { margin-top: 14px; }
.panel .group-title { font: 600 11px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin: 0 0 8px 4px; }
.panel .group-title.pinned { margin-top: 8px; }
.panel .empty { font-size: 13px; color: var(--dim); padding: 10px 4px; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid transparent; margin-bottom: 8px; }
.row:hover { border-color: var(--line); }
.row .ic { width: 18px; height: 18px; color: var(--muted); flex: none; }
.row .txt { flex: 1; min-width: 0; }
.row .txt b { display: block; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .txt small { color: var(--dim); font-size: 12px; }
.row .mono b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; }
.row .pin { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--dim); cursor: pointer; }
.row .pin:hover { background: rgba(255,255,255,0.08); color: var(--text); border-color: var(--line); }
.row .pin svg { width: 15px; height: 15px; }
.row.is-pinned .pin { color: var(--text); }
.panel .foot { display: flex; justify-content: space-between; margin-top: 10px; padding: 6px 4px 0; font-size: 12px; color: var(--dim); }
.panel .foot span { display: inline-flex; align-items: center; gap: 6px; }
.panel .foot kbd.key { font-size: 11px; min-width: 1.7em; height: 1.7em; }

/* Slate + privacy drawings */
.art { width: 100%; }
.art svg { width: 100%; height: auto; }

/* Privacy strip */
.privacy-strip .two { align-items: center; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 16px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--silver); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.plan { padding: 32px; border-radius: var(--r-frame); display: flex; flex-direction: column; gap: 18px; }
.plan .amount { font-family: var(--display); font-weight: 700; font-size: 44px; letter-spacing: -0.04em; line-height: 1; }
.plan .amount small { font: 400 16px/1 var(--body); color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 16px; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; }
.plan ul svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--silver); }
.plan .btn { align-self: flex-start; margin-top: auto; }
.plan .fine { color: var(--dim); font-size: 14px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* Final CTA */
.end { text-align: center; padding-bottom: clamp(64px, 10vh, 140px); }
.end .wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.end img { width: 128px; height: 128px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)); }
.end h2 { max-width: 14em; }
.end .lead { text-align: center; max-width: 30em; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; }
footer nav { display: flex; gap: 22px; }
footer a:hover { color: var(--text); }
footer .credit { margin-left: auto; max-width: 48ch; }
@media (max-width: 760px) { footer .credit { margin-left: 0; } }

/* Text pages (privacy, support, buy) */
.page { padding: clamp(40px, 7vh, 80px) 0 clamp(64px, 10vh, 120px); }
.page .wrap { max-width: 720px; }
.page h1 { font-size: clamp(38px, 5.5vw, 60px); }
.page .meta { color: var(--dim); margin: 14px 0 44px; font-size: 15px; }
.page h2 { font-size: 26px; margin: 48px 0 12px; letter-spacing: -0.025em; }
.page h3 { font-size: 18px; margin: 28px 0 8px; }
.page p, .page li { color: var(--muted); font-size: 17px; line-height: 1.6; }
.page p strong { color: var(--text); font-weight: 500; }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.page .callout { padding: 22px 24px; border-radius: var(--r-card); margin: 24px 0; }
.page .callout p { margin: 0; color: var(--text); }
.page .callout p + p { margin-top: 10px; }
.page details { border-top: 1px solid var(--line); padding: 16px 0; }
.page details:last-of-type { border-bottom: 1px solid var(--line); }
.page summary { cursor: pointer; font-weight: 500; color: var(--text); font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.page summary::-webkit-details-marker { display: none; }
.page summary::after { content: "+"; color: var(--dim); font-weight: 400; transition: transform .2s ease; }
.page details[open] summary::after { transform: rotate(45deg); }
.page details p { margin: 12px 0 0; }
.page .row-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Motion safety. Elements are only hidden-before-reveal when the script has loaded (html.js),
   so the page reads in full if the animation library never arrives. */
html.js .reveal { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; }
  .draw .photo { opacity: 1; }
  .hero-art .real { opacity: 1; }
  .hero-art svg { display: none; }
}
