/*
Theme Name: POTS Saver
Theme URI: https://potssaver.com/
Author: Indigo Connected
Description: POTS line replacement site for POTS Saver by Indigo Connected. Builds its own pages on activation.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: potssaver
*/

:root {
	--navy: #16183a;
	--navy-2: #0d0f30;
	--navy-3: #1e2140;
	--indigo: #4b43c9;
	--indigo-2: #2d2a8f;
	--lilac: #b9b4ff;
	--coral: #f05a3c;
	--coral-2: #ff6140;
	--teal: #10a5a0;
	--ink: #16183a;
	--text: #4b4f6b;
	--muted: #6b6f88;
	--line: #e6e5f0;
	--tint: #f4f3fb;
	--tint-2: #eeedf5;
	--white: #ffffff;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 1px 2px rgba(22, 24, 58, .05), 0 8px 24px rgba(22, 24, 58, .06);
	--wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font: 400 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: .3em 0; }
strong { color: var(--ink); font-weight: 650; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Announcement bar */
.announce { background: var(--coral); color: #fff; font-size: .9rem; font-weight: 600; text-align: center; padding: 9px 16px; }
.announce a { color: #fff; }
.announce a:hover { color: var(--navy); }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand svg { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand-name span { color: var(--lilac); }
.brand-by { font-size: .72rem; color: #c9c7e6; font-weight: 500; letter-spacing: .02em; margin-top: 3px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav li { margin: 0; }
.nav a { display: block; color: #e3e2f3; text-decoration: none; font-size: .92rem; font-weight: 500; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { color: #fff; background: rgba(255, 255, 255, .08); }
.head-cta { display: flex; align-items: center; gap: 14px; }
.head-phone { color: #fff; text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.head-phone:hover { color: var(--lilac); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 10px; padding: 8px 12px; font: 600 .9rem "Inter", sans-serif; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 650 1rem/1 "Inter", sans-serif; padding: 15px 24px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 6px 18px rgba(240, 90, 60, .3); }
.btn-coral:hover { background: var(--coral-2); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-line { border-color: var(--line); color: var(--indigo); background: #fff; }
.btn-line:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { color: var(--coral); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 75% 20%, #2d2a8f 0%, rgba(45, 42, 143, 0) 60%), linear-gradient(180deg, #14163a 0%, #1a1c4e 100%); color: #d9d8f0; padding: 80px 0 120px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--lilac); }
.hero .lead { font-size: 1.15rem; color: #d3d2ec; max-width: 36em; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); margin-bottom: 12px; }
.hero .kicker { color: var(--lilac); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-small { padding: 64px 0 72px; }
.hero-small .wrap { grid-template-columns: 1.2fr .8fr; }
.hero-card { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.hero-card h3 { margin-bottom: 4px; }
.hero-card .kicker { color: var(--indigo); margin-bottom: 6px; }
.hero-card ul { padding-left: 1.1em; margin: 12px 0 0; font-size: .95rem; }

/* Stat strip */
.stats { margin-top: -64px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.stat { padding: 26px 30px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 2.3rem; line-height: 1.1; font-weight: 800; color: var(--indigo); letter-spacing: -.03em; }
.stat span { font-size: .95rem; color: var(--muted); }

/* Sections */
.section { padding: 84px 0; }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy); color: #d3d2ec; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .kicker { color: var(--lilac); }
.section-head { max-width: 46em; margin-bottom: 36px; }
.section-head p { font-size: 1.08rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split-wide { grid-template-columns: 1.15fr .85fr; }

/* Cards */
.grid { display: grid; gap: 18px; }
.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: 22px 22px 18px; box-shadow: 0 1px 2px rgba(22, 24, 58, .04); }
.card h3 { margin-bottom: 6px; }
.card p { font-size: .95rem; margin: 0; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; margin-bottom: 14px; color: var(--indigo); }
.card .ico svg { width: 24px; height: 24px; }
.card-link { text-decoration: none; display: block; color: var(--text); transition: border-color .15s, transform .15s; }
.card-link:hover { color: var(--text); }
.card-link:hover { border-color: var(--indigo); transform: translateY(-2px); }
.card-link:hover h3 { color: var(--indigo); }
.card-tint { background: var(--tint); border-color: transparent; }
.section-tint .card-tint { background: #fff; }

/* Lists */
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 19px; height: 19px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234b43c9' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.section-navy .checks li::before { background-color: rgba(255, 255, 255, .1); }
.steps { list-style: none; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 54px; margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--indigo); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.steps li::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps strong { display: block; font-size: 1.05rem; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: relative; }
.price.best { border: 2px solid var(--indigo); box-shadow: 0 16px 40px rgba(75, 67, 201, .14); }
.price .tag { position: absolute; top: -13px; left: 26px; background: var(--indigo); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.price h3 { font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.price .amt { font-size: 3rem; font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.price .per { color: var(--muted); font-size: .95rem; }
.price ul { margin-top: 18px; font-size: .95rem; }
.fine { font-size: .9rem; color: var(--muted); }

/* Table */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .96rem; }
.tbl th, .tbl td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--tint); color: var(--ink); font-weight: 650; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 600; color: var(--ink); width: 28%; }
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 650; color: var(--ink); font-size: 1.06rem; padding: 16px 40px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--indigo); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 18px; max-width: 52em; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chips a, .chips span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .92rem; font-weight: 600; color: var(--indigo); text-decoration: none; background: #fff; }
.chips a:hover { border-color: var(--indigo); }

/* Callouts */
.note { background: var(--tint); border-left: 4px solid var(--indigo); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; font-size: .97rem; }
.note p:last-child { margin: 0; }
.alert { background: #fff4f1; border-left-color: var(--coral); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.vs > div { padding: 26px 28px; }
.vs > div + div { border-left: 1px solid var(--line); background: var(--tint); }
.vs h3 { display: flex; align-items: center; gap: 10px; }
.vs .bad li::marker { color: var(--coral); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, #14163a 0%, #2d2a8f 100%); color: #d3d2ec; border-radius: var(--radius-lg); padding: 44px 48px; display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; font-size: 1.05rem; }
.cta-band .btns { margin: 0; }

/* Form */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.form-card .hs-form fieldset { max-width: none !important; }
.form-card .hs-form input[type=text], .form-card .hs-form input[type=email], .form-card .hs-form input[type=tel], .form-card .hs-form input[type=number], .form-card .hs-form textarea {
	width: 100% !important; border: 1px solid #d9d9e6; border-radius: 10px; padding: 12px 14px; font: 400 1rem "Inter", sans-serif; color: var(--ink); background: #fff;
}
.form-card .hs-form textarea { min-height: 96px; }
.form-card .hs-form .hs-button { background: var(--coral); border: 0; color: #fff; border-radius: 999px; padding: 15px 26px; font: 650 1rem "Inter", sans-serif; cursor: pointer; }
.form-card .hs-form .hs-button:hover { background: var(--coral-2); }
.form-card .hs-form .hs-form-field { margin-bottom: 14px; }
.form-card .hs-form label { font-weight: 600; color: var(--ink); font-size: .92rem; }
.form-card .hs-error-msgs { list-style: none; padding: 0; margin: 4px 0 0; color: var(--coral); font-size: .85rem; }
.form-fallback { font-size: .95rem; }

/* Page content */
.page-body { padding: 0; }
.page-body > .wp-block-html { display: contents; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.basic-page { padding: 64px 0 84px; }
.basic-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

/* Footer */
.site-footer { background: var(--navy-2); color: #b6b5d4; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #e3e2f3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; font-size: .82rem; color: #8f8eb3; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.foot-legal p { margin: 0; max-width: 60em; }
.foot-phone { font-size: 1.25rem; font-weight: 700; color: #fff !important; }

/* Responsive */
@media (max-width: 1280px) {
	.head-phone { display: none; }
}
@media (max-width: 1140px) {
	.site-header .wrap { position: relative; }
	.menu-toggle { display: inline-block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); padding: 8px 16px 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
	.nav.open { display: block; }
	.nav ul { flex-direction: column; }
	.nav a { font-size: 1rem; padding: 12px 10px; }
	.head-cta { display: none; }
	.nav .nav-extra { display: block; }
}
@media (max-width: 920px) {
	.hero .wrap, .hero-small .wrap, .split, .split-wide { grid-template-columns: 1fr; }
	.hero { padding: 56px 0 100px; }
	.hero-art { max-width: 560px; }
	.grid-3, .grid-4, .price-grid { grid-template-columns: 1fr 1fr; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.cta-band { grid-template-columns: 1fr; padding: 36px 30px; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.section { padding: 60px 0; }
	.stats-grid { grid-template-columns: 1fr; }
	.stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
	.stat { padding: 20px 22px; }
	.grid-2, .grid-3, .grid-4, .price-grid, .vs { grid-template-columns: 1fr; }
	.vs > div + div { border-left: 0; border-top: 1px solid var(--line); }
	.foot-grid { grid-template-columns: 1fr; }
	.brand-by { display: none; }
	.btns .btn { width: 100%; }
	.form-card { padding: 22px 18px; }
	.tbl td:first-child { width: auto; }
}
.nav-extra { display: none; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .card-link { transition: none; } }

/* Savings check */
.pc { display: grid; gap: 22px; }
.pc-card { padding: 28px; }
.pc-card h2 { font-size: 1.6rem; }
.pc-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0 18px; }
.pc-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.pc-field input, .pc-field select, .pc-table input, .pc-table select { width: 100%; border: 1.5px solid #d9d9e6; border-radius: 10px; padding: 10px 12px; font: 500 15px "Inter", sans-serif; color: var(--ink); background: #fff; }
.pc-field input:focus, .pc-field select:focus, .pc-table input:focus, .pc-table select:focus { border-color: var(--indigo); outline: none; box-shadow: 0 0 0 3px rgba(75, 67, 201, .15); }
.pc-wide { grid-column: span 2; }
.pc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pc-table th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--line); padding: 8px 6px; }
.pc-table td { border-bottom: 1px solid var(--tint-2); padding: 8px 6px; vertical-align: middle; color: var(--ink); }
.pc-table td:first-child { font-weight: 650; }
.pc-table td:nth-child(2) { width: 100px; } .pc-table td:nth-child(3) { width: 160px; } .pc-table td:nth-child(4) { width: 160px; }
.pc-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin-top: 10px; }
.pc-area h3 { font-size: 1rem; margin: 10px 0 6px; }
.pc-item { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: .95rem; color: var(--ink); line-height: 1.4; cursor: pointer; }
.pc-item input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; accent-color: var(--indigo); }
.pc-results { background: linear-gradient(160deg, #17165a, #0d0f30); border-radius: var(--radius-lg); padding: 28px; color: #fff; }
.pc-results .kicker { color: var(--lilac); }
.pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pc-box { background: rgba(255, 255, 255, .07); border-radius: 16px; padding: 18px; text-align: center; }
.pc-box small, .pc-ready small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lilac); }
.pc-box b { display: block; font-size: 2rem; font-weight: 800; margin: 4px 0; color: #fff; letter-spacing: -.02em; }
.pc-box span { font-size: .85rem; color: rgba(255, 255, 255, .82); }
.pc-save { background: var(--coral); } .pc-save small { color: #ffe3dc; } .pc-save span { color: #fff; }
.pc-msg { color: #fff; font-size: 1.02rem; margin: 18px 0; }
.pc-ready { display: grid; grid-template-columns: 200px 1fr; gap: 18px; background: #fff; color: var(--ink); border-radius: 16px; padding: 18px 20px; }
.pc-ready small { color: var(--indigo); } .pc-ready b { display: block; font-size: 2.1rem; font-weight: 800; }
.pc-ready span { font-weight: 700; font-size: .9rem; }
.pc-ready[data-level=high] b, .pc-ready[data-level=high] span { color: #d2401f; }
.pc-ready[data-level=mid] b, .pc-ready[data-level=mid] span { color: #b87400; }
.pc-ready[data-level=low] b, .pc-ready[data-level=low] span { color: #0b7a4b; }
.pc-ready ul { margin: 0 0 0 18px; font-size: .92rem; }
.pc-fine { font-size: .82rem; color: rgba(255, 255, 255, .72); margin: 16px 0 12px; }
.pc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pc-err { color: var(--coral); font-weight: 600; font-size: .92rem; min-height: 1em; margin: 0 0 12px; }
.pc-ok { background: #ecfdf3; border-radius: 12px; padding: 16px 18px; color: #0b5b38; }
@media (max-width: 767px) {
	.pc-top, .pc-grid, .pc-areas, .pc-ready { grid-template-columns: 1fr; }
	.pc-wide { grid-column: auto; }
	.pc-card, .pc-results { padding: 22px 18px; }
	.pc-table thead { display: none; }
	.pc-table tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--tint-2); }
	.pc-table td { border: 0; padding: 0; width: auto !important; }
	.pc-table td:first-child { grid-column: 1 / -1; }
	.pc-table td:not(:first-child)::before { content: attr(data-l); display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
}
@media print {
	.announce, .site-header, .site-footer, #pc-send, [data-print], .section-tint { display: none !important; }
	.pc-results { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Resource cards */
.res-ico { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); display: block; margin-bottom: 6px; }
.head-cta .btn { white-space: nowrap; }
.book-card { padding: 10px; min-height: 640px; }
