/* PHALITA — the whole design. Plain CSS, no framework, no build. */

:root {
  --ink: #1b1b1b;
  --ink-soft: #5c5c5c;
  --ink-faint: #9a9a9a;
  --paper: #fdf6ec;
  --paper-2: #f9eddd;
  --card: #ffffff;
  --rule: #eee0cd;
  --maroon: #f26b1d;
  --maroon-deep: #d4550c;
  --gold: #e0a21c;
  --gold-soft: #fdf0d6;
  --banner: #7a1f2b;
  --banner-btn: #f0b429;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Noto Serif Devanagari', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Devanagari', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, 0.06);
  --shadow: 0 2px 6px rgba(60, 40, 20, 0.06), 0 16px 36px -18px rgba(60, 40, 20, 0.24);
  --edge: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- paper grain: the surface everything else sits on ---- */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 3;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--maroon-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 42rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---- ornament ---- */
.orn {
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  margin: 3rem auto; max-width: 22rem;
}
.orn::before, .orn::after {
  content: ''; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--rule) 40%, var(--rule));
}
.orn::after { background: linear-gradient(270deg, transparent, var(--rule) 40%, var(--rule)); }
.orn span { font-size: 0.6rem; letter-spacing: 0.5em; color: var(--gold); }

/* ============ offer banner ============ */

.topbar {
  background: var(--banner);
  color: #fff; padding: 0.6rem 0;
  border-bottom: 2px solid #5e1720;
}
.topbar .inner {
  max-width: 70rem; margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.topbar .ic { font-size: 1.1rem; line-height: 1; }
.topbar p {
  margin: 0; flex: 1; font-size: 0.88rem; font-weight: 700; letter-spacing: -0.01em;
}
.topbar a {
  flex-shrink: 0; padding: 0.45rem 0.9rem; border-radius: 8px;
  background: var(--banner-btn); color: #3a1206;
  font-size: 0.78rem; font-weight: 800; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset;
}
.topbar a:hover { background: #ffc94a; text-decoration: none; }

/* ============ nav ============ */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.nav .inner {
  max-width: 70rem; margin: 0 auto; padding: 0.7rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav .brand {
  display: flex; align-items: center; gap: 0.45rem;
  font-family: var(--sans); font-size: 1.25rem; font-weight: 800;
  color: var(--maroon); text-decoration: none; letter-spacing: -0.03em;
}
.nav .brand .deva { color: var(--ink); font-size: 1.1rem; }
.nav .brand .dot { color: var(--gold); }

.nav .links { display: flex; align-items: center; gap: 1.4rem; }
.nav .links a { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.nav .links a:hover { color: var(--maroon-deep); text-decoration: none; }
.nav .links a.on { color: var(--maroon-deep); }
.nav .links a.cta {
  padding: 0.5rem 1.1rem; border-radius: 10px;
  background: var(--maroon); color: #fff;
}
.nav .links a.cta:hover { background: var(--maroon-deep); }

/* Menu pill — checkbox only, no JS */
.nav .toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav .burger {
  display: none; align-items: center; gap: 0.5rem; cursor: pointer;
  padding: 0.5rem 0.9rem; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--card); font-size: 0.85rem; font-weight: 600; color: var(--ink);
}
.nav .burger .bars { display: flex; flex-direction: column; gap: 3px; }
.nav .burger .bars span { display: block; width: 16px; height: 2px; background: var(--ink); }

@media (max-width: 760px) {
  .nav .burger { display: inline-flex; }
  .nav .links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow); max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav .toggle:checked ~ .links { max-height: 24rem; }
  .nav .links a {
    padding: 0.95rem 1.25rem; border-bottom: 1px solid var(--rule); font-size: 0.95rem;
  }
  .nav .links a.cta { margin: 0.8rem 1.25rem; border-radius: 10px; text-align: center; border-bottom: 0; }
}

/* ============ hero ============ */

.hero {
  position: relative; overflow: hidden; padding: 3.5rem 0 3.5rem;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(242, 107, 29, 0.05) 0 2px, transparent 2px),
    radial-gradient(circle at 62% 42%, rgba(224, 162, 28, 0.05) 0 2px, transparent 2px);
  background-size: 46px 46px, 58px 58px;
  border-bottom: 1px solid var(--rule);
}

/* a twelve-spoke wheel, masked to a ring — a chart motif, not a chart */
.hero::after {
  content: ''; position: absolute;
  right: -7rem; top: -6rem; width: 28rem; height: 28rem;
  border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg,
    rgba(242, 107, 29, 0.10) 0deg 0.8deg, transparent 0.8deg 30deg);
  -webkit-mask-image: radial-gradient(circle, transparent 52%, #000 53%, #000 74%, transparent 75%);
  mask-image: radial-gradient(circle, transparent 52%, #000 53%, #000 74%, transparent 75%);
}
.hero .inner { position: relative; z-index: 1; max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }
.kicker {
  margin: 0; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--maroon-deep);
}
.hero h1 {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(2rem, 5.4vw, 3.3rem); line-height: 1.06;
  letter-spacing: -0.042em; margin: 1rem 0 0; text-wrap: balance;
}
.hero h1 em {
  display: block; font-family: var(--serif); font-style: italic;
  font-weight: 500; letter-spacing: -0.02em; margin-top: 0.15em;
}
.hero .lede {
  margin: 1.2rem 0 0; max-width: 34rem;
  font-size: 1.02rem; line-height: 1.7; color: var(--ink-soft);
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: 10px;
  font-size: 0.9rem; font-weight: 700; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn.primary { background: var(--maroon); color: #fff; box-shadow: var(--shadow-sm); }
.btn.primary:hover { background: var(--maroon-deep); transform: translateY(-1px); text-decoration: none; }
.btn.ghost { border: 1px solid var(--rule); color: var(--ink); background: var(--card); }
.btn.ghost:hover { border-color: var(--maroon); color: var(--maroon-deep); text-decoration: none; }

/* stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 2.8rem; border-top: 1px solid var(--rule);
}
.stats div { padding: 1.1rem 1rem 0 0; border-right: 1px solid var(--rule); }
.stats div:last-child { border-right: 0; }
.stats b {
  display: block; font-size: 1.5rem; font-weight: 800;
  color: var(--maroon-deep); letter-spacing: -0.03em;
}
.stats span {
  display: block; margin-top: 0.15rem; font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
}

/* ============ sections ============ */

.section { padding: 4.5rem 0; border-bottom: 1px solid var(--rule); }
.section.alt { background: var(--paper-2); }
.section .rule { width: 2.5rem; height: 3px; background: var(--maroon); border-radius: 2px; margin-bottom: 1.1rem; }
.section h2 {
  font-family: var(--sans); font-weight: 800; letter-spacing: -0.035em;
  font-size: clamp(1.5rem, 2.8vw, 2.05rem); margin: 0; max-width: 24ch;
  line-height: 1.14; text-wrap: balance;
}
.section .sub { margin: 0.9rem 0 0; max-width: 36rem; color: var(--ink-soft); font-size: 1rem; }

/* ============ cards ============ */

.grid { display: grid; gap: 1rem; margin-top: 2.4rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 16px; padding: 1.4rem 1.5rem;
  box-shadow: var(--edge), var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px); border-color: #e6cfae;
  box-shadow: var(--edge), var(--shadow);
}
.card h3 { font-size: 1.02rem; font-weight: 700; margin: 0; letter-spacing: -0.015em; }
.card .houses {
  display: block; margin-top: 0.35rem; font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--maroon-deep); opacity: 0.85;
}
.card p { margin: 0.7rem 0 0; font-size: 0.92rem; line-height: 1.7; color: var(--ink-soft); }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 10px;
  background: var(--maroon); color: #fff;
  font-size: 0.82rem; font-weight: 800; margin-bottom: 0.9rem;
}

/* ============ sample ============ */

.sample {
  position: relative;
  margin-top: 2.4rem; padding: 1.9rem 2rem; max-width: 46rem;
  background: var(--card); border: 1px solid var(--rule);
  border-left: 4px solid var(--maroon); border-radius: 16px;
  box-shadow: var(--edge), var(--shadow);
}
.sample .title { font-size: 1.15rem; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.sample .title span {
  display: block; margin-top: 0.25rem; font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint);
}
.sample p.body { margin: 0.95rem 0 0; font-size: 0.99rem; line-height: 1.8; }
.sample .note {
  margin: 1.4rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--rule);
  font-size: 0.8rem; color: var(--ink-faint);
}

/* ============ band ============ */

.band {
  position: relative; overflow: hidden;
  padding: 4rem 0; text-align: center;
  background: linear-gradient(180deg, var(--paper-2) 0%, #f6e7d2 100%);
  border-bottom: 1px solid var(--rule);
}
.band::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 34rem; height: 34rem; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 15deg,
    rgba(224, 162, 28, 0.10) 0deg 0.7deg, transparent 0.7deg 30deg);
  -webkit-mask-image: radial-gradient(circle, transparent 58%, #000 59%, #000 76%, transparent 77%);
  mask-image: radial-gradient(circle, transparent 58%, #000 59%, #000 76%, transparent 77%);
}
.band .wrap { position: relative; z-index: 1; }
.band h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 800; margin: 0; letter-spacing: -0.03em; text-wrap: balance; }
.band p { margin: 0.7rem auto 0; max-width: 32rem; color: var(--ink-soft); font-size: 0.96rem; }
.band .actions { margin-top: 1.6rem; display: flex; justify-content: center; gap: 0.7rem; flex-wrap: wrap; }

/* ============ footer ============ */

.foot { padding: 3rem 0 4rem; background: var(--paper); }
.foot .inner {
  max-width: 70rem; margin: 0 auto; padding: 0 1.25rem;
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between;
}
.foot .brand { font-size: 1.05rem; font-weight: 800; color: var(--maroon); }
.foot .brand .deva { color: var(--ink); }
.foot p { margin: 0.5rem 0 0; font-size: 0.8rem; line-height: 1.7; color: var(--ink-faint); max-width: 26rem; }
.foot .cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.foot .cols div { min-width: 8rem; }
.foot .cols h4 {
  margin: 0 0 0.6rem; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint);
}
.foot .cols a { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.foot .cols a:hover { color: var(--maroon-deep); text-decoration: none; }

/* ============ prose pages ============ */

.doc { padding: 3.5rem 0 5rem; }
.doc h1 {
  font-weight: 800; letter-spacing: -0.04em;
  font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin: 0.7rem 0 0; line-height: 1.08;
  text-wrap: balance;
}
.doc .lede { margin: 1rem 0 0; font-size: 1.05rem; color: var(--ink-soft); line-height: 1.7; }
.doc h2 { font-size: 1.3rem; font-weight: 800; margin: 2.8rem 0 0.8rem; letter-spacing: -0.025em; }
.doc p { margin: 0 0 1.05rem; font-size: 1rem; line-height: 1.8; }

@media (max-width: 620px) {
  .hero { padding: 2.5rem 0 2.5rem; }
  .hero::after { right: -12rem; top: -8rem; opacity: 0.7; }
  .section { padding: 3rem 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(1), .stats div:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .sample { padding: 1.3rem 1.15rem; }
  .foot .inner { flex-direction: column; }
  .topbar p { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
