/* avenTelli Group — site styles */

:root {
  --ink: #061C3E;
  --body: #3C4F6B;
  --muted: #63758A;
  --faint: #5F7187;
  --cyan: #10BFD0;
  --accent-text: #0E7A8A;   /* cyan dark enough for small text on white */
  --cyan-bright: #35E3ED;
  --navy-btn: #082B59;
  --surface: #F8FCFD;
  --line: #E6EEF2;
  --line-strong: #E1EBF0;
  --link: #0E6E86;
  --link-hover: #08485A;
  --wrap: 1180px;
  --font: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { max-width: 100%; }

a { color: var(--link); }
a:hover { color: var(--link-hover); }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #fff; color: var(--ink); padding: 12px 18px; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- Wordmark ---------- */

.mark {
  display: inline-flex; align-items: baseline; gap: 1px;
  font-weight: 400; letter-spacing: .12em; color: var(--ink);
  text-decoration: none; white-space: nowrap;
}
.mark i { position: relative; display: inline-block; font-style: normal; }
.mark i::after {
  content: ""; position: absolute; left: 50%; top: 0;
  transform: translateX(calc(-50% - .06em));
  width: .22em; height: .22em; border-radius: 50%; background: var(--cyan);
}
.mark--light { color: #fff; }
.mark--light i::after { background: var(--cyan-bright); }

/* Telli 5 keeps its own identity */
.telli5 {
  font-family: Georgia, "Times New Roman", serif; font-weight: 700;
  color: #0E1A2B; white-space: nowrap;
}
.telli5 b {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.45em; height: 1.45em; padding: 0 .3em;
  border-radius: 999px; background: #F2A93B; color: #0E1A2B;
  font-family: var(--font); font-weight: 700; font-size: .68em; line-height: 1;
  vertical-align: .18em;
}

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

.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 16px; padding-bottom: 16px;
}
.site-head .mark { font-size: 27px; }

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: #3C4F6B; text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"]:not(.btn-sm) {
  color: var(--ink); font-weight: 600;
  border-bottom: 2px solid var(--cyan); padding-bottom: 3px;
}
/* The "Contact us" pill stays a pill on its own page: white text, no underline. */
.nav .btn-sm,
.nav .btn-sm:hover,
.nav .btn-sm:focus,
.nav .btn-sm[aria-current="page"] {
  color: #fff; border-bottom: 0; padding-bottom: 0;
}
.nav .btn-sm[aria-current="page"] { background: #061F42; }

.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  background: #fff; border: 1.5px solid #CBDDE4; border-radius: 12px;
  cursor: pointer; color: var(--ink);
}
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

/* ---------- Buttons ---------- */

.btn, .btn-sm {
  display: inline-flex; align-items: center; justify-content: center; gap: .36em;
  border-radius: 999px; text-decoration: none; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
}
.btn { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-primary, .btn-sm { background: var(--navy-btn); color: #fff; }
.btn-primary:hover, .btn-sm:hover { background: #061F42; color: #fff; }
.btn-ghost { background: #fff; border-color: #CBDDE4; color: var(--ink); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--ink); }

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

.section { padding: 76px 0; }
.section--tight { padding: 56px 0; }
.section--surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy { background: var(--ink); color: #fff; }

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--line);
  padding: 84px 0 72px;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-waves {
  position: absolute; left: 0; right: 0; bottom: -10px; z-index: 1;
  width: 100%; height: 190px; opacity: .55; pointer-events: none;
}

.eyebrow {
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-text); font-weight: 600; margin-bottom: 20px;
}
.eyebrow--muted { color: #5A6C84; }

h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.12; font-weight: 500; letter-spacing: -.02em; max-width: 15em; }
h2 { font-size: clamp(27px, 3.4vw, 36px); line-height: 1.2; font-weight: 500; letter-spacing: -.015em; }
h3, .h-sm { font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: 0; }

.lede { margin-top: 22px; font-size: 19px; line-height: 1.65; color: var(--body); max-width: 40em; }
.prose p { font-size: 18px; line-height: 1.7; color: var(--body); }
.prose p + p { margin-top: 18px; }
.small { font-size: 15px; line-height: 1.6; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.split > .col-main { flex: 999 1 460px; min-width: 0; }
.split > .col-side { flex: 1 1 300px; min-width: 0; }
.split--center { align-items: center; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }

.card {
  border: 1px solid var(--line-strong); border-radius: 18px; padding: 32px; background: #fff;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 16px; line-height: 1.7; color: var(--body); }

.panel {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 22px; padding: 38px;
}
.panel--sm { border-radius: 16px; padding: 22px; }

/* ---------- Product blocks ---------- */

.product { padding: 56px 0; border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; }
.product .name { font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.product .name .telli5 { font-size: 30px; }
.product .tag-line { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--body); }
.product .body { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; padding: 32px; }
.product .body > p { font-size: 17px; line-height: 1.7; color: var(--body); }
.product .note { margin-top: 20px; font-size: 14.5px; line-height: 1.6; color: var(--faint); }

.status {
  display: inline-block; margin-top: 14px; padding: 5px 12px; border-radius: 999px;
  background: #EEF4F7; color: #4A5E78; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.status--pilot { background: #E4F7FA; color: #0B6273; }
.status--testing { background: #EAF2F6; color: #3F5A72; }

.ticks { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.65; color: var(--body); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
}

.steps { display: flex; flex-direction: column; gap: 26px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps .n {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.steps p { font-size: 17px; line-height: 1.7; color: var(--body); }
.steps strong { color: var(--ink); }

/* ---------- Motto band ---------- */

/* Slim motto strip: same visual weight as the footer, not a full section. */
.section--band { padding: 0; }
.motto {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: center; gap: 6px 18px;
  padding-top: 26px; padding-bottom: 26px; text-align: center;
}
.motto .eyebrow { color: var(--cyan-bright); margin-bottom: 0; font-size: 12px; letter-spacing: .2em; }
.motto h2 { font-size: 21px; line-height: 1.4; font-weight: 400; max-width: none; margin: 0; letter-spacing: 0; }

.statement { text-align: center; }
.statement h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 500; }
.statement .eq { margin-top: 20px; font-size: clamp(16px, 2vw, 20px); line-height: 1.6; font-weight: 600; }
.statement .eq span { color: var(--cyan-bright); }
.statement .quote { margin-top: 22px; font-size: clamp(18px, 2.4vw, 23px); font-style: italic; color: #DCEBF5; }
.statement .closing { margin-top: 22px; font-size: 17px; line-height: 1.7; color: #BFD4E4; max-width: 44em; margin-left: auto; margin-right: auto; }

/* ---------- Forms ---------- */

form { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 18px; }
.row > * { flex: 1 1 200px; min-width: 0; }

label { font-size: 15px; font-weight: 600; display: block; margin-bottom: 7px; }
label .opt { font-weight: 400; color: #5A6C84; }

input, select, textarea {
  font: 16px var(--font); color: var(--ink); background: #fff;
  border: 1.5px solid #CBDDE4; border-radius: 10px;
  padding: 0 14px; height: 50px; width: 100%;
}
textarea { height: auto; padding: 14px; line-height: 1.55; resize: vertical; min-height: 150px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(16, 191, 208, .22);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 14px; line-height: 1.6; color: var(--muted); }

.form-msg { display: none; border-radius: 14px; padding: 16px 18px; font-size: 16px; line-height: 1.6; }
.form-msg.show { display: block; }
.form-msg.ok { background: #E7F8F1; border: 1px solid #BFE8D7; color: #10543C; }
.form-msg.bad { background: #FDEEEE; border: 1px solid #F3CFCF; color: #8A2525; }

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

.site-foot {
  background: var(--ink); color: #BFD4E4;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.site-foot .wrap {
  display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: space-between; align-items: center;
  padding-top: 28px; padding-bottom: 28px;
}
.site-foot .mark { font-size: 22px; }
.site-foot .motto-line {
  margin-top: 6px; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan-bright);
}
.site-foot .legal { font-size: 12.5px; color: #8FA7BE; }
.site-foot .legal a { color: #8FA7BE; }
.site-foot .legal a:hover { color: #fff; }

/* ---------- Legal pages ---------- */

.doc h2 { margin-top: 48px; font-size: 26px; }
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { font-size: 17px; line-height: 1.75; color: var(--body); }
.doc p { margin-top: 14px; }
.doc ul { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.doc ul li { position: relative; padding-left: 22px; }
.doc ul li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }

/* ---------- Analytics opt-out box ---------- */

.ga-box {
  margin-top: 22px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 16px; padding: 22px;
}
.ga-switch { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.ga-switch input { width: 20px; height: 20px; flex: none; accent-color: var(--cyan); cursor: pointer; }
.ga-box .small { margin-top: 8px; }

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

@media (max-width: 500px) {
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; box-shadow: 0 18px 40px -24px rgba(6, 28, 62, .45);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 2px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .nav .btn-sm { margin-top: 16px; border-bottom: 0; min-height: 50px; }
  .site-head .wrap { position: relative; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .split { gap: 40px; }
  .panel { padding: 26px; }
  .card { padding: 26px; }
  .product .body { padding: 24px; }
  .site-foot .wrap { padding-top: 24px; padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-head, .site-foot, .hero-waves, .actions { display: none; }
  body { color: #000; }
}
