/* ============================================================
   Web Image Toolkit — webimagetoolkit.com
   Mosaic identity (lapis accent) · system fonts · mobile-first
   Reuses the zeugmacode.com header + rotating cube signature.
   ============================================================ */

:root {
  /* Palette — mosaic glaze (shared studio identity) */
  --ink:        #0c1f24;
  --ink-2:      #102a30;
  --tessera:    #14756e;   /* teal   */
  --terracotta: #c8473b;   /* clay   */
  --gold:       #d6a13a;   /* gilt   */
  --lapis:      #2f6f9f;   /* blue   — Web Image Toolkit accent */

  /* Text-safe accent variants (>=4.5:1 on white) for coloured TEXT. */
  --lapis-text:      #2b6a98;
  --tessera-text:    #0f6a61;
  --terracotta-text: #b23d31;
  --gold-text:       #8a6410;
  --terracotta-lite: #e8836f;  /* on dark (footer wordmark) */
  --lapis-lite:      #79b2da;  /* lapis on dark */

  --shell:      #f6f3ec;   /* warm stone background */
  --shell-2:    #efe9dd;
  --line:       #dcd5c6;
  --text:       #1c2b2e;
  --muted:      #5d6b6c;
  --muted-ink:  #9fb6b4;

  /* Type */
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", "Segoe UI Mono",
          Consolas, "Liberation Mono", monospace;

  /* Rhythm */
  --maxw: 1140px;
  --gut: clamp(1.1rem, 4vw, 2.4rem);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--shell);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.9em; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ── Shared bits ─────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; opacity: .8; }
.eyebrow--dark { color: var(--lapis-text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 650; font-size: .98rem; text-decoration: none;
  padding: .82rem 1.5rem; border-radius: 999px;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn--solid { background: var(--lapis); color: #fff; }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(47,111,159,.8); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(214,161,58,.7); }
.btn--ghost { color: var(--shell); border: 1.5px solid rgba(246,243,236,.4); }
.btn--ghost:hover { background: rgba(246,243,236,.1); border-color: var(--shell); }

/* ── Header ──────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50; padding: .7rem var(--gut);
  background: color-mix(in srgb, var(--shell) 86%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-head__inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark { flex: none; }
.brand__name { font-weight: 750; font-size: 1.05rem; letter-spacing: -.01em; color: var(--ink); }
.brand__accent { color: var(--lapis-text); }

.site-nav { display: flex; align-items: center; gap: clamp(.6rem, 2.5vw, 1.6rem); }
.site-nav a { text-decoration: none; font-weight: 550; font-size: .95rem; color: var(--text); }
.site-nav a:not(.site-nav__cta):hover { color: var(--lapis-text); }
.site-nav__cta { background: var(--ink); color: var(--shell) !important; padding: .5rem 1rem; border-radius: 999px; white-space: nowrap; }
.site-nav__cta:hover { background: var(--lapis); }
@media (max-width: 700px) { .site-nav a:not(.site-nav__cta) { display: none; } }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: radial-gradient(120% 120% at 100% 0%, var(--ink-2), var(--ink) 60%);
  color: var(--shell);
  padding: clamp(2.6rem, 7vw, 5.5rem) var(--gut) clamp(3rem, 8vw, 6rem);
  position: relative; overflow: hidden;
}
.hero__inner { max-width: var(--maxw); margin-inline: auto; display: grid; gap: clamp(2rem, 5vw, 3rem); }
.hero__copy { max-width: 36rem; margin-inline: auto; width: 100%; }
.hero h1 { font-size: clamp(2.4rem, 7.5vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 0 0 1.2rem; }
.hero h1 .dot { color: var(--gold); }
.hero__lede { font-size: clamp(1.05rem, 1rem + .5vw, 1.25rem); color: var(--muted-ink); max-width: 34rem; margin: 0 0 2rem; }
.hero__lede strong { color: var(--shell); font-weight: 650; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.3rem; }
.hero__actions--center { justify-content: center; margin-bottom: 0; }
.hero__facts {
  list-style: none; margin: 0; padding: 1.5rem 0 0;
  display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 5vw, 2.6rem);
  border-top: 1px solid rgba(246,243,236,.14);
  font-family: var(--mono); font-size: .82rem; color: var(--muted-ink);
  text-transform: uppercase; letter-spacing: .08em;
}
.hero__facts span { display: block; font-size: 1.7rem; color: var(--shell); letter-spacing: -.02em; margin-bottom: .15rem; font-weight: 600; }

/* ── Signature: rotating 3D mosaic cube (from zeugmacode.com) ─ */
.hero__mosaic { justify-self: center; width: min(82%, 360px); }
.scene { position: relative; width: 100%; aspect-ratio: 1 / 1; display: grid; place-items: center; perspective: 1100px; --size: clamp(150px, 34vw, 230px); }
.scene::after { content: ""; position: absolute; left: 50%; bottom: 7%; width: 58%; height: 13%; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(0,0,0,.5), transparent 72%); filter: blur(5px); z-index: -1; }
.cube { width: var(--size); height: var(--size); position: relative; transform-style: preserve-3d; transform: rotateX(-22deg) rotateY(-32deg); animation: cube-spin 28s linear infinite; cursor: grab; touch-action: none; will-change: transform; }
.cube.dragging { cursor: grabbing; }
@keyframes cube-spin { from { transform: rotateX(-22deg) rotateY(0deg); } to { transform: rotateX(-22deg) rotateY(360deg); } }
.face { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); grid-template-areas: "a b c" "a d d" "e f g"; gap: clamp(4px, 1.7%, 7px); padding: clamp(4px, 1.7%, 7px); background: #0b1c20; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); backface-visibility: hidden; }
.face::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: #000; opacity: var(--shade, 0); }
.face--front  { transform: translateZ(calc(var(--size) / 2)); --shade: .04; }
.face--back   { transform: rotateY(180deg) translateZ(calc(var(--size) / 2)); --shade: .4; }
.face--right  { transform: rotateY(90deg)  translateZ(calc(var(--size) / 2)); --shade: .24; }
.face--left   { transform: rotateY(-90deg) translateZ(calc(var(--size) / 2)); --shade: .32; }
.face--top    { transform: rotateX(90deg)  translateZ(calc(var(--size) / 2)); --shade: 0; }
.face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--size) / 2)); --shade: .46; }
.face--top::after { background: #fff; opacity: .07; }
.ct { background: var(--c); border-radius: 6px; }

/* ── Section heads ───────────────────────────────────────── */
.section-head { max-width: var(--maxw); margin: 0 auto clamp(1.8rem, 4vw, 2.8rem); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 780; margin: 0; max-width: 20ch; }
.section-head--center h2 { margin-inline: auto; }
.section-head__sub { color: var(--muted); max-width: 50ch; margin: .9rem 0 0; }
.section-head__sub--center { margin-inline: auto; }

/* ── Why ─────────────────────────────────────────────────── */
.why { padding: clamp(3rem, 8vw, 5rem) var(--gut); background: var(--shell-2); border-block: 1px solid var(--line); }
.why__inner { max-width: var(--maxw); margin-inline: auto; }
.why h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 780; margin: 0 0 1rem; max-width: 22ch; }
.why__lede { color: var(--muted); max-width: 60ch; font-size: clamp(1.02rem, 1rem + .3vw, 1.18rem); margin: 0; }
.why__lede strong { color: var(--text); }

/* ── Tools ───────────────────────────────────────────────── */
.tools { padding: clamp(3rem, 8vw, 6rem) var(--gut); }
.tool-group { max-width: var(--maxw); margin: 0 auto clamp(2rem, 5vw, 3.2rem); }
.tool-group__title { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.tool { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.4rem 1.6rem; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tool::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--accent, var(--lapis)); }
.tool:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(12,31,36,.5); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.tool__name { font-size: 1.18rem; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .45rem; font-weight: 720; }
.tool__desc { color: var(--muted); margin: 0; font-size: .96rem; }
.tool__desc code { background: var(--shell-2); padding: .05em .35em; border-radius: 5px; color: var(--ink); }
.tool__flag { display: inline-block; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #fff; background: var(--terracotta); padding: .18rem .5rem; border-radius: 999px; margin: 0 0 .6rem; }
.tool--star { background: radial-gradient(130% 130% at 0% 0%, color-mix(in srgb, var(--accent) 12%, #fff), #fff 60%); }

/* ── How ─────────────────────────────────────────────────── */
.how { padding: clamp(3rem, 8vw, 6rem) var(--gut); background: var(--ink); color: var(--shell); }
.how .eyebrow { color: var(--gold); }
.how .section-head h2 { color: var(--shell); }
.steps { max-width: var(--maxw); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr; gap: 1.4rem; counter-reset: s; }
.step { background: var(--ink-2); border: 1px solid rgba(246,243,236,.12); border-radius: var(--radius); padding: 1.6rem 1.5rem; }
.step__n { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 999px; background: var(--lapis); color: #fff; font-weight: 700; font-family: var(--mono); margin-bottom: .9rem; }
.step__t { margin: 0 0 .4rem; font-size: 1.2rem; font-weight: 720; color: var(--shell); }
.step__b { margin: 0; color: var(--muted-ink); }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing { padding: clamp(3rem, 8vw, 6rem) var(--gut); }
.plans { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 1.4rem; align-items: start; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem 1.6rem; display: flex; flex-direction: column; }
.plan--pro { border-color: var(--lapis); box-shadow: 0 22px 44px -28px rgba(47,111,159,.6); position: relative; }
.plan__head { border-bottom: 1px solid var(--line); padding-bottom: 1.1rem; margin-bottom: 1.2rem; position: relative; }
.plan__badge { position: absolute; top: -1.95rem; right: 0; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #fff; background: var(--lapis); padding: .25rem .6rem; border-radius: 999px; }
.plan__name { font-size: 1rem; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; font-weight: 600; }
.plan__price { margin: 0 0 .35rem; }
.plan__amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.plan__once { font-size: .9rem; color: var(--muted); font-weight: 600; }
.plan__tag { margin: 0; color: var(--muted); font-size: .9rem; }
.plan__list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .65rem; }
.plan__list li { position: relative; padding-left: 1.6rem; color: var(--text); font-size: .98rem; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: .35em; width: .85rem; height: .5rem; border-left: 2px solid var(--lapis); border-bottom: 2px solid var(--lapis); transform: rotate(-45deg); }
.plan__list code { background: var(--shell-2); padding: .05em .35em; border-radius: 5px; }
.plan__cta { margin-top: auto; width: 100%; }
.plan__note { margin: .8rem 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.plan__note a { color: var(--lapis-text); }

/* ── Approach / privacy (from zeugmacode.com) ────────────── */
.approach { background: var(--ink-2); color: var(--shell); padding: clamp(3rem, 8vw, 6rem) var(--gut); }
.approach .eyebrow { color: var(--gold); }
.approach .section-head h2 { color: var(--shell); }
.principles { max-width: var(--maxw); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr; gap: 0; }
.principle { padding: 1.5rem 0; border-top: 1px solid rgba(246,243,236,.14); display: grid; gap: .4rem; }
.principle:last-child { border-bottom: 1px solid rgba(246,243,236,.14); }
.principle__label { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0; font-weight: 600; }
.principle__body { color: var(--muted-ink); margin: 0; max-width: 60ch; }

/* ── Who / use cases ─────────────────────────────────────── */
.who { padding: clamp(3rem, 8vw, 6rem) var(--gut); }
.who-grid { max-width: var(--maxw); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr; gap: 1rem; }
.who-card { background: var(--shell-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; }
.who-card h3 { margin: 0 0 .5rem; font-size: 1.12rem; font-weight: 720; letter-spacing: -.01em; }
.who-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.who-card code { background: #fff; padding: .05em .35em; border-radius: 5px; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { padding: clamp(3rem, 8vw, 6rem) var(--gut); background: var(--shell-2); border-block: 1px solid var(--line); }
.faq__list { max-width: 760px; margin: 0 auto; display: grid; gap: .8rem; }
.qa { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.3rem; }
.qa summary { cursor: pointer; list-style: none; padding: 1.15rem 0; font-weight: 650; font-size: 1.04rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--mono); font-size: 1.4rem; color: var(--lapis-text); flex: none; line-height: 1; transition: transform .2s ease; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0; padding: 0 0 1.2rem; color: var(--muted); max-width: 64ch; }

/* ── Final CTA ───────────────────────────────────────────── */
.cta-final { background: radial-gradient(120% 120% at 0% 0%, var(--ink-2), var(--ink) 60%); color: var(--shell); padding: clamp(3.5rem, 9vw, 6rem) var(--gut); text-align: center; }
.cta-final__inner { max-width: 40rem; margin: 0 auto; }
.cta-final h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -.03em; font-weight: 800; margin: 0 0 .8rem; }
.cta-final p { color: var(--muted-ink); font-size: 1.1rem; margin: 0 0 2rem; }

/* ── Footer ──────────────────────────────────────────────── */
.site-foot { background: var(--ink); color: var(--muted-ink); padding: clamp(2.4rem, 5vw, 3.4rem) var(--gut) clamp(1.6rem, 4vw, 2.2rem); border-top: 1px solid rgba(246,243,236,.1); }
.site-foot__cols { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 1.6rem; }
.site-foot__brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; color: var(--shell); font-size: 1.05rem; }
.site-foot__brand .brand__accent { color: var(--lapis-lite); }
.site-foot__line { margin: .6rem 0 0; font-size: .92rem; }
.site-foot__nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-content: start; }
.site-foot__nav a { text-decoration: none; color: var(--muted-ink); font-size: .92rem; }
.site-foot__nav a:hover { color: var(--shell); text-decoration: underline; }
.site-foot__cr { max-width: var(--maxw); margin: 1.6rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(246,243,236,.1); font-size: .82rem; }
.site-foot__cr a { color: var(--lapis-lite); }

/* ── Responsive: tablet ──────────────────────────────────── */
@media (min-width: 640px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 5vw, 4rem); }
  .principle { border-top: 1px solid rgba(246,243,236,.14); }
  .site-foot__cols { grid-template-columns: 1.2fr 1fr; }
  .site-foot__nav { justify-content: flex-end; }
}

/* ── Responsive: desktop ─────────────────────────────────── */
@media (min-width: 920px) {
  .hero { padding-block: clamp(4rem, 7vw, 7rem); }
  .hero__inner { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .hero__copy { margin-inline: 0; }
  .hero__mosaic { width: min(100%, 420px); justify-self: end; }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Motion / contrast prefs ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .cube { animation: none !important; transform: rotateX(-24deg) rotateY(-32deg); }
}
