/* Matches afsana.ifaiz.in and the app (ui/theme): Slate surfaces, Emerald accent, Fraunces + Geist. */
@font-face { font-family: Fraunces; src: url(/legal/fraunces.woff2) format("woff2"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: Geist; src: url(/legal/geist-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(/legal/geist-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url(/legal/geist-600.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #020617;
  --surface: #0F172A;
  --high: #334155;
  --line: #1E293B;
  --text: #F8FAFC;
  --text-2: #CBD5E1;
  --muted: #94A3B8;
  --accent: #10B981;
  --accent-light: #34D399;
  --edge: linear-gradient(135deg, #4B5565 0%, #1E293B 34%, #1E293B 66%, #353F50 100%);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text-2); font: 400 16.5px/1.7 Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-light); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter); background: rgb(2 6 23 / .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: Fraunces, Georgia, serif; font-size: 22px; }
.brand img { height: 26px; width: auto; }

/* The app's outlined accent button with a solid lip. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; margin: 8px 0 18px;
  border-radius: 14px; border: 2px solid var(--accent-light); box-shadow: 0 4px 0 var(--accent); background: #0B1120;
  color: var(--accent-light); font-weight: 600; text-decoration: none; transition: transform .12s, box-shadow .12s;
}
.btn:hover { color: var(--accent-light); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent); }
.btn-sm { min-height: 38px; padding: 0 16px; margin: 0; font-size: 14px; border-radius: 12px; box-shadow: 0 3px 0 var(--accent); }

main { width: min(720px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 36px 0 80px; }

/* Segmented control, as in the app's sheets. */
.seg { display: flex; gap: 4px; padding: 4px; margin-bottom: 40px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.seg a { flex: 1; display: grid; place-items: center; min-height: 38px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none; }
.seg a:hover { color: var(--text); }
.seg a[aria-current="page"] { background: var(--high); color: var(--text); }

h1, h2 { font-family: Fraunces, Georgia, serif; font-weight: 400; color: var(--text); letter-spacing: -.015em; }
h1 { margin: 0 0 8px; font-size: clamp(36px, 6vw, 52px); line-height: 1.05; }
h2 { margin: 44px 0 10px; font-size: 25px; line-height: 1.2; }
p, li { margin: 0 0 12px; }
strong { color: var(--text); font-weight: 600; }
.meta { color: var(--muted); font-size: 14px; }

.summary {
  margin: 28px 0 8px; padding: 20px 22px; border-radius: 20px; color: var(--text-2);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--edge) border-box; border: 1px solid transparent;
}

ul { padding-left: 0; list-style: none; }
ul li { position: relative; padding-left: 22px; }
ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Numbered steps, like a settings walkthrough. */
ol { counter-reset: step; padding: 0; list-style: none; display: grid; gap: 10px; margin: 0 0 16px; }
ol li {
  counter-increment: step; position: relative; margin: 0; padding: 12px 16px 12px 58px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
ol li::before {
  content: counter(step); position: absolute; left: 16px; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 14px; font-weight: 600; color: var(--accent-light); background: rgb(16 185 129 / .12); border: 1px solid rgb(16 185 129 / .4);
}

.footer {
  width: min(720px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 24px 0 40px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; font-size: 14px;
}
.footer .brand { font-size: 18px; }
.footer .brand img { height: 22px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--text); }

@media (max-width: 520px) {
  .topbar .btn-sm { padding: 0 12px; }
  .seg a { font-size: 14px; }
}
