@import url('/assets/fonts.css');

:root {
  --paper: #FFF3DC;
  --paper-alt: #FFE9BF;
  --card: #FFFBF2;
  --ink: #16100C;
  --red: #F4391F;
  --red-deep: #C22A14;
  --yellow: #FFC21A;
  --green: #2E9E5B;
  --teal: #12403C;
  --border: 3px solid var(--ink);
  --shadow-pop: 6px 6px 0 var(--ink);
  --shadow-big: 10px 10px 0 var(--ink);
  --ink-soft: #4A3A2C;
  --ink-faint: #7A6A52;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(22,16,12,0.06) 1.3px, transparent 1.4px),
    radial-gradient(circle at 85% -5%, rgba(244,57,31,0.14), transparent 42%),
    radial-gradient(circle at -10% 35%, rgba(255,194,26,0.30), transparent 38%);
  background-size: 22px 22px, auto, auto;
  color: var(--ink);
  font-family: 'Suisse', -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.shell { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, .brand, .price-name, .price-figure, .step-k, .avatar-badge, .brand-mark, .stamp, .sticker, .panel-title, .section-title, .modal-title, .auth-title, .kicker, dl dd, .ticker-track {
  font-family: 'Sebenta', Georgia, serif;
}

a { color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }

.icon { width: 15px; height: 15px; flex: 0 0 auto; }

/* ---------- Ticker ribbons ---------- */
.ticker { overflow: hidden; padding: 11px 0; border-bottom: 3px solid var(--ink); }
.ticker-ink { background: var(--ink); }
.ticker-red { background: var(--red); border-top: 3px solid var(--ink); }
.ticker-yellow { background: var(--yellow); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.ticker-track { display: inline-block; white-space: nowrap; animation: ticker-scroll 26s linear infinite; }
.ticker-track span {
  display: inline-block;
  font-family: 'Sebenta', Georgia, serif;
  font-size: 15px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
}
.ticker-ink .ticker-track span { color: var(--yellow); }
.ticker-red .ticker-track span { color: #FFF3DC; }
.ticker-yellow .ticker-track span { color: var(--ink); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.nav {
  display: flex; align-items: center; gap: 24px;
  padding-top: 20px; padding-bottom: 20px;
}
.brand-row { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--yellow); color: var(--ink);
  font-family: 'Sebenta', Georgia, serif; font-weight: 800; font-size: 15px;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-4deg);
}
.brand-mark-img { display: block; width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.brand { font-size: 18px; font-weight: 700; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.nav nav a:hover, .nav nav a.active { color: var(--red); }
.account { display: flex; align-items: center; gap: 14px; margin-left: 24px; }
.account-email { font-size: 13px; color: var(--ink-faint); }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-soft); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--red); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: #FFF3DC;
  border: 3px solid var(--ink);
  padding: 11px 22px; border-radius: 14px;
  font-size: 14.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.button:hover { background: var(--yellow); color: var(--ink); transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 7px 7px 0 var(--ink); }
.button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button.large { padding: 15px 30px; font-size: 16px; }
.button.compact { padding: 7px 16px; font-size: 12.5px; }
.button.outline { background: var(--card); color: var(--ink); }
.button.outline:hover { background: var(--yellow); color: var(--ink); }
.button.inverse { background: var(--yellow); color: var(--ink); }
.button.inverse:hover { background: #FFF3DC; color: var(--ink); }
.button.icon-btn { padding: 10px 12px; }

/* ---------- Landing hero ---------- */
.land-hero {
  padding: 64px 24px 60px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.kicker {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-1.5deg);
  margin: 0 0 26px;
}
.land-h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02; margin: 0 0 24px; max-width: 16ch;
  font-weight: 700; letter-spacing: -0.02em;
}
.land-h1 em { font-style: normal; }
.marker {
  display: inline-block;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 12px 16px 10px 14px;
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-1.5deg);
  padding: 0 0.18em;
  color: var(--ink);
  white-space: nowrap;
}
.lede { font-size: 19px; color: var(--ink-soft); max-width: 62ch; margin: 0 0 32px; }
.land-hero .actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hint { font-size: 13px; color: var(--ink-faint); }
.land-hero .hint { margin-top: 22px; font-weight: 600; }
.notice {
  background: var(--yellow);
  border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 18px; font-size: 14px; font-weight: 600; margin-bottom: 22px;
  transform: rotate(-0.5deg);
}

.hero-art {
  position: relative;
  margin: 56px 0 4px;
  width: min(780px, 100%);
}
.hero-art img {
  display: block; width: 100%; height: auto;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-big);
  transform: rotate(-2deg);
  background: var(--card);
}
.sticker {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 13px; font-weight: 800; line-height: 1.1;
  letter-spacing: 0.06em; text-transform: uppercase;
  animation: wobble 3.8s ease-in-out infinite;
}
.stamp-hot { --rot: 10deg; top: -26px; right: -14px; width: 108px; height: 108px; background: var(--yellow); color: var(--ink); padding: 10px; }
.stamp-yolk { --rot: -9deg; bottom: -24px; left: -16px; width: 104px; height: 104px; background: var(--red); color: #FFF3DC; padding: 10px; animation-direction: reverse; }
@keyframes wobble {
  0%, 100% { transform: rotate(var(--rot, 8deg)); }
  50% { transform: rotate(calc(var(--rot, 8deg) - 6deg)) scale(1.05); }
}

/* ---------- Landing sections ---------- */
.land-section { padding: 84px 0; }
.land-alt { background: var(--paper-alt); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.land-bordered { border-top: 3px dashed var(--ink); }
.land-stack { display: flex; flex-direction: column; gap: 34px; }
.land-stack-sm { display: flex; flex-direction: column; gap: 12px; }
.land-stack-center { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.land-h2 { font-size: clamp(30px, 4.5vw, 46px); line-height: 1.06; margin: 0; font-weight: 700; letter-spacing: -0.015em; }
.sub { color: var(--ink-soft); font-size: 16px; margin: 10px 0 0; max-width: 62ch; }
.meta { color: var(--ink-faint); font-size: 13.5px; font-weight: 600; }
.spread { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }

/* Cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card, .value-card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: var(--shadow-pop);
  position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.cards-3 > :nth-child(1) { transform: rotate(-1.4deg); }
.cards-3 > :nth-child(2) { transform: rotate(1.2deg) translateY(6px); }
.cards-3 > :nth-child(3) { transform: rotate(-0.8deg); }
.step-card:hover, .value-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 10px 10px 0 var(--ink);
}
.step-card strong, .value-card strong {
  display: block; font-size: 17.5px; margin-bottom: 8px;
  font-family: 'Sebenta', Georgia, serif; font-weight: 700;
}
.step-card .sub, .value-card .sub { font-size: 14.5px; }
.step-k {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 46px; padding: 0 8px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--ink);
  font-family: 'Sebenta', Georgia, serif; font-weight: 800; font-size: 17px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-4deg);
  margin-bottom: 18px;
}
.how-illustration {
  margin: 6px 0 10px;
  border-radius: 22px; overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(1deg);
  background: var(--card);
}
.how-illustration img { display: block; width: 100%; height: auto; }
.how-illustration.sticker-strip { transform: rotate(-1.2deg); max-width: 760px; margin-left: auto; margin-right: auto; }

/* Example panel + stamp */
.example-head { font-size: 16px; }
.example-head strong { font-family: 'Sebenta', Georgia, serif; font-size: 20px; font-weight: 700; }
.example-panel, .panel {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 36px 38px;
  box-shadow: var(--shadow-big);
  position: relative;
}
.example-panel::before {
  content: "";
  position: absolute; inset: 12px;
  border: 2px dashed rgba(244, 57, 31, 0.4);
  border-radius: 14px;
  pointer-events: none;
}
.stamp {
  position: absolute; z-index: 2;
  top: -32px; right: -14px;
  width: 122px; height: 122px;
  border-radius: 50%;
  background: var(--red); color: #FFF3DC;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  font-size: 12.5px; font-weight: 800; line-height: 1.15;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 12px;
  --rot: 8deg;
  transform: rotate(var(--rot));
  animation: wobble 4s ease-in-out infinite;
}
.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }
.caption { font-size: 13.5px; color: var(--ink-faint); font-style: italic; margin-bottom: 18px !important; }
.example-cta { margin-top: 22px; }

/* Creator card */
.creator-card {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 30px 32px;
  box-shadow: var(--shadow-pop);
  transform: rotate(0.5deg);
}
.avatar-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 66px; height: 66px; flex: 0 0 auto;
  border-radius: 18px;
  background: var(--yellow); color: var(--ink);
  font-family: 'Sebenta', Georgia, serif; font-weight: 800; font-size: 22px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-6deg);
}

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.price-card, article {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; gap: 14px;
}
.price-card.featured {
  background: var(--yellow);
  box-shadow: var(--shadow-big);
  transform: rotate(-1deg);
}
.price-name { font-size: 22px; margin: 0; font-weight: 700; }
.price-figure { font-size: 42px; font-weight: 800; margin: 0; color: var(--ink); }
.price-note { font-size: 13.5px; color: var(--ink-soft); margin: 4px 0 0; }
.popular {
  background: var(--red); color: #FFF3DC;
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  --rot: 3deg;
  transform: rotate(var(--rot));
  animation: wobble 3.6s ease-in-out infinite;
}
.price-cta { margin-top: auto; }
.price-card label, .config-form label, .auth-card label, form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-soft);
}
input, select {
  font: inherit; color: var(--ink);
  background: #FFFBF2;
  border: 3px solid var(--ink);
  border-radius: 12px; padding: 10px 14px;
  font-weight: 400;
}
input:focus, select:focus { outline: 2px solid var(--red); outline-offset: 1px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 44px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-list details {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow-pop);
}
.faq-list details:nth-child(odd) { transform: rotate(0.6deg); }
.faq-list details:nth-child(even) { transform: rotate(-0.6deg); }
.faq-list summary {
  cursor: pointer; font-weight: 700; font-size: 16.5px;
  font-family: 'Sebenta', Georgia, serif;
  list-style: none;
}
.faq-list summary::before {
  content: "+";
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-right: 12px;
  border-radius: 9px; background: var(--yellow); color: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: 'Suisse', sans-serif; font-weight: 800;
}
.faq-list details[open] summary::before { content: "-"; background: var(--red); color: #FFF3DC; }
.faq-list details .sub { margin: 12px 0 2px 38px; font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--teal);
  background-image:
    radial-gradient(rgba(255,243,220,0.12) 1.5px, transparent 1.6px),
    radial-gradient(circle at 20% 15%, rgba(244,57,31,0.35), transparent 55%);
  background-size: 26px 26px, auto;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  color: #FFF3DC;
  padding: 84px 0;
  text-align: center;
}
.cta-h2 { font-size: clamp(32px, 5vw, 52px); margin: 0; font-weight: 700; color: #FFF3DC; letter-spacing: -0.015em; }
.cta-sub { color: rgba(255, 243, 220, 0.88); font-size: 16.5px; max-width: 54ch; margin: 0; }
.cta-hint { color: rgba(255, 243, 220, 0.65); font-size: 13px; margin: 6px 0 0; }
.cta-illustration { margin: 0; }
.cta-illustration.wild {
  width: min(300px, 72vw);
  border: 3px solid #FFF3DC;
  border-radius: 24px; overflow: hidden;
  box-shadow: 10px 10px 0 rgba(22, 16, 12, 0.6);
  transform: rotate(2.5deg);
  margin-bottom: 12px;
  background: var(--teal);
}
.cta-illustration.wild img { display: block; width: 100%; height: auto; }

/* ---------- Footer ---------- */
.land-footer {
  border-top: 3px solid var(--ink);
  padding: 40px 0;
  background: var(--paper-alt);
}

/* ---------- App: dashboard ---------- */
.page-app { padding-top: 44px; padding-bottom: 80px; }
.masthead {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap;
  padding-bottom: 26px; margin-bottom: 30px;
  border-bottom: 3px dashed var(--ink);
}
.context { font-size: 13px; color: var(--ink-faint); margin: 0 0 6px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.page-title { font-size: clamp(26px, 4vw, 38px); margin: 0; font-weight: 700; }
.masthead-cta { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  background: var(--paper-alt); color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.chip.success, .success { background: #D6EFDB; color: #1F6B3A; }
.chip.warning, .warning { background: #FFE8B8; color: #8A6210; }
.live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green);
}

.banner {
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 14px 20px; margin: 18px 0; font-size: 14.5px; font-weight: 600;
}

.empty {
  background: var(--card); border: 3px dashed var(--ink); border-radius: 22px;
  padding: 60px 40px; text-align: center;
}
.empty h2 { font-family: 'Sebenta', Georgia, serif; font-size: 24px; margin: 0 0 10px; font-weight: 700; }
.empty p { color: var(--ink-soft); margin: 0; }

/* Stepper */
.stepper {
  display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 34px;
  background: var(--card); border: 3px solid var(--ink); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-pop);
}
.stepper li {
  flex: 1; padding: 13px 10px; text-align: center;
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-faint);
  border-right: 3px solid var(--ink);
}
.stepper li:last-child { border-right: 0; }
.stepper li.done { color: #1F6B3A; }
.stepper li.done::after { content: " \2713"; }
.stepper li.current { color: var(--ink); background: var(--yellow); }

/* Panels and cards in app */
.panel, .drawer { margin-bottom: 26px; }
.panel-title, .section-title { font-family: 'Sebenta', Georgia, serif; font-size: 19px; font-weight: 700; margin: 0 0 16px; }
h3.section-title { margin-top: 36px; }

/* Run states */
.run-live {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 3px dashed var(--red); border-radius: 18px;
  padding: 24px 26px; margin-bottom: 26px;
}
.run-live strong { font-family: 'Sebenta', Georgia, serif; font-size: 17px; }
.live-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--red); flex: 0 0 auto; margin-top: 7px;
  animation: twinpulse 1.3s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(244, 57, 31, 0.4);
}
@keyframes twinpulse {
  0% { box-shadow: 0 0 0 0 rgba(244, 57, 31, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(244, 57, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 57, 31, 0); }
}

.run-output {
  background: var(--card); border: 3px solid var(--ink); border-radius: 18px;
  padding: 28px 32px; box-shadow: var(--shadow-pop); margin-bottom: 20px;
  font-size: 15.5px; line-height: 1.7;
}
.run-output h3, .run-output h4 { font-family: 'Sebenta', Georgia, serif; font-weight: 700; color: var(--ink); margin: 20px 0 10px; }
.run-output h3:first-child, .run-output h4:first-child { margin-top: 0; }
.run-output ol, .run-output ul { padding-left: 22px; }
.run-output li { margin-bottom: 10px; }
.run-output table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.run-output th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); padding: 8px 10px; border-bottom: 3px solid var(--ink); }
.run-output td { padding: 10px; border-bottom: 1.5px solid #E8D9B8; }

.attachment {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 12px 18px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 700;
}
.attachment:hover { border-color: var(--ink); color: var(--red); transform: rotate(-0.5deg); }
.grow { flex: 1; }

/* Metrics dl */
dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 0 0 22px; }
dl dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-faint); font-weight: 700; }
dl dd {
  margin: 4px 0 0; font-family: 'Sebenta', Georgia, serif; font-size: 28px; font-weight: 800;
  background: var(--card); border: 3px solid var(--ink); border-radius: 14px;
  padding: 12px 16px; box-shadow: 4px 4px 0 var(--ink);
}

/* ---------- Forms & modals ---------- */
.config-form, .split-form { display: flex; flex-direction: column; gap: 18px; }
.form-section { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 3px dashed var(--ink); border-radius: 16px; }
.form-section-title { font-family: 'Sebenta', Georgia, serif; font-weight: 700; font-size: 16px; margin: 0; }
.field-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.conn-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1.5px dashed #E8D9B8; }
.conn-row:last-child { border-bottom: 0; }
.check-row { flex-direction: row !important; align-items: center; gap: 10px; }

.modal { display: none; }
.modal:target { display: block; position: fixed; inset: 0; z-index: 60; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(22, 16, 12, 0.5); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; z-index: 1;
  max-width: 640px; margin: 8vh auto 0;
  background: var(--paper); border: 3px solid var(--ink);
  border-radius: 24px; box-shadow: 14px 14px 0 rgba(22, 16, 12, 0.55);
  max-height: 84vh; overflow: auto;
}
.modal-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 24px 28px 16px; border-bottom: 3px dashed var(--ink);
  position: sticky; top: 0; background: var(--paper);
}
.modal-title { font-family: 'Sebenta', Georgia, serif; font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.modal-side { display: flex; align-items: center; gap: 12px; }
.modal-x {
  font-size: 24px; line-height: 1; text-decoration: none; color: var(--ink);
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 3px solid var(--ink); background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
}
.modal-x:hover { background: var(--red); color: #FFF3DC; }
.modal-body { padding: 22px 28px 28px; }

/* ---------- Auth ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 70px 24px 90px; }
.auth-card {
  width: min(430px, 100%);
  background: var(--card); border: 3px solid var(--ink); border-radius: 24px;
  padding: 38px 36px; box-shadow: var(--shadow-big);
  display: flex; flex-direction: column; gap: 18px;
  transform: rotate(-0.6deg);
}
.auth-title { font-size: 26px; margin: 0; font-weight: 700; }
.auth-card .hint a { color: var(--red); }

/* ---------- Misc ---------- */
.muted { color: var(--ink-faint); }
.aside { font-size: 13.5px; color: var(--ink-faint); }
.flush { margin-top: 0; }
.inverse { color: #FFF3DC; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cards-3 { grid-template-columns: 1fr; }
  .cards-3 > :nth-child(n) { transform: none; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .land-section { padding: 56px 0; }
  .land-hero { padding: 44px 24px 40px; }
  .hero-art img { transform: rotate(-1deg); }
  .sticker { display: none; }
  .stamp { width: 96px; height: 96px; font-size: 11px; top: -22px; right: -6px; }
  .example-panel, .panel, .creator-card { padding: 24px 22px; }
  .creator-card { flex-direction: column; transform: none; }
  .stepper { flex-direction: column; }
  .stepper li { border-right: 0; border-bottom: 3px solid var(--ink); }
  .stepper li:last-child { border-bottom: 0; }
  .nav { flex-wrap: wrap; gap: 14px; }
  .nav nav { order: 3; width: 100%; justify-content: center; }
  .masthead { flex-direction: column; }
  .field-grid-2 { grid-template-columns: 1fr; }
  .cta-illustration.wild { width: 220px; }
  .marker { white-space: normal; }
}
