/* Vagai Silambam marketing page.
   Mobile-first: written for a 360px phone, then widened at 640px and 960px.
   Tamil heritage palette: temple-stone cream, indigo-black ink, turmeric gold, kumkum red,
   bamboo green and Kanchipuram silk maroon. Kumkum red is the single call-to-action colour.
   Motifs (silk border, toranam, kolam, palm leaf, gopuram) are decorative accents only. */

:root {
  --cream: #FBF3E4;       /* temple-stone: main background */
  --sand: #F4E6C8;
  --card: #FFFBF2;
  --line: #E6D5B0;

  --ink: #1E1B2E;        /* deep indigo-black: text and dark bands */
  --ink-2: #433E54;
  --muted: #5E566B;

  --turmeric: #F2A900;   /* manjal gold: accents */
  --turmeric-soft: #FBE9B5;
  --turmeric-deep: #8A5B00;

  --kumkum: #B3261E;     /* kumkum red: calls to action */
  --kumkum-dark: #8E1D17;
  --kumkum-soft: #F9DEDA;

  --bamboo: #5E7A2A;     /* bamboo / leaf green: secondary accent */
  --bamboo-deep: #3F5A18;
  --bamboo-soft: #E5EDD3;

  --maroon: #6B1D2A;     /* Kanchipuram silk maroon: dark bands */
  --maroon-deep: #4E1420;

  --font-heading: 'Yatra One', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-tamil: 'Noto Sans Tamil', 'Mukta Malar', system-ui, sans-serif;
  --font-tamil-heading: 'Catamaran', 'Noto Sans Tamil', 'Mukta Malar', sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(30, 27, 46, 0.1);
  --header-h: 64px;
  --silk: url("../img/motifs/silk-border.svg");
  --toranam: url("../img/motifs/toranam.svg");
  --kolam-line: url("../img/motifs/kolam-divider.svg");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body), var(--font-tamil);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Tamil needs more line height and no tight letter spacing to stay legible. */
html[lang="ta"] body { font-family: var(--font-tamil); line-height: 1.8; }
html[lang="ta"] h1, html[lang="ta"] h2, html[lang="ta"] h3 { font-family: var(--font-tamil-heading); font-weight: 800; letter-spacing: 0; line-height: 1.35; }
[lang="ta"] { font-family: var(--font-tamil); }
h1, h2 { font-family: var(--font-heading); font-weight: 400; }

img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 32px, 760px); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--cream); }

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.25rem;
  border: 2px solid transparent; border-radius: 12px;
  font: inherit; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-sm { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.95rem; }
.btn-lg { min-height: 56px; padding: 0.9rem 1.6rem; font-size: 1.05rem; }
.btn-primary { background: var(--kumkum); color: #fff; box-shadow: 0 3px 0 var(--kumkum-dark); }
.btn-primary:hover { background: var(--kumkum-dark); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--kumkum-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-secondary { background: var(--bamboo-deep); color: #fff; }
.btn-secondary:hover { background: var(--bamboo); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-link { background: none; color: var(--ink-2); text-decoration: underline; padding-inline: 0.5rem; }
.btn-icon { width: 48px; padding: 0; }
.icon-arrow { transition: transform 0.15s ease; }
.btn:hover .icon-arrow { transform: translateX(4px); }

/* ───────────── Header ───────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(251, 243, 228, 0.96); backdrop-filter: blur(8px);
}
/* Kanchipuram silk border along the bottom edge of the header. */
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: var(--silk) repeat-x left center / auto 10px; pointer-events: none;
}
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-heading); font-weight: 400; font-size: 1.02rem; white-space: nowrap; }
.brand-text small { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }

.nav {
  display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--cream); border-bottom: 1px solid var(--line); padding: 18px 16px 16px;
}
.nav.open { display: flex; flex-direction: column; }
.nav a { padding: 14px 4px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav a:last-child { border-bottom: 0; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-contact, .header-trial { display: none; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 999px;
  font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
}
.lang-btn:hover { background: var(--turmeric-soft); }
.lang-btn { font-family: var(--font-tamil); }
.menu-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: transparent; border: 2px solid var(--ink); border-radius: 12px; color: var(--ink); cursor: pointer;
}

/* ───────────── Sections ───────────── */
.section { padding: 56px 0; }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: var(--cream); }
.section-head { margin-bottom: 32px; max-width: 640px; }
.section-title { font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.7rem, 5.5vw, 2.5rem); line-height: 1.2; }
.section-sub { margin-top: 10px; color: var(--ink-2); font-size: 1.05rem; }
.on-dark .section-sub { color: #E4DDEF; }
.muted { color: var(--muted); }

/* Pulli kolam divider: a looping line threaded through dots. */
.kolam { height: 24px; margin: 8px 0; opacity: 0.9; background: var(--kolam-line) repeat-x center / auto 24px; }

/* ───────────── Hero ───────────── */
.hero {
  position: relative; padding: 0 0 48px; overflow-x: clip;
  background: radial-gradient(circle at 92% 12%, var(--turmeric-soft) 0, transparent 46%), var(--cream);
}
/* Mango-leaf garland (maavilai toranam) hanging below the silk border. */
.toranam { height: 46px; margin-bottom: 18px; background: var(--toranam) repeat-x center top / auto 46px; }
.hero-grid { display: grid; gap: 36px; }
.eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 6px 12px;
  background: var(--turmeric-soft); color: var(--turmeric-deep); border-radius: 18px;
  font-size: 0.88rem; font-weight: 700;
}
.hero h1 { font-size: clamp(2.1rem, 8.5vw, 3.7rem); line-height: 1.12; }
html[lang="ta"] .hero h1 { font-size: clamp(1.75rem, 6.6vw, 3.2rem); line-height: 1.3; }
.hero-alt { margin-top: 12px; font-size: 1.02rem; color: var(--muted); max-width: 34em; }
.lead { margin-top: 16px; font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta-row .btn { flex: 1 1 220px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; font-weight: 600;
}
.chips .icon { color: var(--bamboo-deep); }

.hero-art { position: relative; display: grid; place-items: center; min-height: 520px; padding: 20px 0; }
/* The kolam draws itself once, line by line, then the dots appear. */
.kolam-ring { position: absolute; left: 50%; top: 50%; width: 560px; max-width: none; height: auto; transform: translate(-50%, -50%); }
.kolam-line { fill: none; stroke: var(--turmeric-deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: kolam-draw 2.8s ease-out 0.3s forwards; }
.kolam-line.k2 { stroke: var(--kumkum); animation-delay: 0.9s; }
.kolam-line.k3 { stroke: var(--bamboo); stroke-width: 1.8; animation-delay: 1.6s; }
.kolam-dots { fill: var(--turmeric-deep); opacity: 0; animation: kolam-fade 1s ease-out 0.2s forwards; }
@keyframes kolam-draw { to { stroke-dashoffset: 0; } }
@keyframes kolam-fade { to { opacity: 1; } }

.phone {
  position: relative; z-index: 1; width: 250px; padding: 10px;
  background: var(--ink); border-radius: 34px; box-shadow: var(--shadow), 0 0 0 2px #000;
}
.phone-bar { width: 70px; height: 6px; margin: 0 auto 8px; border-radius: 4px; background: #3a3750; }
.phone-screen { background: var(--cream); border-radius: 24px; padding: 14px 12px; }
.ph-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 0.95rem; }
.ph-head span { font-size: 0.8rem; color: var(--muted); }
.ph-list { display: grid; gap: 8px; }
.ph-list li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 0.82rem; }
.ph-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--turmeric-soft); color: var(--turmeric-deep); font-weight: 700; font-size: 0.8rem; }
.ph-name { font-weight: 600; font-size: 0.78rem; }
.ph-chip { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.ph-chip .icon { width: 0.95em; height: 0.95em; stroke-width: 3; }
.ph-present { background: var(--bamboo-soft); color: var(--bamboo-deep); }
.ph-late { background: var(--turmeric-soft); color: #6b4700; }
.ph-absent { background: var(--kumkum-soft); color: var(--kumkum-dark); }
.ph-btn { margin-top: 10px; padding: 10px; text-align: center; border-radius: 10px; background: var(--kumkum); color: #fff; font-weight: 700; font-size: 0.85rem; }

/* ───────────── Heritage: palm-leaf manuscript panel ───────────── */
.heritage { padding-bottom: 36px; }
.olai {
  position: relative; padding: 30px 30px 28px; color: #2B2113; border-radius: 10px;
  background:
    repeating-linear-gradient(180deg, rgba(110, 76, 20, 0.11) 0 1px, transparent 1px 7px),
    linear-gradient(90deg, #D9C088 0, #EADBAB 10%, #EADBAB 90%, #D9C088 100%);
  border: 1px solid #B99A5A; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.28), var(--shadow);
}
.olai-hole { position: absolute; left: 9px; top: 50%; width: 11px; height: 11px; margin-top: -6px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 2px 3px rgba(60, 40, 10, 0.45); }
.olai-hole-r { left: auto; right: 9px; }
.olai-mark { display: block; width: 34px; height: 34px; margin-bottom: 12px; color: var(--kumkum-dark); }
.olai .section-title { max-width: 22em; }
.olai p { margin-top: 14px; max-width: 46em; font-size: 1.08rem; }
.terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.term { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.term strong { font-size: 1.12rem; }
.term > span:last-child { color: var(--muted); font-size: 0.92rem; }
.term-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 50%; background: var(--turmeric-soft); color: var(--maroon); }

/* ───────────── Cards ───────────── */
.cards { display: grid; gap: 16px; }
.card { padding: 22px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--turmeric); border-radius: var(--radius); }
.card h3 { margin-top: 14px; font-size: 1.15rem; font-weight: 700; }
.card p { margin-top: 6px; color: var(--ink-2); }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--turmeric-soft); color: var(--turmeric-deep); }
.card-icon .icon { width: 26px; height: 26px; }

/* ───────────── Attendance demo ───────────── */
.demo { background: var(--card); border: 2px solid var(--ink); border-radius: 20px; padding: 16px; box-shadow: 6px 6px 0 var(--turmeric); }
.demo-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.demo-session { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.demo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.demo-list { display: grid; gap: 12px; }
.student { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); min-width: 0; }
.student legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 1.05rem; }
.student legend small { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.seg { clear: both; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.seg-opt { position: relative; display: block; }
.seg-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg-opt span {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 6px 8px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; font-weight: 700; color: var(--ink);
  transition: background-color 0.12s ease;
}
.seg-opt input:hover + span { border-color: var(--ink-2); }
.seg-opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
/* Selected = filled colour, an inner ring and a bold weight, so it is not colour alone. */
.seg-opt input:checked + span { border-color: transparent; box-shadow: inset 0 0 0 3px var(--cream); font-weight: 800; }
.seg-present input:checked + span { background: var(--bamboo-deep); color: #fff; }
.seg-late input:checked + span { background: var(--turmeric); color: var(--ink); }
.seg-absent input:checked + span { background: var(--kumkum); color: #fff; }
.seg-leave input:checked + span { background: var(--ink); color: var(--cream); }
.demo-summary { margin-top: 16px; padding: 12px 14px; background: var(--ink); color: var(--cream); border-radius: 12px; font-weight: 700; }
.demo-tip { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }

/* ───────────── Offline steps ───────────── */
.steps { display: grid; gap: 16px; counter-reset: none; }
.step { position: relative; padding: 24px 22px 22px; background: #2A2740; border: 1px solid #443F63; border-radius: var(--radius); }
.step-num { position: absolute; top: 16px; right: 18px; font-family: var(--font-heading); font-size: 2rem; font-weight: 400; color: var(--turmeric); }
.step-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--turmeric); color: var(--ink); }
.step-icon .icon { width: 28px; height: 28px; }
.step h3 { margin-top: 14px; font-size: 1.15rem; }
.step p { margin-top: 6px; color: #E4DDEF; }
.note-on-dark { margin-top: 24px; padding: 14px 16px; border-left: 4px solid var(--turmeric); background: #2A2740; color: #F6EEDB; border-radius: 0 10px 10px 0; }

.cards-3 { grid-template-columns: 1fr; }

/* ───────────── Social proof ───────────── */
.quotes { display: grid; gap: 16px; }
.quote { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { font-size: 1.05rem; line-height: 1.6; }
.quote-by { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote-by p { font-size: 0.92rem; color: var(--ink-2); }
/* Replace the placeholder with a real photo: put an <img> inside .photo-slot. */
.photo-frame { display: inline-block; flex: none; width: 84px; height: 84px; padding: 4px; border: 4px dotted var(--turmeric-deep); border-radius: 50%; }
.photo-slot { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border: 2px solid var(--kumkum); border-radius: 50%; background: var(--turmeric-soft); color: var(--turmeric-deep); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .icon { width: 30px; height: 30px; }
.proof-count { font-weight: 700; color: var(--bamboo-deep); }
/* Placeholder text and contact details stay visibly marked until replaced. */
.is-placeholder { outline: 2px dashed var(--turmeric-deep); outline-offset: 3px; border-radius: 4px; background: var(--turmeric-soft); }

/* ───────────── Pricing ───────────── */
.toggle { display: inline-flex; padding: 4px; margin-bottom: 26px; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; }
.toggle-btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.toggle-btn[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.toggle-save { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--turmeric); color: var(--ink); font-size: 0.78rem; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px 20px; background: var(--card); border: 2px solid var(--line); border-radius: 18px; }
.plan.is-recommended { border-color: var(--kumkum); box-shadow: 0 10px 30px rgba(179, 38, 30, 0.15); }
.plan-badge { position: absolute; top: -14px; left: 20px; padding: 4px 12px; border-radius: 999px; background: var(--kumkum); color: #fff; font-size: 0.8rem; font-weight: 700; }
.plan h3 { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 400; }
html[lang="ta"] .plan h3 { font-family: var(--font-tamil-heading); font-weight: 800; }
.plan-price { margin-top: 10px; font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.plan-period { color: var(--muted); font-size: 0.95rem; }
.plan-save { min-height: 1.4em; margin-top: 4px; font-size: 0.9rem; font-weight: 700; color: var(--bamboo-deep); }
.plan ul { display: grid; gap: 8px; margin: 18px 0 22px; }
.plan li { display: flex; align-items: center; gap: 8px; }
.plan li .icon { color: var(--bamboo-deep); stroke-width: 3; }
.plan .btn { margin-top: auto; }
.plans-note { margin-top: 26px; color: var(--ink-2); max-width: 52em; }
.enterprise { margin-top: 20px; padding: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--card); border: 2px dashed var(--turmeric-deep); border-radius: var(--radius); }

/* ───────────── FAQ ───────────── */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform 0.2s ease; }
.faq-item p { padding: 0 18px 18px; color: var(--ink-2); }

/* ───────────── Final call to action ───────────── */
.final-cta { position: relative; overflow: hidden; padding: 84px 0 72px; background: var(--maroon); color: var(--cream); text-align: center; }
.final-cta::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 46px; background: var(--toranam) repeat-x center top / auto 46px; opacity: 0.95; }
.final-inner { position: relative; z-index: 1; }
.gopuram { position: absolute; left: 50%; bottom: 0; width: min(560px, 120%); height: auto; transform: translateX(-50%); color: var(--turmeric); opacity: 0.2; pointer-events: none; }
.final-cta h2 { font-size: clamp(1.8rem, 6vw, 2.7rem); line-height: 1.2; }
.final-cta p { margin-top: 10px; color: #F6E9DA; font-size: 1.1rem; }
.cta-center { justify-content: center; }
.cta-center .btn { flex: 0 1 260px; }
.final-cta .btn-primary { background: var(--turmeric); color: var(--ink); box-shadow: 0 3px 0 #B87F00; }
.final-cta .btn-primary:hover { background: #FFC233; }

/* ───────────── Footer ───────────── */
.site-footer { position: relative; padding: 62px 0 110px; background: var(--ink); color: #E4DDEF; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--silk) repeat-x left center / auto 14px; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand p { margin: 14px 0; max-width: 26em; }
.footer-brand .brand-text small { color: #C9C2D8; }
.site-footer .brand-text strong { color: var(--cream); }
.site-footer .lang-btn { background: transparent; color: var(--cream); border-color: #8A83A3; }
.site-footer .lang-btn:hover { background: #2A2740; }
.site-footer h3 { margin-bottom: 12px; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--turmeric); }
.site-footer ul { display: grid; gap: 0; }
.site-footer li a { display: inline-block; padding: 11px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--cream); }
.site-footer .is-placeholder { color: var(--ink); }
.footer-rights { margin-top: 32px !important; padding-top: 20px; border-top: 1px solid #3F3A58; font-size: 0.9rem; color: #C9C2D8; }

/* ───────────── Mobile sticky call to action ───────────── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 243, 228, 0.97);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(31, 27, 22, 0.1);
}
.sticky-cta .btn-primary { flex: 1; }

/* ───────────── Staff-spin loader: shown only while the page loads, never without JS ───────────── */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--cream); opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s; }
.is-loading .loader { opacity: 1; visibility: visible; transition: none; }
.loader-staff { transform-origin: 60px 60px; animation: staff-spin 1.1s linear infinite; }
.loader-ring { transform-origin: 60px 60px; animation: staff-spin 9s linear infinite reverse; }
@keyframes staff-spin { to { transform: rotate(360deg); } }

/* ───────────── 640px and up ───────────── */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .terms { grid-template-columns: repeat(4, 1fr); }
  .olai { padding: 40px 56px 38px; }
  .olai-hole { left: 18px; }
  .olai-hole-r { left: auto; right: 18px; }
  .seg { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

/* ───────────── 960px and up: full navigation, two-column hero ───────────── */
@media (min-width: 960px) {
  :root { --header-h: 72px; }
  .kolam-ring { width: 540px; }
  .nav { display: flex; position: static; flex-direction: row; gap: 28px; padding: 0; background: none; border: 0; }
  .nav a { padding: 8px 0; border: 0; }
  .menu-btn { display: none; }
  .header-contact, .header-trial { display: inline-flex; }
  .hero { padding: 0 0 72px; }
  .hero-grid { padding-top: 12px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; align-items: center; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 80px 0; }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 48px; }
}

@media (max-width: 400px) {
  .header-actions .lang-btn .icon { display: none; }
}

/* Mobile menu panel only matters below 960px. */
@media (max-width: 959px) {
  .nav { box-shadow: 0 12px 24px rgba(30, 27, 46, 0.14); }
}

/* Respect the reader's motion setting everywhere: the kolam is shown fully drawn, nothing spins. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .kolam-line { stroke-dashoffset: 0; }
  .kolam-dots { opacity: 1; }
  .loader { display: none; }
}
