/*
    Public site. Loads on top of site.css, so it inherits the palette rather than restating it.

    The portal is a tool people use every day and stays quiet. This has one job — explain what the
    product does to somebody who has never seen it — so it is allowed more air, larger type and a
    single strong accent, while spending that accent only on the two things worth clicking.
*/

.public {
    background-color: var(--pbx-base);
}

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

    The same sage bar the signed-in application wears, so somebody arriving from a search and
    somebody arriving from a bookmark are looking at one product rather than two sites that share a
    name. White on sage is the pairing the palette already uses for this; white on terracotta is the
    one it warns about, which is why the accent here stays on the button.
*/

.public-header {
    background-color: var(--pbx-sage);
    border-bottom: 1px solid var(--pbx-sage-dark);
    position: sticky;
    top: 0;
    z-index: 10;
}

.public-brand {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.public-brand:hover {
    color: #FFFFFF;
}

.public-brand .icon {
    color: #FFFFFF;
}

.public-nav-link,
.public-nav-link.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.public-nav-link:hover,
.public-nav-link.nav-link:hover,
.public-nav-link.nav-link:focus {
    color: var(--pbx-base);
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

/* Bootstrap's default burger is drawn in near-black, which disappears into sage. */
.public .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.public .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* The dropdown hangs below the sage bar onto the off-white page, so it keeps page colours rather
   than the header's — a white-on-white menu is the failure this whole section exists to avoid. */
.public .dropdown-menu {
    background-color: var(--pbx-surface);
}

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

.hero {
    padding: 4.5rem 0 3.5rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 700;
    text-wrap: balance;
    max-width: 18ch;
}

.hero .lead {
    font-size: 1.15rem;
    color: var(--pbx-charcoal-soft);
    max-width: 52ch;
}

/*
    The transcript beside the hero. Showing one is worth more than describing it: the product is a
    conversation, and a conversation is the only honest way to show what it sounds like.
*/
.transcript {
    background: var(--pbx-surface);
    border: 1px solid var(--pbx-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(58, 58, 53, 0.04);
}

.transcript-line {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.transcript-line:last-child {
    margin-bottom: 0;
}

.transcript-who {
    flex: none;
    width: 4.5rem;
    color: var(--pbx-charcoal-soft);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 0.15rem;
}

.transcript-line.is-assistant .transcript-what {
    color: var(--pbx-charcoal);
}

.transcript-line.is-caller .transcript-what {
    color: var(--pbx-charcoal-soft);
    font-style: italic;
}

/* The moment the assistant does something, rather than merely says something. */
.transcript-action {
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--pbx-sage-dark);
    background: var(--pbx-sage-tint);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
}

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

.section {
    padding: 3.5rem 0;
}

.section-tint {
    background: var(--pbx-surface);
    border-top: 1px solid var(--pbx-border);
    border-bottom: 1px solid var(--pbx-border);
}

.section h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    letter-spacing: -0.02em;
    font-weight: 700;
    text-wrap: balance;
}

.section-intro {
    color: var(--pbx-charcoal-soft);
    max-width: 60ch;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pbx-sage-dark);
}

/*
    Numbered steps. The numbers earn their place here because setting this up genuinely is a
    sequence — you cannot tell it about your business before it is connected to your phone system.
*/
.step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--pbx-sage);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex: none;
}

.feature {
    display: flex;
    gap: 0.9rem;
}

.feature .icon {
    color: var(--pbx-sage);
    margin-top: 0.2rem;
}

.feature h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature p {
    color: var(--pbx-charcoal-soft);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ---------- Language list ---------- */

.language-chip {
    display: inline-block;
    background: var(--pbx-surface);
    border: 1px solid var(--pbx-border);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.85rem;
    color: var(--pbx-charcoal-soft);
}

/* ---------- Pricing ---------- */

.plan {
    background: var(--pbx-surface);
    border: 1px solid var(--pbx-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* One tier is marked, and only one. Marking two says nothing. */
.plan.is-featured {
    border-color: var(--pbx-sage);
    border-width: 2px;
}

.plan-price {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.plan-rate {
    color: var(--pbx-charcoal-soft);
    font-size: 0.9rem;
}

.plan ul {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    flex-grow: 1;
}

.plan li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
}

.plan li .icon {
    color: var(--pbx-sage);
    margin-top: 0.2rem;
}

/* ---------- Call to action ---------- */

.cta {
    background: var(--pbx-sage);
    color: #fff;
    border-radius: 0.75rem;
    padding: 2.5rem;
}

.cta h2 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

/* White on terracotta, at a weight heavy enough to carry it. */
.cta .btn-primary {
    --bs-btn-bg: var(--pbx-terracotta);
    --bs-btn-border-color: var(--pbx-terracotta);
    --bs-btn-hover-bg: var(--pbx-terracotta-dark);
    --bs-btn-hover-border-color: var(--pbx-terracotta-dark);
    font-weight: 700;
}

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

.public-footer {
    background: var(--pbx-base);
    border-top: 1px solid var(--pbx-border);
}

.public-footer a {
    color: var(--pbx-charcoal-soft);
    text-decoration: none;
}

.public-footer a:hover {
    color: var(--pbx-terracotta-dark);
    text-decoration: underline;
}

/* ---------- Navigation ---------- */

/*
    Bootstrap's navbar link padding fights the header's own rhythm, so the public link style resets
    it rather than being overridden by it. Specificity is kept level — .public-nav-link.nav-link
    beats .nav-link on its own without needing !important.
*/
.public-nav-link.nav-link {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    color: var(--pbx-charcoal);
}

.dropdown-menu {
    border-color: var(--pbx-border);
    border-radius: 0.6rem;
    box-shadow: 0 6px 24px rgba(58, 58, 53, 0.10);
    padding: 0.4rem;
}

.dropdown-item {
    border-radius: 0.4rem;
    color: var(--pbx-charcoal);
    font-size: 0.95rem;
    padding: 0.45rem 0.7rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--pbx-sage-tint);
    color: var(--pbx-charcoal);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem var(--pbx-sage-tint);
}

/* ---------- Breadcrumb ---------- */

.breadcrumb-trail {
    font-size: 0.85rem;
    color: var(--pbx-charcoal-soft);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-trail a {
    color: var(--pbx-charcoal-soft);
    text-decoration: none;
}

.breadcrumb-trail a:hover {
    color: var(--pbx-terracotta-dark);
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

/* ---------- Industry cards ---------- */

.industry-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    height: 100%;
    padding: 1.1rem;
    background: var(--pbx-surface);
    border: 1px solid var(--pbx-border);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--pbx-charcoal);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.industry-card:hover {
    border-color: var(--pbx-sage);
    transform: translateY(-2px);
}

.industry-card .icon {
    color: var(--pbx-sage-dark);
    flex: none;
    margin-top: 0.15rem;
}

.industry-card-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.industry-card-line {
    display: block;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--pbx-charcoal-soft);
}

/* Cards in a four-across grid need a common height or the row looks broken-toothed. */
.industry-card.is-tall {
    min-height: 7.5rem;
}

/* ---------- Cost of missing a call ---------- */

.cost-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    background: var(--pbx-surface);
    border: 1px solid var(--pbx-border);
    border-left: 3px solid var(--pbx-terracotta);
    border-radius: 0.5rem;
    height: 100%;
}

.cost-item .icon {
    color: var(--pbx-terracotta);
    flex: none;
    margin-top: 0.2rem;
}

.cost-item p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---------- FAQ ---------- */

.faq {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--pbx-border);
}

.faq:last-child {
    border-bottom: 0;
}

.faq h3 {
    margin-bottom: 0.4rem;
}

/* ---------- Integrations ---------- */

.integration {
    height: 100%;
    padding: 1.35rem;
    background: var(--pbx-surface);
    border: 1px solid var(--pbx-border);
    border-radius: 0.75rem;
}

.integration .icon-lg {
    color: var(--pbx-sage-dark);
}

.integration-abilities {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.integration-abilities li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.integration-abilities .icon-ok {
    color: var(--pbx-sage-dark);
}

/* An ability a provider does not have. Muted rather than alarming — it is a limitation of their
   API, not a fault, and colouring it like an error would overstate it. */
.integration-abilities .icon-off {
    color: var(--pbx-charcoal-soft);
    opacity: 0.5;
}

/* ---------- Language grid ---------- */

.language-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

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

.footer-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pbx-charcoal-soft);
    margin-bottom: 0.6rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
}

/* ---------- Missed-call calculator ---------- */

.calculator {
    background: var(--pbx-surface);
    border: 1px solid var(--pbx-border);
    border-radius: 0.9rem;
    padding: 1.75rem;
}

.calc-field {
    margin-bottom: 1.25rem;
}

.calc-field:last-of-type {
    margin-bottom: 0;
}

.calc-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.calc-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calc-control input[type="range"] {
    flex: 1;
    accent-color: var(--pbx-terracotta);
}

.calc-control output {
    flex: none;
    min-width: 4.5rem;
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.calc-result {
    text-align: center;
    padding: 1.5rem 1.25rem;
    background: var(--pbx-terracotta-tint);
    border-radius: 0.75rem;
}

.calc-result-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pbx-charcoal-soft);
}

.calc-result-figure {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--pbx-terracotta-dark);
    font-variant-numeric: tabular-nums;
    margin: 0.35rem 0 0.5rem;
}

.calc-result-note {
    font-size: 0.85rem;
    color: var(--pbx-charcoal-soft);
}

.calc-caveat {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pbx-border);
    font-size: 0.82rem;
    color: var(--pbx-charcoal-soft);
}

/* ---------- Comparison table ---------- */

.compare-table th,
.compare-table td {
    font-size: 0.92rem;
    vertical-align: middle;
}

.compare-table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pbx-charcoal-soft);
    border-bottom: 2px solid var(--pbx-border);
}

.compare-table tbody th {
    font-weight: 500;
    white-space: nowrap;
}

/* Our column, marked once in the header and carried down the body by the same class rather than
   by a positional selector that breaks the moment a column is inserted. */
.compare-table .is-ours {
    background-color: var(--pbx-sage-tint);
    font-weight: 600;
}

.compare-table thead .is-ours {
    color: var(--pbx-sage-dark);
    border-bottom-color: var(--pbx-sage);
}

.mark-yes {
    color: var(--pbx-sage-dark);
    font-weight: 600;
}

.mark-no {
    color: var(--pbx-charcoal-soft);
}

/* ---------- Compact industry card, for the home page strip ---------- */

.industry-card.is-compact {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.1rem 0.75rem;
}

.industry-card.is-compact .industry-card-name {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---------- Contact ---------- */

.contact-aside {
    background: var(--pbx-surface);
    border: 1px solid var(--pbx-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.contact-aside h2 {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    color: var(--pbx-charcoal-soft);
    margin-bottom: 0.4rem;
}

.sent-note {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--pbx-sage-tint);
    border: 1px solid var(--pbx-sage);
    border-radius: 0.75rem;
}

.sent-note .icon {
    color: var(--pbx-sage-dark);
    flex: none;
    margin-top: 0.2rem;
}

/*
    The call to action appears two ways: as a rounded panel inside a section on the home page, and
    as a full-width band closing the other pages. Rounded corners on a band that runs to both edges
    of the window look like a mistake, so the band drops them and takes section padding instead.
*/
section.cta {
    border-radius: 0;
    padding: 3.5rem 0;
}
