/* ============================================================
   Tanglin Consultancy Ltd — static recreation
   Phase 1: faithful rebuild of the existing WordPress site
   ============================================================ */

:root {
  --navy: #0e2a47;
  --navy-deep: #0a1f36;
  --navy-light: #16395f;
  --accent: #2a7fc1;
  --accent-light: #4ea3df;
  --text: #2c3138;
  --muted: #5d6670;
  --line: #e2e6ea;
  --bg: #ffffff;
  --bg-alt: #f5f7f9;
  --bg-navy: #0e2a47;
  --white: #ffffff;
  --radius: 6px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 .6em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }
.logo-img { height: 96px !important; max-height: 96px; width: auto !important; }

/* Safeguard: never let inline SVGs expand to fill the page */
svg { max-width: 100%; }
img[src$=".svg"] { max-width: 100%; height: auto; }
.logo-mark { width: 40px; height: 40px; flex: 0 0 40px; }
.feature .ico { width: 54px; height: 54px; }
.card .ico { width: 46px; height: 46px; }
.contact-info .ico { width: 24px; height: 24px; flex: 0 0 24px; }

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

.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--bg-navy); color: #d7e2ee; }
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: #fff; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .6em;
}

.lead { font-size: 1.2rem; color: var(--muted); }

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .2s ease, transform .2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--accent-light); text-decoration: none; transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn--outline:hover { background: #fff; color: var(--navy); }
.btn--ghost {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn--ghost:hover { background: var(--accent); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .02em;
}
.brand:hover { text-decoration: none; }
.brand img.logo-img {
  height: 96px;
  max-height: 96px;
  width: auto;
  max-width: 250px;
  display: block;
}
.site-footer .brand img.logo-img { height: 76px; max-height: 76px; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
}
.nav > a, .nav-group-toggle {
  color: #e8eef4;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: .01em;
  white-space: nowrap;
  position: relative;
}
.nav > a::after, .nav-group-toggle::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 2px;
  background: var(--accent-light);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}
.nav > a:hover::after, .nav > a.active::after,
.nav-group-toggle:hover::after, .nav-parent--active .nav-group-toggle::after { transform: scaleX(1); }
.nav > a:hover, .nav > a.active, .nav-group-toggle:hover { color: #fff; text-decoration: none; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: #0a2038;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #aebfce;
  font-weight: 500;
}
.topbar-item:hover { color: #fff; text-decoration: none; }
.topbar-item svg { width: 14px; height: 14px; color: #7fb8e6; }

/* ---------- Services dropdown ---------- */
.nav-group { position: relative; display: inline-flex; align-items: center; }
.nav-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-group-toggle .caret { width: 15px; height: 15px; transition: transform .2s ease; }
.nav-group:hover .nav-group-toggle .caret,
.nav-group:focus-within .nav-group-toggle .caret { transform: rotate(180deg); }
.nav-parent--active .nav-group-toggle { color: #fff; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 210px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(8,28,51,.22);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  bottom: 100%; left: 0; right: 0; height: 14px;
}
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(8px);
}
.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 7px;
  color: var(--navy);
  font-size: .95rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-dropdown a:hover { background: #eef4fa; color: var(--accent); text-decoration: none; }
.nav > a.btn::after { display: none; }
.nav .btn { color: #fff; padding: 11px 22px; font-size: 1.04rem; }
.nav .btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(9,27,47,.86), rgba(9,27,47,.82)),
    radial-gradient(circle at 50% 42%, rgba(27,74,120,.35), rgba(9,27,47,.55) 70%),
    url("../images/o365/hero-office.jpg") center/cover no-repeat,
    var(--navy);
  color: #fff;
  padding: 96px 0;
  text-align: center;
}
.hero h1 { color: #fff; max-width: 900px; margin-inline: auto; }
.hero p { color: #c8d6e4; font-size: 1.25rem; max-width: 760px; margin: 0 auto 1.8em; }
.hero .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero--page {
  padding: 70px 0;
  background:
    linear-gradient(rgba(9,27,47,.91), rgba(9,27,47,.94)),
    url("../images/o365/hero-office.jpg") center/cover no-repeat,
    var(--navy);
}
.hero--page h1 { font-size: 2.4rem; }
.hero--page p { margin-bottom: 0; }

/* ---------- Feature row (What We Provide) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.feature {
  text-align: center;
  padding: 30px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature .ico {
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  color: var(--accent);
}
.feature p { font-size: .97rem; color: var(--muted); margin: 0; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: 0 12px 30px rgba(14,42,71,.12); transform: translateY(-3px); border-color: var(--accent-light); }
.card .ico { width: 46px; height: 46px; color: var(--accent); margin-bottom: 16px; }

/* ---------- Process steps (How We Work) ---------- */
.img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.img-pair img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
.process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 44px;
  counter-reset: step;
}
.process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.process-num {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent), var(--accent-light));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(42,127,193,.28);
}
.process-body h3 {
  font-size: 1.18rem;
  margin: 6px 0 .45em;
  color: var(--navy);
}
.process-body p {
  color: var(--muted);
  font-size: .96rem;
  margin: 0;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 1em; }
.card a.more { font-weight: 600; font-size: .92rem; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.quote {
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: 0 4px 18px rgba(14,42,71,.06);
}
.quote p { font-style: italic; color: var(--text); }
.quote .who { font-weight: 700; color: var(--navy); font-style: normal; margin: 0; }

/* ---------- Split content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* ---------- Illustrations ---------- */
.illus {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(8,28,51,.35);
}
.illus--light { box-shadow: 0 12px 34px rgba(14,42,71,.16); }
.media-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.media-band .illus { box-shadow: 0 12px 34px rgba(14,42,71,.16); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
}
.contact-info ul { list-style: none; padding: 0; margin: 0; }
.contact-info li { margin-bottom: 18px; display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ico { width: 24px; height: 24px; color: var(--accent); flex: 0 0 24px; margin-top: 3px; }
.contact-info a { color: inherit; }

form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; color: var(--navy); }
form input, form textarea, form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}
form input:focus, form textarea:focus, form select:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 54px 0;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: #eaf3fb; max-width: 640px; margin: 0 auto 1.4em; }

/* ---------- List style ---------- */
.ticklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
.ticklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%;
  background-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.ticklist--cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 40px;
}
.ticklist--cols li { margin-bottom: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #9fb2c6;
  padding: 56px 0 28px;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.3fr;
  gap: 56px;
  margin-bottom: 36px;
}
.footer-contact {
  margin-top: 22px !important;
}
.footer-contact li { color: #b9c8d8; }
.footer-links-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
}
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1em; }
.site-footer a { color: #b9c8d8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 9px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: #8ea2b8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .88rem;
  color: #7e93a9;
}

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}
.price-card--featured {
  border: 2px solid var(--accent);
  box-shadow: 0 16px 40px rgba(14,42,71,.14);
  position: relative;
}
.price-card--featured .tag {
  position: absolute;
  top: -13px; left: 30px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}
.price-card h3 { margin-bottom: .2em; }
.price-card .sub { color: var(--muted); font-size: .94rem; margin-bottom: 18px; }
.price-card .amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.price-card .amount span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card .gst { font-size: .82rem; color: var(--muted); margin: 6px 0 20px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex-grow: 1; }
.price-card li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 11px;
  font-size: .95rem;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--accent) 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.price-card .btn { margin-top: auto; text-align: center; }

/* Promise band */
.promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.promise {
  text-align: center;
  padding: 8px;
}
.promise .ico {
  width: 46px; height: 46px;
  margin: 0 auto 14px;
  color: #7fb8e6;
}
.promise h4 { color: #fff; font-size: 1.05rem; margin-bottom: .3em; }
.promise p { color: #c8d6e4; font-size: .9rem; margin: 0; }

@media (max-width: 960px) {
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .promises { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .promises { grid-template-columns: 1fr; }
}

/* ---------- Office 365 page ---------- */
.photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(8,28,51,.18);
  display: block;
  object-fit: cover;
}
/* ---------- Industries gallery ---------- */
.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 38px;
}
.industry {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(14,42,71,.10);
}
.industry img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.industry-body {
  padding: 20px 22px 24px;
}
.industry-body h3 {
  margin: 0 0 .5em;
  color: var(--navy);
  font-size: 1.12rem;
}
.industry-body p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}
@media (max-width: 860px) {
  .industries { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 540px) {
  .industries { grid-template-columns: 1fr; }
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}
.app-grid .app {
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
}
.app-grid .app img { width: 56px; height: 56px; margin: 0 auto 8px; display: block; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-card--featured {
  border: 2px solid var(--accent);
  box-shadow: 0 16px 40px rgba(14,42,71,.14);
}
.plan-card .tag {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
.plan-card h3 { font-size: 1.12rem; margin-bottom: .15em; }
.plan-card .who { color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
.plan-card .price { font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1; }
.plan-card .price span { font-size: .8rem; font-weight: 500; color: var(--muted); display: block; margin-top: 4px; }
.plan-card ul { list-style: none; padding: 0; margin: 18px 0 22px; flex-grow: 1; }
.plan-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  font-size: .88rem;
}
.plan-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--accent) 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%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
}
.plan-card .btn { margin-top: auto; text-align: center; }
.plan-apps {
  border-top: 1px solid var(--line);
  margin: 4px 0 18px;
  padding-top: 16px;
}
.plan-apps .label {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.plan-apps .icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.plan-apps .icons img { width: 30px; height: 30px; }

/* ---------- App icon tooltips ---------- */
.tip {
  position: relative;
  display: inline-flex;
  cursor: help;
  outline: none;
}
.tip > img { display: block; transition: transform .15s ease; }
.tip::after,
.tip::before {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 40;
}
.tip::after {
  content: attr(data-name) " — " attr(data-desc);
  width: 230px;
  background: var(--navy);
  color: #eef4fa;
  font-size: .78rem;
  line-height: 1.4;
  font-weight: 400;
  text-align: left;
  padding: 11px 13px;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(8,28,51,.28);
}
.tip::before {
  content: "";
  bottom: calc(100% + 6px);
  border: 7px solid transparent;
  border-top-color: var(--navy);
}
.tip:hover::after, .tip:hover::before,
.tip:focus::after, .tip:focus::before,
.tip:focus-visible::after, .tip:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Edge-aware alignment so tooltips never clip off-screen */
.tip.tip--left::before, .tip.tip--right::before { display: none; }
.tip.tip--left::after { left: 0; transform: translateX(0) translateY(6px); }
.tip.tip--left:hover::after, .tip.tip--left:focus::after, .tip.tip--left:focus-visible::after { transform: translateX(0) translateY(0); }
.tip.tip--right::after { left: auto; right: 0; transform: translateX(0) translateY(6px); }
.tip.tip--right:hover::after, .tip.tip--right:focus::after, .tip.tip--right:focus-visible::after { transform: translateX(0) translateY(0); }
@media (hover: hover) {
  .tip:hover > img { transform: translateY(-2px) scale(1.05); }
}
.bill-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: #eef2f6;
  border-radius: 40px;
  margin: 0 auto 40px;
  display: flex;
  width: fit-content;
}
.bill-opt {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 22px;
  border-radius: 40px;
  transition: background .15s, color .15s;
}
.bill-opt span {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #2a7fc1;
  margin-left: 6px;
}
.bill-opt.is-active {
  background: var(--navy);
  color: #fff;
}
.bill-opt.is-active span { color: #7fb8e6; }
.bizval {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  text-align: center;
}
.bizval .stat { font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1; }
.bizval p { color: #c8d6e4; margin: 10px 0 0; font-size: .95rem; }

@media (max-width: 960px) {
  .app-grid { grid-template-columns: repeat(4, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .bizval { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .app-grid { grid-template-columns: repeat(4, 1fr); }
  .plan-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
}

/* ---------- Conversion components ---------- */
/* Header phone */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #e8eef4;
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  margin-right: 4px;
}
.header-phone svg { width: 16px; height: 16px; color: #7fb8e6; }

/* Trust strip */
.trust-strip {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 16px 0;
}
.trust-strip .row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 40px;
}
.trust-strip .item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c8d6e4;
  font-size: .92rem;
  font-weight: 600;
}
.trust-strip .item svg { width: 18px; height: 18px; color: #6fe0c8; flex-shrink: 0; }

/* Reasons grid */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.reason {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.reason .ic {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #eaf2fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.reason .ic svg { width: 22px; height: 22px; }
.reason h3 { font-size: 1.05rem; margin-bottom: .25em; }
.reason p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Partner wall */
.partner-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 22px;
}
.partner-wall .chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 78px;
}
.partner-wall .chip img { max-height: 38px; max-width: 150px; width: auto; height: auto; display: block; }
.partner-wall .chip span {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -.01em;
}
.partner-wall .chip span em { color: var(--accent); font-style: normal; }

/* ---------- Partner marquee ---------- */
.partner-marquee {
  overflow: hidden;
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partner-marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: partner-scroll 60s linear infinite;
}
.partner-marquee:hover .partner-marquee-track,
.partner-marquee:focus-within .partner-marquee-track {
  animation-play-state: paused;
}
.p-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}
.p-logo img {
  max-height: 44px;
  max-width: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.p-logo.p-text {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.p-logo.p-text em { color: var(--accent); font-style: normal; }
@keyframes partner-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .partner-marquee-track { animation: none; }
}
@media (max-width: 760px) {
  .partner-marquee-track { gap: 40px; animation-duration: 45s; }
  .p-logo img { max-width: 140px; max-height: 36px; }
  .p-logo.p-text { font-size: 1.1rem; }
}

/* Home inline form */
.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 620px;
  margin: 0 auto;
}
.lead-form .full { grid-column: 1 / -1; }
.lead-form input, .lead-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font: inherit;
  font-size: .95rem;
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #9fb4c8; }
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--accent-light); border-color: transparent; }
.lead-form .btn { width: 100%; border: 0; cursor: pointer; }

@media (max-width: 860px) {
  .reasons { grid-template-columns: 1fr; gap: 22px; }
  .lead-form { grid-template-columns: 1fr; }
  .header-phone { display: none; }
}

/* ---------- Case study ---------- */
.factbox {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: 0 16px 40px rgba(14,42,71,.18);
}
.factbox h3 { color: #fff; font-size: 1.15rem; margin-bottom: 18px; }
.factbox ul { list-style: none; padding: 0; margin: 0; }
.factbox li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
  font-size: .92rem;
}
.factbox li:last-child { border-bottom: 0; }
.factbox li strong { color: #7fb8e6; font-weight: 600; white-space: nowrap; }
.factbox li span { color: #d7e2ee; text-align: right; }
.quote-lg { margin: 0; text-align: center; }
.quote-lg p {
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 22px;
}
.quote-lg cite {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  font-size: .98rem;
}

/* ---------- Brand logo chip ---------- */
.brand-logo {
  display: inline-block;
  background: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(8,28,51,.18);
}
.brand-logo img {
  height: 34px;
  width: auto;
  display: block;
}
.brand-logo--stacked {
  margin-top: 24px;
  padding: 22px 28px;
}
.brand-logo--stacked img {
  height: 110px;
}

/* ---------- FAQ accordion ---------- */
.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  transition: transform .2s;
}
.faq[open] summary::after { content: "\2212"; }
.faq-body {
  padding: 0 24px 22px;
}
.faq-body p { margin: 0; color: var(--muted); }

/* ---------- Cost of downtime calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.calc-inputs {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
}
.calc-inputs h2 { margin-bottom: .2em; }
.calc-field { margin-bottom: 22px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.calc-field input[type="number"],
.calc-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  color: var(--text);
}
.calc-field input[type="number"]:focus,
.calc-field select:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}
.calc-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  margin-top: 4px;
}
.calc-hours {
  float: right;
  font-weight: 700;
  color: var(--accent);
}
.calc-results {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.calc-result-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
}
.calc-result-card--accent {
  background: var(--navy);
  border-color: var(--navy);
}
.calc-result-card--accent .calc-label { color: #7fb8e6; }
.calc-result-card--accent .calc-figure { color: #fff; }
.calc-result-card--accent .calc-note { color: #c8d6e4; }
.calc-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.calc-figure {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.calc-note { font-size: .9rem; color: var(--muted); margin: 8px 0 0; }
.calc-disclaimer {
  font-size: .85rem;
  color: var(--muted);
  max-width: 860px;
  margin: 34px auto 0;
  line-height: 1.6;
}
.calc-hint {
  float: right;
  font-weight: 500;
  font-size: .8rem;
  color: var(--muted);
}
.calc-sub {
  font-size: .8rem;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
}
.calc-figure--year { font-size: 2.2rem; }
.calc-breakdown {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.calc-breakdown ul { list-style: none; padding: 0; margin: 8px 0 0; }
.calc-breakdown li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.calc-breakdown li:last-child { border-bottom: 0; }
.calc-bd-name { color: var(--text); }
.calc-bd-name em { color: var(--muted); font-style: normal; font-size: .82rem; }
.calc-bd-val { font-weight: 700; color: var(--navy); white-space: nowrap; }
.calc-sources {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 1.4em;
  line-height: 1.6;
}
@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- Prose pages ---------- */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .5em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* ============================================================
   Interactive hover states — subtle, consistent across the site.
   Guarded with (hover: hover) so touch devices don't get
   stuck-on hover effects after a tap.
   ============================================================ */
@media (hover: hover) {

  /* White tiles: gentle lift, soft shadow, warm accent edge */
  .promise,
  .quote,
  .plan-card,
  .price-card,
  .faq {
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  }
  .quote:hover,
  .plan-card:hover,
  .price-card:hover,
  .faq:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(14,42,71,.12);
    border-color: var(--accent-light);
  }

  /* Quote tiles have no full border (just a left bar) — brighten that bar */
  .quote:hover {
    border-left-color: var(--accent-light);
  }

  /* Centred promise tiles: lift + brighten the icon */
  .promise:hover {
    transform: translateY(-4px);
  }
  .promise:hover .ico {
    color: var(--accent-light);
  }

  /* Reason rows (icon + text, no box): soft tinted panel appears on hover */
  .reason {
    border-radius: var(--radius);
    padding: 10px 12px;
    margin: -10px -12px;
    transition: background .2s ease, transform .2s ease;
  }
  .reason:hover {
    background: rgba(42,127,193,.06);
    transform: translateY(-2px);
  }
  .reason:hover .ic {
    color: var(--accent-light);
  }

  /* Navy fact panel: no lift (it sits beside body copy), just deepen shadow */
  .factbox {
    transition: box-shadow .2s ease;
  }
  .factbox:hover {
    box-shadow: 0 22px 50px rgba(14,42,71,.28);
  }

  /* Icon tint on hover for cards that carry a glyph */
  .card .ico,
  .feature .ico { transition: color .2s ease; }
  .card:hover .ico,
  .feature:hover .ico { color: var(--accent-light); }
}

@media (max-width: 1024px) {
  .topbar .container { justify-content: center; gap: 18px; flex-wrap: wrap; }
  .topbar-item--sec { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    padding: 8px 0 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,.2);
  }
  .nav.open { display: flex; }
  .nav > a, .nav-group-toggle {
    padding: 13px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    white-space: normal;
    font-size: 1.05rem;
  }
  .nav-group { display: block; }
  .nav-group-toggle { justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-group:hover .nav-group-toggle .caret { transform: none; }
  /* On mobile, show the dropdown items inline (expanded), indented */
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    background: rgba(255,255,255,.04);
    box-shadow: none;
    border-radius: 0;
    padding: 4px 0;
  }
  .nav-dropdown::before { display: none; }
  .nav-dropdown a {
    color: #cdd9e6;
    padding: 11px 24px 11px 40px;
    border-radius: 0;
  }
  .nav-dropdown a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .nav .btn { margin: 14px 24px 0; text-align: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 760px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 70px 0; }
  .features, .cards, .testimonials, .split, .contact-grid, .footer-grid, .media-band, .process, .img-pair, .ticklist--cols { grid-template-columns: 1fr; }
  .split { gap: 30px; }
  .section { padding: 54px 0; }
  /* Sticky images are a desktop two-column nicety; once columns stack, pin nothing */
  .split img[style*="sticky"] { position: static !important; }
}
