/* =========================================================
   EasyAI — styles
   Mobile-first. No external fonts or frameworks, for fast
   loading on low-end phones and slow connections.
   ========================================================= */

:root {
  /* Brand palette — change these to re-theme the whole site */
  --navy: #0b2545;        /* primary dark (deep blue) */
  --blue: #13416f;        /* secondary blue */
  --teal: #14b8a6;        /* bright accent (backgrounds, decoration) */
  --teal-dark: #0b7a6f;   /* accent for text on white (AA contrast) */
  --teal-soft: #e6f7f5;

  --ink: #1b2533;         /* body text */
  --muted: #4f5b6b;       /* secondary text */
  --line: #dde3ea;
  --bg: #ffffff;
  --tint: #f4f7fa;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 6px 20px rgba(11, 37, 69, .06);
  --gutter: 16px;
  --max: 1120px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari",
          "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;          /* 17px: readable on phones */
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }
a  { color: var(--blue); }
img, svg { max-width: 100%; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; margin-top: 2rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }

/* ---------- Icons ---------- */
.icon, .icon-sm, .btn svg, .social svg {
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px;
        color: var(--teal-dark); background: var(--teal-soft); flex-shrink: 0; }
.icon-sm { width: 20px; height: 20px; color: var(--teal-dark); flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; }
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: #0fa394; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #1f8a4c; color: #fff; }
.btn-whatsapp:hover { background: #18703d; }
.btn-viber { background: #6a46b8; color: #fff; }
.btn-viber:hover { background: #573996; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.btn-row .btn { flex: 1 1 220px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); text-decoration: none; }
.logo span { color: var(--teal-dark); position: relative; }
.logo span::after {          /* subtle accent dot on "AI" */
  content: ""; position: absolute; right: -8px; top: 4px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}
.logo-light { color: #fff; }
.logo-light span { color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang-toggle {
  min-height: 40px; padding: .3rem .8rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--navy); }

.menu-toggle {
  width: 44px; height: 44px; display: inline-flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav: dropdown panel */
.nav {
  position: absolute; top: 64px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
}
.nav.open { display: block; }
.nav ul { list-style: none; margin: 0; padding: .5rem var(--gutter) 1rem; }
.nav li a:not(.btn) {
  display: block; padding: .8rem 0; color: var(--ink);
  text-decoration: none; font-weight: 550; border-bottom: 1px solid var(--line);
}
.nav li .btn { margin-top: 1rem; width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 2.5rem 0 2rem; background: linear-gradient(180deg, var(--tint), #fff); }
.eyebrow {
  display: inline-block; margin-bottom: .75rem;
  font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-dark);
}
.lead { font-size: 1.125rem; color: var(--muted); max-width: 40rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.hero-points li { position: relative; padding-left: 1.5rem; font-size: .95rem; color: var(--muted); }
.hero-points li::before, .check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: .9rem; height: .5rem;
  border-left: 2.5px solid var(--teal-dark); border-bottom: 2.5px solid var(--teal-dark);
  transform: rotate(-45deg);
}

.hero-visual { margin-top: 2rem; }
.hero-visual svg { display: block; width: 100%; max-width: 440px; margin: 0 auto; height: auto; }
.hero-visual text { font-family: var(--font); font-size: 11px; text-anchor: middle; }
.hv-in rect { fill: #fff; stroke: #c7d0db; stroke-dasharray: 4 3; }
.hv-in text { fill: var(--muted); }
.hv-lines path { fill: none; stroke: var(--teal); stroke-width: 1.6; opacity: .7; }
.hv-core circle { fill: var(--navy); }
.hv-core text { fill: #fff; font-weight: 800; font-size: 13px; }
.hv-core tspan { fill: var(--teal); }
.hv-out rect { fill: var(--teal-soft); stroke: var(--teal); }
.hv-out text { fill: var(--navy); font-weight: 650; }

/* ---------- Outcomes strip ---------- */
.outcomes { background: var(--navy); color: #fff; padding: 1.75rem 0; }
.outcomes-grid { display: grid; gap: 1rem; }
.outcome { display: flex; align-items: center; gap: .85rem; }
.outcome p { margin: 0; font-weight: 600; }
.outcome .icon { background: rgba(20, 184, 166, .16); color: var(--teal); }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head > p:last-child { color: var(--muted); }

/* Generic card look */
.problem, .sector-card, .sector-detail, .ex, .why, .price, .testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem;
}

/* Problem */
.problem-grid, .why-grid, .sector-grid, .ex-grid, .price-grid, .test-grid { display: grid; gap: 1rem; }
.problem .icon, .why .icon, .sector-card .icon { margin-bottom: .85rem; }
.problem p, .why p, .sector-card p { color: var(--muted); margin: 0; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {           /* vertical line on mobile */
  content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px;
  width: 2px; background: linear-gradient(var(--teal), var(--blue));
}
.step { position: relative; display: flex; gap: 1rem; padding-bottom: 1.5rem; }
.step:last-child { padding-bottom: 0; }
.step-num {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 0 0 6px var(--tint);
}
.step-body {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; flex: 1;
}
.step-body p { color: var(--muted); }
.step-meta { margin: 0; padding-top: .75rem; border-top: 1px dashed var(--line); font-size: .95rem; }
.step-meta strong { color: var(--teal-dark); }

/* Sectors */
.sector-card {
  display: flex; flex-direction: column; color: inherit; text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.sector-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.sector-card h3 { color: var(--navy); }
.card-link { margin-top: auto; padding-top: 1rem; font-weight: 650; color: var(--teal-dark); }

.sector-details { display: grid; gap: 1rem; margin-top: 2.5rem; }
.sector-detail { scroll-margin-top: 80px; border-left: 4px solid var(--teal); }
.sd-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .75rem; }
.sd-head h3 { margin: 0; }
.sector-detail > p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.check-list li { position: relative; padding-left: 1.75rem; }

/* Examples */
.ex { display: flex; flex-direction: column; gap: .6rem; }
.ex p { margin: 0; }
.ex-tag {
  align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue); background: #e8eef6; padding: .2rem .6rem; border-radius: 999px;
}
.ex-before { color: var(--muted); }
.ex-before strong { color: #9a3b2e; }
.ex-after { position: relative; padding: .75rem .9rem; border-radius: 10px; background: var(--teal-soft); }
.ex-after strong { color: var(--teal-dark); }

/* Pricing */
.price { display: flex; flex-direction: column; }
.price p { color: var(--muted); }
.price-step { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-dark) !important; margin-bottom: .4rem; }
.price-tag { margin: auto 0 0 !important; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 700; color: var(--navy) !important; }
.price-featured { border: 2px solid var(--teal); box-shadow: var(--shadow); }

/* Testimonials (placeholders) */
.testimonial { margin: 0; }
.testimonial blockquote { margin: 0 0 1rem; font-size: 1.05rem; color: var(--ink); }
.testimonial figcaption { font-size: .9rem; color: var(--muted); }
.testimonial.placeholder { border: 2px dashed #c7d0db; background: var(--tint); }
.testimonial.placeholder blockquote, .testimonial.placeholder figcaption { color: #6b7685; font-style: italic; }

/* FAQ */
.faq-list { display: grid; gap: .75rem; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.25rem;
  font-weight: 650; color: var(--navy); position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--teal-dark);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: 2rem; }
.contact-info > p { color: var(--muted); }
.chat-buttons { display: grid; gap: .75rem; margin: 1.5rem 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.contact-list li { display: flex; align-items: center; gap: .6rem; }

.contact-form {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem;
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem;  /* ≥16px stops iOS zoom */
  padding: .75rem .85rem; min-height: 48px;
  border: 1.5px solid #b9c4d0; border-radius: 10px; background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(20,184,166,.25); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: .75rem 0 0; min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: var(--teal-dark); }
.form-status.err { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d4e2; padding: 3rem 0 1.5rem; }
.site-footer a { color: #e6edf5; text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-grid p { margin-top: .75rem; max-width: 22rem; }
.foot-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: .85rem; }
.social { display: flex !important; gap: .75rem !important; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
}
.social svg { width: 20px; height: 20px; }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.foot-bottom p { margin: 0; }

/* Nepali text renders a little larger for legibility */
html[lang="ne"] body { line-height: 1.75; }

/* =========================================================
   Larger screens
   ========================================================= */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .problem-grid, .why-grid, .sector-grid, .ex-grid, .test-grid, .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
  .chat-buttons { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .btn-row .btn { flex: 0 0 auto; }
}

@media (min-width: 900px) {
  .section { padding: 5rem 0; }

  /* Desktop nav inline */
  .menu-toggle { display: none; }
  .nav { position: static; display: block; background: none; border: 0; box-shadow: none; }
  .nav ul { display: flex; align-items: center; gap: 1.5rem; padding: 0; }
  .nav li a:not(.btn) { padding: 0; border: 0; font-size: .97rem; }
  .nav li a:not(.btn):hover { color: var(--teal-dark); }
  .nav li .btn { margin: 0; width: auto; }
  .header-inner { gap: 1.5rem; }
  .nav { margin-left: auto; }
  .header-actions { order: 3; }

  .hero { padding: 4.5rem 0 4rem; }
  .hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
  .hero-visual { margin-top: 0; }

  .outcomes-grid { grid-template-columns: repeat(4, 1fr); }
  .problem-grid, .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .sector-grid { grid-template-columns: repeat(4, 1fr); }
  .sector-details { grid-template-columns: 1fr 1fr; }
  .ex-grid { grid-template-columns: repeat(4, 1fr); }
  .price-grid, .test-grid { grid-template-columns: repeat(3, 1fr); }

  /* Horizontal timeline */
  .timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .timeline::before { left: 16.6%; right: 16.6%; top: 23px; bottom: auto; width: auto; height: 2px;
                      background: linear-gradient(90deg, var(--teal), var(--blue)); }
  .step { flex-direction: column; align-items: center; padding: 0; }
  .step-body { width: 100%; }

  .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
  .chat-buttons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

@media (min-width: 1100px) {
  .chat-buttons { grid-template-columns: 1fr 1fr; }
}
