/* ============================================================
   MyTokit — hand-written stylesheet (no frameworks)
   Mobile-first. Palette:
   pink #f43f5e / #ec4899  →  teal #14b8a6
   navy #0f172a · background #f6f8fb · card #ffffff
   ============================================================ */
:root {
  --pink: #f43f5e;
  --pink-2: #ec4899;
  --teal: #14b8a6;
  --navy: #0f172a;
  --muted: #64748b;
  --bg: #f6f8fb;
  --card: #ffffff;
  --line: #e6ebf2;
  --grad: linear-gradient(120deg, #f43f5e 0%, #ec4899 55%, #14b8a6 130%);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, .07);
  --radius: 20px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: #334155;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; word-break: break-word; }
p { margin: 0 0 1em; }
a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; }
svg { vertical-align: middle; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy);
  color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.35rem; color: var(--navy); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; min-width: 34px; border-radius: 11px; background: var(--grad);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.15rem; box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links > a, .drop-btn {
  padding: 9px 14px; border-radius: 12px; color: #334155; font-weight: 600; font-size: .95rem;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-links > a:hover, .drop-btn:hover { background: #f1f5f9; text-decoration: none; color: var(--navy); }
.nav-links a.active, .drop-btn.active { color: var(--pink); }
.caret {
  display: inline-block; width: 8px; height: 8px; margin-left: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.dropdown { position: relative; }
.drop-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 8px; z-index: 120;
}
.dropdown.open .drop-menu { display: block; }
.drop-menu a { display: block; padding: 10px 12px; border-radius: 10px; color: #334155; font-weight: 500; font-size: .93rem; }
.drop-menu a:hover { background: #fdf2f4; color: var(--pink); text-decoration: none; }
.hamburger {
  display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 10px; cursor: pointer;
}
.hamburger span { width: 24px; height: 2.6px; border-radius: 3px; background: var(--navy); display: block; }

/* ---------- Mobile drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 150;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); z-index: 160;
  background: #fff; box-shadow: var(--shadow); padding: 18px;
  transform: translateX(105%); transition: transform .28s ease; overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-close { background: #f1f5f9; border: 0; border-radius: 50%; width: 38px; height: 38px; font-size: 1.4rem; cursor: pointer; color: var(--navy); }
.drawer-nav a, .drawer-acc {
  display: block; width: 100%; text-align: left; padding: 12px 10px; border-radius: 12px;
  color: var(--navy); font-weight: 600; background: none; border: 0; font-size: 1rem; cursor: pointer; font-family: inherit;
}
.drawer-nav a:hover, .drawer-acc:hover { background: #f8fafc; text-decoration: none; }
.drawer-sub { padding-left: 12px; }
.drawer-sub a { font-weight: 500; color: #475569; font-size: .95rem; }
.drawer-note { margin-top: 18px; font-size: .85rem; color: var(--muted); background: #f8fafc; border-radius: 12px; padding: 12px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--grad); color: #fff; border-radius: 26px;
  padding: 44px 26px; margin: 22px 0 30px; text-align: center;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 200px at 80% -40px, rgba(255,255,255,.25), transparent 60%);
}
.hero h1 { color: #fff; font-size: 2rem; margin-bottom: .4em; position: relative; z-index: 1; }
.hero p.lead { font-size: 1.08rem; opacity: .95; max-width: 640px; margin: 0 auto 1.2em; position: relative; z-index: 1; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 1.4em; position: relative; z-index: 1; }
.pill {
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; border-radius: 999px; padding: 7px 16px; font-size: .88rem; font-weight: 600;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; font-family: inherit;
  font-weight: 700; font-size: 1rem; padding: 13px 26px; border-radius: 999px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(244, 63, 94, .35); }
.btn-white { background: #fff; color: var(--navy); }
.btn-ghost { background: #fff; color: var(--pink); border: 2px solid #fecdd3; }
.btn-ghost:hover { border-color: var(--pink); }
.btn-block { width: 100%; }
.copy-btn {
  background: #f1f5f9; border: 1px solid var(--line); color: var(--navy);
  border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 700; cursor: pointer; font-family: inherit;
}
.copy-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Sections & cards ---------- */
.section { padding: 26px 0; }
.section-title { font-size: 1.55rem; text-align: center; margin-bottom: .35em; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 1.8em; }
.tool-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.tool-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 26px 22px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tool-card h3 { margin: 0; font-size: 1.15rem; }
.tool-card p { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.tool-card .go { font-weight: 700; color: var(--pink); }
.tool-icon {
  width: 52px; height: 52px; min-width: 52px; border-radius: 16px; background: linear-gradient(135deg, #fff1f2, #f0fdfa);
  border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--pink);
  flex-shrink: 0;
}
.tool-icon svg { width: 26px; height: 26px; flex-shrink: 0; }

/* Steps strip */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 8px; }
.step {
  background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); text-align: center;
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff;
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px;
  flex-shrink: 0;
}
.step h3 { font-size: 1.05rem; margin-bottom: .3em; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Checklist */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 28px 24px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .tick {
  flex: none; width: 30px; height: 30px; min-width: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #14b8a6, #0d9488); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
  flex-shrink: 0;
}
.check-list strong { color: var(--navy); }

/* Guides */
.guide-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.guide-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.guide-card h3 { margin: 0; font-size: 1.1rem; }
.guide-card p { color: var(--muted); font-size: .93rem; margin: 0; flex: 1; }
.guide-card .go { font-weight: 700; color: var(--teal); }

/* ---------- Accordion / FAQ ---------- */
.acc { border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 12px; overflow: hidden; }
.acc-head {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 17px 18px; font-size: 1rem; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: inherit;
}
.acc-head .pm { flex: none; width: 28px; height: 28px; min-width: 28px; border-radius: 50%; background: #f1f5f9; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--pink); flex-shrink: 0; }
.acc-body { display: none; padding: 0 18px 18px; color: #475569; }
.acc.open .acc-body { display: block; }
.acc.open .pm { background: var(--pink); color: #fff; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 28px 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 7px; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="number"],
.field select, .field textarea {
  width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 13px 15px;
  font-size: 1rem; font-family: inherit; color: var(--navy); background: #fbfdff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--pink-2); box-shadow: 0 0 0 3px rgba(236, 72, 153, .15); background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; gap: 0 18px; grid-template-columns: 1fr; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Results ---------- */
.result-box { margin-top: 26px; }
.hash-group { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.hash-group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.hash-group h3 { margin: 0; font-size: 1.05rem; }
.diff { font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 4px 12px; }
.diff.high { background: #fee2e2; color: #b91c1c; }
.diff.med { background: #fef3c7; color: #b45309; }
.diff.low { background: #d1fae5; color: #047857; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: .9rem; color: var(--navy); cursor: pointer; font-weight: 600;
}
.tag:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.caption-out, .bio-out, .user-out {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.caption-out p, .bio-out p { margin: 0 0 10px; color: var(--navy); white-space: pre-wrap; }
.out-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.char-count { font-size: .82rem; color: var(--muted); }
.stat-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-align: center; box-shadow: var(--shadow-sm); }
.stat .num { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.stat .lbl { font-size: .85rem; color: var(--muted); }
.stat.hero-stat { background: var(--grad); border: 0; }
.stat.hero-stat .num, .stat.hero-stat .lbl { color: #fff; }
.math-steps { background: #f8fafc; border: 1px dashed var(--line); border-radius: 14px; padding: 18px; font-size: .92rem; margin-top: 16px; }
.math-steps ol { margin: 0; padding-left: 20px; }
.math-steps li { margin-bottom: 8px; }
.alert { border-radius: 14px; padding: 15px 18px; margin-bottom: 18px; font-size: .95rem; }
.alert.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert.warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.tip-box { background: linear-gradient(135deg, #fff7ed, #fdf2f4); border: 1px solid #fed7aa; border-radius: 16px; padding: 20px; margin-top: 24px; }
.tip-box h3 { margin-top: 0; font-size: 1.05rem; }

/* ---------- Article / legal prose ---------- */
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px 24px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; padding-top: .4em; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: #f8fafc; color: var(--navy); }
.breadcrumb { font-size: .88rem; color: var(--muted); margin: 18px 0 6px; }
.quick-answer {
  background: #f0fdfa; border: 1px solid #99f6e4; border-left: 4px solid #14b8a6;
  border-radius: 14px; padding: 15px 18px; margin: 20px 0 26px;
  font-size: .97rem; color: var(--navy);
}
.quick-answer strong { color: #0f766e; }
.page-hero { text-align: center; padding: 34px 0 8px; }
.page-hero h1 { font-size: 1.9rem; margin-bottom: .35em; }
.page-hero p { color: var(--muted); max-width: 680px; margin: 0 auto; }

/* CTA banner */
.cta-banner { background: var(--navy); color: #fff; border-radius: 26px; padding: 40px 26px; text-align: center; margin: 34px 0; }
.cta-banner h2 { color: #fff; }
.cta-banner p { opacity: .85; max-width: 560px; margin: 0 auto 1.3em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cbd5e1; margin-top: 40px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; padding: 44px 18px 30px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: #cbd5e1; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-col .logo-text { color: #fff; }
.footer-disclaimer { font-size: .85rem; color: #94a3b8; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.social-btn {
  width: 42px; height: 42px; min-width: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #334155; color: #cbd5e1; background: transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  flex-shrink: 0;
}
.social-btn svg { width: 19px; height: 19px; max-width: 19px; max-height: 19px; flex-shrink: 0; }
.social-btn:hover, .social-btn:focus-visible {
  background: var(--grad); border-color: transparent; color: #fff;
  transform: translateY(-2px); text-decoration: none;
}
.social-note { font-size: .85rem; color: #94a3b8; margin: 0; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 18px 0; text-align: center; font-size: .87rem; color: #94a3b8; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.5rem; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .nav-links { display: inline-flex; }
  .hamburger { display: none; }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .prose { padding: 40px 44px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
