/* Tinkzy — "workshop" style
   Display: Bricolage Grotesque · Body: Figtree · Numbers/labels: Martian Mono · Logo: Nunito */
:root {
  --ink: #17112B;
  --purple: #3B1F7A;
  --purple-soft: #EDE8F7;
  --spark: #FFC93C;
  --paper: #FFFFFF;
  --grid: #EFEBF6;
  --muted: #554A6E;
  --line: 2px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 14px;
  --max: 1160px;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}

a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img, svg { display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

mark {
  background: linear-gradient(transparent 55%, var(--spark) 55%, var(--spark) 92%, transparent 92%);
  color: inherit;
  padding: 0 0.06em;
}

/* Demo strip */
.demo-note {
  background: var(--ink);
  color: #FFFFFF;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 8px 16px;
}

/* Header */
.site-header { background: var(--paper); border-bottom: var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; flex-wrap: wrap; }
.logo {
  font-family: 'Nunito', var(--body);
  font-size: 30px; font-weight: 900; letter-spacing: -0.02em; line-height: 1;
  color: var(--purple); text-decoration: none;
  display: inline-flex; align-items: baseline;
}
.logo .i { position: relative; display: inline-block; }
.logo .i svg { position: absolute; left: 50%; top: 0.02em; width: 0.3em; height: 0.3em; transform: translateX(-50%); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a {
  font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink);
  padding: 8px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--purple-soft); color: var(--purple); }
.nav a.nav-cta { border: var(--line); background: var(--spark); box-shadow: var(--shadow-sm); margin-left: 6px; }
.nav a.nav-cta:hover { background: #FFD666; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 12px;
  font-family: var(--body); font-weight: 700; font-size: 17px; text-decoration: none;
  border: var(--line); box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-spark { background: var(--spark); }
.btn-plain { background: var(--paper); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(42px, 6.2vw, 74px);
  font-weight: 800;
  font-variation-settings: 'opsz' 96, 'wdth' 92;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
}
.hero p.lede { margin: 0 0 32px; font-size: 20px; color: var(--muted); max-width: 34ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Portfolio card */
.portfolio {
  background: var(--paper); border: var(--line); border-radius: 20px; box-shadow: 8px 8px 0 var(--purple);
  padding: 24px 24px 8px; transform: rotate(1deg);
}
.portfolio-top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: var(--line); }
.portfolio dl { margin: 0; }
.portfolio .row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px dashed #B9AED3; }
.portfolio .row:last-child { border-bottom: 0; }
.portfolio dt { font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding-top: 6px; }
.portfolio dd { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.portfolio dd a, .portfolio dd span { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink); text-decoration: none; }
.portfolio dd a:hover { color: var(--purple); text-decoration: underline; }
.portfolio dd span { color: var(--muted); }
.portfolio em { font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; border: 1.5px solid currentColor; border-radius: 999px; padding: 2px 7px; vertical-align: 4px; margin-left: 4px; }

/* Ribbon */
.ribbon { background: var(--spark); border-top: var(--line); border-bottom: var(--line); overflow: hidden; padding: 14px 0; }
.ribbon-track { display: flex; gap: 28px; width: max-content; animation: ribbon 32s linear infinite; }
.ribbon span { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.015em; white-space: nowrap; }
.ribbon i { font-style: normal; font-size: 20px; align-self: center; color: var(--purple); }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* Section heading */
section { padding: 72px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 36px; border-bottom: var(--line); padding-bottom: 18px; }
.sec-head h2 {
  font-family: var(--display); font-weight: 800; font-variation-settings: 'opsz' 96, 'wdth' 95;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.015em; margin: 8px 0 0;
}
.sec-head p { margin: 0; color: var(--muted); max-width: 40ch; }

/* Toolbox */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.tool {
  position: relative; background: var(--paper); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
a.tool:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); color: var(--ink); }
.tool.soon { background: transparent; box-shadow: none; border-style: dashed; }
.tool .head { display: flex; justify-content: space-between; align-items: center; }
.tool .icon { width: 52px; height: 52px; border-radius: 12px; border: var(--line); background: var(--purple-soft); color: var(--purple); display: flex; align-items: center; justify-content: center; }
.tool h3 { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.tool > .label { margin-top: 8px; }
.tool p { margin: 0; color: var(--muted); flex-grow: 1; }
.tool .go { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--purple); }
.sticker {
  font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 5px 9px; border: var(--line); border-radius: 999px;
}
.sticker.live { background: var(--spark); transform: rotate(-4deg); }
.sticker.soon { background: var(--paper); }

/* How we build */
.how { background: var(--purple); color: #FFFFFF; border-top: var(--line); border-bottom: var(--line); }
.how .sec-head { border-color: rgba(255,255,255,0.35); }
.how .sec-head p, .how .label { color: #D9D0EE; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.step .num { font-family: var(--mono); font-size: 44px; font-weight: 600; color: var(--spark); line-height: 1; }
.step h3 { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 14px 0 8px; }
.step p { margin: 0; color: #E6DEF7; }

/* Notes (blog list) */
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { border-bottom: var(--line); }
.note {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline;
  padding: 24px 8px; text-decoration: none; color: var(--ink);
}
a.note:hover { background: var(--purple-soft); color: var(--ink); }
.note h3 { font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.note p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.note .arrow { font-family: var(--mono); font-size: 20px; }
.note.draft { color: var(--muted); }
.note.draft h3 { color: var(--muted); }

/* Contact */
.contact {
  background: var(--spark); border: var(--line); border-radius: 24px; box-shadow: 8px 8px 0 var(--ink);
  padding: 44px 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.contact h2 { font-family: var(--display); font-weight: 800; font-variation-settings: 'opsz' 96, 'wdth' 95; font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.015em; line-height: 1.02; margin: 0 0 10px; }
.contact p { margin: 0; font-weight: 500; }

/* Article */
.article { padding: 56px 0 80px; }
.article .wrap { max-width: 760px; }
.article .paper { background: var(--paper); border: var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(24px, 5vw, 56px); }
.article h1 { font-family: var(--display); font-weight: 800; font-variation-settings: 'opsz' 96, 'wdth' 95; font-size: clamp(36px, 6vw, 60px); line-height: 1.02; letter-spacing: -0.015em; margin: 14px 0 18px; }
.article h2 { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 40px 0 10px; }
.article .callout { border: var(--line); border-radius: 14px; background: var(--purple-soft); padding: 20px 22px; margin: 32px 0; }
.article .callout p { margin: 0 0 8px; }
.back { font-family: var(--mono); font-size: 13px; font-weight: 600; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }

/* Footer */
.site-footer { background: var(--ink); color: #CFC6E6; padding: 56px 0 28px; font-size: 15px; margin-top: 72px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer .logo { color: #FFFFFF; font-size: 28px; }
.foot-brand p { margin: 12px 0 8px; max-width: 30ch; }
.site-footer a:not(.logo) { color: #FFFFFF; font-weight: 600; text-decoration: none; }
.site-footer a:not(.logo):hover { color: var(--spark); }
.foot-col h2 { color: #CFC6E6; margin: 6px 0 10px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.foot-col li a, .foot-col li span { display: inline-flex; min-height: 36px; align-items: center; }
.foot-col em { font-style: normal; font-family: var(--mono); font-size: 10px; text-transform: uppercase; border: 1px solid #8F84AD; border-radius: 999px; padding: 1px 6px; margin-left: 6px; }
.site-footer .foot-base { display: block; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); }
.site-footer .foot-base .label { color: #CFC6E6; }

/* Skip link */
.skip { position: absolute; left: -999px; top: 8px; background: var(--spark); color: var(--ink); padding: 10px 14px; border: var(--line); border-radius: 10px; z-index: 50; font-weight: 700; }
.skip:focus { left: 16px; }

/* Trust strip */
.trust { padding: 40px 0 8px; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.trust-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: var(--line); border-radius: var(--radius); background: var(--paper); }
.trust-list .icon { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--spark); border: var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.trust-list h3 { font-family: var(--display); font-size: 19px; font-weight: 700; margin: 0 0 2px; letter-spacing: -0.01em; }
.trust-list p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.45; }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.product {
  background: var(--paper); border: var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.product.soon { box-shadow: none; border-style: dashed; background: rgba(255,255,255,0.7); }
.product .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.product .icon { width: 52px; height: 52px; border-radius: 12px; border: var(--line); background: var(--purple-soft); color: var(--purple); display: flex; align-items: center; justify-content: center; }
.product h3 { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
.product .line { margin: 0; font-size: 18px; }
.product .best { margin: 0; font-size: 15px; color: var(--muted); }
.product .best strong { color: var(--ink); }
.feats { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px dashed #B9AED3; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.feats svg { flex: none; margin-top: 3px; color: var(--purple); }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 12px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.sec-head.stacked { flex-direction: column; align-items: flex-start; border-bottom: 0; margin: 0; }
.faq { border-top: var(--line); }
.faq details { border-bottom: var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; min-height: 44px; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 3px solid var(--spark); outline-offset: 2px; }
.faq .plus { flex: none; width: 32px; height: 32px; border: var(--line); border-radius: 50%; position: relative; background: var(--paper); }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.faq .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .15s ease; }
.faq details[open] .plus { background: var(--spark); }
.faq details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details p { margin: 0 4px 22px; color: var(--muted); max-width: 60ch; }

/* Prose pages */
.prose .lede-sm { font-size: 20px; color: var(--muted); margin: 0 0 8px; }
.plain-list { padding-left: 20px; }
.plain-list li { margin-bottom: 8px; }

@media (max-width: 860px) {
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .portfolio { transform: none; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero { padding: 44px 0 56px; }
  section { padding: 56px 0; }
  .note { grid-template-columns: 1fr; padding: 20px 4px; }
  .note .arrow { display: none; }
  .nav a.nav-cta { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .ribbon-track { animation: none; }
  html { scroll-behavior: auto; }
}
