:root {
  --ink: #0e1116;
  --ink-2: #1a1f27;
  --muted: #66707d;
  --mist: #d7dee7;
  --fog: #e8edf3;
  --sheet: #f7f9fc;
  --jade: #1aae8a;
  --jade-deep: #128a6c;
  --jade-soft: rgba(26, 174, 138, 0.14);
  --line: rgba(14, 17, 22, 0.1);
  --glow-sheet: 0 30px 80px rgba(14, 17, 22, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--fog);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
textarea { resize: vertical; min-height: 92px; }

.shell { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }

/* Slim ink bar — unique vs Forge blur / FreeKit mint */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  background: transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #f4f7fb;
}
.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
}
.brand-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.brand-text em {
  font-style: normal;
  color: var(--jade);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.45rem 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav > a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(244, 247, 251, 0.72);
}
.nav > a:not(.btn):hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 12px;
  padding: 0.78rem 1.25rem;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--jade);
  color: #06251d;
  box-shadow: 0 12px 28px rgba(26, 174, 138, 0.35);
}
.btn-primary:hover { background: #22c49a; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f4f7fb;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ink {
  background: var(--ink);
  color: #f4f7fb;
}
.btn-ink:hover { background: #222833; }
.btn-soft {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-soft:hover { border-color: var(--ink); }
.nav .btn-primary { color: #06251d !important; }
.nav .btn-ghost { color: #f4f7fb !important; }

/* Full-bleed ink stage — one composition */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% 30%, rgba(26, 174, 138, 0.22), transparent 58%),
    radial-gradient(700px 480px at 8% 90%, rgba(90, 120, 170, 0.18), transparent 55%),
    linear-gradient(165deg, #0e1116 0%, #151a22 48%, #1c2430 100%);
  color: #f4f7fb;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.45;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 6.5rem 0 3.5rem;
}
.hero-copy { max-width: 18ch; }
.brand-mega {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(3.6rem, 11vw, 6.6rem);
  letter-spacing: -0.055em;
  line-height: 0.9;
  color: #f7fafc;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.brand-mega span {
  color: var(--jade);
  display: inline;
}
.hero-line {
  margin: 0 0 1.6rem;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 500;
  color: rgba(244, 247, 251, 0.72);
  max-width: 22ch;
  line-height: 1.35;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

/* Dominant sheet — product visual, not badge clutter */
.hero-visual {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.sheet-art {
  position: relative;
  width: min(360px, 86%);
  aspect-ratio: 0.72;
  background: linear-gradient(180deg, #ffffff 0%, #f2f5f9 100%);
  border-radius: 10px 18px 14px 10px;
  box-shadow: var(--glow-sheet);
  color: var(--ink);
  padding: 1.6rem 1.5rem 1.4rem;
  transform: rotate(4deg);
  animation: floatSheet 7s ease-in-out infinite;
}
.sheet-art::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(180deg, var(--jade), #0f7664);
  border-radius: 10px 0 0 10px;
}
.sheet-art .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sheet-art .meta b {
  color: var(--jade-deep);
  font-weight: 600;
}
.sheet-art h3 {
  margin: 0 0 1.2rem;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.lines {
  display: grid;
  gap: 0.85rem;
}
.line {
  height: 9px;
  border-radius: 999px;
  background: rgba(14, 17, 22, 0.08);
  overflow: hidden;
  position: relative;
}
.line::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 70%);
  background: rgba(14, 17, 22, 0.22);
  border-radius: inherit;
  animation: writeLine 3.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.line:nth-child(1) { --w: 88%; --d: 0s; }
.line:nth-child(2) { --w: 64%; --d: 0.25s; }
.line:nth-child(3) { --w: 76%; --d: 0.45s; }
.line:nth-child(4) { --w: 52%; --d: 0.65s; }
.line:nth-child(5) { --w: 70%; --d: 0.85s; }
.sheet-shadow {
  position: absolute;
  width: min(340px, 80%);
  aspect-ratio: 0.72;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(-7deg) translate(-18%, 8%);
  z-index: -1;
}

.ad-slot {
  margin: 1.25rem auto;
  width: min(1120px, calc(100% - 2.5rem));
  min-height: 70px;
  border: 1px dashed rgba(14, 17, 22, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tools {
  padding: 2.5rem 0 3.5rem;
  background:
    linear-gradient(180deg, #eef2f7 0%, var(--fog) 30%, #e4ebf3 100%);
}
.tools-head {
  margin-bottom: 1.35rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.tools-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.tools-head p {
  margin: 0;
  color: var(--muted);
  max-width: 34ch;
  font-size: 0.98rem;
}

.workbench {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 250px;
  gap: 1rem;
  align-items: start;
}

.form-chooser {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: sticky;
  top: 1rem;
}
.tool-tab {
  text-align: left;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  display: grid;
  gap: 0.15rem;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.tool-tab .num {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.tool-tab:hover {
  border-color: var(--line);
  transform: translateX(2px);
}
.tool-tab[aria-selected="true"] {
  background: var(--ink);
  color: #f4f7fb;
  border-color: var(--ink);
  box-shadow: 0 14px 30px rgba(14, 17, 22, 0.18);
}
.tool-tab[aria-selected="true"] .num { color: var(--jade); }

.panel-wrap { min-width: 0; }
.panel {
  background: var(--sheet);
  border: 1px solid rgba(14, 17, 22, 0.08);
  border-radius: var(--radius);
  padding: 1.45rem 1.5rem;
  box-shadow: 0 18px 40px rgba(14, 17, 22, 0.06);
}
.panel h3 {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.hint {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.tool-panel { display: none; }
.tool-panel.active { display: block; animation: panelIn 0.28s ease; }

.controls { display: grid; gap: 0.85rem; }
.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.72rem 0.85rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--jade);
  box-shadow: 0 0 0 3px var(--jade-soft);
}
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}
.actions-row .btn-primary { color: #06251d; }
.status {
  margin-top: 0.9rem;
  min-height: 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.status.ok { color: var(--jade-deep); }
.status.error { color: #c0392b; }

.side-stack {
  display: grid;
  gap: 0.85rem;
  position: sticky;
  top: 1rem;
}
.limit-box {
  border-radius: var(--radius);
  padding: 1.2rem;
  background: linear-gradient(160deg, #0e1116, #1a2430);
  color: #e8eef5;
}
.limit-box h4 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--jade);
}
.limit-box p {
  margin: 0 0 0.8rem;
  opacity: 0.8;
  font-size: 0.88rem;
}
.limit-box ul {
  margin: 0 0 1rem;
  padding-left: 1.05rem;
  font-size: 0.86rem;
  opacity: 0.9;
  display: grid;
  gap: 0.25rem;
}
.limit-box .btn { width: 100%; }
.contact-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  opacity: 0.8;
}
.contact-note a {
  color: var(--jade);
  text-decoration: underline;
}
.side-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.7);
}
.side-note strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.side-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.side-note .btn {
  margin-top: 0.85rem;
  width: 100%;
}

.pricing {
  padding: 0.5rem 0 3.5rem;
  background: linear-gradient(180deg, #e4ebf3 0%, #dfe6ef 100%);
}
.pricing header { margin-bottom: 1.2rem; }
.pricing h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
}
.pricing header p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 42ch;
}
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.price {
  border-radius: var(--radius);
  border: 1px solid rgba(14, 17, 22, 0.08);
  background: rgba(255, 255, 255, 0.78);
  padding: 1.45rem;
}
.price.featured {
  background: var(--ink);
  color: #eef3f8;
  border-color: var(--ink);
  box-shadow: 0 22px 50px rgba(14, 17, 22, 0.22);
}
.price .tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}
.price h3 {
  margin: 0.35rem 0;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.price .amount {
  font-size: 2rem;
  font-weight: 750;
  margin: 0.45rem 0 0.95rem;
  font-family: var(--display);
  letter-spacing: -0.03em;
}
.price .amount small {
  font-size: 0.9rem;
  opacity: 0.65;
  font-family: var(--sans);
  font-weight: 600;
}
.price ul {
  margin: 0 0 1.1rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.94rem;
}
.price.featured .btn-primary {
  background: var(--jade);
  color: #06251d;
}
.price .contact-block {
  margin: 0 0 0.95rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  display: grid;
  gap: 0.25rem;
}
.price.featured .contact-block a {
  color: var(--jade);
  text-decoration: underline;
}

.site-footer {
  background: var(--ink);
  color: rgba(244, 247, 251, 0.62);
  padding: 1.5rem 0 1.9rem;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}
.site-footer a {
  color: var(--jade);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  background: var(--ink);
  color: #eef3f8;
  padding: 0.9rem 1.05rem;
  border-radius: 14px;
  border-left: 3px solid var(--jade);
  box-shadow: 0 18px 40px rgba(14, 17, 22, 0.28);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  max-width: min(90vw, 300px);
  font-size: 0.92rem;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatSheet {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(2.5deg) translateY(-10px); }
}
@keyframes writeLine {
  0%, 100% { width: 18%; opacity: 0.55; }
  40%, 70% { width: var(--w); opacity: 1; }
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .hero-shell,
  .workbench,
  .price-grid,
  .row-2 { grid-template-columns: 1fr; }
  .hero {
    min-height: auto;
  }
  .hero-shell { padding: 5.5rem 0 2.8rem; }
  .hero-copy { max-width: none; }
  .hero-visual { min-height: 280px; order: -1; }
  .form-chooser {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .tool-tab { flex: 1 1 140px; }
  .side-stack { position: static; }
  .nav .hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
