/* TouchPen — ink-on-paper theme. One signature: the pressure stroke. */
:root {
  --paper: #f7f6f1;
  --paper-2: #efede5;
  --ink: #17181c;
  --ink-soft: #55575f;
  --line: #e2e0d6;
  --accent: #5b3df5;      /* violet ink — the single loud color */
  --accent-deep: #3a24c4;
  --vermilion: #e8543f;   /* only inside the stroke gradient + tiny marks */
  --canvas: #14151a;      /* dark inking panel */
  --maxw: 1120px;
  --r: 14px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
}
.mono { font-family: "Space Mono", ui-monospace, Menlo, monospace; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* eyebrow label — an ink nib mark, not decoration: marks a section */
.eyebrow {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 100%, 0 100%); /* pen nib triangle */
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand .nib { color: var(--accent); font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer;
  font: 600 16px/1 "Inter", sans-serif;
  padding: 14px 22px; border-radius: 999px;
  background: var(--accent); color: #fff;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-deep); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.small { padding: 10px 16px; font-size: 14px; }

/* hero */
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); }
.hero h1 .em { color: var(--accent); }
.hero p.lede { font-size: 20px; color: var(--ink-soft); max-width: 30ch; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-family: "Space Mono", monospace; font-size: 13px; color: var(--ink-soft); }

/* the signature: dark canvas showing a self-drawing pressure stroke */
.canvaspanel {
  margin-top: 44px;
  background: var(--canvas);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(20,21,26,.5);
}
.canvaspanel .surface {
  position: relative;
  aspect-ratio: 16 / 6;
  min-height: 180px;
}
.canvaspanel svg { width: 100%; height: 100%; display: block; }

/* ink stroke: visible at rest; entrance wipes it in left→right */
.inkstroke { clip-path: inset(0 0 0 0); animation: draw 2.8s cubic-bezier(.4, 0, .2, 1) 0.3s both; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.nib {
  offset-path: path("M 72 168 C 190 104 312 108 404 166 C 508 232 612 236 730 158");
  offset-rotate: 0deg;
  animation: nibmove 2.8s cubic-bezier(.4, 0, .2, 1) 0.3s both;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.6));
}
@keyframes nibmove { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.readout {
  position: absolute; top: 16px; right: 20px;
  font-family: "Space Mono", monospace; font-size: 13px;
  color: #cfd0d6; text-align: right; line-height: 1.5;
}
.readout b { color: #fff; font-size: 22px; display: block; }
.readout .accent { color: color-mix(in srgb, var(--vermilion) 80%, #fff); }
.canvaslabel {
  position: absolute; left: 20px; bottom: 14px;
  font-family: "Space Mono", monospace; font-size: 12px; letter-spacing: .1em;
  color: #6a6c78; text-transform: uppercase;
}

/* sections */
section { padding: 72px 0; }
.section-head { max-width: 46ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 14px; }
.section-head p { color: var(--ink-soft); margin: 14px 0 0; }

/* features — nib-marked, not numbered (not a sequence) */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.feature { background: var(--paper); padding: 30px; }
.feature h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; }
.feature h3::before { content: ""; width: 12px; height: 12px; background: var(--accent); clip-path: polygon(50% 0, 100% 100%, 0 100%); flex: none; }
.feature p { color: var(--ink-soft); margin: 12px 0 0; font-size: 15.5px; }

/* pricing */
.price-wrap { display: flex; justify-content: center; }
.price-card {
  width: 100%; max-width: 460px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  box-shadow: 8px 8px 0 var(--ink);
}
.price-card .tag { position: absolute; top: -13px; left: 32px; background: var(--vermilion); color: #fff; font-family: "Space Mono", monospace; font-size: 12px; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; }
.price-card .amount { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 60px; letter-spacing: -0.03em; }
.price-card .amount small { font-size: 18px; color: var(--ink-soft); font-weight: 600; }
.price-card .pnote { color: var(--ink-soft); margin: 4px 0 24px; font-size: 15px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; }
.price-card li { padding: 9px 0; display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid var(--line); }
.price-card li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.price-card .btn { width: 100%; justify-content: center; }

/* small lookup / forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; color: var(--ink-soft); font-family: "Space Mono", monospace; }
.field input {
  font: 16px "Inter", sans-serif; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--accent); }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px; max-width: 520px; margin: 0 auto;
}
.keybox {
  font-family: "Space Mono", monospace; font-size: clamp(18px, 4vw, 26px);
  font-weight: 700; letter-spacing: 1px; text-align: center;
  background: var(--ink); color: #fff; padding: 18px; border-radius: 12px;
  word-break: break-all; margin: 8px 0 16px;
}
.muted { color: var(--ink-soft); font-size: 14.5px; }
.status { font-family: "Space Mono", monospace; font-size: 14px; color: var(--ink-soft); }
.status.err { color: var(--vermilion); }
.status.ok { color: var(--accent); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--ink-soft); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .nav-links { gap: 16px; }
  .nav-links a.hide-sm { display: none; }
  .features { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
