/* TinyLayers theme tokens — mirrors src/theme */
:root {
  --bg: #FAF6EF;
  --card: #FFFFFF;
  --ink: #2B2823;
  --ink-muted: #756E62;
  --ink-soft: #6B6355;
  --border: #EBE3D5;
  --sand: #F1EADD;
  --blue: #567F97;
  --blue-deep: #3D6478;
  --blue-tint: #E4EEF3;
  --green: #587D6A;
  --green-deep: #3E5C4D;
  --green-tint: #E9F0E9;
  --gold: #C99048;
  --night: #1E2A36;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 0;
}
header .mark { width: 34px; height: 34px; }
header .name { font-weight: 800; font-size: 18px; letter-spacing: -0.2px; }
header nav { margin-left: auto; display: flex; gap: 22px; }
header nav a { color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 14.5px; }
header nav a:hover { color: var(--blue-deep); }

.hero { text-align: center; padding: 64px 0 48px; }
.hero .logo { width: 120px; height: 120px; margin: 0 auto 8px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--blue-deep);
}
.hero p.sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 18px auto 0;
}
.badge {
  display: inline-block;
  margin-top: 32px;
  background: var(--night);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
}
.badge span { opacity: 0.65; font-weight: 600; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 24px 0 56px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 24px;
}
.card .dot { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 17px; }
.card:nth-child(1) .dot { background: var(--green-tint); }
.card:nth-child(2) .dot { background: var(--blue-tint); }
.card:nth-child(3) .dot { background: var(--sand); }
.card h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.card p { font-size: 14.5px; color: var(--ink-muted); }

.safety {
  background: var(--green-tint);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 28px;
  margin-bottom: 64px;
  font-size: 14.5px;
  color: var(--green-deep);
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: var(--ink-muted);
  font-size: 13.5px;
}
footer a { color: var(--ink-muted); }
footer .spacer { flex: 1; }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 24px 24px 80px; }
.legal h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; margin: 24px 0 8px; color: var(--blue-deep); }
.legal .updated { color: var(--ink-muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; font-weight: 800; margin: 32px 0 8px; }
.legal p { color: var(--ink-soft); margin-bottom: 12px; }
.legal .placeholder {
  background: var(--sand);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--ink-muted);
  font-size: 14.5px;
}

/* Brand logo draw-in animation */
.arc { stroke-dasharray: 58; stroke-dashoffset: 58; opacity: 0; }
.arc.outer  { animation: arcOuter 2s ease-out forwards; }
.arc.mid    { stroke-dasharray: 35; stroke-dashoffset: 35; animation: arcMid 2s ease-out forwards; }
.arc.inner  { stroke-dasharray: 13; stroke-dashoffset: 13; animation: arcInner 2s ease-out forwards; }
.baby-dot   { opacity: 0; animation: dot 2s ease-out forwards; }

@keyframes arcOuter {
  0%   { stroke-dashoffset: 58; opacity: 0; }
  8%   { stroke-dashoffset: 58; opacity: 1; }
  30%, 100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes arcMid {
  0%, 12% { stroke-dashoffset: 35; opacity: 0; }
  20%  { stroke-dashoffset: 35; opacity: 1; }
  42%, 100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes arcInner {
  0%, 24% { stroke-dashoffset: 13; opacity: 0; }
  32%  { stroke-dashoffset: 13; opacity: 1; }
  50%, 100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes dot {
  0%, 48% { opacity: 0; transform: translateY(-7px); }
  60%     { opacity: 1; transform: translateY(1.5px); }
  68%, 100% { opacity: 1; transform: translateY(0); }
}
