/* Welapathkade.lk landing page. "Night & Marigold" tokens (design/tokens/tokens.json). */

:root {
  --night: #101433;
  --night-2: #1B2150;
  --night-edge: #1F2658;
  --night-line: #2C3470;
  --night-outline: #3A4386;
  --on-night-muted: #C9CCEB;
  --primary: #4A43C9;
  --primary-strong: #3A33A8;
  --primary-soft: #ECEBFB;
  --marigold: #F4B04A;
  --marigold-deep: #C77D12;
  --marigold-ink: #9A5B00;
  --ink: #15172F;
  --muted: #5C6080;
  --line: #E3E4EE;
  --divider: #EEEFF5;
  --ground: #F6F6FA;
  --surface: #FFFFFF;
  --success: #0F7A55;
  --success-ink: #0B4F37;
  --success-soft: #E2F4EC;
  --online: #12A372;
  --warning-soft: #FFF4E0;
  --platform: #A3A6BD;

  --font-si: 'Noto Sans Sinhala', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-latin: 'Plus Jakarta Sans', 'Noto Sans Sinhala', system-ui, sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --header-h: 72px;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-si);
  line-height: 1.65;
  min-width: 0;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--primary-strong); }
a:hover { color: #2A2480; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 6px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
.latin { font-family: var(--font-latin); }
.muted { color: var(--muted); }
.on-night-muted { color: var(--on-night-muted); }
.center { text-align: center; }

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

/* max-width is the content width (1200px), as in the design. */
.container { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 80px; padding-bottom: 80px; }

.grid { display: grid; gap: 20px; }
.grid--200 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid--260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--280 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--320 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.35; font-weight: 800; }
.h3 { font-size: 22px; line-height: 1.4; font-weight: 800; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--marigold-ink); }
.eyebrow--marigold { color: var(--marigold); }
.section-head { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.section-head__lead { font-size: 16px; color: var(--muted); }

.band--white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band--night { background: var(--night); color: #FFFFFF; }

/* icon tiles */
.tile { display: flex; align-items: center; justify-content: center; flex: none; }
.tile--52 { width: 52px; height: 52px; border-radius: 16px; }
.tile--44 { width: 44px; height: 44px; border-radius: 12px; }
.tile--36 { width: 36px; height: 36px; border-radius: 10px; }
.tile--primary { background: var(--primary-soft); color: var(--primary-strong); }
.tile--warning { background: var(--warning-soft); color: var(--marigold-ink); }
.tile--success { background: var(--success-soft); color: var(--success); }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 700; border-radius: 12px;
}
.btn--marigold { background: var(--marigold); color: var(--night); }
.btn--marigold:hover { background: #F7BF66; color: var(--night); }
.btn--header { min-height: 44px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
.btn--outline { border: 1.5px solid var(--night-outline); color: #FFFFFF; }
.btn--outline:hover { border-color: var(--on-night-muted); color: #FFFFFF; }
/* Hero row: official badges are wider than the design's placeholders, so the
   row is 56px tall (design: 60px) to keep all three on one line at 1440px. */
.btn--hero { min-height: 56px; padding: 0 20px; border-radius: 14px; font-size: 15px; }

/* official store badges: the image is the whole hit area */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; border-radius: 10px; transition: transform .15s ease, opacity .15s ease; }
.badge:hover { transform: translateY(-1px); opacity: .92; }
.badge img { height: 100%; width: auto; }
.badge--lg { height: 56px; }
.badge--md { height: 52px; }

/* -------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--night); border-bottom: 1px solid var(--night-edge); }
.site-header__inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #FFFFFF; min-height: 44px; }
.logo:hover { color: #FFFFFF; }
.logo__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--night-edge); display: flex; align-items: center; justify-content: center; }
.logo__name { font-weight: 800; font-size: 17px; }

.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav > a { color: var(--on-night-muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; }
.site-nav > a:hover { color: #FFFFFF; background: var(--night-2); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }

.lang { display: flex; background: var(--night-2); border-radius: 999px; padding: 4px; }
.lang__opt {
  min-height: 36px; min-width: 40px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--on-night-muted); text-decoration: none;
}
/* 36px pill as designed, with a 44px hit area. */
.lang__opt { position: relative; }
.lang__opt::before { content: ''; position: absolute; inset: -4px 0; }
.lang__opt.is-current { background: #FFFFFF; color: var(--night); }
.lang__opt.is-disabled { cursor: not-allowed; }
a.lang__opt:hover { color: #FFFFFF; }
.lang--menu { display: none; }

.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--night-2); color: #FFFFFF; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }

@media (max-width: 940px) {
  .js .menu-btn { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--night); border-bottom: 1px solid var(--night-edge);
    padding: 8px var(--gutter) 16px;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav > a { padding: 12px; font-size: 15px; min-height: 48px; display: flex; align-items: center; }
  .no-js .site-header__inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .no-js .site-nav { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .lang--header { display: none; }
  .js .lang--menu { display: flex; align-self: flex-start; margin: 8px 12px 0; }
  .logo__name { font-size: 16px; }
  .btn--header { padding: 0 14px; }
}
@media (max-width: 420px) {
  .site-header__inner, .site-header__actions { gap: 8px; }
  .logo { gap: 8px; }
  .logo__name { font-size: 15px; }
  .btn--header { padding: 0 12px; font-size: 13px; }
}
@media (max-width: 340px) {
  .logo__name { display: none; }
}

/* ---------------------------------------------------------------- hero */
.hero { background: var(--night); color: #FFFFFF; position: relative; overflow: hidden; }
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner {
  padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px; position: relative;
}
.hero__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--marigold); background: var(--night-2);
  padding: 6px 14px; border-radius: 999px;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--online); }
.hero__title { font-size: clamp(34px, 5vw, 56px); line-height: 1.3; font-weight: 800; }
.hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--on-night-muted); max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; scroll-margin-top: calc(var(--header-h) + 24px); }
.hero__trust { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--on-night-muted); }
.hero__trust li { display: flex; align-items: center; gap: 8px; }

.hero__visual { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; position: relative; min-height: 560px; }
.hero__wheel { position: absolute; top: 20px; left: 50%; width: 520px; height: 520px; max-width: 100%; transform: translateX(-50%); }

/* decorative phone mockup */
.phone {
  position: relative; width: 290px; height: 590px; border-radius: 44px; background: #05071A;
  padding: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.phone__screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--ground); color: var(--ink); display: flex; flex-direction: column; }
.ph-top { background: var(--night); color: #FFFFFF; padding: 26px 16px 18px; border-radius: 0 0 22px 22px; }
.ph-top__row { display: flex; justify-content: space-between; align-items: center; }
.ph-top__hello { display: flex; flex-direction: column; line-height: 1.3; }
.ph-greet { font-size: 10px; color: var(--on-night-muted); }
.ph-name { font-size: 15px; font-weight: 800; }
.ph-me { width: 30px; height: 30px; border-radius: 50%; background: var(--marigold); color: var(--night); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.ph-search { margin-top: 12px; background: #FFFFFF; border-radius: 12px; min-height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted); font-size: 11px; }
.ph-body { padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.ph-heading { font-size: 12px; font-weight: 800; padding: 0 4px; }
.ph-row { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; gap: 10px; align-items: center; }
.ph-avatar { position: relative; width: 38px; height: 38px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.ph-avatar--marigold { background: var(--marigold); color: var(--night); }
.ph-avatar--soft { background: var(--primary-soft); color: var(--primary-strong); }
.ph-online { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--online); border: 2px solid #FFFFFF; }
.ph-row__text { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.ph-row__name { font-size: 12px; font-weight: 700; }
.ph-row__meta { font-size: 10px; color: var(--muted); }
.ph-row__price { font-size: 11px; font-weight: 800; }
.ph-next { margin-top: 6px; background: var(--night); color: #FFFFFF; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ph-next__label { font-size: 10px; color: var(--on-night-muted); }
.ph-next__time { font-size: 13px; font-weight: 700; }
.ph-next__join { min-height: 32px; border-radius: 10px; background: var(--primary); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; font-weight: 700; }

/* ---------------------------------------------------------- app cards */
.section--apps { padding-bottom: 40px; }
.apps { margin-top: 36px; }
.app-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.app-card--dark { background: var(--night); border-color: var(--night); color: #FFFFFF; }
.app-card__id { display: flex; align-items: center; gap: 14px; }
.app-card__icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.app-card__icon--night { background: var(--night); color: var(--marigold); }
.app-card__icon--marigold { background: var(--marigold); color: var(--night); }
.app-card__names { display: flex; flex-direction: column; line-height: 1.3; }
.app-card__name { font-size: 18px; font-weight: 800; }
.app-card__kind { font-size: 13px; color: var(--muted); }
.app-card--dark .app-card__kind { color: var(--on-night-muted); }
.app-card p { font-size: 15px; }
.app-card .badges { margin-top: auto; padding-top: 8px; }

/* ------------------------------------------------------------ services */
.section--services { padding-top: 60px; padding-bottom: 60px; }
.services { margin-top: 36px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.service__title { font-size: 21px; font-weight: 800; line-height: 1.65; }
.service__en { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: -8px; }
.service p { font-size: 15px; }

/* --------------------------------------------------------- how it works */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.step { background: var(--ground); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step__num { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.step__num--last { background: var(--marigold); color: var(--night); }
.step__title { font-size: 17px; font-weight: 800; line-height: 1.65; }
.step__text { font-size: 14px; color: var(--muted); }
.assurances { margin-top: 24px; gap: 12px; }
.assure { display: flex; gap: 12px; align-items: flex-start; background: var(--success-soft); border-radius: 18px; padding: 18px; }
.assure svg { flex: none; margin-top: 2px; }
.assure p { font-size: 14px; color: var(--success-ink); }

/* -------------------------------------------------------- astrologers */
.astro { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.astro__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.astro__lead { font-size: 16px; color: var(--on-night-muted); }
.astro__intro .badges { margin-top: 10px; }
.astro__steps { flex: 1.4 1 480px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.astro-step { display: flex; gap: 16px; background: var(--night-2); border-radius: 18px; padding: 18px 20px; }
.astro-step__num { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1.5px solid var(--marigold); color: var(--marigold); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.astro-step__num.is-last { background: var(--marigold); color: var(--night); }
.astro-step__body { display: flex; flex-direction: column; gap: 2px; }
.astro-step__body b { font-size: 16px; }
.astro-step__body span { font-size: 14px; color: var(--on-night-muted); }

/* ------------------------------------------------------------ earnings */
.earnings { margin-top: 36px; }
.earn-card { background: var(--surface); border: 2px solid var(--primary); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.earn-card__label { font-size: 13px; font-weight: 700; color: var(--primary-strong); }
.earn-card > p { font-size: 15px; }
.figure-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.figure { line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.figure--primary { font-size: clamp(64px, 8vw, 96px); color: var(--primary); letter-spacing: -3px; }
.figure--marigold { font-size: clamp(56px, 7vw, 80px); color: var(--marigold); letter-spacing: -2px; }
.figure-row__caption { font-size: 17px; font-weight: 700; line-height: 1.45; }
.earn-card .figure-row__caption { max-width: 220px; }
.earn-points { list-style: none; margin: 6px 0 0; padding: 18px 0 0; border-top: 1px solid var(--divider); display: flex; flex-direction: column; gap: 14px; }
.earn-points li { display: flex; gap: 12px; }
.point { display: flex; flex-direction: column; }
.point b { font-size: 15px; }
.point span { font-size: 14px; }

.earn-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ref-card { background: var(--night); color: #FFFFFF; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.ref-card__label { font-size: 13px; font-weight: 700; color: var(--marigold); }
.ref-card p { font-size: 15px; }

.split { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.split__title { font-size: 17px; font-weight: 800; }
.split__bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; gap: 2px; }
.split__seg--astrologer { background: var(--primary); }
.split__seg--customerRef { background: var(--marigold); }
.split__seg--astrologerRef { background: var(--marigold-deep); }
.split__seg--platform { background: var(--platform); }
.split__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.split__table tr + tr { border-top: 1px solid var(--divider); }
.split__table th { padding: 10px 0; font-weight: 400; text-align: left; }
.split__table th > * { vertical-align: middle; }
.split__key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 10px; }
.split__table td { padding: 10px 0; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.split__note { font-size: 13px; color: var(--muted); }

/* ----------------------------------------------------------------- why */
.section--why { padding-top: 72px; padding-bottom: 72px; }
.why { gap: 24px; margin-top: 36px; }
.why__item { display: flex; flex-direction: column; gap: 8px; }
.why__item b { font-size: 16px; }
.why__item > span:last-child { font-size: 14px; }

/* ----------------------------------------------------------------- faq */
.faq { box-sizing: content-box; max-width: 820px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.faq__list { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; }
.faq__item summary {
  min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 16px; font-weight: 700; list-style: none; cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline-offset: 4px; }
.faq__plus { font-size: 24px; color: var(--primary); transition: transform .2s; flex: none; line-height: 1; }
.faq__item[open] .faq__plus { transform: rotate(45deg); }
.faq__item p { margin: 0 0 18px; font-size: 15px; color: var(--muted); }

/* ----------------------------------------------------------- final cta */
.final { padding: 0 var(--gutter) 80px; }
.final__panel {
  box-sizing: content-box; /* as in the design: 1200px of content plus padding */
  max-width: var(--container); margin: 0 auto; background: var(--night); color: #FFFFFF;
  border-radius: 32px; padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px); position: relative; overflow: hidden;
}
.final__art { position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; }
.final__copy { position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.final__title { font-size: clamp(28px, 4vw, 44px); line-height: 1.3; font-weight: 800; }
.final__text { font-size: 17px; color: var(--on-night-muted); }
.final__grid { position: relative; gap: 16px; margin-top: 32px; }
.final__box { background: var(--night-2); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.final__who { font-size: 14px; font-weight: 700; }

/* -------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer__inner { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer__nav a { color: var(--muted); text-decoration: none; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer__nav a:hover { color: var(--primary-strong); text-decoration: underline; }
.site-footer__note { width: 100%; font-size: 13px; }

/* --------------------------------------------------------- legal pages */
.legal { padding-top: 56px; padding-bottom: 80px; max-width: 820px; display: flex; flex-direction: column; gap: 18px; }
.legal__title { font-size: clamp(28px, 4vw, 40px); line-height: 1.35; font-weight: 800; }
.legal__h2 { font-size: 20px; font-weight: 800; }
.legal__list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
