/* =========================================================
   SIANKO — Design System
   ========================================================= */
:root {
  /* Brand */
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --green-50:  #f0fdf4;

  /* Accents */
  --purple-500: #a78bfa;
  --purple-100: #ede9fe;
  --yellow-500: #facc15;
  --yellow-100: #fef9c3;
  --pink-400:   #f472b6;
  --pink-100:   #fce7f3;
  --blue-500:   #60a5fa;
  --blue-100:   #dbeafe;

  /* Neutrals */
  --ink-900: #111827;
  --ink-700: #374151;
  --ink-500: #6b7280;
  --ink-300: #d1d5db;
  --ink-200: #e5e7eb;
  --ink-100: #f3f4f6;
  --cream:   #fefdf8;
  --bg:      #ffffff;

  /* Radius / shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(17,24,39,.06), 0 1px 3px rgba(17,24,39,.04);
  --shadow-md: 0 4px 14px rgba(17,24,39,.06), 0 2px 6px rgba(17,24,39,.04);
  --shadow-lg: 0 18px 40px rgba(17,24,39,.08), 0 6px 14px rgba(17,24,39,.04);

  /* Typography */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Container */
  --container: 1180px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
.grid-4.center > div, .grid-3.center > div { text-align: center; }
.grid-4.center > div .r-ico, .grid-3.center > div .r-ico { margin-left: auto; margin-right: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
h1,h2,h3,h4,h5 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.02em; }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
p  { margin: 0 0 .6em; color: var(--ink-700); }
small, .small { font-size: 13px; color: var(--ink-500); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 6px 14px rgba(22,163,74,.25); }
.btn-primary:hover { background: var(--green-700); }
.btn-yellow { background: var(--yellow-500); color: #1a1208; }
.btn-yellow:hover { filter: brightness(.96); }
.btn-ghost { background: #fff; color: var(--ink-900); border: 1px solid var(--ink-200); }
.btn-ghost:hover { background: var(--ink-100); }
.btn-link { padding: 0; background: none; color: var(--green-600); font-weight: 600; }
.btn-lg { padding: 16px 26px; font-size: 16px; }

/* ----- Top nav ----- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(17,24,39,.06);
}
.nav-row {
  display: flex; align-items: center; gap: 28px;
  height: 76px;
}
.nav-logo {
  display: inline-flex; align-items: center;
  font-weight: 800; color: var(--green-600);
  font-size: 26px; letter-spacing: -.02em;
  font-family: var(--font);
}
.nav-logo-mark { display: none; }
.nav-links { display: flex; gap: 28px; margin-left: 28px; flex: 1; }
.nav-links a {
  font-size: 15px; color: var(--ink-700); font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink-900); }
.nav-links a.active { color: var(--green-700); border-color: var(--green-600); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; padding: 10px; border-radius: 10px; border: 1px solid var(--ink-200); }
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ----- Sections ----- */
section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.eyebrow {
  display: inline-block;
  background: var(--green-100); color: var(--green-700);
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 12px; letter-spacing: .08em; font-weight: 700; text-transform: uppercase;
}

/* ----- Hero common ----- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center;
  padding: 56px 0 24px;
}
.hero h1 .accent-green { color: var(--green-600); }
.hero h1 .accent-purple { color: #6d28d9; border-bottom: 4px solid var(--purple-500); padding-bottom: 2px; }
.hero p.lead { font-size: 18px; color: var(--ink-700); max-width: 480px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-art {
  position: relative;
  aspect-ratio: 1/1;
  display: grid; place-items: center;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 32px 0; }
  .hero-art { aspect-ratio: 4/3; }
}

/* ----- Mascot placeholder ----- */
.mascot {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 20%, rgba(250,204,21,.18), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(167,139,250,.18), transparent 55%),
    repeating-linear-gradient(135deg, #f7f6f1 0 14px, #f1efe7 14px 28px);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
}
.mascot::after {
  content: attr(data-label);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: var(--ink-500);
  background: rgba(255,255,255,.85);
  padding: 8px 12px; border-radius: 8px; letter-spacing: .02em;
}
.mascot.has-img { background: transparent; border-radius: 0; overflow: visible; }
.mascot.has-img::after { content: none; }
.mascot.has-img > img.mascot-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 12px 24px rgba(15, 60, 28, .12));
}
.mascot.has-img .piggy { display: none; }
.mascot.with-bubble .speech {
  position: absolute; right: 14px; top: 18px;
  background: var(--purple-100); color: #4c1d95;
  padding: 12px 16px; border-radius: 18px;
  font-size: 14px; font-weight: 600; line-height: 1.35;
  max-width: 180px; box-shadow: var(--shadow-sm);
}
.mascot .piggy {
  position: absolute; right: 22px; bottom: 16px;
  width: 84px; height: 64px; border-radius: 40px 40px 28px 28px;
  background: var(--pink-400);
  box-shadow: inset -10px -8px 0 rgba(0,0,0,.06);
}
.mascot .piggy::before {
  content: ""; position: absolute; left: -8px; top: 16px;
  width: 24px; height: 22px; border-radius: 12px; background: var(--pink-400);
}
.mascot .piggy::after {
  content: ""; position: absolute; left: 6px; bottom: -8px;
  width: 12px; height: 14px; border-radius: 4px; background: var(--pink-400);
  box-shadow: 56px 0 0 var(--pink-400);
}
.mascot .doodles { position: absolute; inset: 0; pointer-events: none; }

/* ----- Feature row ----- */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: var(--green-50);
  border-radius: var(--r-lg);
  padding: 28px 8px;
}
.feature {
  text-align: center; padding: 8px 16px;
  border-right: 1px solid rgba(22,163,74,.12);
}
.feature:last-child { border-right: 0; }
.feature .ico {
  width: 56px; height: 56px; border-radius: 16px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow-sm);
  font-size: 28px;
}
.feature h4 { font-size: 18px; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--ink-500); margin: 0; }
@media (max-width: 760px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature { border-right: 0; }
}

/* ----- Generic card ----- */
.card {
  background: #fff; border: 1px solid var(--ink-200);
  border-radius: var(--r-lg); padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card-soft {
  background: var(--cream); border: 0;
  border-radius: var(--r-lg); padding: 28px;
}
.card-green { background: var(--green-50); border: 0; }
.card-purple { background: var(--purple-100); border: 0; }
.card-yellow { background: var(--yellow-100); border: 0; }
.card-pink   { background: var(--pink-100); border: 0; }
.card-blue   { background: var(--blue-100); border: 0; }

/* ----- Phone frame ----- */
.phone {
  width: 280px; aspect-ratio: 280/580;
  background: #111;
  border-radius: 38px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(17,24,39,.18), 0 8px 16px rgba(17,24,39,.10);
  position: relative;
}
.phone-screen {
  background: #fff; height: 100%; border-radius: 28px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px 4px; font-size: 12px; color: var(--ink-700);
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 22px; background: #111; border-radius: 14px; z-index: 2;
}
.phone-content { padding: 14px 16px; flex: 1; overflow: hidden; font-size: 14px; }
.phone-tabbar {
  display: flex; justify-content: space-around; padding: 10px 6px 14px;
  border-top: 1px solid var(--ink-100); font-size: 11px; color: var(--ink-500);
}
.phone-tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.phone-tabbar .tab.active { color: var(--green-600); font-weight: 600; }

/* ----- CTA banner ----- */
.cta-banner {
  background: var(--cream);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  display: grid; grid-template-columns: 1fr auto auto; gap: 18px;
  align-items: center;
  margin: 24px 0 56px;
}
.cta-banner-green {
  background: var(--green-600); color: #fff;
}
.cta-banner-green h3 { color: #fff; }
.cta-banner-green p { color: rgba(255,255,255,.85); }
@media (max-width: 760px) {
  .cta-banner { grid-template-columns: 1fr; }
}

/* ----- Footer ----- */
.foot {
  background: var(--ink-900); color: #d1d5db;
  padding: 56px 0 32px;
  margin-top: 40px;
}
.foot-cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.foot a { color: #d1d5db; display: block; padding: 4px 0; font-size: 14px; }
.foot a:hover { color: #fff; }
.foot h5 { color: #fff; font-size: 14px; margin-bottom: 10px; letter-spacing: .04em; text-transform: uppercase; }
.foot-bottom {
  border-top: 1px solid #1f2937; margin-top: 32px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: #9ca3af;
}
@media (max-width: 760px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

/* ----- Utility ----- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; } .mb-4 { margin-bottom: 32px; }

/* ----- Check list ----- */
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checklist li {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px; color: var(--ink-700); font-weight: 500;
}
.checklist li::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-600);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat; background-position: center;
  flex-shrink: 0;
}

/* ----- Steps ----- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  position: relative;
}
.steps .step {
  background: #fff; border-radius: var(--r-lg); padding: 22px;
  border: 1px solid var(--ink-200);
  position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-600); color: #fff; font-weight: 700; font-size: 14px;
  margin-bottom: 12px;
}
.step-num.purple { background: var(--purple-500); }
.step-num.yellow { background: var(--yellow-500); color: #1a1208; }
.step-num.pink   { background: var(--pink-400); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }

/* ----- Badge / chip ----- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
  background: var(--ink-100); color: var(--ink-700);
}
.chip-green { background: var(--green-100); color: var(--green-700); }
.chip-yellow { background: var(--yellow-100); color: #854d0e; }
.chip-purple { background: var(--purple-100); color: #5b21b6; }

/* ----- Round icon ----- */
.r-ico {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; font-size: 28px;
  margin-left: auto; margin-right: auto;
  margin-bottom: 12px;
}
.r-ico-green { background: var(--green-100); color: var(--green-700); }
.r-ico-purple { background: var(--purple-100); color: #6d28d9; }
.r-ico-yellow { background: var(--yellow-100); color: #854d0e; }
.r-ico-pink { background: var(--pink-100); color: #be185d; }
.r-ico-blue { background: var(--blue-100); color: #1d4ed8; }

/* ----- Doodles (decorative SVG dots) ----- */
.doodle-zigzag, .doodle-star, .doodle-heart { position: absolute; }

/* ----- Hero patches: scribbles around mascot ----- */
.scribble { position: absolute; pointer-events: none; }

/* ----- Responsive tweaks ----- */
@media (max-width: 760px) {
  section { padding: 36px 0; }
  .hero h1 { font-size: 36px; }
}


/* ----- Mobile responsive fixes ----- */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .hero-art { aspect-ratio: 1/1; max-width: 100%; }
  .mascot.has-img > img.mascot-img { object-position: center center; }
  .nav { gap: 14px; }
  .nav-links { display: none; }
  .hero { gap: 24px; }
  h1 { font-size: clamp(32px, 9vw, 44px); }
  h2 { font-size: clamp(24px, 6vw, 32px); }
  .btn { padding: 12px 18px; font-size: 14px; }
  .btn-lg { padding: 14px 22px; font-size: 15px; }
  .hero-cta { flex-wrap: wrap; gap: 10px; }
  .grid-2 { gap: 20px; }
  .card-soft { padding: 20px; }
  table, pre { max-width: 100%; overflow-x: auto; }
}
.hero-art { overflow: visible; max-width: 100%; }
