/* ============================================================
   nami — brand stylesheet
   Loaded only on nami page templates.
   ============================================================ */

/* ── Custom properties ────────────────────────────────────── */

.nami-page {
    --background:      #ffffff;
    --foreground:      #424448;
    --color-white:     #ffffff;
    --color-dark-gray: #424448;
    --color-blue:      #08c;
    --color-green:     #80bc00;
}

/* ── Main container overrides ─────────────────────────────── */

.nami-main {
    box-shadow: none;
}

.nami-page {
    background-color: var(--background);
    color: var(--foreground);
}

/* ── Hero ─────────────────────────────────────────────────── */

.nami-hero {
    position: relative;
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

@media (max-width: 767px) {
    .nami-hero {
        height: auto;
        min-height: unset;
        padding: 5rem 0;
    }
}

.nami-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0, 0, 0, 0.50) 0%,
        rgba(0, 0, 0, 0.75) 100%
    );
}

.nami-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .nami-hero__content {
        padding: 6rem 2rem;
    }
}

.nami-hero__brand {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-green);
    margin-bottom: 0.625rem;
}

.nami-hero__logo {
    display: block;
    height: 1.5rem;
    width: auto;
    margin: 0 auto 1.25rem;
}

.nami-hero__product {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

.nami-hero__tagline {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.2;
    font-weight: 300;
    color: var(--color-white);
    margin: 0 auto;
    max-width: 720px;
}

/* ── Benefits ─────────────────────────────────────────────── */

.nami-benefits {
    background: #f7f8f9;
    padding: 4rem 1.5rem;
}

.nami-benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .nami-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nami-benefits__grid {
        grid-template-columns: 1fr;
    }
}

.nami-benefit-card {
    background: var(--color-white);
    border: 1px solid #e8e9eb;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
}

.nami-benefit-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1.25rem;
    background: #e6f4fb;
    border-radius: 50%;
    color: var(--color-blue);
}

.nami-benefit-card__icon svg {
    width: 1.375rem;
    height: 1.375rem;
}

.nami-benefit-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark-gray);
    margin: 0 0 0.625rem;
}

.nami-benefit-card__desc {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* ── Products ─────────────────────────────────────────────── */

.nami-products {
    background: var(--background);
    padding: 5rem 1.5rem;
}

.nami-products__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.nami-products__heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-dark-gray);
    margin: 0 0 0.5rem;
}

.nami-products__sub {
    font-size: 1.0625rem;
    color: #6b7280;
    margin: 0 0 3rem;
}

.nami-products__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .nami-products__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .nami-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nami-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nami-product-card__img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f7f8f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

.nami-product-card__img-wrap img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

.nami-product-card__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-dark-gray);
    margin: 0 0 0.375rem;
}

.nami-product-card__desc {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.nami-products__notice {
    margin-top: 4rem;
    padding: 1rem 1.25rem;
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--color-blue);
    border-radius: 0 6px 6px 0;
    font-size: 0.875rem;
    font-style: italic;
    color: #4b5563;
    line-height: 1.65;
}

.nami-products__notice strong {
    font-style: normal;
    color: var(--color-blue);
}

/* ── Why section ──────────────────────────────────────────── */

.nami-why {
    background: var(--color-green);
    padding: 5rem 1.5rem;
}

.nami-why__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.nami-why__heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 3rem;
}

.nami-why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .nami-why__grid {
        grid-template-columns: 1fr;
    }
}

.nami-why-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2rem 1.75rem;
    text-align: left;
}

.nami-why-card__logo {
    display: block;
    height: 1.25rem;
    width: auto;
    margin-bottom: 1rem;
}

.nami-why-card__logo--lg {
    height: 2rem;
}

.nami-why-card__logo--adc {
    height: 1.75rem;
}

.nami-why-card__logo--nami {
    display: flex;
    align-items: center;
    gap: 0;
}

.nami-why-card__logo--nami img:first-child {
    height: 2.5rem;
    width: auto;
}

.nami-why-card__logo--nami img:last-child {
    height: 1.25rem;
    width: auto;
}

.nami-why-card__desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
    margin: 0;
}

.nami-why__cta-text {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
    max-width: 820px;
    margin: 0 auto;
}

/* ── Cameras ──────────────────────────────────────────────── */

.nami-cameras {
    background: #f7f8f9;
    padding: 5rem 1.5rem;
}

.nami-cameras__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.nami-cameras__heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-dark-gray);
    margin: 0 0 0.5rem;
}

.nami-cameras__sub {
    font-size: 1.0625rem;
    color: #6b7280;
    margin: 0 0 3rem;
}

.nami-cameras__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .nami-cameras__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nami-cameras__grid {
        grid-template-columns: 1fr;
    }
}

.nami-camera-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--color-white);
    border: 1px solid #e8e9eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.nami-camera-card__img-wrap {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.nami-camera-card__img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.nami-camera-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark-gray);
    margin: 0 0 0.5rem;
}

.nami-camera-card__desc {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
}

/* ── Why Surety ───────────────────────────────────────────── */

.nami-surety {
    background: var(--background);
    padding: 5rem 1.5rem 0 0;
    overflow: hidden;
}

.nami-surety__inner {
    max-width: 1100px;
    margin: 0;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    align-items: start;
}

.nami-surety__phone {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    align-self: end;
}

/* Force fixed-pixel screen overlay — the vw-based toolkit rule shrinks
   the screen while the phone image stays 390px wide, causing misalignment. */
.nami-surety__phone .m-phone--responsive .m-phone__screen {
    top: 61px;
    left: 102px;
    width: 234px;
    height: 432px;
}

.nami-surety__phone .m-phone--responsive .m-phone__screen > img {
    animation: phone-screen-base 50s infinite ease-in-out 0s;
}

.nami-surety__content {
    padding-bottom: 5rem;
}

.nami-surety__heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-dark-gray);
    margin: 0 0 2rem;
}

.nami-surety__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.nami-surety__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.nami-surety__item-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    background: #e6f4fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
    margin-top: 0.1rem;
}

.nami-surety__item-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.nami-surety__item strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark-gray);
    margin-bottom: 0.3rem;
}

.nami-surety__item p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1064px) {
    .nami-surety {
        padding: 3rem 1.5rem;
    }

    .nami-surety__inner {
        grid-template-columns: 1fr;
    }

    .nami-surety__phone {
        display: none;
    }

    .nami-surety__content {
        padding-bottom: 0;
    }

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

}

/* ── Smart home compatibility ─────────────────────────────── */

.nami-compat {
    background: var(--background);
    padding: 5rem 1.5rem;
}

.nami-compat__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.nami-compat__heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-dark-gray);
    margin: 0 0 0.5rem;
    text-align: center;
}

.nami-compat__sub {
    font-size: 1.0625rem;
    color: #6b7280;
    text-align: center;
    margin: 0 0 3rem;
}

.nami-compat__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {
    .nami-compat__grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 640px) {
    .nami-compat__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.nami-compat__card {
    background: #f7f8f9;
    border: 1px solid #e8e9eb;
    border-radius: 10px;
    padding: 1.25rem 0.75rem 1rem;
    display: grid;
    grid-template-rows: 2.5rem auto auto;
    justify-items: center;
    align-items: start;
    text-align: center;
    gap: 0.625rem;
}

.nami-compat__card--dark {
    background: #424448;
    border-color: #424448;
}

.nami-compat__card--dark .nami-compat__card-name {
    color: #fff;
}

.nami-compat__card--dark .nami-compat__card-cat {
    color: rgba(255, 255, 255, 0.6);
}

.nami-compat__card img {
    height: 2rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    align-self: center;
}

.nami-compat__card--logo-md img {
    height: 2.25rem;
    align-self: center;
}

.nami-compat__card--logo-lg img {
    height: 2.5rem;
    transform: scale(1.6);
    transform-origin: center;
}

.nami-compat__card-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-dark-gray);
    line-height: 1.3;
}

.nami-compat__card-cat {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
}

/* ── Reviews ─────────────────────────────────────────────── */

.nami-reviews {
    background: var(--background);
    padding: 4rem 1.5rem;
}

.nami-reviews__inner {
    max-width: 64rem;
    margin: 0 auto;
}

/* ── CTA ──────────────────────────────────────────────────── */

.nami-cta {
    background: var(--color-blue);
    padding: 5rem 1.5rem;
    text-align: center;
}

.nami-cta__inner {
    max-width: 680px;
    margin: 0 auto;
}

.nami-cta__heading {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
}

.nami-cta__sub {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 2.25rem;
    line-height: 1.6;
}

.nami-cta__btn {
    display: inline-block;
    background: #fff;
    color: var(--color-blue);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.875rem 2.25rem;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.nami-cta__btn:hover {
    opacity: 0.9;
    color: var(--color-blue);
    text-decoration: none;
}

.nami-cta__plans-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nami-cta__plans-link:hover {
    color: #fff;
    opacity: 0.85;
}

/* ── Wi-Fi sensing ────────────────────────────────────────── */

.nami-wifi {
    background: #f7f8f9;
    padding: 5rem 0;
}

.nami-wifi__header {
    max-width: 780px;
    margin: 0 auto 3.5rem;
    text-align: center;
    padding: 0 1.5rem;
}

.nami-wifi__heading {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 700;
    color: var(--color-dark-gray);
    margin: 0 0 0.75rem;
}

.nami-wifi__lead {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

/* Visuals row: video + coverage image side by side */

.nami-wifi__visuals {
    max-width: 1100px;
    margin: 0 auto 3.5rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (max-width: 768px) {
    .nami-wifi__visuals {
        grid-template-columns: 1fr;
    }
}

.nami-wifi__video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
}

.nami-wifi__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.nami-wifi__coverage-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Body: intro text + 2x2 cards + PIR note */

.nami-wifi__body {
    max-width: 1100px;
    margin: 0 auto 3.5rem;
    padding: 0 1.5rem;
}

.nami-wifi__intro-text {
    font-size: 1.0625rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0 0 2.5rem;
    max-width: 820px;
}

.nami-wifi__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .nami-wifi__cards {
        grid-template-columns: 1fr;
    }
}

.nami-wifi__card {
    background: #fff;
    border: 1px solid #e8e9eb;
    border-radius: 10px;
    padding: 1.5rem;
}

.nami-wifi__card-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #e6f4fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
    margin-bottom: 1rem;
}

.nami-wifi__card-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.nami-wifi__card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark-gray);
    margin: 0 0 0.4rem;
}

.nami-wifi__card-desc {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.nami-wifi__pir-note {
    background: #f7f8f9;
    border-left: 4px solid var(--color-green);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0;
}

.nami-wifi__pir-note strong {
    color: var(--color-dark-gray);
    display: inline;
    margin-right: 0.375rem;
}

/* Mesh topology */

.nami-wifi__mesh {
    background: var(--color-dark-gray);
    padding: 5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 100%;
}

@media (max-width: 900px) {
    .nami-wifi__mesh {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.nami-wifi__mesh-content {
    max-width: 500px;
    margin: 0 auto;
}

.nami-wifi__mesh-heading {
    font-size: clamp(1.25rem, 2vw, 1.875rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.25rem;
}

.nami-wifi__mesh-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.nami-wifi__mesh-text strong {
    color: #fff;
}

.nami-wifi__mesh-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* ── Closing argument ─────────────────────────────────────── */

.nami-close {
    background: var(--background);
    padding: 8rem 1.5rem;
}

.nami-close__inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.nami-close__heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-dark-gray);
    line-height: 1.2;
    margin: 0 0 2rem;
}

.nami-close__body {
    font-size: 1.0625rem;
    color: #6b7280;
    line-height: 1.75;
    margin: 0 0 1.25rem;
    text-align: left;
}

.nami-close__kicker {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-dark-gray);
    line-height: 1.4;
    margin: 3rem 0 0;
    padding-top: 3rem;
    border-top: 2px solid #e5e7eb;
}

/* ── FAQ ──────────────────────────────────────────────────── */

.nami-faq {
    background: #f7f8f9;
    padding: 6rem 1.5rem;
}

.nami-faq__inner {
    max-width: 820px;
    margin: 0 auto;
}

.nami-faq__heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-dark-gray);
    margin: 0 0 3rem;
    text-align: center;
}

.nami-faq__item {
    border-bottom: 1px solid #e5e7eb;
}

.nami-faq__item:first-of-type {
    border-top: 1px solid #e5e7eb;
}

.nami-faq__question {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-dark-gray);
    padding: 1.25rem 2rem 1.25rem 0;
    cursor: pointer;
    list-style: none;
    position: relative;
    line-height: 1.4;
}

.nami-faq__question::-webkit-details-marker {
    display: none;
}

.nami-faq__question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-blue);
    line-height: 1;
}

.nami-faq__item[open] .nami-faq__question::after {
    content: '−';
}

.nami-faq__answer {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.75;
    margin: 0 0 1.25rem;
}

.nami-faq__answer a {
    color: var(--color-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Hero sub ─────────────────────────────────────────────── */

.nami-hero__sub {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin: 1.25rem auto 0;
}

.nami-hero__sub-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nami-hero__sub-link:hover {
    color: #fff;
}

.nami-hero__cta {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 1rem 2.5rem;
    background: var(--color-green);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.nami-hero__cta:hover {
    background: #6aa300;
    color: #fff;
}
