/* ClodHop website styles, from the brand guide (v0.2, November 2026).
   Cream opens, white explains, one ink band sells, ink closes. Magenta and violet are accents only:
   a tile, a word, an edge. Neither is ever a background. */

:root {
  --ch-bone: #F6F0E9;
  --ch-paper: #FFFFFF;
  --ch-ink: #16111B;
  --ch-ash: #675A66;
  --ch-line: #E7DFD6;
  --ch-magenta: #EC4899;
  --ch-magenta-deep: #AD1457;
  --ch-violet: #7C4DFF;
  --ch-violet-deep: #5B2EDB;
  --ch-hot-pink: #FF5CA8;
  --ch-lilac: #9B7BFF;
  --ch-ash-light: #9A8FA0;

  --font-head: "Archivo", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --margin: 80px;
  --section: 96px;
  --max: 1200px;
}

/* Colors that change on ink. Light is the default; .light resets it inside an ink band. */
:root, .light {
  --fg: var(--ch-ink);
  --quiet: var(--ch-ash);
  --link: var(--ch-violet-deep);
  --focus: var(--ch-violet-deep);
  --rule: var(--ch-line);
  --btn-bg: var(--ch-ink);
  --btn-fg: var(--ch-paper);
  --btn-hop: var(--ch-magenta);
  --hop-word: var(--ch-magenta);
}
.on-ink {
  --fg: var(--ch-bone);
  --quiet: var(--ch-ash-light);
  --link: var(--ch-hot-pink);
  --focus: var(--ch-lilac);
  --rule: #3A3140;
  --btn-bg: var(--ch-bone);
  --btn-fg: var(--ch-ink);
  --btn-hop: var(--ch-hot-pink);
  --hop-word: var(--ch-hot-pink);
  background: var(--ch-ink);
  color: var(--fg);
}
.light { color: var(--fg); }

@media (max-width: 1024px) { :root { --margin: 40px; } }
@media (max-width: 640px) { :root { --margin: 20px; --section: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ch-bone);
  color: var(--fg);
  font: 400 17px/27px var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1; }
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 16px; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--margin)); margin: 0 auto; padding: 0 var(--margin); }

/* Type. Archivo shouts, Inter explains, Plex Mono counts. Ink on cream, bone on ink; no colored headlines. */
.display, h1, h2, h3 { font-family: var(--font-head); color: var(--fg); margin: 0; }
.display { font-weight: 800; font-size: 72px; line-height: 72px; letter-spacing: -0.04em; }
.h1 { font-weight: 800; font-size: 56px; line-height: 60px; letter-spacing: -0.035em; }
.h2 { font-weight: 700; font-size: 36px; line-height: 42px; letter-spacing: -0.025em; }
h3 { font-weight: 700; font-size: 24px; line-height: 30px; letter-spacing: -0.02em; }
.lead { font-size: 20px; line-height: 30px; }
.small { font-size: 14px; line-height: 21px; color: var(--quiet); }
.label { font: 500 12px/16px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg); margin: 0; }
.mono { font-family: var(--font-mono); }
.measure { max-width: 680px; }

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 26px; }
  .display { font-size: 44px; line-height: 46px; }
  .h1 { font-size: 36px; line-height: 40px; }
  .h2 { font-size: 28px; line-height: 34px; }
  h3 { font-size: 20px; line-height: 26px; }
  .lead { font-size: 18px; line-height: 28px; }
}

/* Logo lockup: mark, then the wordmark at 22% of the mark's height away. "Hop" is the only colored word. */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--fg); }
.logo img { width: 34px; height: 34px; }
.wordmark { font: 800 28px/1 var(--font-head); letter-spacing: -0.04em; }
.wordmark .hop { color: var(--hop-word); }

/* Buttons: ink or bone, never pink. On hover a magenta tile slides out 6px up and to the right. */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 12px; border: 0;
  font: 700 16px/1 var(--font-head); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { color: var(--btn-fg); background: none; }
.btn-primary::before, .btn-primary::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.btn-primary::before { background: var(--btn-hop); z-index: -2; transition: transform 180ms ease-out; }
.btn-primary::after { background: var(--btn-bg); z-index: -1; }
.btn-primary:hover::before { transform: translate(6px, -6px); }
.btn-secondary { color: var(--fg); background: transparent; box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn-small { height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

/* Navigation: cream ground, ink links, one ink button. On a phone, the links move to the footer. */
.nav { display: flex; align-items: center; gap: 32px; padding-top: 20px; padding-bottom: 20px; }
.nav nav { margin-left: auto; display: flex; gap: 28px; }
.nav nav a { color: var(--fg); text-decoration: none; font: 700 16px/1 var(--font-head); letter-spacing: -0.01em; }
.nav nav a:hover { text-decoration: underline; text-decoration-color: var(--ch-magenta); }
@media (max-width: 720px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

/* Sections */
.band { padding: var(--section) 0; }
.band-paper { background: var(--ch-paper); }
.band-bone { background: var(--ch-bone); }

/* Hero */
.hero { padding: 48px 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .label { margin-bottom: 20px; }
.hero .display { margin-bottom: 24px; }
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-meta { font: 400 13px/20px var(--font-mono); color: var(--quiet); margin: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 520px; } }

/* Hero art: three account windows stacked up and to the right, like the mark. */
.hero-art { position: relative; aspect-ratio: 4 / 3; width: 100%; }
.win {
  position: absolute; width: 72%; height: 66%; border-radius: 22px;
  padding: 22px 24px; font: 700 18px/1 var(--font-head); letter-spacing: -0.01em;
  display: flex; flex-direction: column; gap: 14px;
  animation: hop 180ms ease-out both;
}
.win .tag { display: flex; align-items: center; gap: 10px; }
.win .dot { width: 12px; height: 12px; border-radius: 50%; }
.win-client { right: 0; top: 0; background: var(--ch-magenta); color: var(--ch-ink); animation-delay: 0ms; }
.win-client .dot { background: var(--ch-ink); }
.win-personal { right: 14%; top: 17%; background: var(--ch-violet); color: var(--ch-paper);
                box-shadow: 0 0 0 6px var(--ch-bone); animation-delay: 40ms; }
.win-personal .dot { background: var(--ch-paper); }
.win-work { left: 0; bottom: 0; background: var(--ch-ink); color: var(--ch-bone);
            box-shadow: 0 0 0 6px var(--ch-bone); animation-delay: 80ms; }
.win-work .dot { background: var(--ch-hot-pink); }
.win-work .bar { height: 10px; border-radius: 5px; background: #3A3140; }
.win-work .bubble { align-self: flex-end; width: 44%; height: 28px; border-radius: 10px; background: var(--ch-bone); }
/* Movement only, no fading: if animations don't run (background tabs, link previews) the art still shows. */
@keyframes hop { from { transform: translate(-8px, 8px); } to { transform: none; } }

/* Feature cards */
.section-head { margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--ch-bone); border-radius: 20px; padding: 28px; }
.band-bone .feature { background: var(--ch-paper); box-shadow: inset 0 0 0 1px var(--ch-line); }
.feature h3 { margin: 18px 0 8px; }
.feature p { margin: 0; color: var(--ch-ink); }
.icon-tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ch-ink); color: var(--ch-hot-pink); }
.icon-tile svg { width: 24px; height: 24px; }
@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* Price band: one ink band sells. The price card is the one place per page that gets the full stack. */
.price-grid { display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: center; }
.price-grid .h1 { margin-bottom: 20px; }
.price-grid p { color: var(--quiet); max-width: 480px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } .stack { margin-top: 28px; } }
.stack { position: relative; isolation: isolate; border-radius: 22px; margin-right: 28px; }
.stack::before, .stack::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stack::after { background: var(--ch-lilac); transform: translate(14px, -14px); z-index: -1; box-shadow: 0 0 0 4px var(--ch-ink); }
.stack::before { background: var(--ch-hot-pink); transform: translate(28px, -28px); z-index: -2; }
.price-card { position: relative; background: var(--ch-bone); border-radius: 22px; padding: 32px; box-shadow: 0 0 0 4px var(--ch-ink); }
.price-card .price { font: 800 64px/1 var(--font-head); letter-spacing: -0.04em; margin: 14px 0 8px; color: var(--ch-ink); }
.price-card .terms { font: 400 13px/20px var(--font-mono); color: var(--ch-ash); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.04em; }
.price-card ul { margin: 0 0 24px; padding-left: 20px; color: var(--ch-ink); }
.price-card li { margin-bottom: 6px; }
.price-card .small { margin: 16px 0 0; text-align: center; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq .h1 { padding-bottom: 20px; border-bottom: 2px solid var(--ch-ink); margin-bottom: 4px; }
.faq dl { margin: 0; }
.faq dt { font: 700 20px/26px var(--font-head); letter-spacing: -0.015em; margin: 24px 0 8px; }
.faq dd { margin: 0; padding-bottom: 24px; border-bottom: 1px solid var(--ch-line); color: var(--ch-ink); }

/* Footer: ink closes. Every page carries the independence line. */
.footer { padding: 56px 0 64px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer .legal { max-width: 560px; margin: 16px 0 0; font-size: 14px; line-height: 21px; color: var(--quiet); }
.footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer nav a { color: var(--fg); text-decoration: none; font: 700 16px/1 var(--font-head); }
.footer nav a:hover { text-decoration: underline; text-decoration-color: var(--ch-hot-pink); }

/* Simple pages: the purchase page and notices. Only top and bottom padding, so .wrap keeps the side margins. */
.page { padding-top: 48px; padding-bottom: var(--section); }
.page .display { font-size: 56px; line-height: 60px; margin-bottom: 20px; }
.page .card { background: var(--ch-paper); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--ch-line); padding: 28px; margin: 28px 0; }
.page textarea {
  width: 100%; font: 400 14px/1.5 var(--font-mono); padding: 14px; border-radius: 12px; resize: vertical;
  border: 1.5px solid var(--ch-ink); background: var(--ch-bone); color: var(--ch-ink); word-break: break-all;
}
@media (max-width: 640px) { .page .display { font-size: 36px; line-height: 40px; } }

/* Motion: one hop on load and one on hover, and none at all when the visitor asks for reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .win { animation: none; }
  .btn-primary::before { transition: none; }
}
