/* nring.io – site styles */

:root {
	--navy: #0b1b3a;
	--navy-2: #122a5c;
	--ink: #16213a;
	--text: #2b3550;
	--muted: #66718c;
	--line: #e3e8f2;
	--bg: #ffffff;
	--bg-soft: #f5f7fc;
	--bg-tint: #eef3ff;
	--blue: #2f80ff;
	--blue-dark: #1f63d6;
	--teal: #19d3c5;
	--accent: #2f80ff;
	--accent-dark: #1f63d6;
	--accent-soft: #eaf3ff;
	--teal-dark: #0fa99e;
	--teal-soft: #e6faf8;
	--grad: linear-gradient(90deg, #2f80ff, #19d3c5);
	--grad-diag: linear-gradient(135deg, #2f80ff 0%, #19d3c5 100%);
	--green: #15b67a;
	--amber: #f5a623;
	--red: #e5484d;
	--radius: 14px;
	--radius-sm: 9px;
	--shadow: 0 10px 30px rgba(11, 27, 58, 0.08);
	--shadow-lg: 0 24px 60px rgba(11, 27, 58, 0.14);
	--wrap: 1180px;
	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 800; font-family: 'Nunito', var(--font); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 0.9em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
	border: 1.5px solid transparent; cursor: pointer; transition: all 0.15s ease; white-space: nowrap;
	font-family: inherit; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); background-size: 150% 100%; background-position: 0 0; color: #fff; box-shadow: 0 8px 20px rgba(47, 128, 255, 0.28); }
.btn-primary:hover { background-position: 100% 0; color: #fff; box-shadow: 0 10px 24px rgba(25, 211, 197, 0.32); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { color: var(--navy); display: inline-flex; align-items: center; }
.brand.light { color: #fff; }
.brand:hover { text-decoration: none; }
.logo { height: 32px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: flex-end; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-link {
	display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px;
	font-weight: 600; font-size: 0.95rem; color: var(--ink); background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-link:hover, .nav-list > li.active > .nav-link { background: var(--bg-soft); text-decoration: none; color: var(--blue-dark); }
.chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.6; }
.arrow { display: inline-block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); margin-left: 4px; }
.menu {
	position: absolute; top: calc(100% + 10px); left: 0; min-width: 620px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	padding: 14px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all 0.15s ease;
}
.menu-narrow { min-width: 340px; }
.has-menu.open > .menu { opacity: 1; visibility: visible; transform: none; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.menu-grid.one { grid-template-columns: 1fr; }
.menu-item { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); align-items: flex-start; }
.menu-item:hover { background: var(--bg-tint); text-decoration: none; }
.menu-item strong { display: block; font-size: 0.95rem; }
.menu-item small { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.mi-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--bg-tint); color: var(--blue-dark); display: grid; place-items: center; flex: none; }
.mi-icon .icon { width: 19px; height: 19px; }
.menu-all { display: inline-flex; align-items: center; margin: 8px 12px 2px; font-weight: 600; font-size: 0.9rem; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.2s; }

/* Hero */
.hero {
	background: radial-gradient(1200px 600px at 80% -10%, rgba(47, 128, 255, 0.22), transparent 60%),
		radial-gradient(800px 500px at 0% 100%, rgba(25, 211, 197, 0.16), transparent 60%), var(--navy);
	color: #fff; padding: 96px 0 72px; position: relative; overflow: hidden;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: rgba(255, 255, 255, 0.78); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hero .btn-ghost:hover { border-color: #fff; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; padding: 0; list-style: none; color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--teal); }

/* Hero illustration: a routing card */
.hero-card { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 22px; font-size: 0.9rem; }
.hero-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hero-card-head strong { font-size: 1rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: #e8f8f1; color: #0f8a5b; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.blue { background: var(--bg-tint); color: var(--blue-dark); }
.pill.amber { background: #fff4de; color: #9a6300; }
.flow { display: grid; gap: 10px; }
.flow-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.flow-step .mi-icon { width: 32px; height: 32px; }
.flow-step strong { display: block; font-size: 0.9rem; }
.flow-step small { color: var(--muted); }
.flow-line { height: 14px; width: 2px; background: var(--line); margin-left: 29px; }
.hero-card-foot { display: flex; justify-content: space-between; margin-top: 14px; color: var(--muted); font-size: 0.82rem; }

/* Sections */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark .muted { color: rgba(255, 255, 255, 0.72); }
.section-head { max-width: 46rem; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Logo strip / trust */
.trust { padding: 32px 0; border-bottom: 1px solid var(--line); }
.trust-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trust-row p { margin: 0; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.trust-items { display: flex; gap: 32px; flex-wrap: wrap; }
.trust-items span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.trust-items .icon { width: 20px; height: 20px; color: var(--blue-dark); }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
	transition: all 0.18s ease; position: relative; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d2dcf0; }
.card .mi-icon { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px; }
.card .mi-icon .icon { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card .more { font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; }
a.card { color: inherit; }
a.card:hover { text-decoration: none; }
.card-dark { background: var(--navy-2); border-color: transparent; color: #fff; }
.card-dark h3 { color: #fff; }
.card-dark p { color: rgba(255, 255, 255, 0.72); }
.card-dark .mi-icon { background: rgba(255, 255, 255, 0.1); color: var(--teal); }

/* Feature rows (text + visual) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.feature.flip .feature-visual { order: -1; }
.feature h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.feature-visual { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px; padding: 28px; min-height: 280px; display: grid; place-items: center; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 3px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 28px 16px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.stat strong { display: block; font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.stat span { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.quote p { font-size: 1.02rem; color: var(--ink); }
.quote p::before { content: '\201C'; color: var(--blue); font-size: 2rem; line-height: 0; vertical-align: -0.4em; margin-right: 4px; }
.quote footer { color: var(--muted); font-size: 0.88rem; font-weight: 600; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad-diag); color: #fff; font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* Page hero (interior pages) */
.page-hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--bg-tint), #fff); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20ch; }
.page-hero .hero-actions { margin-top: 24px; }
.page-hero.dark { background: var(--navy); color: #fff; border: 0; }
.page-hero.dark h1 { color: #fff; }
.page-hero.dark .lead { color: rgba(255, 255, 255, 0.78); }
.page-hero.dark .eyebrow { color: var(--teal); }
.page-hero.dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--blue); box-shadow: var(--shadow-lg); position: relative; }
.plan.featured::before { content: 'Most popular'; position: absolute; top: -13px; left: 24px; background: var(--grad); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.2rem; }
.plan .price { font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin: 8px 0 2px; }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .per { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.plan .checks { margin-bottom: 24px; flex: 1; font-size: 0.95rem; }
.rate-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rate-table th, .rate-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.rate-table th { background: var(--bg-soft); color: var(--ink); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.rate-table tr:last-child td { border-bottom: 0; }
.rate-table td strong { color: var(--ink); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 36px 16px 0; position: relative; list-style: none; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* Coverage map */
.map-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.state-grid span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bg-soft); border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.state-grid .icon { width: 16px; height: 16px; color: var(--green); }

/* Code blocks */
pre.code { background: #0f1a33; color: #d7e2ff; border-radius: 12px; padding: 20px 22px; overflow-x: auto; font-size: 0.86rem; line-height: 1.6; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin: 0 0 1em; }
pre.code .c { color: #7d8cb0; }
pre.code .k { color: #19d3c5; }
pre.code .s { color: #ffd37a; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; font-size: 0.9em; }
.endpoint { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem; }
.endpoint .m { font-weight: 700; color: var(--blue-dark); min-width: 52px; }
.endpoint .m.post { color: var(--green); }
.endpoint .m.del { color: var(--red); }
.endpoint span:last-child { color: var(--muted); font-family: var(--font); margin-left: auto; font-size: 0.85rem; }
.endpoints { display: grid; gap: 8px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], select, textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 128, 255, 0.15); }
textarea { min-height: 140px; resize: vertical; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 0.95rem; }
.alert-error { background: #fdecec; color: #9d2a2e; border: 1px solid #f6c5c7; }
.alert-ok { background: #e8f8f1; color: #0f6b47; border: 1px solid #bfe9d5; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.contact-side .card { margin-bottom: 18px; }
.contact-side .card p { flex: initial; }
.hp { position: absolute; left: -9999px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, #163a7a 45%, #1c5fc7 80%, #19b3ad 100%); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.78); max-width: 42rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Prose pages (legal, about) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--muted); font-size: 0.9rem; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.8); padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 2.4fr; gap: 56px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-brand p { color: rgba(255, 255, 255, 0.66); max-width: 30rem; margin-top: 16px; font-size: 0.95rem; }
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.footer-cols h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-cols a { display: block; color: rgba(255, 255, 255, 0.7); font-size: 0.93rem; padding: 4px 0; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 0.88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.newsletter { margin-top: 20px; }
.newsletter label { color: #fff; }
.newsletter-row { display: flex; gap: 8px; max-width: 420px; }
.newsletter-row input { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.newsletter-row input::placeholder { color: rgba(255, 255, 255, 0.45); }
.newsletter-note { font-size: 0.85rem; margin: 8px 0 0; min-height: 1.2em; color: var(--teal); }

/* Login */
.auth { max-width: 440px; margin: 0 auto; }
.auth .form-card { padding: 38px; }
.auth .field { margin-bottom: 16px; }

/* Error page */
.error-page { padding: 96px 0; text-align: center; }

/* Responsive */
@media (max-width: 1024px) {
	.grid-4, .stats, .steps { grid-template-columns: repeat(2, 1fr); }
	.grid-3, .quotes, .price-grid { grid-template-columns: 1fr 1fr; }
	.footer-cols { grid-template-columns: repeat(3, 1fr); }
	.footer-top { grid-template-columns: 1fr; gap: 36px; }
	.menu { min-width: 520px; }
}
@media (max-width: 860px) {
	.hero-grid, .feature, .contact-grid { grid-template-columns: 1fr; }
	.feature.flip .feature-visual { order: 0; }
	.hero { padding: 64px 0 56px; }
	.nav-toggle { display: flex; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line);
		flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 12px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 72px); overflow: auto;
	}
	.site-header.nav-open .site-nav { display: flex; }
	.nav-list { flex-direction: column; align-items: stretch; }
	.nav-link { width: 100%; justify-content: space-between; }
	.menu { position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 8px 8px; display: none; opacity: 1; visibility: visible; transform: none; }
	.has-menu.open > .menu { display: block; }
	.menu-grid { grid-template-columns: 1fr; }
	.nav-actions { flex-direction: column; align-items: stretch; }
	.nav-actions .btn { width: 100%; }
}
@media (max-width: 600px) {
	.grid-2, .grid-3, .grid-4, .stats, .steps, .quotes, .price-grid, .form-grid { grid-template-columns: 1fr; }
	.form-grid .full { grid-column: auto; }
	.footer-cols { grid-template-columns: 1fr 1fr; }
	.section { padding: 56px 0; }
	.hero-card { padding: 16px; }
	.newsletter-row { flex-direction: column; }
}


/* ---------- Design pass 2: accent, announcement bar, mega menu, tabs, bento, reveal ---------- */

/* Announcement bar (Infobip style) */
.announce { background: var(--navy); color: #fff; font-size: 0.88rem; text-align: center; padding: 9px 0; position: relative; }
.announce a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 3px; }
.announce .tag { display: inline-block; background: var(--grad); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-right: 8px; letter-spacing: 0.06em; text-transform: uppercase; }
.announce-close { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: rgba(255,255,255,0.7); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.announce-close:hover { color: #fff; }

/* Mega menu with columns and a featured panel */
.menu-wide { min-width: 760px; padding: 0; display: grid; grid-template-columns: 1fr 1fr 250px; }
.menu-col { padding: 18px 14px; }
.menu-col + .menu-col { border-left: 1px solid var(--line); }
.menu-col h5 { margin: 0 8px 8px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.menu-feature { background: linear-gradient(160deg, var(--navy), #1a3f84); color: #fff; padding: 22px; border-radius: 0 var(--radius) var(--radius) 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.menu-feature .tag { display: inline-block; background: var(--grad); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; align-self: flex-start; }
.menu-feature strong { font-size: 1.05rem; line-height: 1.3; }
.menu-feature p { color: rgba(255,255,255,0.72); font-size: 0.85rem; margin: 0; }
.menu-feature a { color: #fff; font-weight: 600; font-size: 0.88rem; }
.menu-feature a .arrow { margin-left: 6px; }

/* Hero refinements */
.hero .pill-new { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: #fff; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 0.85rem; margin-bottom: 22px; }
.hero .pill-new .tag { background: var(--grad); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; }
.hero .pill-new:hover { text-decoration: none; border-color: rgba(255,255,255,0.4); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7fb4ff, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Use-case tabs (Infobip style) */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 600; font-size: 0.92rem; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.15s; }
.tab .icon { width: 18px; height: 18px; color: var(--blue-dark); }
.tab:hover { border-color: var(--ink); }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 8px 20px rgba(11, 27, 58, 0.18); }
.tab.active .icon { color: var(--teal); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.usecase { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 44px; box-shadow: var(--shadow); }
.usecase h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.usecase .checks { margin-top: 16px; }
.usecase .btn { margin-top: 22px; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(200px, auto); gap: 18px; }
.tile { border-radius: 20px; padding: 30px; border: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; transition: transform 0.18s, box-shadow 0.18s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile h3 { margin-bottom: 6px; }
.tile p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.tile .mi-icon { position: absolute; top: 24px; left: 24px; width: 44px; height: 44px; border-radius: 12px; }
.tile-big { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, var(--navy), #163a7a 70%, #1f5fc4); color: #fff; border: 0; justify-content: space-between; }
.tile-big h3 { color: #fff; font-size: 1.9rem; max-width: 16ch; }
.tile-big p { color: rgba(255,255,255,0.75); max-width: 36ch; font-size: 1.02rem; }
.tile-big .mi-icon { background: rgba(255,255,255,0.1); color: var(--teal); }
.tile-big .big-number { font-size: 4.2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 48px 0 10px; background: linear-gradient(90deg, #fff, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile-accent { background: var(--teal-soft); border-color: #bfeeea; }
.tile-accent .mi-icon { background: #fff; color: var(--teal-dark); }
.tile-soft { background: var(--bg-tint); }
.tile-soft .mi-icon { background: #fff; }

/* Stats: gradient numbers */
.stat strong { background: linear-gradient(90deg, #fff, #9fd7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Integrations strip (CallRail style) */
.integrations { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.integrations span { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; color: var(--ink); font-size: 0.92rem; letter-spacing: -0.01em; }

/* Featured testimonial + two small */
.testimonials { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.quote-big { background: var(--navy); color: #fff; border-radius: 22px; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; }
.quote-big p { font-size: 1.45rem; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.quote-big p::before { content: '\201C'; color: var(--teal); font-size: 3rem; line-height: 0; vertical-align: -0.5em; margin-right: 6px; }
.quote-big footer { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.quote-big footer strong { color: #fff; display: block; }
.quote-stack { display: grid; gap: 24px; }
.stars { color: var(--amber); letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 10px; }

/* Trust badges row */
.badges { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.badge .icon { width: 18px; height: 18px; color: var(--green); }

/* Dotted background for soft sections */
.section-dots { background-color: var(--bg-soft); background-image: radial-gradient(rgba(11,27,58,0.08) 1px, transparent 1px); background-size: 22px 22px; }

/* Comparison table (pricing) */
.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.93rem; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--ink); font-weight: 500; }
.compare thead th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
.compare thead th.featured { background: var(--teal-soft); color: var(--teal-dark); }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: #c3c9d6; }
.compare .group td { background: var(--bg-soft); font-weight: 700; color: var(--ink); text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* Partner program (Infobip partners style) */
.partner-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.partner { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; }
.partner .mi-icon { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px; }
.partner h3 { font-size: 1.3rem; }
.partner .sub { color: var(--teal-dark); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.partner .checks { margin: 14px 0 20px; flex: 1; font-size: 0.95rem; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: tl; }
.timeline::before { content: ''; position: absolute; left: 12%; right: 12%; top: 22px; height: 2px; background: var(--line); }
.tl-step { text-align: center; padding: 0 16px; position: relative; }
.tl-step::before { counter-increment: tl; content: counter(tl); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad-diag); color: #fff; font-weight: 800; margin: 0 auto 16px; position: relative; box-shadow: 0 0 0 6px #fff; }
.tl-step h3 { font-size: 1.02rem; }
.tl-step p { color: var(--muted); font-size: 0.92rem; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 1024px) {
	.menu-wide { min-width: 640px; grid-template-columns: 1fr 1fr; }
	.menu-feature { display: none; }
	.bento { grid-template-columns: 1fr 1fr; }
	.tile-big { grid-column: span 2; grid-row: span 1; }
	.testimonials { grid-template-columns: 1fr; }
	.timeline { grid-template-columns: 1fr 1fr; gap: 28px; }
	.timeline::before { display: none; }
}
@media (max-width: 860px) {
	.menu-wide { min-width: 0; display: block; }
	.menu-col + .menu-col { border-left: 0; border-top: 1px solid var(--line); }
	.usecase { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
	.bento { grid-template-columns: 1fr; }
	.tile-big { grid-column: span 1; }
	.tile-big .big-number { font-size: 3rem; margin-top: 24px; }
	.partner-types { grid-template-columns: 1fr; }
	.quote-big { padding: 30px; }
	.quote-big p { font-size: 1.15rem; }
	.timeline { grid-template-columns: 1fr; }
	.announce { font-size: 0.8rem; padding-right: 40px; }
}

/* ---------- Interaction pass: scroll header, counters, live demos, calculator, back-to-top ---------- */
.site-header { transition: box-shadow 0.2s, background 0.2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11, 27, 58, 0.08); background: rgba(255, 255, 255, 0.97); }

/* Hero routing flow animates through its steps */
.flow-step { transition: border-color 0.3s, background 0.3s, transform 0.3s; }
.flow-step.lit { border-color: var(--teal); background: #fff; transform: translateX(4px); box-shadow: 0 8px 20px rgba(25, 211, 197, 0.18); }
.flow-step.lit .mi-icon { background: var(--teal-soft); color: var(--teal-dark); }
.pill.live::before { animation: blink 1.2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.ring { position: relative; }
.ring::after { content: ''; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid var(--teal); animation: ringpulse 1.4s ease-out infinite; pointer-events: none; }
@keyframes ringpulse { 0% { transform: scale(0.96); opacity: 0.8; } 100% { transform: scale(1.08); opacity: 0; } }

/* Pricing calculator */
.calc { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden; }
.calc-inputs { padding: 34px; display: grid; gap: 22px; }
.calc-field { display: grid; gap: 8px; }
.calc-field .row { display: flex; justify-content: space-between; align-items: baseline; }
.calc-field output { font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.calc-field input[type=range] { width: 100%; accent-color: var(--teal-dark); }
.calc-field .hint { color: var(--muted); font-size: 0.82rem; }
.calc-plans { display: flex; gap: 6px; }
.calc-plans button { flex: 1; padding: 9px 6px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer; color: var(--ink); }
.calc-plans button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.calc-total { background: var(--navy); color: #fff; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; }
.calc-total h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; }
.calc-total .amount { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 8px 0 4px; }
.calc-total .amount small { font-size: 1rem; font-weight: 500; letter-spacing: 0; opacity: 0.75; }
.calc-lines { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 8px; font-size: 0.92rem; }
.calc-lines li { display: flex; justify-content: space-between; color: rgba(255,255,255,0.8); border-bottom: 1px dashed rgba(255,255,255,0.15); padding-bottom: 6px; }
.calc-lines li span:last-child { color: #fff; font-weight: 600; }
.calc-total .note { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin: 0 0 14px; }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.2s; z-index: 40; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); }

/* Card cursor glow */
.card, .tile, .partner { --mx: 50%; --my: 50%; }
.card::after, .tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(320px circle at var(--mx) var(--my), rgba(47, 128, 255, 0.10), transparent 60%); opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.card:hover::after, .tile:hover::after { opacity: 1; }
.tile-big::after { background: radial-gradient(360px circle at var(--mx) var(--my), rgba(25, 211, 197, 0.18), transparent 60%); }

/* Extra responsive polish */
@media (max-width: 1024px) {
	.calc { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.tabs::-webkit-scrollbar { display: none; }
	.tab { flex: none; }
	.trust-row { justify-content: center; text-align: center; }
	.trust-items { justify-content: center; gap: 16px; }
	.hero-points { gap: 12px; }
	.cta-inner { text-align: center; justify-content: center; }
	.cta-actions { justify-content: center; }
	.footer-bottom { justify-content: center; text-align: center; }
	.calc-inputs, .calc-total { padding: 24px; }
	.calc-total .amount { font-size: 2.6rem; }
	.page-hero { padding: 48px 0 40px; }
	h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
}
@media (max-width: 600px) {
	.wrap { width: calc(100% - 32px); }
	.btn-lg { padding: 12px 20px; font-size: 1rem; }
	.hero-actions .btn, .page-hero .hero-actions .btn { width: 100%; }
	.rate-table th, .rate-table td, .compare th, .compare td { padding: 10px 12px; font-size: 0.85rem; }
	.quote-big p { font-size: 1.05rem; }
	.to-top { right: 14px; bottom: 14px; }
	.usecase h3 { font-size: 1.3rem; }
}
@media (hover: none) {
	.card:hover, .tile:hover { transform: none; }
}


/* ---------- Creative pass: logo palette everywhere, aurora hero, ring motif, gradient borders ---------- */

/* Aurora hero: drifting blue and teal light, a faint grid and the logo ring as a big arc */
.hero { background: var(--navy); isolation: isolate; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; z-index: -1; pointer-events: none; }
.hero::before { width: 640px; height: 640px; right: -160px; top: -220px; background: radial-gradient(circle, #2f80ff, transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.hero::after { width: 520px; height: 520px; left: -180px; bottom: -260px; background: radial-gradient(circle, #19d3c5, transparent 65%); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }
.hero .grid-bg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); pointer-events: none; }
.ring-motif { position: absolute; z-index: -1; pointer-events: none; opacity: 0.35; }
.ring-motif circle { fill: none; stroke: url(#motifGrad); stroke-width: 26; stroke-linecap: round; stroke-dasharray: 520 190; animation: spin 40s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero .ring-motif { right: -140px; top: -120px; width: 520px; height: 520px; }
.hero-card { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero .pill-new { backdrop-filter: blur(8px); }
.hero-points .icon { color: var(--teal); }

/* Gradient borders on hover (cards, tiles, plans) */
.card, .tile, .plan, .partner, .usecase { background-clip: padding-box; }
.card:hover, .tile:hover, .plan:hover, .partner:hover { border-color: transparent; background-image: linear-gradient(#fff, #fff), var(--grad-diag); background-origin: border-box; background-clip: padding-box, border-box; }
.card-dark:hover { background-image: linear-gradient(var(--navy-2), var(--navy-2)), var(--grad-diag); }
.tile-big:hover { background-image: linear-gradient(160deg, var(--navy), #163a7a 70%, #1f5fc4), var(--grad-diag); }
.tile-accent:hover { background-image: linear-gradient(var(--teal-soft), var(--teal-soft)), var(--grad-diag); }
.tile-soft:hover { background-image: linear-gradient(var(--bg-tint), var(--bg-tint)), var(--grad-diag); }
.mi-icon { transition: transform 0.2s, background 0.2s, color 0.2s; }
.card:hover .mi-icon, .tile:hover .mi-icon, .menu-item:hover .mi-icon { background: var(--grad-diag); color: #fff; transform: rotate(-6deg) scale(1.06); }
.card .more .arrow, .menu-all .arrow { transition: transform 0.2s; }
.card:hover .more .arrow { transform: rotate(45deg) translate(3px, -3px); }

/* Eyebrows, headings and section accents in the gradient */
.eyebrow { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.section-dark .eyebrow, .page-hero.dark .eyebrow { background: linear-gradient(90deg, #7fb4ff, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head h2 { position: relative; }
.section-head.center h2::after { content: ''; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--grad); margin: 18px auto 0; }
.section-head:not(.center) h2::after { content: ''; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--grad); margin: 18px 0 0; }
.stat strong { background: linear-gradient(90deg, #8fc0ff, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat { transition: transform 0.2s, border-color 0.2s; }
.stat:hover { transform: translateY(-4px); border-color: rgba(25, 211, 197, 0.5); }
.tile-big .big-number { background: linear-gradient(90deg, #fff, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Dark sections carry the ring motif too */
.section-dark { position: relative; overflow: hidden; isolation: isolate; }
.section-dark .ring-motif { left: -200px; bottom: -260px; width: 620px; height: 620px; opacity: 0.18; }
.page-hero.dark { position: relative; overflow: hidden; isolation: isolate; }
.page-hero.dark .ring-motif { right: -180px; top: -200px; width: 560px; height: 560px; opacity: 0.3; }
.page-hero:not(.dark) { background: linear-gradient(180deg, var(--bg-tint), #fff 70%); position: relative; overflow: hidden; }
.page-hero:not(.dark)::after { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(25, 211, 197, 0.22), transparent 65%); filter: blur(30px); pointer-events: none; }
.page-hero h1, .hero h1 { position: relative; }

/* Trust strip and badges pick up the teal */
.trust-items .icon { color: var(--teal-dark); }
.badge .icon { color: var(--teal-dark); }
.checks .icon { color: var(--teal-dark); }
.integrations span { transition: all 0.2s; }
.integrations span:hover { border-color: transparent; background-image: linear-gradient(#fff, #fff), var(--grad-diag); background-origin: border-box; background-clip: padding-box, border-box; transform: translateY(-2px); }

/* Tabs: active gets the gradient */
.tab.active { background: var(--grad-diag); border-color: transparent; }
.tab.active .icon { color: #fff; }

/* Quotes */
.quote-big { background: linear-gradient(160deg, var(--navy), #163a7a 80%, #1a6f8f); position: relative; overflow: hidden; }
.quote-big::after { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -110px; border-radius: 50%; border: 26px solid rgba(25, 211, 197, 0.25); }
.stars { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Footer: gradient hairline */
.site-footer { position: relative; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.newsletter-note { color: var(--teal); }

/* Routing plan builder (interactive demo) */
.builder { display: grid; gap: 14px; }
.builder .seg { display: flex; gap: 6px; flex-wrap: wrap; }
.builder .seg button { padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: all 0.15s; }
.builder .seg button.active { background: var(--grad-diag); color: #fff; border-color: transparent; }
.builder label { margin: 0 0 4px; }

/* Calculator in the palette */
.calc-total { background: linear-gradient(160deg, var(--navy), #163a7a 80%, #1a6f8f); }
.calc-total .amount { background: linear-gradient(90deg, #fff, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-plans button.active { background: var(--grad-diag); border-color: transparent; }
.to-top { background: var(--grad-diag); }
.to-top:hover { filter: brightness(1.08); }

/* Buttons and links */
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); }
.hero .btn-ghost:hover, .page-hero.dark .btn-ghost:hover { border-color: var(--teal); color: #fff; }
.nav-list > li.active > .nav-link { background: var(--bg-tint); }
.menu-feature { background: linear-gradient(160deg, var(--navy), #1a3f84 70%, #1a6f8f); }

@media (max-width: 860px) {
	.hero .ring-motif { width: 320px; height: 320px; right: -120px; top: -120px; }
	.hero::before, .hero::after { filter: blur(50px); }
	.hero-card { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hero::before, .hero::after, .ring-motif circle, .hero-card { animation: none; }
}

/* Log in page form and the "redirecting to the portal" screen shown after a successful sign-in */
.login-form .field { margin-bottom: 16px; }
.login-form .btn-block { width: 100%; margin-top: 4px; }
.redirect-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; color: #fff; background: radial-gradient(900px 500px at 80% -10%, rgba(47, 128, 255, 0.35), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(25, 211, 197, 0.25), transparent 60%), var(--navy); position: relative; overflow: hidden; }
.redirect-card { position: relative; z-index: 1; max-width: 460px; animation: fade 0.5s ease-out; }
.redirect-rings { width: 170px; height: 170px; margin: 0 auto 26px; display: block; }
.redirect-rings .r1, .redirect-rings .r2 { fill: none; stroke-width: 11; stroke-linecap: round; transform-origin: center; }
.redirect-rings .r1 { stroke: #2f80ff; stroke-dasharray: 160 40; animation: ringspin 2.4s linear infinite; }
.redirect-rings .r2 { stroke: #19d3c5; stroke-dasharray: 160 40; animation: ringspin 2.4s linear infinite reverse; }
.redirect-rings .halo { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 2; transform-origin: center; animation: ringpulse 1.6s ease-out infinite; }
.redirect-rings .halo.late { animation-delay: 0.8s; }
@keyframes ringspin { to { transform: rotate(360deg); } }
.redirect-card h1 { font-family: 'Nunito', var(--font); font-size: 2rem; margin: 0 0 8px; color: #fff; }
.redirect-card p { color: rgba(255, 255, 255, 0.75); margin: 0 0 22px; font-size: 1.05rem; }
.redirect-dots span { display: inline-block; width: 6px; height: 6px; margin-left: 3px; border-radius: 50%; background: #19d3c5; animation: blink 1.2s infinite; }
.redirect-dots span:nth-child(2) { animation-delay: 0.2s; }
.redirect-dots span:nth-child(3) { animation-delay: 0.4s; }
.redirect-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin: 0 auto 18px; max-width: 320px; }
.redirect-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #2f80ff, #19d3c5); animation: redirectfill 2.2s ease-in-out forwards; }
@keyframes redirectfill { to { width: 100%; } }
.redirect-card .muted-link { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.redirect-card .muted-link a { color: #19d3c5; }
.redirect-wordmark { display: inline-flex; margin-bottom: 30px; color: #fff; }
.redirect-wordmark .logo { height: 34px; width: auto; }
