:root {
    --ok-ink: #102A3D;
    --ok-ink-2: #173B57;
    --ok-gold: #C9A45C;
    --ok-gold-soft: #E7D2A0;
    --ok-paper: #FAF8F2;
    --ok-paper-2: #F4EFE4;
    --ok-white: #FFFFFF;
    --ok-muted: #607080;
    --ok-border: rgba(16, 42, 61, .13);
    --ok-shadow: 0 24px 70px rgba(16, 42, 61, .12);
    --ok-radius-xl: 30px;
    --ok-radius-lg: 22px;
    --ok-container: 1180px;
    --ok-header-height: 86px;
    --ok-hero-viewport: 640px;
    --font-title: Georgia, 'Times New Roman', serif;
    --font-text: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ok-ink);
    background: var(--ok-paper);
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.68;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.ok-container {
    width: min(var(--ok-container), calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 20px;
    z-index: 9999;
    padding: .75rem 1rem;
    color: var(--ok-white);
    background: var(--ok-ink);
    border-radius: 999px;
    transition: top .2s ease;
}

.skip-link:focus { top: 18px; }

/* Header / menu */
.ok-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 248, 242, .9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--ok-border);
}

.ok-navbar {
    min-height: var(--ok-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.ok-brand {
    display: inline-flex;
    align-items: center;
    min-width: max-content;
}

.ok-brand-logo {
    width: 235px;
    height: auto;
}

.ok-menu-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ok-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ok-menu > li { position: relative; }

.ok-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: .58rem .9rem;
    border-radius: 999px;
    color: rgba(16, 42, 61, .82);
    font-size: .94rem;
    font-weight: 750;
    letter-spacing: -.01em;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.ok-menu > li > a::after {
    content: '⌄';
    margin-left: .4rem;
    color: var(--ok-gold);
    font-size: .82rem;
    line-height: 1;
}

.ok-menu a:hover,
.ok-menu a:focus,
.ok-menu a.is-active {
    color: var(--ok-ink);
    background: rgba(201, 164, 92, .16);
}

.ok-submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 20;
    display: grid;
    gap: .25rem;
    width: min(320px, 88vw);
    margin: 0;
    padding: .55rem;
    list-style: none;
    background: rgba(255, 255, 255, .97);
    border: 1px solid var(--ok-border);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(16, 42, 61, .15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.ok-menu > li:hover .ok-submenu,
.ok-menu > li:focus-within .ok-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ok-submenu a {
    justify-content: flex-start;
    width: 100%;
    min-height: 42px;
    padding: .65rem .8rem;
    border-radius: 13px;
    font-size: .91rem;
    font-weight: 650;
}

.ok-language {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 42px;
    padding: .56rem .85rem;
    border: 1px solid var(--ok-border);
    border-radius: 999px;
    color: var(--ok-ink-2);
    background: rgba(255, 255, 255, .58);
    font-size: .82rem;
    font-weight: 750;
}

.ok-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ok-border);
    border-radius: 14px;
    color: var(--ok-ink);
    background: var(--ok-white);
    cursor: pointer;
}

.ok-menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 999px;
    transition: transform .2s ease, opacity .2s ease;
}

body.menu-open .ok-menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .ok-menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .ok-menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.ok-hero {
    position: relative;
    overflow: hidden;
    min-height: calc(var(--ok-hero-viewport) - var(--ok-header-height));
    display: flex;
    align-items: center;
    padding: 15px 0;
    background:
        radial-gradient(circle at 18% 10%, rgba(201, 164, 92, .20), transparent 34%),
        radial-gradient(circle at 86% 20%, rgba(23, 59, 87, .12), transparent 34%),
        linear-gradient(180deg, var(--ok-paper), #fffdf8 72%, var(--ok-paper));
}

.ok-hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -42% -10%;
    height: 52%;
    background: radial-gradient(ellipse at center, rgba(201, 164, 92, .12), transparent 68%);
    pointer-events: none;
}

.ok-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
    gap: clamp(2rem, 5vw, 4.8rem);
    align-items: center;
}

.ok-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
    color: var(--ok-ink-2);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ok-eyebrow::before {
    content: '';
    width: 34px;
    height: 1px;
    background: var(--ok-gold);
}

.ok-hero h1 {
    margin: 0;
    max-width: 850px;
    color: var(--ok-ink);
    font-family: var(--font-title);
    font-size: clamp(2.65rem, 4.8vw, 4.85rem);
    line-height: .98;
    letter-spacing: -.07em;
}

.ok-hero-lead {
    max-width: 720px;
    margin: 1rem 0 0;
    color: rgba(16, 42, 61, .76);
    font-size: clamp(1.02rem, 1.35vw, 1.17rem);
    line-height: 1.58;
}

.ok-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.15rem;
}

.ok-actions-center { justify-content: center; }

.ok-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 50px;
    padding: .82rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.ok-btn:hover,
.ok-btn:focus { transform: translateY(-2px); }

.ok-btn-primary {
    color: var(--ok-white);
    background: var(--ok-ink);
    box-shadow: 0 15px 36px rgba(16, 42, 61, .18);
}

.ok-btn-primary:hover,
.ok-btn-primary:focus { box-shadow: 0 20px 44px rgba(16, 42, 61, .24); }

.ok-btn-secondary {
    color: var(--ok-ink);
    background: rgba(255, 255, 255, .75);
    border-color: var(--ok-border);
}

.ok-hero-card {
    position: relative;
    padding: clamp(1.05rem, 2vw, 1.45rem);
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(201, 164, 92, .28);
    border-radius: var(--ok-radius-xl);
    box-shadow: var(--ok-shadow);
    backdrop-filter: blur(14px);
}

.ok-symbol {
    position: relative;
    min-height: 205px;
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    border-radius: 25px;
    background:
        radial-gradient(circle at center, rgba(201, 164, 92, .23), transparent 34%),
        linear-gradient(145deg, #fffaf0, #f2eadb);
    overflow: hidden;
}

.ok-symbol-book {
    position: relative;
    width: 170px;
    height: 118px;
}

.ok-symbol-book::before,
.ok-symbol-book::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    border: 2px solid rgba(16, 42, 61, .88);
    background: rgba(255, 255, 255, .5);
}

.ok-symbol-book::before {
    left: 0;
    border-radius: 8px 8px 8px 28px;
    transform: skewY(7deg);
    border-right: none;
}

.ok-symbol-book::after {
    right: 0;
    border-radius: 8px 8px 28px 8px;
    transform: skewY(-7deg);
    border-left: none;
}

.ok-symbol-light {
    position: absolute;
    top: 31px;
    left: 50%;
    width: 8px;
    height: 72px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--ok-gold), rgba(201, 164, 92, .1));
    box-shadow: 0 0 28px rgba(201, 164, 92, .8);
}

.ok-hero-card h2 {
    margin: 0;
    font-family: var(--font-title);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.12;
    letter-spacing: -.04em;
}

.ok-hero-card p {
    margin: .85rem 0 0;
    color: var(--ok-muted);
}

/* Sections */
.ok-section { padding: clamp(4.1rem, 7vw, 7rem) 0; }
.ok-section-tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }

.ok-section-head {
    max-width: 880px;
    margin-bottom: 2.2rem;
}

.ok-section-kicker {
    margin: 0 0 .6rem;
    color: var(--ok-gold);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ok-section h2,
.ok-page-hero h1 {
    margin: 0;
    color: var(--ok-ink);
    font-family: var(--font-title);
    font-size: clamp(2.25rem, 4vw, 4.2rem);
    line-height: 1.03;
    letter-spacing: -.06em;
}

.ok-section-head p,
.ok-page-lead {
    margin: 1rem 0 0;
    color: var(--ok-muted);
    font-size: 1.08rem;
}

.ok-two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.ok-card {
    position: relative;
    min-height: 100%;
    padding: clamp(1.3rem, 2.4vw, 2rem);
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--ok-border);
    border-radius: var(--ok-radius-lg);
    box-shadow: 0 18px 50px rgba(16, 42, 61, .07);
}

.ok-card h3 {
    margin: 0;
    color: var(--ok-ink);
    font-family: var(--font-title);
    font-size: clamp(1.55rem, 2.3vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.ok-card p { margin: .95rem 0 0; color: var(--ok-muted); }

.ok-card .ok-card-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1.3rem;
    color: var(--ok-ink-2);
    font-weight: 850;
}

.ok-card .ok-card-link::after {
    content: '→';
    color: var(--ok-gold);
    transition: transform .2s ease;
}

.ok-card .ok-card-link:hover::after,
.ok-card .ok-card-link:focus::after { transform: translateX(4px); }

.ok-number {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 1.1rem;
    color: var(--ok-ink);
    background: rgba(201, 164, 92, .18);
    border: 1px solid rgba(201, 164, 92, .28);
    border-radius: 15px;
    font-family: var(--font-title);
    font-weight: 700;
}

.ok-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ok-feature-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ok-feature {
    padding: 1.2rem;
    border: 1px solid var(--ok-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, .55);
}

.ok-feature strong {
    display: block;
    color: var(--ok-ink);
    font-size: 1rem;
    letter-spacing: -.02em;
}

.ok-feature span {
    display: block;
    margin-top: .4rem;
    color: var(--ok-muted);
    font-size: .94rem;
    line-height: 1.55;
}

.ok-path {
    counter-reset: path;
    display: grid;
    gap: .85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ok-path li {
    counter-increment: path;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    background: rgba(255, 255, 255, .62);
    border: 1px solid var(--ok-border);
    border-radius: 20px;
}

.ok-path li::before {
    content: counter(path);
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--ok-white);
    background: var(--ok-ink);
    border-radius: 14px;
    font-family: var(--font-title);
    font-weight: 700;
}

.ok-path strong { display: block; color: var(--ok-ink); line-height: 1.25; }
.ok-path span { display: block; margin-top: .25rem; color: var(--ok-muted); font-size: .94rem; line-height: 1.55; }

.ok-band {
    color: var(--ok-white);
    background:
        radial-gradient(circle at 12% 20%, rgba(201, 164, 92, .24), transparent 30%),
        linear-gradient(135deg, var(--ok-ink), var(--ok-ink-2));
}

.ok-band .ok-section-kicker,
.ok-band h2,
.ok-band p { color: var(--ok-white); }

.ok-band p { opacity: .82; }

.ok-band .ok-feature {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
}

.ok-band .ok-feature strong,
.ok-band .ok-feature span { color: var(--ok-white); }
.ok-band .ok-feature span { opacity: .78; }

.ok-statement {
    padding: clamp(1.6rem, 3vw, 2.5rem);
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(201, 164, 92, .32);
    border-radius: var(--ok-radius-xl);
    box-shadow: 0 20px 55px rgba(16, 42, 61, .08);
}

.ok-statement p {
    margin: 0;
    color: rgba(16, 42, 61, .8);
    font-size: clamp(1.06rem, 1.6vw, 1.22rem);
}

.ok-statement-title {
    margin: 0 0 1rem;
    font-family: var(--font-title);
    font-size: clamp(2rem, 3.4vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -.055em;
}

.ok-final { text-align: center; }
.ok-final .ok-section-head { margin-inline: auto; }

/* Generic inner pages */
.ok-page-hero {
    padding: clamp(3.2rem, 6vw, 5.6rem) 0 clamp(2.8rem, 5vw, 4.6rem);
    background:
        radial-gradient(circle at 14% 18%, rgba(201, 164, 92, .18), transparent 34%),
        linear-gradient(180deg, var(--ok-paper), #fffdf8);
    border-bottom: 1px solid var(--ok-border);
}

.ok-page-hero-inner { max-width: 900px; }

.ok-page-grid {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    gap: clamp(1.4rem, 4vw, 4rem);
    align-items: start;
}

.ok-content-block {
    padding: clamp(1.4rem, 2.5vw, 2.2rem);
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--ok-border);
    border-radius: var(--ok-radius-lg);
}

.ok-content-block p { color: var(--ok-muted); }

.ok-contact-link {
    color: var(--ok-ink-2);
    font-weight: 850;
    border-bottom: 1px solid rgba(201, 164, 92, .6);
}

/* Footer */
.ok-footer {
    padding: 3.2rem 0 2rem;
    color: rgba(255, 255, 255, .76);
    background: #0C2232;
}

.ok-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr .8fr .8fr .9fr;
    gap: 2rem;
}

.ok-footer h2,
.ok-footer h3 {
    margin: 0 0 .8rem;
    color: var(--ok-white);
    font-family: var(--font-title);
    letter-spacing: -.03em;
}

.ok-footer h2 { font-size: 1.8rem; }
.ok-footer h3 { font-size: 1.15rem; }

.ok-footer p { margin: 0; }
.ok-footer-note { margin-top: .5rem !important; font-size: .88rem; opacity: .78; }

.ok-footer ul {
    display: grid;
    gap: .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ok-footer a:hover,
.ok-footer a:focus { color: var(--ok-white); }

.ok-footer-bottom {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .9rem;
}

@media (max-width: 1080px) {
    .ok-brand-logo { width: 210px; }
    .ok-menu a { padding-inline: .58rem; font-size: .9rem; }
    .ok-language { display: none; }
}

@media (max-width: 920px) {
    :root {
        --ok-header-height: 78px;
        --ok-hero-viewport: auto;
    }

    .ok-navbar { min-height: 78px; }
    .ok-brand-logo { width: 198px; }
    .ok-menu-toggle { display: inline-block; }

    .ok-menu-wrap {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        display: none;
        padding: 1rem 20px 1.4rem;
        background: rgba(250, 248, 242, .98);
        border-bottom: 1px solid var(--ok-border);
        box-shadow: 0 24px 48px rgba(16, 42, 61, .12);
    }

    body.menu-open .ok-menu-wrap { display: block; }

    .ok-menu { display: grid; gap: .35rem; }

    .ok-menu a {
        justify-content: flex-start;
        width: 100%;
        min-height: 46px;
        padding: .7rem .85rem;
        border-radius: 14px;
    }

    .ok-submenu {
        position: static;
        width: 100%;
        margin: .25rem 0 .55rem;
        padding: .25rem 0 .25rem .75rem;
        background: transparent;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .ok-submenu a {
        min-height: 40px;
        background: rgba(255, 255, 255, .55);
    }

    .ok-hero {
        min-height: auto;
        padding: 2.2rem 0 3rem;
    }

    .ok-hero-grid,
    .ok-two-cols,
    .ok-footer-grid,
    .ok-page-grid { grid-template-columns: 1fr; }

    .ok-hero-card { max-width: 580px; }
    .ok-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .ok-container { width: min(100% - 28px, var(--ok-container)); }
    .ok-brand-logo { width: 176px; }
    .ok-hero h1 { font-size: clamp(2.75rem, 15vw, 4.15rem); }
    .ok-actions, .ok-btn { width: 100%; }
    .ok-feature-grid, .ok-feature-grid-compact { grid-template-columns: 1fr; }
    .ok-symbol { min-height: 210px; }
}

/* PWA — convite de instalação */
.ok-pwa-install {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 3000;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    width: min(560px, calc(100vw - 32px));
    padding: .85rem .95rem;
    color: var(--ok-ink);
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--ok-border);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(16, 42, 61, .18);
    transform: translateY(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.ok-pwa-install.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.ok-pwa-install__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    overflow: hidden;
    background: var(--ok-paper);
    border: 1px solid rgba(16, 42, 61, .1);
    border-radius: 16px;
}

.ok-pwa-install__icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.ok-pwa-install__content {
    display: grid;
    gap: .08rem;
    min-width: 0;
}

.ok-pwa-install__content strong {
    color: var(--ok-ink);
    font-size: .98rem;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.ok-pwa-install__content span {
    color: rgba(16, 42, 61, .72);
    font-size: .88rem;
    line-height: 1.35;
}

.ok-pwa-install__actions {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.ok-pwa-install__button,
.ok-pwa-install__close {
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}

.ok-pwa-install__button {
    padding: .58rem .95rem;
    color: var(--ok-white);
    background: var(--ok-ink);
}

.ok-pwa-install__close {
    padding: .58rem .8rem;
    color: rgba(16, 42, 61, .72);
    background: rgba(16, 42, 61, .06);
}

.ok-pwa-install__button:hover,
.ok-pwa-install__button:focus {
    background: var(--ok-ink-2);
}

.ok-pwa-install__close:hover,
.ok-pwa-install__close:focus {
    color: var(--ok-ink);
    background: rgba(201, 164, 92, .16);
}

@media (max-width: 620px) {
    .ok-pwa-install {
        left: 14px;
        right: 14px;
        bottom: 14px;
        grid-template-columns: auto minmax(0, 1fr);
        width: auto;
    }

    .ok-pwa-install__actions {
        grid-column: 1 / -1;
        width: 100%;
    }

    .ok-pwa-install__button,
    .ok-pwa-install__close {
        flex: 1;
    }
}
