/* Oppanai One website — brand tokens match the app (SPEC.md §6). */
:root {
  --primary: #2f5d3a;
  --primary-light: #6b8e23;
  --primary-tint: #eaf0dc;
  --accent: #f28c28;
  --accent-light: #ffb347;
  --accent-tint: #fde9d3;
  --accent-text: #9a4a08;
  --cream: #fff8ec;
  --page-bg: #f3eee3;
  --surface: #ffffff;
  --text: #1a3322;
  --muted: #5b6b55;
  --border: #e8dcc4;
  --rating: #3d7a2b;

  --radius-btn: 12px;
  --radius-card: 16px;
  --radius-sheet: 24px;
  --shadow: 0 6px 24px rgba(26, 51, 34, 0.08);

  --font-head: "Marcellus", "Hind Madurai", Georgia, serif;
  --font-body: "Hind Madurai", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1120px;
  --gutter: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

/* Tamil runs longer; tighten heading size a little so lines wrap nicely. */
html[lang="ta"] h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
}

html[lang="ta"] h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 72px 0;
}

.section--white {
  background: var(--surface);
}

.section--tint {
  background: var(--page-bg);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-tint);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head p {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 16px;
}

/* Buttons — marigold with dark green text (never white on orange). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(242, 140, 40, 0.35);
}

.btn--primary:hover {
  background: #f59a3f;
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary-tint);
}

.btn--light {
  background: var(--surface);
  color: var(--primary);
}

.btn--sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.95rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand img {
  height: 44px;
  width: auto;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  background: var(--primary-tint);
  color: var(--primary);
}

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

.lang-toggle {
  display: inline-flex;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  overflow: hidden;
}

.lang-toggle button {
  min-height: 36px;
  min-width: 48px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--primary-tint);
  color: var(--primary);
  cursor: pointer;
}

.menu-btn svg {
  width: 24px;
  height: 24px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 179, 71, 0.25), transparent 40%),
    radial-gradient(circle at 5% 90%, rgba(107, 142, 35, 0.15), transparent 40%),
    var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 span {
  color: var(--accent-text);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 24px;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-chips svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 6px solid var(--surface);
}

.hero-badge {
  position: absolute;
  left: -20px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  max-width: 260px;
}

.hero-badge img {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
}

.hero-badge strong {
  display: block;
  color: var(--primary);
  line-height: 1.3;
}

.hero-badge small {
  color: var(--muted);
}

/* Store badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  background: var(--text);
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-badge small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.8;
}

.store-badge strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.store-badge[aria-disabled="true"] {
  cursor: default;
}

.soon-tag {
  position: absolute;
  top: -10px;
  right: -8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
}

/* Services */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 12px;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cat-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
}

.cat-card:nth-child(even) .cat-icon {
  background: var(--accent-tint);
  color: var(--accent-text);
}

.cat-icon svg {
  width: 30px;
  height: 30px;
}

.cat-card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.feature-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.banner-card {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  border-radius: var(--radius-card);
  color: #fff;
}

.banner-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 51, 34, 0.85) 0%, rgba(26, 51, 34, 0.35) 65%, transparent 100%);
}

.banner-text {
  position: relative;
  z-index: 1;
  max-width: 70%;
  padding: 28px;
}

.banner-text h3 {
  color: #fff;
  font-size: 1.4rem;
}

.banner-text p {
  margin: 0;
  opacity: 0.92;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 32px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.3rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-card {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-card);
  border-left: 4px solid var(--primary-light);
}

.why-card:nth-child(even) {
  border-left-color: var(--accent);
}

.why-card svg {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: var(--primary);
}

.why-card p {
  margin: 0;
  color: var(--muted);
}

/* For artists */
.artists {
  background: var(--primary);
  color: #fff;
}

.artists h2,
.artists h3 {
  color: #fff;
}

.artists .eyebrow {
  background: rgba(255, 179, 71, 0.2);
  color: var(--accent-light);
}

.artists-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.artists-grid > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
}

.artists-lead {
  opacity: 0.9;
  font-size: 1.1rem;
}

.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0;
  margin: 24px 0 32px;
  list-style: none;
}

.benefits li {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
}

.benefits svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--accent-light);
  margin-top: 2px;
}

.benefits strong {
  display: block;
}

.benefits span {
  font-size: 0.92rem;
  opacity: 0.85;
}

.artist-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
  font-size: 0.92rem;
}

.artist-steps li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.artist-steps li:not(:last-child)::after {
  content: " →";
  color: var(--accent-light);
}

/* City strip */
.city-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px;
  background: var(--accent-tint);
  border-radius: var(--radius-card);
}

.city-strip h3 {
  margin: 0 0 4px;
  color: var(--accent-text);
}

.city-strip p {
  margin: 0;
  color: var(--accent-text);
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.city-list li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.92rem;
}

.city-list li.live {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 1.2rem;
}

.faq details[open] summary::after {
  content: "−";
  background: var(--accent);
  color: var(--text);
}

.faq details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

/* App CTA band */
.app-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius-sheet);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 179, 71, 0.35), transparent 50%),
    var(--primary);
  color: #fff;
}

.app-band h2 {
  color: #fff;
}

.app-band p {
  margin: 0;
  opacity: 0.9;
}

.app-band .store-badge {
  background: #fff;
  color: var(--text);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card:hover {
  border-color: var(--primary-light);
}

.contact-card svg {
  width: 40px;
  height: 40px;
  flex: none;
  padding: 8px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
}

.contact-card small {
  display: block;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

.contact-actions a {
  color: var(--primary);
  font-weight: 600;
}

/* Placeholder values the owner must fill in before launch. */
.ph {
  background: var(--accent-tint);
  color: var(--accent-text);
  border-bottom: 1px dashed var(--accent-text);
  padding: 0 4px;
  border-radius: 4px;
}

/* Footer */
.site-footer {
  padding: 56px 0 24px;
  background: var(--text);
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  display: inline-block;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: var(--cream);
  border-radius: 12px;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.site-footer h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-light);
}

.site-footer .ph {
  background: rgba(253, 233, 211, 0.15);
  color: var(--accent-light);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

/* Legal pages */
.legal {
  padding: 48px 0 72px;
}

.legal .container {
  max-width: 820px;
}

.legal-card {
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.legal h2 {
  margin-top: 1.6em;
  font-size: 1.35rem;
}

.legal li {
  margin-bottom: 0.4em;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.92rem;
}

.notice {
  padding: 12px 16px;
  margin-bottom: 24px;
  border-radius: var(--radius-btn);
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 0.95rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-weight: 600;
  text-decoration: none;
}

/* Reveal on scroll (disabled for reduced motion). */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .cat-card {
    transition: none;
  }
}

/* Tablet */
@media (max-width: 960px) {
  .hero-grid,
  .artists-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 440px;
    margin: 0 auto;
  }

  .artists-grid > img {
    max-height: 420px;
    aspect-ratio: auto;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .app-band {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 820px) {
  .menu-btn {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .btn {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 32px 0 56px;
  }

  .brand img {
    height: 36px;
  }

  .hero-visual img {
    aspect-ratio: 1 / 1;
    object-position: top;
  }

  .hero-badge {
    left: 8px;
    bottom: 16px;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .feature-banners,
  .steps,
  .why-grid,
  .benefits,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .banner-text {
    max-width: 85%;
    padding: 22px;
  }

  .app-band {
    padding: 28px 20px;
  }

  .legal-card {
    padding: 24px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas .btn {
    flex: 1 1 100%;
  }
}
