/* ==========================================================================
   Abhyra — Marketing Site Stylesheet
   Brand colors sourced from abhyra-frontend/src/constants/theme.js
   ========================================================================== */

:root {
  --primary: #6C8BF0;
  --primary-dark: #4C69D6;
  --primary-soft: #EAF0FE;
  --accent: #34D1BF;
  --accent-soft: #E2F8F5;
  --sos: #FF7A7A;
  --sos-dark: #E85D5D;
  --sos-soft: #FFECEC;
  --amber: #F0A93C;
  --amber-soft: #FFF4E1;
  --green: #4FBE7B;
  --green-soft: #E9F8EF;
  --bg: #EEF2F8;
  --panel: #FFFFFF;
  --surface: #F7F9FC;
  --ink: #2B3445;
  --muted: #8A94A6;
  --line: #E8EDF4;

  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 12px rgba(43, 52, 69, 0.06);
  --shadow-md: 0 10px 30px rgba(43, 52, 69, 0.08);

  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

section { padding: 84px 0; }

h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 16px; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sos); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--sos-dark); }
.btn-outline { background: var(--panel); color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--primary-dark); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 242, 248, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy p.lead { font-size: 1.12rem; color: var(--muted); max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  gap: 26px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-trust div { font-size: 0.82rem; color: var(--muted); }
.hero-trust strong { display: block; font-size: 1.4rem; color: var(--ink); }

/* Phone mock */
.phone-mock {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 300px;
}
.phone-frame {
  background: var(--ink);
  border-radius: 42px;
  padding: 14px;
  box-shadow: var(--shadow-md);
}
.phone-screen {
  background: var(--surface);
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
}
.phone-screen .greet { font-size: 0.7rem; color: var(--muted); }
.phone-screen .name { font-weight: 800; font-size: 1rem; margin-bottom: 18px; }
.sos-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--sos);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 18px auto;
  box-shadow: 0 0 0 10px var(--sos-soft), 0 12px 24px rgba(255, 122, 122, 0.35);
  font-weight: 800;
  letter-spacing: 2px;
  animation: pulse 2.2s ease-in-out infinite;
}
.sos-circle span { font-size: 1.5rem; }
.sos-circle small { font-size: 0.6rem; font-weight: 700; opacity: 0.9; margin-top: 2px; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.phone-tiles { display: flex; gap: 8px; margin-top: auto; }
.phone-tiles .tile {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}
.phone-tiles .dot { width: 20px; height: 20px; border-radius: 6px; margin-bottom: 6px; }
.phone-tiles .tile:first-child .dot { background: var(--primary-soft); }
.phone-tiles .tile:last-child .dot { background: var(--amber-soft); }
.phone-tiles .t-title { font-size: 0.68rem; font-weight: 700; }
.phone-tiles .t-sub { font-size: 0.6rem; color: var(--muted); }
.phone-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at 50% 30%, rgba(108,139,240,0.25), transparent 65%);
  z-index: -1;
}

/* ---------- Logo strip ---------- */
.strip {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.bg-primary { background: var(--primary-soft); color: var(--primary-dark); }
.bg-accent { background: var(--accent-soft); color: #1B8E80; }
.bg-sos { background: var(--sos-soft); color: var(--sos-dark); }
.bg-amber { background: var(--amber-soft); color: #9C6B1E; }
.bg-green { background: var(--green-soft); color: #2E8C57; }

.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.93rem; }

/* Abstract feature block */
.feature-simple {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.feature-simple:last-child { border-bottom: none; }
.feature-simple .icon-badge { margin-bottom: 0; }
.feature-simple p { margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps { position: relative; }
.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  padding-bottom: 40px;
  position: relative;
}
.step:last-child { padding-bottom: 0; }
.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  z-index: 1;
}
.step::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 46px;
  bottom: -10px;
  width: 2px;
  background: var(--line);
}
.step:last-child::before { display: none; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--ink), #3A4560);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.72); max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Pricing ---------- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 44px;
}
.pricing-toggle span { font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.pricing-toggle span.active { color: var(--ink); }
.switch {
  width: 52px;
  height: 30px;
  background: var(--line);
  border-radius: var(--radius-pill);
  border: none;
  position: relative;
  cursor: pointer;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--panel);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(22px); }

.plan-card {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.plan-card.best { border-color: var(--primary); background: var(--primary-soft); }
.save-tag {
  position: absolute;
  top: -13px;
  right: 28px;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.plan-price { font-size: 2.4rem; font-weight: 800; margin: 14px 0 4px; }
.plan-price span { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.plan-note { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; }
.plan-features { list-style: none; padding: 0; margin: 20px 0 26px; }
.plan-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.plan-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--muted);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 12px; margin-bottom: 0; }

/* ---------- Table (security / architecture) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--panel); font-size: 0.92rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { background: var(--surface); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
tr:last-child td { border-bottom: none; }

/* ---------- Timeline (layers / architecture) ---------- */
.layer {
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  background: var(--panel);
  margin-bottom: 16px;
}
.layer h4 { margin-bottom: 6px; }
.layer p { margin-bottom: 0; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--panel); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { font-size: 0.92rem; color: var(--ink); }
.footer-grid a:hover { color: var(--primary-dark); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Simple page header (for inner pages) ---------- */
.page-hero {
  padding: 60px 0 20px;
  text-align: center;
}
.page-hero .eyebrow { display: inline-flex; }
.page-hero p { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; margin: 0 auto; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.92rem;
  background: var(--surface);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); background: var(--panel); }
textarea { resize: vertical; min-height: 120px; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.error-page .code { font-size: 6rem; font-weight: 800; color: var(--primary); line-height: 1; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-mock { max-width: 240px; margin-top: 20px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  section { padding: 56px 0; }
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .feature-item { grid-template-columns: 46px 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Comparison table ---------- */
.compare td.yes { color: var(--green); font-weight: 800; font-size: 1.1rem; text-align: center; }
.compare th:nth-child(2) { text-align: center; }
.compare td:first-child { font-weight: 600; color: var(--ink); }

/* ---------- App store buttons ---------- */
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  line-height: 1.15;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.store-badge:hover { background: #1c2331; transform: translateY(-1px); color: #fff; }
.store-badge svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; }
.store-badge small { font-size: 0.66rem; font-weight: 500; opacity: 0.8; }
.footer-grid .footer-badges .store-badge,
.footer-grid .footer-badges .store-badge:hover { padding: 7px 14px 7px 11px; font-size: 0.88rem; color: #fff; }
.footer-badges .store-badge svg { width: 20px; height: 20px; }

/* ---------- Coming-soon popup ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(43, 52, 69, 0.45);
}
.modal-backdrop.open { display: flex; }
.modal {
  width: 100%;
  max-width: 400px;
  padding: 32px 28px 26px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.modal img { width: 64px; height: 64px; border-radius: 14px; margin: 0 auto 16px; }
.modal h3 { margin: 0 0 8px; }
.modal p { margin: 0 0 22px; }

/* ---------- Contact form status ---------- */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; padding: 12px 16px; border-radius: var(--radius-md); font-size: 0.92rem; font-weight: 600; text-align: center; }
.form-status.success { background: var(--green-soft); color: #2E7D50; }
.form-status.error { background: var(--sos-soft); color: var(--sos-dark); }
