/* Cadexa — www.cadexaindia.com
 *
 * One stylesheet, no build step and no framework. The site is nine pages of
 * text and a few images; anything more would be scaffolding around content
 * that does not need it.
 *
 * The palette is the app's, taken from mobile/src/theme/index.ts rather than
 * picked off the mockup, so the site and the app cannot drift apart.
 */

:root {
  --primary: #3E4B23;   /* the deep olive the app is built on */
  --primary-dark: #2E3919;
  --gold: #E5A020;
  --cream: #FAF8F2;     /* page ground */
  --card: #FFFFFF;
  --ink: #2A3118;
  --body: #5A6150;
  --muted: #8A9080;
  --line: #E4E2D6;
  --sand: #F2F0E4;

  --wrap: 1120px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 49, 24, .05), 0 8px 24px rgba(42, 49, 24, .06);

  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --script: 'Segoe Script', 'Bradley Hand', 'Brush Script MT', cursive;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* A section label: gold, spaced, with a rule running off it. */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .74rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.eyebrow::after { content: ''; height: 2px; width: 46px; background: var(--gold); opacity: .55; }

.lede { font-size: 1.06rem; max-width: 60ch; }
.section { padding: 76px 0; }
.section--sand { background: var(--sand); }
.section--tight { padding: 56px 0; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 10px; font-weight: 700; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--solid { background: var(--primary); color: #fff; }
.btn--solid:hover { background: var(--primary-dark); color: #fff; }
.btn--ghost { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn--ghost:hover { border-color: var(--primary); }

/* Google Play badge, drawn rather than fetched: Google's own badge may not be
   recoloured or reproportioned, and hotlinking it would break the page if the
   asset moves. Replace with the official badge before launch. */
.play {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border-radius: 11px; padding: 11px 24px 11px 18px;
}
.play:hover { text-decoration: none; color: #fff; }
.play__tri {
  width: 0; height: 0; border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff; flex: none;
}
.play__small { display: block; font-size: .62rem; letter-spacing: .09em; text-transform: uppercase; opacity: .85; line-height: 1.5; }
.play__big { display: block; font-size: 1.3rem; font-weight: 700; line-height: 1.1; }

/* ------------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 242, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand__name { display: block; font-size: 1.45rem; font-weight: 800; color: var(--primary); line-height: 1; letter-spacing: -.01em; }
.brand__tag { display: block; font-size: .55rem; font-weight: 700; letter-spacing: .13em; color: var(--muted); text-transform: uppercase; margin-top: 3px; white-space: nowrap; }

.nav { margin-left: auto; display: flex; gap: 28px; }
.nav a { font-size: .93rem; font-weight: 600; color: var(--body); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--primary); text-decoration: none; }
.nav a[aria-current='page'] { color: var(--primary); border-bottom-color: var(--gold); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); margin: 5px 0; }

/* --------------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; background: #F1F0E6; }

/* A landscape with no figures in it. The phone already shows the cadets, so a
   second, larger set of them behind the headline only competed with it. */
.hero__art {
  position: absolute; inset: 0; z-index: 0;
  background: url('hero-landscape.webp') center bottom / cover no-repeat;
  opacity: .8;
}

/* The copy sits on the left, so that side is washed out behind it.
   This has to be ::after, not ::before. A ::before is painted before the art
   layer and so underneath it, where it washes out nothing - which is how the
   silhouettes came to run straight through the headline. */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(248, 247, 240, .97) 0%,
    rgba(248, 247, 240, .93) 38%,
    rgba(248, 247, 240, .45) 60%,
    rgba(248, 247, 240, 0) 80%);
}

.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; padding-block: 60px 64px; }
.hero h1 { margin-bottom: .35em; }
.hero__sub { font-size: 1.16rem; font-weight: 700; color: var(--ink); margin-bottom: .2em; }
.hero__sub2 { color: var(--body); margin-bottom: 28px; }
.hero__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__hint { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--script); font-size: 1.05rem; color: var(--primary); max-width: 220px; line-height: 1.3; }
.hero__arrow { width: 44px; height: 26px; flex: none; }

/* The motto and the four-word ladder belong to the phone, so they are placed
   against it. Placed against the page they drifted to the edge of a wide
   screen, far from anything, and the motto slid under the header. */
.hero__visual { position: relative; }
.hero__motto {
  position: absolute; top: 4px; right: 0; margin: 0; text-align: center;
  font-family: var(--script); font-size: 1.65rem; color: var(--primary); line-height: 1.12;
  transform: rotate(-7deg);
}
.hero__motto::after { content: ''; display: block; height: 2px; background: var(--gold); margin-top: 10px; }
.hero__ladder {
  position: absolute; right: 0; bottom: 84px; margin: 0; text-align: right;
  font-size: .7rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase;
  color: var(--primary); line-height: 2.1;
}
.hero__ladder::before { content: ''; display: block; height: 2px; width: 34px; margin: 0 0 8px auto; background: var(--gold); }

/* Trust strip: four across in one row, never three and a straggler. */
.trust { display: grid; grid-template-columns: repeat(4, max-content); margin-top: 42px; }
.trust__item { display: flex; align-items: center; gap: 9px; padding: 2px 14px; border-left: 1px solid rgba(62, 75, 35, .18); }
.trust__item:first-child { padding-left: 0; border-left: 0; }
.trust__icon { width: 25px; height: 25px; flex: none; color: var(--primary); }
.trust__text { font-size: .8rem; font-weight: 700; color: var(--ink); line-height: 1.3; white-space: nowrap; }

/* the phone in the hero */
.phone {
  width: 256px; margin: 0 auto; border-radius: 34px; padding: 8px;
  background: #1D2114; box-shadow: 0 22px 46px rgba(42, 49, 24, .28);
}
.phone__screen { border-radius: 27px; overflow: hidden; background: var(--cream); aspect-ratio: 9 / 18.5; position: relative; }
.phone__bar { display: flex; justify-content: space-between; font-size: .58rem; font-weight: 700; color: var(--ink); padding: 9px 16px 2px; }
.phone__art { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: url('hero-art.webp') center 78% / cover no-repeat; }
.phone__art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--cream) 0%, rgba(250, 248, 242, 0) 30%); }
/* Dark at the foot, so the white words read. They were olive on olive. */
.phone__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 29, 14, 0) 42%, rgba(24, 29, 14, .86) 100%); }
.phone__inner { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 18px 18px; }
.phone__logo { width: 58px; margin: 0 auto 8px; }
.phone__name { font-size: 1.2rem; font-weight: 800; color: var(--primary); margin: 0; }
.phone__tag { font-size: .46rem; letter-spacing: .14em; color: var(--muted); font-weight: 700; text-transform: uppercase; margin: 2px 0 0; }
.phone__words { position: absolute; left: 20px; right: 20px; bottom: 20px; margin: 0; text-align: left; font-size: .8rem; font-weight: 700; color: #fff; line-height: 1.6; }
.phone__words em { display: block; font-style: normal; font-size: .6rem; font-weight: 600; color: rgba(255, 255, 255, .78); margin-top: 6px; }

/* ------------------------------------------------------------------- pieces */

.head-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 44px; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { text-align: center; padding: 0 22px; border-left: 1px solid var(--line); }
.pillar:first-child { border-left: 0; }
.pillar__ring { width: 68px; height: 68px; border-radius: 50%; background: #F4EDDD; display: grid; place-items: center; margin: 0 auto 16px; color: var(--primary); }
.pillar h3 { font-size: 1rem; margin-bottom: .35em; }
.pillar p { font-size: .87rem; margin: 0; }
.pillar__ring svg { width: 32px; height: 32px; stroke-width: 1.9; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

/* app screenshot rail */
.rail { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.shot { flex: none; width: 188px; scroll-snap-align: start; border-radius: 22px; padding: 7px; background: #1D2114; box-shadow: var(--shadow); }
.shot img { border-radius: 16px; aspect-ratio: 9 / 18.5; object-fit: cover; background: var(--sand); }
.shot__caption { text-align: center; font-size: .76rem; font-weight: 700; letter-spacing: .03em; color: #E6E9DA; padding: 9px 4px 3px; }
.rail-nav { display: flex; gap: 10px; }
.rail-nav button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--primary); font-size: 1.1rem; cursor: pointer;
}
.rail-nav button:hover { border-color: var(--primary); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: end; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; box-shadow: var(--shadow); }
.plan--flag { border-color: var(--primary); padding-top: 0; overflow: hidden; }
.plan__flag { background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 -24px 24px; padding: 9px; }
.plan__name { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.plan__price { font-size: 2.4rem; font-weight: 800; color: var(--primary); line-height: 1.1; margin: 6px 0 2px; }
.plan__per { font-size: .84rem; color: var(--muted); margin-bottom: 20px; }
.plan__list { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; gap: 10px; }
.plan__list li { display: flex; gap: 9px; font-size: .9rem; }
.plan__list li::before { content: '✓'; color: var(--gold); font-weight: 800; flex: none; }

/* table used on the pricing page */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .92rem; }
th { background: var(--sand); color: var(--ink); font-weight: 800; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--primary); font-size: 1.02rem; }
.was { color: var(--muted); text-decoration: line-through; font-size: .84rem; }

/* FAQs */
.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 17px 22px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; font-weight: 800; line-height: 1; flex: none; }
.faq[open] summary::after { content: '−'; }
.faq__body { padding: 0 22px 18px; }
.faq__body p:last-child { margin-bottom: 0; }

/* Quick links: the heading on the left, the questions as cards in a grid, so
   none of them is left wrapping onto a line of its own. */
.quick { display: grid; grid-template-columns: minmax(230px, 300px) 1fr; gap: 44px; align-items: center; }
.quick__head .eyebrow { margin-bottom: 10px; }
.quick__title { font-size: 1.55rem; margin: 0 0 10px; }
.quick__all { font-size: .9rem; font-weight: 700; }
.quick__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick__links a {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; font-size: .95rem; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow); transition: border-color .15s ease;
}
.quick__links a::after { content: '\203A'; color: var(--gold); font-size: 1.5rem; line-height: 1; }
.quick__links a:hover { border-color: var(--primary); text-decoration: none; }

/* prose pages: About, legal */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose table { margin: 1.4em 0; }

.page-head { background: var(--sand); border-bottom: 1px solid var(--line); padding: 56px 0 48px; }

.note { border-left: 3px solid var(--gold); background: #FCF7EC; padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 1.6em 0; }
.note p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ legal pages */

/* Contents down the left, the document on the right. These run to thirty
   sections, and a reader looking for "refunds" should not have to scroll for it. */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 52px; align-items: start; }
.toc {
  position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto;
  border-left: 2px solid var(--line); padding-left: 18px; font-size: .84rem;
}
.toc__title { font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.toc a { display: block; color: var(--body); line-height: 1.35; }
.toc a:hover { color: var(--primary); }
.legal__body { max-width: 76ch; }
.legal__body h2 { font-size: 1.3rem; margin-top: 2.1em; scroll-margin-top: 92px; }
.legal__body h3 { font-size: 1.02rem; margin-top: 1.5em; }
.legal__body ol { list-style: decimal; }

/* ------------------------------------------------------------------- footer */

.site-footer { background: var(--primary-dark); color: #CFD3C2; padding: 46px 0 28px; margin-top: 0; }
.site-footer a { color: #CFD3C2; }
.site-footer a:hover { color: #fff; }
.footer__top { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 11px; }
.footer__brand img { width: 40px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__tag { color: #9AA189; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; font-size: .9rem; }
.footer__social { display: flex; gap: 14px; }
.footer__social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.09); display: grid; place-items: center; }
.footer__motto { text-align: right; }
.footer__motto strong { display: block; color: #fff; font-size: 1.05rem; font-weight: 700; }
.footer__motto span { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-size: .86rem; }
.footer__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .82rem; color: #9AA189; }

/* ---------------------------------------------------------------- responsive */

/* Below this the space beside the phone is too narrow for the motto, and the
   left column too narrow for four trust items in a row. */
@media (max-width: 1180px) {
  .hero__motto, .hero__ladder { display: none; }
  .trust { grid-template-columns: repeat(2, max-content); row-gap: 16px; }
  .trust__item:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; max-height: none; }
  .hero__in { grid-template-columns: 1fr; padding-block-start: 44px; }
  .quick { grid-template-columns: 1fr; gap: 24px; }
  .phone { margin-top: 28px; }
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .pillar:nth-child(3) { border-left: 0; }
  .cards, .plans { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--card);
    border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .site-header__in { position: relative; }
  .section { padding: 54px 0; }
  .quick__links { grid-template-columns: 1fr; }
  /* The header cannot hold the brand, the menu button and a download button at
     phone width - it pushed the page into a sideways scroll. The Play badge is
     the first thing in the hero, so nothing is lost. */
  .site-header .btn--solid { display: none; }
  .hero__hint { display: none; }
  .footer__motto { text-align: left; }
}

@media (max-width: 420px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: 0; }
}
