/* ROUTINI brand tokens v1.0, copied from routini-studio/.claude/skills/routini-brand/tokens.css.
   The only place colour values live; everything below uses the vars. */
:root {
  --sage-deep: #64796B;  /* headings, buttons */
  --sage-light: #98ACA0; /* rules, eyebrows (decorative only) */
  --sage-pale: #CBD6CE;
  --sand: #E7DACB;       /* highlight fills */
  --offwhite: #FAF8F5;   /* ground */
  --surface: #FFFFFF;
  --ink: #1E211F;        /* body text */
  --muted: #4A514C;
  --border: #EAE5DC;
  --divider: #E4E0D8;
  --shade: rgba(30,33,31,0.08);
  --radius: 4px;
  --shadow: 0 10px 40px var(--shade);
  --ease: cubic-bezier(0.33, 1, 0.68, 1);

  --display: 'Bodoni Moda', 'Didot', serif;
  --body: 'Figtree', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
[dir="rtl"] {
  --display: 'Amiri', 'Noto Naskh Arabic', serif;
  --body: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--offwhite); color: var(--ink); font: 400 17px/1.7 var(--body); }
[dir="rtl"] body { font-size: 18px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sage-deep); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--sage-deep); margin: 0; line-height: 1.2; }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 22px; }
.eyebrow { font: 400 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sage-light); display: block; margin-bottom: 12px; }
[dir="rtl"] .eyebrow { font: 500 14px/1 var(--body); letter-spacing: 0; text-transform: none; }
.muted { color: var(--muted); }

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px; }
.bar .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.bar .brand img:first-child { height: 34px; width: auto; }
.bar .brand img:last-child { height: 24px; width: auto; }
.lang { background: none; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--muted); font: 500 14px/1 var(--body); }
.lang:hover { border-color: var(--sage-light); color: var(--sage-deep); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 26px; border-radius: var(--radius);
  background: var(--sage-deep); color: var(--offwhite); text-decoration: none; font-weight: 500; border: 1px solid var(--sage-deep);
  transition: opacity .2s var(--ease); }
.btn:hover { opacity: .9; }
.btn.ghost { background: transparent; color: var(--sage-deep); }
.btn svg { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--sage-light); outline-offset: 3px; }

/* hero */
.hero { text-align: center; padding: 48px 0 72px; }
.hero .lockup { width: min(240px, 60vw); margin: 0 auto 28px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); max-width: 16ch; margin: 0 auto; }
.hero .tag { font: 400 14px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--sage-light); margin: 0 0 18px; }
[dir="rtl"] .hero .tag { font: 500 17px/1.4 var(--body); letter-spacing: 0; text-transform: none; }
.hero .lead { max-width: 46ch; margin: 18px auto 30px; color: var(--muted); }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

section { padding: 72px 0; }
section.wrap { padding: 72px 16px; }
.band { background: var(--sand); }
.rule { width: 48px; height: 1px; background: var(--sage-light); border: 0; margin: 18px 0 22px; }
.center { text-align: center; }
.center .rule { margin-inline: auto; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about p { margin: 0 0 14px; }
.facts { display: grid; gap: 14px; }
.fact { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; }
.fact .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-deep); margin-top: 11px; flex: none; }
.fact b { display: block; font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.chip { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 10px 22px; font-weight: 500; color: var(--ink); }
.note { font-size: 15px; margin-top: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 400 13px/1 var(--mono); letter-spacing: .16em; color: var(--sage-light); margin-bottom: 16px; }
.step p { margin: 8px 0 0; color: var(--muted); }

.contact .card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 28px; text-align: center; max-width: 620px; margin: 0 auto; }
.contact .card p { color: var(--muted); margin: 12px auto 26px; max-width: 42ch; }

footer { border-top: 1px solid var(--divider); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
footer img { height: 22px; width: auto; }
footer nav { display: flex; gap: 18px; align-items: center; }

/* privacy page */
.doc { max-width: 720px; padding: 24px 16px 72px; }
.doc section { padding: 0; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); }
.doc h2 { font-size: 22px; margin-top: 30px; }
.doc li, .doc p { color: var(--ink); }

.reveal { animation: rise .7s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: .08s; } .reveal:nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .about, .steps { grid-template-columns: 1fr; }
  .about { gap: 28px; }
  section { padding: 56px 0; }
  section.wrap { padding: 56px 16px; }
  .hero { padding: 24px 0 56px; }
  .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
