/* AGR Tech site: the FestiPics "Bright Gloss" look in the AGR theme (teal to blue to indigo). */
@font-face { font-family: "Outfit"; src: url(/assets/fonts/outfit.woff2?v=d8a316f7) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/assets/fonts/inter.woff2?v=f11d729b) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --teal: #0E9AA8; --blue: #1D74D8; --indigo: #4F46E5; --deep: #0A4570;
  --ink: #0B1B2E; --muted: #475A70; --soft: #66788E; --page: #F3F8FB;
  --line: rgba(10, 69, 112, .09);
  --brand-grad: linear-gradient(135deg, #14B8A6 0%, #0E9AA8 30%, #1D74D8 70%, #4F46E5 100%);
  /* buttons: a deeper blend so the white text stays readable (above 4.5:1 on every part) */
  --btn-grad: linear-gradient(135deg, #0B7A83 0%, #0F6FA0 40%, #1D5BD0 75%, #3B3FD0 100%);
  --text-grad: linear-gradient(92deg, #0E9AA8 0%, #1D74D8 60%, #4F46E5 100%);
  --card-bg: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, .86) 100%);
  --card-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(10, 40, 70, .05), 0 18px 40px -18px rgba(10, 69, 112, .24);
  --radius: 22px;
  --display: "Outfit", system-ui, sans-serif;
}

/* thin scrollbar in brand colours */
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
::-webkit-scrollbar { width: 8px; height: 6px; }
::-webkit-scrollbar-track { background: #EAF3F8; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #0E9AA8, #1D74D8); border-radius: 8px; border: 2px solid #EAF3F8; }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-width: thin; scrollbar-color: #1D8FC0 #EAF3F8; } }

* { box-sizing: border-box; }
body { margin: 0; font-family: "Inter", system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--page);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  /* the footer always ends the page: a short page (404) fills the screen */
  position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-family: var(--display); letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
svg { width: 1.1em; height: 1.1em; flex: none; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: #fff; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.grad { background: var(--text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* soft background colour behind the top of every page */
.bg { position: absolute; top: 0; left: 0; right: 0; height: 1300px; max-height: 100%; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.o1 { width: 620px; height: 620px; left: -180px; top: -200px; background: radial-gradient(circle, rgba(94, 234, 212, .50), transparent 65%); }
.o2 { width: 560px; height: 560px; right: -160px; top: 120px; background: radial-gradient(circle, rgba(147, 197, 253, .60), transparent 65%); }
.o3 { width: 520px; height: 520px; left: 30%; top: 560px; background: radial-gradient(circle, rgba(196, 181, 253, .45), transparent 65%); }

/* header */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(243, 248, 251, .78); backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 78px; }
/* brand: the AGR APPS logo (five dots in a glossy white disc) + the name */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-badge { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 32% 22%, #FFFFFF 0%, #FFFFFF 38%, #E8F4FA 72%, #D6E8F5 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -4px 8px rgba(10, 69, 112, .10), 0 0 0 1px rgba(10, 69, 112, .10), 0 8px 18px -8px rgba(10, 69, 112, .45); }
.brand-badge::after { content: ""; position: absolute; left: 12%; right: 12%; top: 4%; height: 46%; border-radius: 50% 50% 42% 42%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); }
.brand-badge .logo-svg { position: relative; z-index: 1; width: 100%; height: 100%; }
.brand-name { font-family: var(--display); font-size: 23px; font-weight: 800; letter-spacing: -0.02em; color: var(--deep); white-space: nowrap; }
.links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--muted); }
.links a { transition: color .2s; } .links a:hover { color: var(--ink); }
.menu { display: none; margin-left: 4px; width: 44px; height: 44px; place-items: center; background: none; border: 0; color: var(--ink); cursor: pointer; }
.menu svg { width: 26px; height: 26px; }
.menu .i-close { display: none; }
.nav.open .menu .i-open { display: none; } .nav.open .menu .i-close { display: inline; }
.mobile-menu { display: none; }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-primary { color: #fff; background: var(--btn-grad); box-shadow: 0 10px 30px -8px rgba(29, 91, 208, .55), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-primary::before { content: ""; position: absolute; inset: 0 0 50% 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .02)); border-radius: 999px 999px 40% 40% / 999px 999px 18px 18px; }
.btn-ghost { color: var(--ink); background: var(--card-bg); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.btn-ghost svg { width: 18px; height: 18px; color: var(--teal); }
.btn-light { background: #fff; color: var(--deep); box-shadow: 0 14px 30px -10px rgba(5, 25, 60, .5); }
.logo-svg { width: 20px; height: 20px; }
.btn-ghost .logo-svg { width: 18px; height: 18px; }

/* page top (home and the policy pages) */
.page-hero { text-align: center; padding: 64px 0 40px; display: grid; justify-items: center; }
.page-hero h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; }
.lead { margin: 16px auto 0; max-width: 620px; font-size: 19px; color: var(--muted); }
.updated { margin-top: 12px; font-size: 15px; color: var(--soft); }
.hero-icon { width: 84px; height: 84px; border-radius: 22px; margin-bottom: 20px; box-shadow: 0 14px 30px -14px rgba(10, 40, 70, .6), 0 0 0 3px #fff; }
.micro { list-style: none; padding: 0; margin: 26px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px;
  font-size: 15px; font-weight: 500; color: var(--muted); }
.micro li { display: inline-flex; align-items: center; gap: 8px; }
.micro svg { width: 18px; height: 18px; color: var(--teal); }
.not-found { min-height: 46vh; place-content: center; gap: 8px; }
.not-found .btn { margin-top: 22px; }

/* our apps: one card per app (icon + name line, text, links); each card takes three rows of the grid (subgrid),
   so in one row of cards the texts and the buttons start on the same line */
.apps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 960px; margin: 0 auto; }
.app-card { display: grid; grid-row: span 3; grid-template-columns: 72px 1fr; grid-template-rows: subgrid; column-gap: 18px; row-gap: 14px;
  align-items: center; padding: 24px 26px; border-radius: var(--radius); background: var(--card-bg); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.app-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 20px -10px rgba(10, 40, 70, .5); }
.app-card h2 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.app-card p { grid-column: 1 / -1; align-self: start; color: var(--muted); }
.app-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-self: end; }

/* contact band */
/* same width as the app cards above it, so both edges line up */
.final { position: relative; overflow: hidden; text-align: center; padding: 60px 24px; max-width: 960px; margin: 88px auto 0; border-radius: 32px; display: grid; gap: 14px; justify-items: center;
  color: #fff; background: var(--brand-grad); box-shadow: 0 40px 80px -30px rgba(29, 116, 216, .6), inset 0 1px 0 rgba(255, 255, 255, .4); }
.final::before { content: ""; position: absolute; inset: 0 0 55% 0; background: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent); pointer-events: none; }
/* fine grid on the band, fading out towards the edges */
.final::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 34px 34px; background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 25%, transparent 78%); }
.final > * { position: relative; z-index: 1; }
.final h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; }
.final p { font-size: 18px; color: rgba(255, 255, 255, .9); }
.final .btn { margin-top: 12px; }
.final .btn svg { color: var(--blue); }

/* footer */
.foot { margin-top: 96px; padding: 56px 0 28px; background: #fff; border-top: 1px solid var(--line); }
/* four columns on one top line; every row 22px high with one 10px step between rows */
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; align-items: start; }
.foot h2 { font-family: "Inter", system-ui, sans-serif; font-size: 15px; font-weight: 700; line-height: 1.5; letter-spacing: 0; color: var(--ink); }
.f-col { display: grid; gap: 10px; justify-items: start; scroll-margin-top: 100px; }
.f-col h2 { margin-bottom: 6px; }
.f-col a { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--muted); }
.f-col a:hover { color: var(--ink); }
.f-col svg { margin-top: 3px; }
.f-brand p { margin: 14px 0 16px; font-size: 15px; max-width: 280px; color: var(--muted); }
.play { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--deep); }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }

/* policy text: one readable glossy sheet */
.doc { max-width: 800px; margin: 0 auto; padding: 44px 48px; border-radius: 28px; background: var(--card-bg); border: 1px solid var(--line); box-shadow: var(--card-shadow); font-size: 17px; line-height: 1.7; }
.doc h2 { font-size: 23px; font-weight: 700; margin: 36px 0 10px; }
.doc p { margin-bottom: 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 8px; padding-left: 4px; }
.doc li::marker { color: var(--teal); font-weight: 700; }
.doc a { color: #0F62B8; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(29, 116, 216, .35); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: currentColor; }
.doc > :last-child { margin-bottom: 0; }
.short { margin-bottom: 30px; padding: 22px 26px; border-radius: 20px; background: linear-gradient(135deg, #EAFBF8, #EEF3FF); border: 1px solid rgba(14, 154, 168, .16); }
.doc .short h2 { margin: 0 0 10px; font-size: 19px; }
.short ul { margin: 0; }
.short li:last-child { margin-bottom: 0; }

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

/* ---------- tablet ---------- */
@media (max-width: 980px) {
  .links { display: none; }
  .nav-cta { margin-left: auto; }
  .menu { display: inline-grid; }
  .nav.open .mobile-menu { display: grid; }
  /* a phone held sideways is shorter than the open menu: let the menu scroll */
  .mobile-menu { padding: 6px 20px 18px; gap: 2px; border-top: 1px solid var(--line); max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; }
  .mobile-menu a { padding: 13px 4px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .mobile-menu a:last-child { border-bottom: 0; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}

/* ---------- phone ---------- */
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .nav-in { height: 70px; gap: 8px; }
  .brand { gap: 9px; } .brand-badge { width: 40px; height: 40px; } .brand-name { font-size: 21px; }
  .btn-sm { padding: 0 16px; }
  .page-hero { padding: 40px 0 26px; }
  .page-hero h1 { font-size: 36px; }
  .lead { font-size: 17px; }
  .hero-icon { width: 72px; height: 72px; border-radius: 19px; margin-bottom: 16px; }
  .micro { gap: 8px 16px; font-size: 14px; margin-top: 20px; }
  .apps-grid { grid-template-columns: 1fr; }
  .app-card { padding: 20px; column-gap: 16px; grid-template-columns: 64px 1fr; }
  .app-icon { width: 64px; height: 64px; border-radius: 16px; }
  .app-card h2 { font-size: 19px; }
  .app-links .btn { flex: 1 1 0; padding: 0 12px; }
  .final { padding: 44px 20px; margin-top: 64px; border-radius: 26px; }
  .micro li { white-space: nowrap; gap: 6px; }
  .final p { font-size: 16px; }
  /* footer on a phone: brand and contact full width, the two link lists side by side */
  .foot { margin-top: 72px; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .f-brand, .f-contact { grid-column: 1 / -1; }
  /* each footer link is a 34px tall touch row (same look as 22px text + 12px gap) */
  .f-col { gap: 0; }
  .f-col h2 { margin-bottom: 8px; }
  .f-col a { padding: 6px 0; }
  /* policy text on a phone: written straight on the page, not inside a floating sheet (the "In short" box stays) */
  .doc { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; font-size: 16.5px; }
  .doc h2 { font-size: 21px; margin-top: 30px; }
  .short { padding: 18px; }
}

/* ---------- small phones (320 to 380 wide): header items keep their own space ---------- */
@media (max-width: 380px) {
  .nav-in { gap: 6px; }
  .brand { gap: 8px; } .brand-badge { width: 38px; height: 38px; } .brand-name { font-size: 19px; }
  .btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .menu { width: 40px; margin-left: 0; }
  .app-links .btn { font-size: 14px; gap: 8px; }
}

/* ---------- 320 to 350 wide: brand, button and menu share one row ---------- */
@media (max-width: 350px) {
  .brand { gap: 7px; } .brand-badge { width: 36px; height: 36px; } .brand-name { font-size: 18px; }
  .nav-cta { padding: 0 12px; font-size: 13.5px; }
}
