/* =========================================================
   AGMG Apps — global stylesheet
   All brand colors live in :root so they can be changed once.
   ========================================================= */
:root {
  --navy: #0b1b3f;
  --navy-2: #13275a;
  --blue: #2563eb;
  --blue-600: #1d4ed8;
  --indigo: #4f46e5;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #15803d;
  --danger: #b91c1c;
  --warn-bg: #fff7e6;
  --warn-border: #f5c26b;
  --gradient: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --container: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 680px; margin-bottom: 36px; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 650; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  font-family: inherit; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-600); color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); color: #fff; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--sm { padding: 8px 14px; font-size: .85rem; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.brand span b { color: var(--blue); font-weight: 800; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 550; font-size: .95rem; }
.nav__links a:hover { background: var(--bg-soft); color: var(--navy); }
.nav__links a[aria-current="page"] { color: var(--blue); }
.nav__cta { margin-left: 8px; }
.nav__links a.btn--primary, .nav__links a.btn--primary:hover { color: #fff; background: var(--blue); }
.nav__links a.btn--primary:hover { background: var(--blue-600); }
.nav__toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; color: var(--navy); align-items: center; justify-content: center; }
.nav__toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu { position: fixed; inset: 64px 0 auto 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 12px 20px 20px; display: none; }
  .nav__menu.is-open { display: block; }
  .nav__links { flex-direction: column; align-items: stretch; }
  .nav__links a { padding: 12px; font-size: 1rem; }
  .nav__cta { margin: 10px 0 0; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 72px; overflow: hidden; background: radial-gradient(1000px 420px at 85% -10%, rgba(79,70,229,.12), transparent 60%), radial-gradient(800px 380px at -10% 10%, rgba(37,99,235,.10), transparent 60%); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero__visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hero__tile { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); text-align: center; }
.hero__tile:nth-child(2) { transform: translateY(28px); }
.hero__tile img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 12px; object-fit: cover; }
.hero__tile strong { display: block; color: var(--navy); font-size: .98rem; }
.hero__tile small { color: var(--muted); }
@media (max-width: 860px) {
  .hero { padding: 52px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 420px; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.value-card .icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(37,99,235,.1); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.value-card .icon svg { width: 22px; height: 22px; }
.value-card p { color: var(--muted); margin: 0; font-size: .95rem; }

.app-card { display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .2s; }
.app-card:hover { border-color: #c7d2fe; transform: translateY(-2px); }
.app-card__head { display: flex; gap: 14px; align-items: center; }
.app-card__icon { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }
.app-card h3 { margin: 0 0 2px; }
.app-card h3 a { color: inherit; text-decoration: none; }
.app-card h3 a:hover { color: var(--blue); }
.tag { display: inline-block; font-size: .75rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border); }
.app-card p { color: var(--muted); margin: 0; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: rgba(37,99,235,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.app-card .check-list { font-size: .93rem; }
.app-card__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.app-card__legal { font-size: .85rem; }

/* ---------- Google Play badge-style button ---------- */
.play-btn { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none; padding: 9px 16px 9px 12px; border-radius: 10px; border: 1px solid #000; line-height: 1.1; transition: transform .2s; }
.play-btn:hover { color: #fff; transform: translateY(-1px); }
.play-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.play-btn span { display: flex; flex-direction: column; font-weight: 600; font-size: 1rem; }
.play-btn small { font-size: .62rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.play-btn[aria-disabled="true"] { background: #94a3b8; border-color: #94a3b8; cursor: not-allowed; transform: none; }

/* ---------- App detail ---------- */
.breadcrumbs { font-size: .88rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #cbd5e1; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); }
.app-hero { padding: 36px 0 56px; }
.app-hero__inner { display: flex; gap: 28px; align-items: center; }
.app-hero__icon { width: 120px; height: 120px; border-radius: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); object-fit: cover; flex-shrink: 0; }
.app-hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }
.app-hero .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
@media (max-width: 640px) { .app-hero__inner { flex-direction: column; align-items: flex-start; } .app-hero__icon { width: 96px; height: 96px; border-radius: 22px; } }

.feature-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { color: var(--muted); margin: 0; font-size: .95rem; }

.gallery { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery img { height: 300px; width: auto; max-width: none; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); scroll-snap-align: start; background: #fff; }
@media (max-width: 640px) { .gallery img { height: 220px; } }
.placeholder-shot { flex: 0 0 auto; width: 170px; height: 300px; border-radius: 12px; border: 2px dashed #cbd5e1; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .85rem; padding: 12px; background: #fff; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 16px 16px 16px 64px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }

.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

.link-list { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; border-radius: 24px; padding: 48px 32px; text-align: center; background-image: radial-gradient(600px 240px at 90% 0%, rgba(79,70,229,.45), transparent 60%), radial-gradient(500px 220px at 0% 100%, rgba(37,99,235,.35), transparent 60%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cbd5e1; max-width: 560px; margin: 0 auto 24px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 56px 0 32px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.page-head p { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin: 0; }

/* ---------- Prose (legal/about) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.review-note { background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .9rem; margin: 1em 0; }
.review-note strong { color: #92400e; }
.legal-meta { color: var(--muted); font-size: .92rem; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 28px; }
.contact-card h2 { font-size: 1.25rem; margin: 6px 0 0; }
.contact-card p { margin: 0 0 12px; }
.contact-card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--gradient); box-shadow: 0 8px 20px rgba(37,99,235,.25); }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card__value { font-size: 1.05rem; font-weight: 600; color: var(--navy); font-style: normal; line-height: 1.7; word-break: break-word; margin-bottom: 18px; }
a.contact-card__value { color: var(--blue); }
.contact-card .btn-row { margin-top: auto; }
.contact-tips h2 { font-size: 1.15rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden; color: #a9b6cc; padding: 64px 0 28px;
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(79,70,229,.28), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(37,99,235,.18), transparent 60%),
    #081430;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147,197,253,.6), rgba(165,180,252,.6), transparent);
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer .brand { color: #fff; font-size: 1.25rem; }
.site-footer .brand img { width: 38px; height: 38px; }
.site-footer .brand span b { color: #93c5fd; }

.footer__eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #93c5fd; margin-bottom: 8px; }

/* App strip */
.footer-cta {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center;
  padding: 28px; margin-bottom: 52px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.footer-cta__title { color: #fff; font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 750; letter-spacing: -.015em; line-height: 1.25; margin: 0 0 6px; }
.footer-cta__sub { margin: 0; font-size: .95rem; }
.footer-cta__apps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.footer-app {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: rgba(8,20,48,.55); border: 1px solid rgba(255,255,255,.1);
  transition: border-color .25s, background .25s, transform .25s;
}
.footer-app img { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; background: #fff; object-fit: cover; }
.footer-app span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.footer-app strong { color: #fff; font-size: .95rem; font-weight: 650; }
.footer-app small { font-size: .8rem; color: #8fa0bc; }
.footer-app > svg { width: 18px; height: 18px; margin-left: auto; flex-shrink: 0; color: #93c5fd; transition: transform .25s; }
.footer-app:hover { border-color: rgba(147,197,253,.45); background: rgba(37,99,235,.14); transform: translateY(-2px); }
.footer-app:hover > svg { transform: translateX(3px); }

/* Columns */
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer__tagline { color: #e2e8f0; font-weight: 600; margin: 16px 0 6px; }
.footer__desc { font-size: .95rem; max-width: 300px; margin: 0 0 20px; }
.footer__support {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); color: #fff !important; font-size: .9rem; font-weight: 600;
  transition: background .25s, border-color .25s;
}
.footer__support svg { width: 16px; height: 16px; }
.footer__support:hover { background: rgba(255,255,255,.08); border-color: rgba(147,197,253,.6); }
.footer__heading { color: #fff; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin: 6px 0 18px; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .95rem; }
.footer__grid ul a { position: relative; display: inline; transition: color .2s; }
.footer__grid ul a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.footer__grid ul a:hover { color: #fff; }
.footer__grid ul a:hover::after { transform: scaleX(1); }
.footer__ext { display: inline-block; width: 13px; height: 13px; margin-left: 3px; vertical-align: -1px; opacity: .7; }

/* Bottom bar */
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem;
}
.footer__bottom p { margin: 0; }
.footer__note { color: #6f7f9a; flex: 1; text-align: center; }
.footer__top { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #cbd5e1 !important; transition: color .2s; }
.footer__top svg { width: 16px; height: 16px; padding: 3px; box-sizing: content-box; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); transition: transform .25s, border-color .25s; }
.footer__top:hover { color: #fff !important; }
.footer__top:hover svg { transform: translateY(-2px); border-color: #93c5fd; }
.site-footer :focus-visible { outline-color: #93c5fd; }

@media (max-width: 960px) {
  .footer-cta { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-footer { padding-top: 48px; }
  .footer-cta { padding: 20px; margin-bottom: 40px; }
  .footer-cta__apps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__note { text-align: left; }
}

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 100px 0; }
.not-found .code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
