/* ==========================================================
   FeeOne — nivya.in
   A fee register, styled like one: ruled margins, tabular
   figures for money, a stamped "paid" mark as the signature.
   ========================================================== */

:root {
  --paper: #f3f0e5;
  --card: #fffdf8;
  --ink: #17211b;
  --muted: #565248;
  --faint: #948e7e;
  --green: #1f4d3a;
  --green-deep: #16362a;
  --green-soft: #e6ede8;
  --rule: #a9463a;
  --rule-soft: #f2e1dd;
  --line: #e2dccb;

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --display: "Bebas Neue", var(--serif);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1080px;
  --radius: 12px;
}

* { 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: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* fine paper grain over the whole page — subtle, not decorative noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

header.site, footer.site, main { position: relative; z-index: 1; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--rule); outline-offset: 2px; }

/* ---------- type ---------- */

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.98;
  color: var(--ink);
  text-transform: uppercase;
}

h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); margin: 0 0 18px; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 14px; }
h3 { font-size: 1.12rem; font-weight: 600; margin: 0 0 8px; }

p { margin: 0 0 16px; color: var(--muted); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rule);
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--rule);
  display: inline-block;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 54ch;
}

.figure, .amount { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 229, 0.94);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 400;
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  font-family: var(--display);
}

.brand:hover { text-decoration: none; }

.mark {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  flex: none;
}

.header-right { display: flex; align-items: center; gap: 28px; }

nav.site { display: flex; gap: 24px; font-size: 0.92rem; }
nav.site a { color: var(--muted); }
nav.site a:hover { color: var(--green); text-decoration: none; }
nav.site a.current { color: var(--ink); font-weight: 600; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 9px;
  font-size: 0.94rem;
  font-weight: 600;
  font-family: var(--sans);
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover {
  background: var(--green-deep);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 77, 58, 0.28);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--card);
}
.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(23, 33, 27, 0.1);
}

.btn-sm { padding: 9px 16px; font-size: 0.86rem; }

.btn svg { flex: none; }

.note { font-size: 0.86rem; color: var(--faint); margin: 14px 0 0; }

/* ---------- hero ---------- */

.hero {
  padding: 74px 0 64px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 30px,
    rgba(23, 33, 27, 0.035) 30px,
    rgba(23, 33, 27, 0.035) 31px
  );
}
.hero .lede { margin-bottom: 30px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

/* signature element: a ledger entry, ruled like a real fee register */

.ledger {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(23, 33, 27, 0.08);
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: var(--green);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 7px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.06) 0, rgba(0,0,0,0.06) 1px, transparent 1px, transparent 7px);
  color: #fff;
}

.ledger-head .t {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.ledger-rows { border-left: 3px solid var(--rule); }

.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px dashed var(--line);
}

.ledger-row:last-child { border-bottom: none; }

.ledger-row .name { font-weight: 600; font-size: 0.95rem; }
.ledger-row .month { color: var(--faint); font-size: 0.82rem; font-family: var(--mono); }
.ledger-row .amt { font-family: var(--mono); font-weight: 600; font-size: 0.95rem; }

.stamp {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1.5px solid;
}

.stamp.paid { color: var(--green); border-color: var(--green); background: var(--green-soft); }
.stamp.due { color: var(--rule); border-color: var(--rule); background: var(--rule-soft); }

/* ---------- sections ---------- */

section { padding: 58px 0; border-top: 1px solid var(--line); }
section.plain { border-top: 0; }

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  margin-top: 32px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  border-top: 3px solid var(--green);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(23, 33, 27, 0.1);
}

.card p { margin: 0; font-size: 0.95rem; }

.card .ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

/* ---------- download strip ---------- */

.download-strip {
  background: var(--green);
  color: #fff;
}

.download-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 40px 24px;
}

.download-strip h2 { color: #fff; margin: 0 0 6px; }
.download-strip p { color: rgba(255,255,255,0.78); margin: 0; max-width: 44ch; }
.download-strip .btn-primary { background: #fff; color: var(--green-deep); }
.download-strip .btn-primary:hover { background: var(--green-soft); }
.download-meta {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
}

/* ---------- pricing ---------- */

.plans {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(262px, 1fr));
  margin-top: 36px;
  align-items: start;
}

.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan:hover { transform: translateY(-4px); }
.plan.featured { border-color: var(--green); box-shadow: 0 16px 40px rgba(31, 77, 58, 0.13); }
.plan.featured:hover { box-shadow: 0 22px 48px rgba(31, 77, 58, 0.2); }

.tag {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--rule);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
}

.plan h3 {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 2.3rem; line-height: 1; color: var(--ink); font-weight: 600; }
.price small { font-family: var(--sans); font-size: 0.85rem; color: var(--faint); font-weight: 400; }

.per-year { font-size: 0.87rem; color: var(--muted); margin: 10px 0 0; }

.plan ul { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); padding-top: 18px; }

.plan li { font-size: 0.92rem; color: var(--muted); padding: 6px 0 6px 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan li.soon::before { content: "◌"; color: var(--faint); }
.soon-tag { font-size: 0.71rem; color: var(--faint); letter-spacing: 0.03em; }

/* ---------- legal / prose pages ---------- */

.prose {
  max-width: 70ch;
  padding: 52px 0 68px;
  border-left: 3px solid var(--rule);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 27px,
    rgba(23, 33, 27, 0.032) 27px,
    rgba(23, 33, 27, 0.032) 28px
  );
}
.prose > * { padding-left: 28px; }
.prose h1 { margin-bottom: 8px; }
.prose .updated { font-size: 0.85rem; color: var(--faint); font-family: var(--mono); margin-bottom: 36px; }
.prose h2 { font-size: 1.2rem; margin: 38px 0 12px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; color: var(--muted); }
.prose li { margin-bottom: 7px; }

.callout {
  background: var(--green-soft);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 24px 0;
  border-left: 3px solid var(--green);
}
.callout p { margin: 0; color: var(--green-deep); font-size: 0.95rem; }

/* ---------- contact ---------- */

.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { border-top: 1px solid var(--line); padding: 17px 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.contact-list .k { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); min-width: 132px; }
.contact-list .v { color: var(--ink); }

/* ---------- footer ---------- */

footer.site { border-top: 1px solid var(--line); padding: 42px 0 54px; margin-top: 20px; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 26px 56px; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 0.89rem; }
footer.site nav a { color: var(--muted); }
footer.site .legal { font-size: 0.83rem; color: var(--faint); margin: 28px 0 0; font-family: var(--mono); }

@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav.site { display: none; }
  .hero { padding: 50px 0 40px; }
  section { padding: 42px 0; }
  .download-strip .wrap { padding: 32px 24px; }
  .prose { border-left: none; }
  .prose > * { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .plan { transition: none; }
  .btn:hover, .card:hover, .plan:hover { transform: none; }
}
