/* ==========================================================================
   Pay Per Patent Page — Triangle IP
   All classes are prefixed with `ppp-` to avoid collisions with the main site.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    --ppp-color-bg-dark: #051B34;
    --ppp-color-bg-dark-2: #0A2A4D;
    --ppp-color-bg-dark-3: #11365F;
    --ppp-color-primary: #01A8F4;
    --ppp-color-primary-hover: #0095da;
    --ppp-color-text-dark: #0B2545;
    --ppp-color-text-muted: #5b6b80;
    --ppp-color-white: #ffffff;
    --ppp-color-light-bg: #f4f7fb;
    --ppp-color-card-bg: #ffffff;
    --ppp-color-icon-bg: #E6F5FE;
    --ppp-color-border: #e5ebf2;

    --ppp-font-body: 'Nunito Sans', 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --ppp-radius-sm: 8px;
    --ppp-radius-md: 12px;
    --ppp-radius-lg: 16px;
    --ppp-radius-pill: 999px;

    --ppp-shadow-card: 0 4px 18px rgba(8, 35, 65, 0.06);
    --ppp-shadow-card-hover: 0 10px 28px rgba(8, 35, 65, 0.12);
    --ppp-shadow-search: 0 18px 50px rgba(0, 0, 0, 0.18);

    --ppp-container-max: 1240px;
}


/* ---------- Layout ---------- */
.ppp-container {
    width: 100%;
    max-width: var(--ppp-container-max);
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------- Buttons ---------- */
.ppp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    border: 1.5px solid transparent;
}

.ppp-btn--primary {
    background: var(--ppp-color-primary);
    color: var(--ppp-color-white) !important;
}
.ppp-btn--primary:hover {
    background: #051B34;
}

.ppp-btn--ghost {
    background: transparent;
    color: var(--ppp-color-white);
    border-color: rgba(255, 255, 255, 0.85);
}
.ppp-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.ppp-btn--white {
    background: var(--ppp-color-white);
    color: var(--ppp-color-text-dark);
}
.ppp-btn--white:hover {
    background: #eef3f9;
}

.ppp-btn--outline {
    background: transparent;
    color: var(--ppp-color-text-dark);
    border-color: var(--ppp-color-text-dark);
}
.ppp-btn--outline:hover {
    background: var(--ppp-color-text-dark);
    color: var(--ppp-color-white);
}

/* ==========================================================================
   Hero (header sits transparent on top of it, like the TIP homepage)
   ========================================================================== */
.ppp-hero {
    position: relative;
    color: var(--ppp-color-white);
    /* Solid navy with the merest hint of a side gradient so the surface is
       not visually flat. The triangle pattern image is intentionally NOT used
       here — the design target is a clean dark backdrop. */
    background:
        linear-gradient(180deg, #061f3b 0%, #04162d 100%);
    overflow: hidden;
    padding-bottom: 50px;
}

/* Very faint triangle pattern, just enough to give the surface some texture
   without the giant overlapping triangles from the original layout. */
.ppp-hero__pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: url("https://triangleip.com/wp-content/uploads/pay_patent_assets/triangle-pattern.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 1700px auto;
    opacity: 0.06;
}

.ppp-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 100px;
}

.ppp-hero__title {
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1.1;
    font-weight: 900;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
}

.ppp-hero__title-accent {
    color: var(--ppp-color-primary);
    font-weight: 900;
}

.ppp-hero__subtitle {
    font-size: clamp(14px, 1.05vw, 16px);
    max-width: 720px;
    margin: 0 auto 24px;
    opacity: 0.92;
    line-height: 1.55;
}

.ppp-hero__notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 14px;
    padding: 6px 14px;
    background: rgba(1, 168, 244, 0.12);
    border: 1px solid rgba(1, 168, 244, 0.45);
    border-radius: 999px;
    color: var(--ppp-color-white);
    font-size: 13px;
    line-height: 1.4;
}

.ppp-hero__notice strong {
    font-weight: 700;
    color: var(--ppp-color-primary);
}

.ppp-hero__notice-flag {
    font-size: 14px;
    line-height: 1;
}

/* Search */
.ppp-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ppp-color-white);
    border-radius: 14px;
    padding: 12px;
    max-width: 760px;
    margin: 0 auto;
    box-shadow: var(--ppp-shadow-search);
}

.ppp-search__field {
    position: relative;
    flex: 1;
}

/* Hero variant for pages whose search box has an autosuggest dropdown. The base
   .ppp-hero clips with overflow:hidden to contain index.html's decorative
   .ppp-hero__shape SVG; that same clipping cuts the dropdown off at the hero's
   bottom edge. Pages using this modifier have no .ppp-hero__shape, so letting
   the hero overflow is safe, and the z-index keeps the dropdown above the
   section that follows. */
.ppp-hero--suggest {
    overflow: visible;
    z-index: 5;
}

/* ---------- Prosecutor name autosuggest ---------- */
.ppr-suggest__list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: var(--ppp-color-white);
    border-radius: var(--ppp-radius-md);
    box-shadow: var(--ppp-shadow-search);
    max-height: 320px;
    overflow-y: auto;
    z-index: 40;
    text-align: left;
}

.ppr-suggest__list[hidden] { display: none; }

.ppr-suggest__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 16px;
    cursor: pointer;
    color: var(--ppp-color-text-dark);
}

.ppr-suggest__item:hover,
.ppr-suggest__item.is-active {
    background: var(--ppp-color-light-bg);
}

.ppr-suggest__name { font-weight: 600; font-size: 14px; }

.ppr-suggest__reg {
    color: var(--ppp-color-text-muted);
    font-size: 12px;
    white-space: nowrap;
}

.ppr-suggest__empty {
    padding: 10px 16px;
    color: var(--ppp-color-text-muted);
    font-size: 13px;
}
.ppp-search__icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9aa6b6;
    pointer-events: none;
}

.ppp-search__input {
    width: 100%;
    height: 46px !important;
    padding: 0 16px 0 44px !important;
    font-size: 14px;
    color: var(--ppp-color-text-dark);
    background: var(--ppp-color-white);
    border: 1px solid var(--ppp-color-border) !important;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.ppp-search__input::placeholder {
    color: #9aa6b6;
}

.ppp-search__input:focus {
    border-color: var(--ppp-color-primary);
    box-shadow: 0 0 0 3px rgba(1, 168, 244, 0.15);
}

.ppp-search__submit {
    height: 46px;
    padding: 0 28px;
    background: #051B34;
    color: var(--ppp-color-white);
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    border: none;
}

.ppp-search__submit:hover {
    background: var(--ppp-color-primary);
}

.ppp-hero__examples {
    margin: 12px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.ppp-hero__example {
    color: var(--ppp-color-white) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ppp-hero__example:hover {
    color: var(--ppp-color-primary);
    text-decoration: underline;
}

/* Wave divider — hidden in the current design (the reference uses a clean
   straight transition between the dark hero and the white report section).
   Kept in markup so it can be revived without touching HTML. */
.ppp-hero__shape {
    display: none;
}

/* ==========================================================================
   Header — transparent overlay sitting on top of the hero
   ========================================================================== */
.ppp-header {
    position: relative;
    z-index: 5;
    background: transparent;
    color: var(--ppp-color-white);
}

.ppp-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.ppp-header__logo img {
    height: 38px;
    width: auto;
}

/* Navigation */
.ppp-nav {
    flex: 1;
}

.ppp-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.ppp-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ppp-color-white);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 2px;
    transition: color 0.2s ease;
}

.ppp-nav__link:hover,
.ppp-nav__link--active {
    color: var(--ppp-color-primary);
}

.ppp-nav__caret {
    width: 10px;
    height: 6px;
    transition: transform 0.2s ease;
}

/* ---------- Reports dropdown ----------
   The other --dropdown items in the nav are decorative (a caret and nothing
   behind it). Reports is a real menu, so these rules only take effect on an
   item that actually contains a .ppp-nav__menu - the decorative ones are
   untouched. Opens on hover for pointers and on click/Enter for touch and
   keyboard (see js/nav.js). */

.ppp-nav__item--dropdown {
    position: relative;
}

.ppp-nav__menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 230px;
    margin: 0;
    /* Bridges the gap between the link and the panel so the pointer can travel
       down into the menu without it closing. */
    padding: 14px 0 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    z-index: 60;
}

.ppp-nav__item--dropdown:hover > .ppp-nav__menu,
.ppp-nav__item--dropdown:focus-within > .ppp-nav__menu,
.ppp-nav__item--dropdown.is-open > .ppp-nav__menu {
    opacity: 1;
    visibility: visible;
}

.ppp-nav__item--dropdown:hover > .ppp-nav__link .ppp-nav__caret,
.ppp-nav__item--dropdown.is-open > .ppp-nav__link .ppp-nav__caret {
    transform: rotate(180deg);
}

.ppp-nav__menu-inner {
    background: var(--ppp-color-white);
    border-radius: var(--ppp-radius-md);
    box-shadow: 0 18px 44px rgba(5, 27, 52, 0.22);
    padding: 8px 0;
    overflow: hidden;
}

.ppp-nav__menu-link {
    display: block;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ppp-color-text-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.ppp-nav__menu-link:hover,
.ppp-nav__menu-link:focus-visible {
    background: var(--ppp-color-light-bg);
    color: var(--ppp-color-primary);
}

.ppp-nav__menu-link--active {
    color: var(--ppp-color-primary);
}

/* Report types that exist in the menu but are not built yet. Rendered as spans
   rather than links so they cannot be clicked into a 404. */
.ppp-nav__menu-link--soon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--ppp-color-text-muted);
    cursor: default;
}

.ppp-nav__menu-link--soon:hover {
    background: transparent;
    color: var(--ppp-color-text-muted);
}

.ppp-nav__menu-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: var(--ppp-radius-pill);
    background: var(--ppp-color-light-bg);
    color: var(--ppp-color-text-muted);
}

/* On mobile the nav collapses into the hamburger panel, where an absolutely
   positioned flyout would sit on top of the items below it. Inline it instead. */
@media (max-width: 980px) {
    .ppp-nav__menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 0;
        padding: 0 0 0 14px;
    }

    .ppp-nav__menu-inner {
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .ppp-nav__menu-link {
        padding: 8px 0;
        color: var(--ppp-color-white);
    }

    .ppp-nav__menu-link:hover,
    .ppp-nav__menu-link:focus-visible {
        background: transparent;
        color: var(--ppp-color-primary);
    }
}
.ppp-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hamburger (mobile) */
.ppp-hamburger {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.ppp-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ppp-color-white);
    border-radius: 2px;
}

/* ==========================================================================
   Search button loading state + inline error message
   ========================================================================== */
.ppp-search__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 110px;
}

.ppp-search__submit.is-loading {
    background: #051B34;
    cursor: progress;
    opacity: 0.95;
}

.ppp-search__submit:disabled {
    cursor: not-allowed;
}

.ppp-search__spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    animation: ppp-spin 0.8s linear infinite;
    flex-shrink: 0;
}

.ppp-search__btn-label {
    line-height: 1;
}

@keyframes ppp-spin {
    to { transform: rotate(360deg); }
}

.ppp-search__error {
    margin: 14px auto 0;
    max-width: 760px;
    font-size: 13px;
    font-weight: 600;
    color: #ffd9dd;
    background: rgba(178, 43, 58, 0.22);
    border-radius: 8px;
    padding: 9px 14px;
    text-align: center;
}

/* ==========================================================================
   $5 Report section
   ========================================================================== */
.ppp-report {
    background: var(--ppp-color-light-bg);
    padding: 30px 0 60px;
    position: relative;
}

.ppp-report__title {
    text-align: center;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 800;
    margin: 0 0 30px;
    color: var(--ppp-color-text-dark);
}

.ppp-report__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}

.ppp-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--ppp-color-card-bg);
    border: 1px solid var(--ppp-color-border);
    border-radius: var(--ppp-radius-md);
    box-shadow: var(--ppp-shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ppp-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--ppp-shadow-card-hover);
}

.ppp-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ppp-color-icon-bg);
    color: var(--ppp-color-primary);
}

.ppp-feature__icon svg {
    width: 18px;
    height: 18px;
}

.ppp-feature__title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--ppp-color-text-dark);
}


/* Prosecutor report - stacked variant. The base .ppp-feature is a horizontal
   pill sized for an icon plus a two-word title, which is all the patent report
   grid needs. The prosecutor grid and the reports hub also carry a sentence of
   explanation, so they stack instead. Additive: the base class is untouched, so
   index.html and report.html are unaffected. */
.ppp-feature--stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px;
}

.ppp-feature--stacked .ppp-feature__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ppp-color-text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ppp-footer {
    background: var(--ppp-color-white);
    color: var(--ppp-color-text-dark);
    padding: 60px 0 0;
    border-top: 1px solid var(--ppp-color-border);
}

.ppp-footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.ppp-footer__brand {
    max-width: 320px;
}

.ppp-footer__logo img {
    height: 64px;
    width: auto;
    margin-bottom: 18px;
}

.ppp-footer__about {
    font-size: 14px;
    color: var(--ppp-color-text-muted);
    line-height: 1.6;
    margin: 0 0 22px;
}

.ppp-footer__heading {
    font-size: 16px;
    font-weight: 800;
    color: var(--ppp-color-text-dark);
    margin: 0 0 16px;
}

.ppp-footer__heading--secondary {
    margin-top: 26px;
}

.ppp-footer__list li {
    margin-bottom: 10px;
}

.ppp-footer__list a {
    font-size: 14px;
    color: var(--ppp-color-text-muted);
    transition: color 0.2s ease;
}

.ppp-footer__list a:hover {
    color: var(--ppp-color-primary);
}

/* Social icons */
.ppp-footer__social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ppp-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--ppp-color-white);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ppp-footer__social-link:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.ppp-footer__social-link svg {
    width: 18px;
    height: 18px;
}

.ppp-footer__social-link--facebook { background: #1877f2; }
.ppp-footer__social-link--x { background: #000; }
.ppp-footer__social-link--linkedin { background: #0a66c2; }
.ppp-footer__social-link--youtube { background: #ff0000; }

/* Footer bottom */
.ppp-footer__bottom {
    border-top: 1px solid var(--ppp-color-border);
    padding: 22px 0;
}

.ppp-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.ppp-footer__bottom p {
    margin: 0;
    font-size: 13px;
    color: var(--ppp-color-text-muted);
}

.ppp-footer__bottom a {
    color: var(--ppp-color-primary);
}

.ppp-footer__legal {
    display: flex;
    gap: 22px;
}

.ppp-footer__legal a {
    font-size: 13px;
    color: var(--ppp-color-text-muted);
}

.ppp-footer__legal a:hover {
    color: var(--ppp-color-primary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.ppp-header__inner {
        flex-wrap: wrap;
    }
    .ppp-nav,
    .ppp-header__actions {
        display: none;
    }

    .ppp-hamburger {
        display: inline-flex;
        margin-left: auto;
    }

    /* Mobile menu open state */
    .ppp-header.is-open .ppp-nav,
    .ppp-header.is-open .ppp-header__actions {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ppp-color-bg-dark);
        padding: 18px 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .ppp-header.is-open .ppp-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .ppp-header.is-open .ppp-header__actions {
        gap: 10px;
       padding-top: 4px;
    }

    .ppp-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .ppp-hero {
        padding-top: 130px;
    }

    .ppp-hero__content {
        padding-top: 30px;
    }

    .ppp-search {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
    }

    .ppp-search__submit {
        width: 100%;
    }

    .ppp-hero__shape svg {
        height: 60px;
    }

    .ppp-report {
        padding: 50px 0 70px;
    }

    .ppp-report__grid {
        grid-template-columns: 1fr;
    }

    .ppp-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ppp-footer__brand {
        max-width: none;
    }

    .ppp-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .ppp-container {
        padding: 0 18px;
    }

    .ppp-header__logo img {
        height: 40px;
    }

    .ppp-hero__title {
        font-size: 36px;
    }
}
