/* Paramparai landing page. Banyan green + turmeric. System fonts only: fastest on mobile, Tamil renders natively. */
:root {
  --banyan: #0f2f25; --banyan-2: #17483a; --leaf: #a9d18e;
  --manjal: #f0a81f; --manjal-d: #c98708;
  --paper: #f3f6f1; --ink: #12231c; --muted: #54635b; --line: #d5ddd4;
  --ta: "Noto Serif Tamil", "Nirmala UI", "Latha", "Tamil Sangam MN", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", "Noto Sans Tamil", "Nirmala UI", "Tamil Sangam MN", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--body); color: var(--ink); background: var(--paper); -webkit-text-size-adjust: 100%; }
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { width: min(100% - 2.5rem, 62rem); margin-inline: auto; }
h1, h2 { font-family: var(--ta); line-height: 1.35; margin: 0 0 .6em; }
h2 { font-size: clamp(1.5rem, 4.6vw, 2.1rem); }
h2 .ta { display: block; font-size: .62em; font-weight: 400; color: var(--muted); margin-top: .15em; }
:focus-visible { outline: 3px solid var(--manjal); outline-offset: 3px; }

/* header */
.top { position: absolute; z-index: 5; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; color: #fff; }
.mark { display: inline-flex; align-items: baseline; gap: .6rem; text-decoration: none; font-weight: 700; }
.mark .ta { font-family: var(--ta); font-size: 1.35rem; }
.mark .en { font-size: .95rem; letter-spacing: .04em; opacity: .85; }
.top-cta { border: 1px solid rgba(255,255,255,.5); padding: .35rem .9rem; border-radius: 99px; text-decoration: none; font-size: .9rem; }

/* buttons */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 3.25rem; padding: .55rem 1.5rem; border-radius: .6rem; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.25; text-align: center; }
.btn small { font-weight: 400; font-size: .78rem; opacity: .85; }
.btn-primary { background: var(--manjal); color: #20160a; }
.btn-primary:hover { background: #f6b93d; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-ghost-dark { border-color: var(--banyan-2); color: var(--banyan-2); }
.btn-wa { background: #1f9d55; color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
[hidden] { display: none !important; }

/* hero */
.hero { background: radial-gradient(120% 80% at 70% 0%, var(--banyan-2), var(--banyan) 60%); color: #fff; padding: 5.5rem 1.25rem 3rem; display: grid; gap: 2rem; }
.hero-text { max-width: 38rem; margin-inline: auto; }
.hero h1 { font-size: clamp(1.8rem, 6.4vw, 2.7rem); font-weight: 700; }
.hero h1 .ta { display: block; }
.hero h1 .en { display: block; font-family: var(--body); font-size: .5em; font-weight: 500; color: var(--leaf); margin-top: .6em; line-height: 1.4; }
.lede { font-size: 1.1rem; color: #dce8de; margin: 0 0 1.5rem; max-width: 34rem; }
.tree { margin: 0 auto; width: min(100%, 30rem); }
.tree svg { width: 100%; height: auto; display: block; }
.tree figcaption { font-size: .82rem; color: #b8cbbd; text-align: center; margin-top: .4rem; }
.roots path { stroke: var(--leaf); stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s ease-out forwards; opacity: .85; }
.roots path:nth-child(-n+3) { animation-delay: .35s; }
.roots path:nth-child(n+4) { animation-delay: 1.15s; }
.node { opacity: 0; animation: pop .5s ease-out forwards; animation-delay: var(--d); }
.node .ring { fill: #0b241c; stroke: var(--manjal); stroke-width: 2.5; }
.node text { fill: #fff; font: 600 13px var(--body); text-anchor: middle; }
.node text.sm { font-size: 10.5px; }
.node text.yr { fill: var(--leaf); font-weight: 400; font-size: 11px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform-box: fill-box; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .roots path, .node { animation: none; opacity: 1; stroke-dashoffset: 0; } }

/* names fade */
.fade { padding: 4.5rem 0 3.5rem; text-align: center; }
.fade p { margin: 0; font-family: var(--ta); font-size: clamp(1.4rem, 5vw, 2.2rem); line-height: 1.5; }
.f1 { color: var(--ink); } .f2 { color: #66766d; } .f3 { color: #a9b5ad; }
.fade .after { font-family: var(--body); font-size: 1.05rem; color: var(--muted); max-width: 36rem; margin: 2rem auto 0; line-height: 1.7; }

/* what you get */
.what { padding-block: 2rem 3.5rem; }
dl { margin: 1.5rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
dl > div { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
dt { font-weight: 700; font-size: 1.1rem; color: var(--banyan-2); }
dd { margin: .25rem 0 0; color: var(--muted); max-width: 40rem; }

/* demo band */
.demo { background: var(--banyan); color: #fff; padding: 3.5rem 0; }
.demo p { max-width: 38rem; color: #dce8de; }
.demo .admin-hint { background: rgba(255,255,255,.08); border-left: 4px solid var(--manjal); padding: .7rem 1rem; border-radius: 0 .4rem .4rem 0; }
.demo .btn-ghost-dark { border-color: rgba(255,255,255,.55); color: #fff; }

/* how */
.how { padding-block: 3.5rem 2rem; }
.how ol { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: s; display: grid; gap: 1.1rem; }
.how li { counter-increment: s; position: relative; padding-left: 3.2rem; }
.how li::before { content: counter(s); position: absolute; left: 0; top: .05rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--banyan-2); color: #fff; display: grid; place-items: center; font-weight: 700; }
.how li b { display: block; }

/* offer */
.offer { padding-block: 1.5rem 2rem; }
.price { font-family: var(--ta); font-size: clamp(1.3rem, 4.4vw, 1.9rem); margin: 0; }
.price .plus { color: var(--manjal-d); }
.small { color: var(--muted); font-size: .92rem; }

/* faq */
.faq { padding-block: 2rem 3.5rem; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .2rem; top: .8rem; font-size: 1.4rem; color: var(--banyan-2); }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 1.1rem; color: var(--muted); max-width: 40rem; }

/* lead */
.lead { background: #e5ede3; padding: 3.5rem 0; }
.lead-grid { display: grid; gap: 2rem; }
form { background: #fff; border: 1px solid var(--line); border-radius: .9rem; padding: 1.4rem; display: grid; gap: .35rem; }
form label { font-weight: 600; font-size: .95rem; margin-top: .65rem; }
label .ta { font-weight: 400; color: var(--muted); font-size: .85em; }
input:not([type=checkbox]) { font: inherit; padding: .75rem .85rem; border: 1.5px solid #b7c4ba; border-radius: .5rem; background: #fff; min-height: 3rem; }
input:not([type=checkbox]):focus { border-color: var(--banyan-2); outline: none; box-shadow: 0 0 0 3px rgba(23,72,58,.2); }
.consent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .6rem; margin-top: .9rem; }
.consent label { margin: 0; font-weight: 400; font-size: .88rem; color: var(--muted); }
.consent input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; }
.err { margin: 0; min-height: 1.1rem; font-size: .85rem; color: #b3261e; }
input[aria-invalid=true]:not([type=checkbox]) { border-color: #b3261e; }
form .btn[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; min-height: 1.5rem; font-weight: 600; }
.form-msg.ok { color: #1f7a45; } .form-msg.err { color: #b3261e; }
form .btn { width: 100%; margin-top: .6rem; }

footer { background: var(--banyan); color: #cfdcd2; padding: 2rem 0 3rem; font-size: .92rem; }
footer .wrap { display: grid; gap: .8rem; }
footer .mark { color: #fff; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
footer p { margin: 0; opacity: .75; }

/* legal pages */
.legal { max-width: 44rem; margin: 0 auto; padding: 5.5rem 1.25rem 3rem; }
.legal h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.legal h2 { font-size: 1.2rem; margin-top: 1.8rem; }
.legal .draft { background: #fff3cd; border-left: 4px solid var(--manjal); padding: .6rem 1rem; font-size: .92rem; }
.top.solid { background: var(--banyan); position: absolute; }

@media (min-width: 52rem) {
  .hero { grid-template-columns: 1fr 1fr; align-items: center; padding: 7rem 3rem 4rem; gap: 3rem; }
  .hero-text { margin: 0; }
  .lead-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  dl { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .top { padding: 1.2rem 3rem; }
}
