/* Maligai Mitra website. Same family as the app: teal + amber, warm paper background,
   big rounded touch targets, system fonts (no downloads). Mobile first. */
:root {
  --bg: #f7f5ef;
  --card: #ffffff;
  --ink: #1c1917;
  --ink-2: #57534e;
  --line: #e7e5e4;
  --brand: #0f766e;
  --brand-dark: #0b5953;
  --brand-soft: #ccfbf1;
  --accent: #f59e0b;
  --accent-2: #fbbf24;
  --accent-soft: #fef3c7;
  --good: #15803d;
  --bad: #b91c1c;
  --radius: 14px;
  font-size: 17px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Kannada", "Noto Sans Tamil", "Noto Sans Devanagari", sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--brand); }
img { display: block; }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 1.4rem; margin: 0 0 12px; }
h3 { font-size: 1.1rem; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
section.wrap { padding-top: 32px; padding-bottom: 8px; }
.muted { color: var(--ink-2); font-weight: 400; }
.note { color: var(--ink-2); font-size: .95rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar (like the app's) ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 56px; padding: 6px 12px; padding-top: max(6px, env(safe-area-inset-top));
  background: var(--brand); color: #fff;
}
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.brand img { border-radius: 8px; }
.links { display: flex; gap: 2px; }
.links a { color: #fff; text-decoration: none; font-size: .85rem; font-weight: 700; padding: 10px 7px; border-radius: 8px; white-space: nowrap; }
.links a:hover, .links a:focus-visible { background: rgba(255,255,255,.15); }
@media (max-width: 400px) { .brand { font-size: .95rem; gap: 6px; } .links a { font-size: .8rem; padding: 10px 5px; } }
@media (max-width: 345px) { .brand span { display: none; } }

/* ---------- hero ---------- */
.hero { background: var(--brand); color: #fff; padding-top: 20px; }
.tag {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 99px;
  background: var(--accent-2); color: var(--ink); font-size: .85rem; font-weight: 800;
}
.hero h1 { font-size: 1.65rem; margin: 0 0 12px; letter-spacing: -.01em; }
.lead { margin: 0 0 22px; font-size: 1.05rem; color: #e6fffb; }

.dl {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 76px; padding: 14px 18px; border-radius: var(--radius);
  background: var(--accent); color: var(--ink); text-decoration: none;
  box-shadow: 0 4px 0 #b45309; transition: transform .08s, box-shadow .08s;
}
.dl:active { transform: translateY(3px); box-shadow: 0 1px 0 #b45309; }
.dl:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.dl-main { font-size: 1.35rem; font-weight: 800; }
.dl-meta { font-size: .95rem; font-weight: 700; opacity: .85; }
.dl-date { margin: 10px 0 0; text-align: center; font-size: .85rem; color: #ccfbf1; min-height: 1.2em; }

/* Shop awning scallops, from the app icon. */
.awning {
  height: 22px; margin-top: 22px;
  background:
    radial-gradient(circle at 20px 0, var(--accent-2) 19px, transparent 20px) 0 0 / 40px 22px repeat-x,
    var(--bg);
}

/* ---------- install steps ---------- */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 44px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 9px;
  width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 800;
}

/* ---------- features ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.features li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.features .ico { flex: none; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-size: 1.6rem; background: var(--accent-soft); }
.features b { font-size: 1.02rem; }
.features div { color: var(--ink-2); font-size: .95rem; }
.features div b { color: var(--ink); }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }

/* ---------- how to (white band) ---------- */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0 24px; margin-top: 32px; }
details { border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; background: var(--bg); }
summary {
  list-style: none; cursor: pointer; min-height: 56px; padding: 14px 44px 14px 16px; position: relative;
  font-weight: 800; font-size: 1.02rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--brand); font-weight: 700; }
details[open] summary::after { content: '−'; }
details[open] summary { border-bottom: 1px solid var(--line); }
details > :not(summary) { margin-left: 16px; margin-right: 16px; }
details ol { padding-left: 20px; }
details li { margin: 6px 0; }
.tip { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-size: .95rem; }

/* ---------- about ---------- */
.about p { margin: 0 0 14px; }

/* ---------- feedback form ---------- */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
form label, legend { display: block; font-weight: 700; margin: 12px 0 6px; }
form > label:first-child { margin-top: 0; }
input[type=text], input[type=email], textarea {
  width: 100%; min-height: 50px; padding: 12px; border: 2px solid var(--line); border-radius: 10px;
  background: #fff; font: inherit; color: inherit;
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--brand); }
.hint { margin: 6px 0 0; font-size: .88rem; color: var(--ink-2); }
fieldset.stars { border: 0; padding: 0; margin: 0; }
.star-row { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-row label { margin: 0; font-size: 2.3rem; line-height: 1; color: #d6d3d1; cursor: pointer; padding: 2px 4px; min-width: 48px; text-align: center; }
.star-row label:hover, .star-row label:hover ~ label,
.star-row input:checked ~ label { color: var(--accent); }
.star-row input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  display: block; width: 100%; min-height: 56px; margin-top: 18px; border: 0; border-radius: var(--radius);
  background: var(--brand); color: #fff; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer;
}
.btn:disabled { opacity: .6; }
.msg { margin: 10px 0 0; font-weight: 700; min-height: 1.4em; }
.msg.ok { color: var(--good); }
.msg.err { color: var(--bad); }

/* ---------- reviews ---------- */
.rev-h { margin: 28px 0 10px; }
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.reviews li.r { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.r-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.r-name { font-weight: 800; overflow-wrap: anywhere; }
.r-stars { color: var(--accent); letter-spacing: 1px; }
.r-stars .off { color: #d6d3d1; }
.r-date { font-size: .85rem; color: var(--ink-2); }
.r-text { margin: 6px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.more { margin-top: 10px; background: none; border: 2px solid var(--brand); color: var(--brand); min-height: 48px; width: 100%; border-radius: var(--radius); font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- footer ---------- */
.foot { padding: 20px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--ink-2); font-size: .9rem; }
.foot p { margin: 4px 0; }

@media (min-width: 640px) {
  :root { font-size: 18px; }
  .hero h1 { font-size: 2.1rem; }
  .dl { max-width: 420px; }
  .dl-date { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .dl { transition: none; } }
