/* TeleSync — shared stylesheet */

:root {
  --navy: #14254f;
  --ink: #192335;
  --blue: #2447b8;
  --blue-2: #3b6fd6;
  --sky: #45a6ee;
  --green: #4e9a50;
  --green-2: #6cc070;
  --alert: #d6342c;
  --muted: #586174;
  --line: #d9e5f8;
  --tint: #f2f7fe;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 37, 79, .08);
  --shadow-lg: 0 24px 60px rgba(20, 37, 79, .16);
  --wrap: 1180px;
  --grad: linear-gradient(135deg, #14254f 0%, #2447b8 55%, #45a6ee 100%);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--white);
  /* light blueprint grid, like an engineering sheet */
  background-image:
    linear-gradient(rgba(59, 111, 214, .09) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(59, 111, 214, .09) 1.5px, transparent 1.5px);
  background-size: 150px 150px;
  background-position: center top;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-2); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--ink); font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.accent { color: var(--blue-2); }
.accent-green { color: var(--green); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; color: #fff; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(20, 37, 79, .08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 20px;
}
.brand img { height: 42px; width: auto; }

.nav ul { display: flex; gap: 6px; }
.nav a {
  position: relative; display: block; padding: 10px 16px;
  font-size: 14.5px; font-weight: 500; color: var(--ink);
}
.nav a:hover { color: var(--blue-2); }
.nav a[aria-current="page"] { color: var(--blue-2); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--green);
}

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons, pills, links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(20, 37, 79, .25); }
.btn-dark:hover { color: #fff; background: #1b3270; }
.btn-light { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-light:hover { color: var(--blue); border-color: var(--blue-2); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { color: var(--blue); }
.btn svg, .more svg { width: 18px; height: 18px; flex: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 22px; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-2), var(--green-2));
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em;
}
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 13px; font-weight: 600;
}
.tag svg { width: 15px; height: 15px; }
.tag-soft { background: var(--tint); color: var(--blue); border: 1px solid var(--line); }

.more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-size: 19px; font-weight: 600; color: var(--blue-2);
}
.more svg { transition: transform .2s; }
.more:hover svg { transform: translateX(5px); }

/* ---------- Hero ---------- */

.hero { padding: 56px 0 70px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr minmax(0, 1.5fr) 1fr;
  align-items: center; gap: 28px;
}
.hero-device img, .hero-phone img {
  margin: 0 auto; max-height: 500px; width: auto;
  filter: drop-shadow(0 26px 34px rgba(20, 37, 79, .22));
}
.hero-device img { max-height: 440px; animation: float 7s ease-in-out infinite; }
.hero-phone img { animation: float 7s ease-in-out -3.5s infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

.hero-copy { text-align: center; }
.hero-kicker { font-size: clamp(18px, 2.1vw, 25px); font-weight: 600; color: var(--blue-2); margin-bottom: 10px; }
.hero-logo { width: min(100%, 520px); margin: 0 auto 18px; }
.hero-lead { font-size: clamp(16px, 1.55vw, 20px); font-weight: 500; line-height: 1.5; max-width: 30em; margin: 0 auto 24px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 20px; }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section-tight { padding: 36px 0; }

.rule-title {
  position: relative; text-align: center; padding: 20px 0; margin-bottom: 30px;
  border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9) 20%, rgba(255, 255, 255, .9) 80%, transparent);
}
.rule-title h2 { font-size: clamp(30px, 4.4vw, 46px); color: var(--navy); }
.rule-title::before, .rule-title::after {
  content: ""; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--green-2);
}
.rule-title::before { left: 0; }
.rule-title::after { right: 0; background: var(--blue-2); }

.lead { font-size: clamp(16px, 1.5vw, 19px); }
.lead strong { color: var(--navy); }

.eyebrow {
  display: block; margin-bottom: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green);
}
.sub-title { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; color: var(--navy); }
.sub-lead { color: var(--muted); max-width: 46em; }
.center .sub-lead { margin-left: auto; margin-right: auto; }
.head { margin-bottom: 34px; }

/* page header card (inner pages) */
.page-head { padding: 52px 0 26px; }
.page-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(28px, 5vw, 52px) clamp(20px, 6vw, 80px);
  text-align: center; box-shadow: var(--shadow);
}
.page-card h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 18px; color: var(--navy); }
.page-card p { max-width: 50em; margin-left: auto; margin-right: auto; color: var(--ink); }

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 19px; margin-bottom: 8px; color: var(--navy); }
.card p { font-size: 15px; color: var(--muted); }

.icon {
  display: inline-grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px;
  border-radius: 14px; background: var(--tint); color: var(--blue);
}
.icon svg { width: 24px; height: 24px; }
.icon-green { background: #eaf6ea; color: var(--green); }
.icon-red { background: #fdecea; color: var(--alert); }
.icon-solid { background: var(--grad); color: #fff; }

.stat { text-align: center; }
.stat-num {
  display: block; font-size: clamp(38px, 5vw, 56px); font-weight: 800; line-height: 1.05;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { display: block; margin: 8px 0 10px; font-weight: 600; color: var(--navy); }

.media {
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: var(--tint); box-shadow: var(--shadow);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-contain { display: grid; place-items: center; padding: 26px; background: linear-gradient(160deg, #eef4ff, #dfeaff); }
.media-contain img { width: auto; height: auto; max-height: 360px; object-fit: contain; }
.media-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
.media-pair .media { aspect-ratio: 3 / 2; }
figure { margin: 0; }
figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* split layout: text + picture */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.split-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

.ticks li {
  position: relative; padding: 0 0 0 34px; margin-bottom: 16px;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks strong { display: block; color: var(--navy); }
.ticks span { color: var(--muted); font-size: 15px; }

.dots li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 15px; color: var(--muted); }
.dots li::before {
  content: ""; position: absolute; left: 2px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-2);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--navy);
  box-shadow: 0 4px 12px rgba(20, 37, 79, .06);
}
.chip svg { width: 16px; height: 16px; color: var(--alert); }

/* ---------- Gradient band ---------- */

.band {
  background: var(--grad); color: #fff; border-radius: 26px;
  padding: clamp(30px, 5vw, 60px); box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 192, 112, .35), transparent 70%); pointer-events: none;
}
.band > * { position: relative; z-index: 1; }
.band h2 { color: #fff; font-size: clamp(28px, 4vw, 46px); margin: 16px 0 14px; }
.band h3 { color: #fff; }
.band p { color: rgba(255, 255, 255, .88); }
.band .split { align-items: center; }
.band-phone img { max-height: 470px; width: auto; margin: 0 auto; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .35)); }

.glass {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px; padding: 20px; backdrop-filter: blur(4px);
}
.glass h3 { font-size: 17px; margin-bottom: 4px; }
.glass p { font-size: 14px; }
.glass .num { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: #b9f0bb; }

.cta { text-align: center; }
.cta p { max-width: 40em; margin: 0 auto 24px; }

/* ---------- Phone strip ---------- */

.strip {
  display: flex; gap: 22px; overflow-x: auto; padding: 10px 20px 26px;
  scroll-snap-type: x mandatory; scroll-padding: 20px;
  scrollbar-width: thin; scrollbar-color: var(--blue-2) transparent;
}
.strip figure { flex: 0 0 210px; scroll-snap-align: start; }
.strip img { filter: drop-shadow(0 14px 22px rgba(20, 37, 79, .18)); }
.strip figcaption { font-size: 14px; }
.strip figcaption b { display: block; color: var(--navy); font-weight: 600; }
.strip-hint { text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- Flow / steps ---------- */

.flow { counter-reset: step; }
.flow .card { position: relative; padding-top: 34px; }
.flow .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 24px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700;
  box-shadow: 0 6px 14px rgba(36, 71, 184, .35);
}
.flow-red .card::before { background: linear-gradient(135deg, #b3261e, #ef5b4c); box-shadow: 0 6px 14px rgba(214, 52, 44, .35); }
.flow .card img { max-height: 330px; width: auto; margin: 16px auto 0; }

/* ---------- Timeline ---------- */

.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 3px;
  background: linear-gradient(var(--green-2), var(--blue-2), var(--navy)); border-radius: 3px;
}
.timeline > li { position: relative; padding-left: 82px; margin-bottom: 22px; }
.timeline > li:last-child { margin-bottom: 0; }
.timeline .node {
  position: absolute; left: 0; top: 14px; width: 57px; height: 57px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 3px solid var(--blue-2);
  font-weight: 700; font-size: 18px; color: var(--blue);
}
.timeline .done .node { background: var(--green); border-color: var(--green); color: #fff; }
.timeline .now .node { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 7px rgba(59, 111, 214, .18); }
.status {
  display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: var(--tint); color: var(--blue);
}
.done .status { background: #eaf6ea; color: #2f7032; }
.now .status { background: var(--blue); color: #fff; }

/* ---------- Compare ---------- */

.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; }
.compare .card { text-align: center; }
.compare .vs { align-self: center; font-weight: 700; color: var(--muted); }
.compare .card.win { background: var(--grad); border-color: transparent; }
.compare .card.win h3, .compare .card.win p { color: #fff; }

/* ---------- References ---------- */

.refs li {
  padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: var(--muted); text-indent: -22px; overflow-wrap: anywhere;
}
.refs li:last-child { border-bottom: 0; }
.refs em { color: var(--ink); }

.note {
  border-left: 4px solid var(--green); background: #f3faf3; border-radius: 0 14px 14px 0;
  padding: 18px 22px; font-size: 15px; color: var(--ink);
}

/* ---------- Our Story ---------- */

.story { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.story-photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: linear-gradient(160deg, #eef4ff, #dfeaff);
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.story-photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--green-2), var(--blue-2));
}
.story-photo.is-placeholder { display: grid; place-items: center; }
.story-photo.is-placeholder span {
  display: grid; place-items: center; width: 116px; height: 116px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 38px; font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 14px 30px rgba(36, 71, 184, .28);
}
.story-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px 26px 28px; }
.story .story-name { margin-bottom: 6px; }
.story .story-school { margin-bottom: 12px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.story .story-role {
  display: inline-block; margin-bottom: 18px; padding: 5px 14px; border-radius: 999px;
  background: #eaf6ea; color: #2f7032; font-size: 13px; font-weight: 600; line-height: 1.4;
}
.story .story-text { align-self: stretch; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink); }
/* a story not yet written shows a quiet placeholder */
.story .story-text:empty {
  flex: 1; display: grid; place-items: center; min-height: 140px; padding: 18px;
  border: 2px dashed var(--line); border-radius: 14px;
}
.story .story-text:empty::before { content: "Story coming soon"; font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { margin-top: 60px; background: var(--navy); color: rgba(255, 255, 255, .78); font-size: 14.5px; }
.site-footer .top {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px;
  padding-top: 54px; padding-bottom: 40px;
}
.site-footer img { height: 44px; width: auto; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 8px; }
.site-footer .bottom {
  border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; padding-bottom: 22px;
  font-size: 13px; color: rgba(255, 255, 255, .6);
}

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-device img, .hero-phone img { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split-wide { grid-template-columns: 1fr; gap: 32px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy { grid-column: 1 / -1; order: -1; }
  .hero-device img, .hero-phone img { max-height: 360px; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .site-footer .top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(20, 37, 79, .12);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .nav a { padding: 13px 4px; font-size: 16px; border-bottom: 1px solid var(--tint); }
  .nav a[aria-current="page"]::after { left: auto; right: 6px; bottom: 50%; margin-bottom: -2.5px; }
}

@media (max-width: 640px) {
  body { background-size: 96px 96px; }
  .section { padding: 46px 0; }
  .hero { padding: 34px 0 46px; }
  .g2, .g3, .g4, .g5, .media-pair { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare .vs { justify-self: center; }
  .hero-device img, .hero-phone img { max-height: 270px; }
  .brand img { height: 36px; }
  .site-header .wrap { min-height: 66px; }
  .timeline::before { left: 21px; }
  .timeline > li { padding-left: 62px; }
  .timeline .node { width: 45px; height: 45px; font-size: 16px; }
  .site-footer .top { grid-template-columns: 1fr; gap: 28px; }
  .strip figure { flex-basis: 180px; }
  .story-photo { aspect-ratio: 1 / 1; }
  .btn { width: 100%; }
}
