/* Theli — shared styles
   Aesthetic: editorial-refined. Warm paper, deep ink, botanical green,
   turmeric micro-accent. Clarity (தெளி) as the through-line. */

:root {
  --paper:      #F6F2E9;
  --paper-2:    #EFE8D9;
  --paper-3:    #E7DECB;
  --ink:        #1B1A16;
  --ink-soft:   #4F4A3E;
  --ink-faint:  #837C6B;
  --green:      #2E5D4B;
  --green-deep: #234A3B;
  --green-lite: #3E7D63;
  --turmeric:   #C8852E;
  --line:       rgba(27, 26, 22, 0.12);
  --line-soft:  rgba(27, 26, 22, 0.07);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --tamil: "Noto Serif Tamil", serif;

  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 18px;
  letter-spacing: -0.005em;
  /* layered atmosphere: warm radial glows + faint grain */
  background-image:
    radial-gradient(120% 80% at 12% -8%, rgba(62, 125, 99, 0.10), transparent 55%),
    radial-gradient(90% 70% at 100% 0%, rgba(200, 133, 46, 0.08), transparent 50%);
  background-attachment: fixed;
}

/* subtle film grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

/* ---- Typography ---- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px) saturate(1.2);
  background: rgba(246, 242, 233, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .mark {
  font-family: var(--serif); font-weight: 600; font-size: 23px;
  letter-spacing: -0.02em;
}
.brand .mark::first-letter { color: var(--green); }
.brand .tam { font-family: var(--tamil); font-size: 18px; color: var(--ink-faint); }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { font-size: 15px; color: var(--ink-soft); transition: color 0.25s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav .pill {
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 8px 18px; font-weight: 500; color: var(--ink);
  transition: all 0.3s var(--ease);
}
.nav .pill:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 640px) { .nav a:not(.pill) { display: none; } }

/* ---- Hero ---- */
.hero { padding: clamp(70px, 13vw, 150px) 0 clamp(50px, 8vw, 90px); }
.hero .tamil-glyph {
  font-family: var(--tamil);
  font-size: clamp(64px, 13vw, 150px);
  line-height: 1; color: var(--green);
  letter-spacing: -0.01em;
}
.hero h1 {
  font-size: clamp(44px, 8.5vw, 104px);
  margin: 0.18em 0 0;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--green); font-weight: 400; }
.hero .lede {
  font-size: clamp(18px, 2.3vw, 23px);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 28px;
}
.hero .pron {
  margin-top: 14px; font-size: 15px; color: var(--ink-faint);
  font-style: italic;
}
.hero .pron b { font-style: normal; color: var(--ink-soft); font-weight: 600; }

.cta-row { display: flex; gap: 16px; align-items: center; margin-top: 40px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--paper);
  padding: 15px 28px; border-radius: 999px;
  font-weight: 500; font-size: 16px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(27,26,22,0.18); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink); }
.cta-note { font-size: 14px; color: var(--ink-faint); }

/* ---- Section scaffold ---- */
section { padding: clamp(56px, 9vw, 104px) 0; }
.section-head { max-width: 50ch; margin-bottom: clamp(38px, 6vw, 64px); }
.section-head h2 { font-size: clamp(30px, 5vw, 50px); margin-top: 14px; }
.section-head p { color: var(--ink-soft); margin-top: 18px; font-size: 18px; }

.divider { height: 1px; background: var(--line); border: 0; }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--line-soft);
  border-radius: 20px; padding: 32px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--line); background: rgba(255,255,255,0.62); }
.step .num {
  font-family: var(--serif); font-size: 15px; color: var(--turmeric);
  font-weight: 600; letter-spacing: 0.04em;
}
.step h3 { font-size: 24px; margin: 16px 0 10px; }
.step p { color: var(--ink-soft); font-size: 16.5px; }

/* ---- Privacy feature band ---- */
.band {
  background: var(--green-deep);
  color: #EDE9DC;
  border-radius: 28px;
  padding: clamp(40px, 7vw, 80px);
  position: relative; overflow: hidden;
}
.band::after {
  content: "தெளி";
  position: absolute; right: -2%; bottom: -16%;
  font-family: var(--tamil); font-size: clamp(180px, 34vw, 420px);
  color: rgba(255,255,255,0.045); pointer-events: none; line-height: 1;
}
.band .eyebrow { color: #9FD4BC; }
.band h2 { color: #FBF8F0; font-size: clamp(30px, 5vw, 52px); margin-top: 14px; max-width: 18ch; }
.band .grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px 48px; margin-top: 48px; position: relative; z-index: 2;
}
@media (max-width: 720px) { .band .grid { grid-template-columns: 1fr; } }
.promise { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.14); }
.promise .tick { color: #79C9A4; font-size: 20px; flex: none; line-height: 1.4; }
.promise b { font-family: var(--serif); font-weight: 500; font-size: 19px; color: #FBF8F0; }
.promise span { display: block; color: rgba(237,233,220,0.72); font-size: 15.5px; margin-top: 4px; }

/* ---- Support / tip jar ---- */
.support { text-align: center; }
.support .inner { max-width: 56ch; margin: 0 auto; }
.support h2 { font-size: clamp(30px, 5vw, 52px); }
.support p { color: var(--ink-soft); margin-top: 20px; }
.price-tag {
  display: inline-block; font-family: var(--serif); font-style: italic;
  color: var(--green); font-size: clamp(40px, 7vw, 64px); margin: 8px 0 6px;
}

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 70px; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand .mark { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.foot-brand .mark::first-letter { color: var(--green); }
.foot-brand p { color: var(--ink-faint); font-size: 14.5px; margin-top: 10px; max-width: 34ch; }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 14px; }
.foot-col a, .foot-col span { display: block; font-size: 15px; color: var(--ink-soft); margin-bottom: 9px; transition: color 0.25s var(--ease); }
.foot-col a:hover { color: var(--green); }
.colophon { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-faint); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.colophon a { text-decoration: underline; text-underline-offset: 2px; }

/* ---- Legal / privacy doc ---- */
.doc { padding: clamp(60px, 10vw, 110px) 0 80px; }
.doc .lead-block { max-width: 60ch; }
.doc h1 { font-size: clamp(38px, 7vw, 68px); }
.doc .stamp { color: var(--ink-faint); font-size: 14.5px; margin-top: 18px; }
.doc .tldr {
  background: rgba(46, 93, 75, 0.07);
  border: 1px solid rgba(46, 93, 75, 0.18);
  border-radius: 18px; padding: 26px 30px; margin: 40px 0 8px;
  max-width: 68ch;
}
.doc .tldr h3 { font-size: 18px; color: var(--green); margin-bottom: 10px; }
.doc .tldr p { color: var(--ink-soft); font-size: 16.5px; }
.doc article { max-width: 68ch; }
.doc article h2 {
  font-size: clamp(24px, 3.4vw, 32px); margin: 52px 0 14px;
  padding-top: 10px;
}
.doc article h2 .idx { font-family: var(--sans); font-size: 14px; color: var(--turmeric); font-weight: 600; display: block; letter-spacing: 0.12em; margin-bottom: 8px; }
.doc article p { color: var(--ink-soft); margin: 0 0 16px; }
.doc article ul { margin: 0 0 18px 0; padding-left: 0; list-style: none; }
.doc article li { color: var(--ink-soft); padding-left: 26px; position: relative; margin-bottom: 11px; }
.doc article li::before { content: "—"; position: absolute; left: 0; color: var(--green); }
.doc article strong { color: var(--ink); font-weight: 600; }
.doc article a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Load reveal ---- */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
