/* Dhairya website: one stylesheet for every page. Phone first; light and
   dark follow the device. */
:root {
  --brand: #1a237e;
  --brand-soft: #e8eaf6;
  --accent: #00c853;
  --text: #1b1c24;
  --muted: #5a5f73;
  --bg: #ffffff;
  --surface: #f5f6fb;
  --line: #dfe2ee;
  --warn-bg: #fff4e0;
  --warn-text: #7a4b00;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #9fa8ff;
    --brand-soft: #23264a;
    --accent: #00e676;
    --text: #eceef7;
    --muted: #a5aac2;
    --bg: #11121a;
    --surface: #1a1c27;
    --line: #2c2f40;
    --warn-bg: #3a2c12;
    --warn-text: #ffd38a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--brand); }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header */
header.site { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 20px; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
nav.main { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
nav.main a { text-decoration: none; color: var(--muted); padding: 8px 10px; border-radius: 8px; font-size: 15px; }
nav.main a[aria-current="page"], nav.main a:hover { color: var(--brand); background: var(--brand-soft); }

/* Sections */
.hero { padding: 48px 0 32px; }
.hero h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.5px; }
.hero p.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 640px; margin: 0 0 24px; }
.meaning { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
section { padding: 28px 0; }
h2 { font-size: clamp(22px, 4vw, 30px); margin: 0 0 16px; letter-spacing: -0.3px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--brand);
}
.btn.primary { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #11121a; } }
.btn.secondary { color: var(--brand); background: transparent; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Pricing */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); }
.plan .tag { align-self: flex-start; font-size: 12.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }
.plan h3 { font-size: 21px; }
.price { margin: 12px 0 2px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .now { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; }
.price .per { color: var(--muted); }
.was { color: var(--muted); text-decoration: line-through; }
.offer { color: var(--accent); font-weight: 700; font-size: 14px; }
.yearly { color: var(--muted); font-size: 14.5px; margin: 4px 0 14px; }
.plan ul { padding-left: 20px; margin: 6px 0 18px; color: var(--muted); font-size: 15.5px; }
.plan ul li { margin: 4px 0; }
.plan .btn { margin-top: auto; text-align: center; }

.note { background: var(--warn-bg); color: var(--warn-text); border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.draft { background: var(--warn-bg); color: var(--warn-text); border-radius: 10px; padding: 10px 14px; font-size: 15px; margin: 16px 0; }

/* Text pages */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(26px, 5vw, 36px); margin: 32px 0 6px; }
.doc h2 { font-size: 21px; margin-top: 28px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }

details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 0; }

/* Footer */
footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 36px; background: var(--surface); }
footer.site nav { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
footer.site nav a { color: var(--muted); font-size: 15px; }
footer.site p { color: var(--muted); font-size: 13.5px; margin: 6px 0; }
