/* Shared brand and navigation, independent of Odoo website asset defaults. */
.ik-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
    border-bottom: 3px solid #ed1c24;
    background: #fff;
    color: #292929;
}
.ik-nav *, .ik-nav {
    box-sizing: border-box;
}
.ik-nav .ik-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 1160px;
    height: 76px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0 24px;
}
.ik-nav .ik-brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    line-height: 1;
    transition: transform 0.16s ease;
}
.ik-brand img {
    display: block;
    width: 264px;
    height: 42px;
    max-width: 100%;
    object-fit: contain;
}
.ik-nav .ik-nav-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 4px;
}
.ik-nav .ik-nav-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    background: transparent;
    color: #292929;
    font: 600 14px/1.2 "Segoe UI", system-ui, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.ik-nav .ik-nav-btn:hover, .ik-nav .ik-nav-btn[aria-current="page"] {
    background: #f6f5f3;
    color: #a91b0d;
}
.ik-nav .ik-nav-btn-main {
    background: #d62311;
    color: #fff;
}
.ik-nav .ik-nav-btn-main:hover {
    background: #a91b0d;
    color: #fff;
}
.ik-nav a:focus-visible, .ik-nav button:focus-visible {
    outline: 3px solid #ed1c24;
    outline-offset: 2px;
}
.ik-homepage .ik-hero-image, .ik-homepage .ik-feature-img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 24px;
    box-shadow: none;
}
.ik-illustration {
    animation: ik-illustration-float 7s ease-in-out infinite;
}
@keyframes ik-illustration-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.ik-install-button {
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.ik-install-help {
    max-width: 640px;
    margin-top: 24px;
    border: 1px solid #e7b3ac;
    border-radius: 16px;
    padding: 24px;
    background: #fff;
}
.ik-install-help[hidden] {
    display: none;
}
.ik-install-help:focus {
    outline: 2px solid #ed1c24;
    outline-offset: 4px;
}
.ik-install-help .ik-install-video-link {
    display: inline-block;
    margin: 16px;
    color: #a91b0d;
    font-weight: 700;
}
.ik-public-heading .ik-install-status {
    text-align: left;
    font-size: 14px;
}
.ik-install-videos > summary {
    font-size: 22px;
}
.ik-install-videos .ik-mobile-grid {
    margin-top: 24px;
}
.ik-homepage .ik-video-container-shorts {
    position: relative;
    width: min(100%, 280px);
    height: auto;
    aspect-ratio: 9 / 16;
    margin-inline: auto;
    padding: 0;
    overflow: hidden;
}
.ik-homepage .ik-video-container-shorts iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.ik-install-dialog {
    max-width: min(480px, calc(100% - 32px));
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    padding: 28px;
    color: #292929;
    font: 16px/1.7 "Segoe UI", system-ui, sans-serif;
}
.ik-install-dialog::backdrop {
    background: rgb(0 0 0 / 25%);
}
.ik-install-dialog a, .ik-install-dialog button {
    display: block;
    margin-top: 20px;
}
.ik-install-dialog a {
    color: #a91b0d;
}
.ik-support-wrap {
    max-width: 720px !important;
}
.ik-support-form {
    display: grid;
    gap: 24px;
}
.ik-support-field {
    display: grid;
    gap: 8px;
}
.ik-support-field label {
    font-weight: 700;
}
.ik-support-field input, .ik-support-field textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    padding: 12px;
    color: #292929;
    background: #fff;
    font: inherit;
}
.ik-support-field textarea {
    resize: vertical;
}
.ik-support-field small {
    color: #616161;
}
.ik-support-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.ik-support-error {
    color: #a91b0d;
    font-size: 14px;
}
.ik-support-success {
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    padding: 32px;
    background: #f6f5f3;
}
.ik-spa-body .ik-app-chat {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
}
.ik-app-chat .ik-chat-page {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-height: 0;
    padding: 24px 24px 0;
    background: #f6f5f3;
}
.ik-app-chat .ik-chat-container {
    height: auto;
    max-width: 1120px;
    min-height: 0;
    border: 1px solid #d9d9d9;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: none;
}
.ik-chat-header {
    background: #fff;
}
.ik-chat-header .ik-chat-info {
    align-items: flex-start;
    flex: 1;
}
.ik-chat-header-actions > .ik-btn {
    display: inline-flex;
}
.ik-app-chat .ik-chat-messages {
    min-height: 0;
    background: #fff;
    overscroll-behavior: contain;
}
.ik-app-chat .ik-chat-input-container {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.ik-reading-collapse {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.2s ease, opacity 0.2s ease;
}
.ik-reading-collapse > div {
    min-height: 0;
    overflow: hidden;
}
.ik-reading-collapse.ik-reading-visible {
    grid-template-rows: 1fr;
    opacity: 1;
}
.ik-translation-reading, .ik-translation-kana {
    margin-bottom: 6px;
    color: #616161;
    font-size: 14px;
    line-height: 1.5;
}
.ik-reading-unavailable {
    max-width: 240px;
    color: #616161;
    font-size: 12px;
}
.ik-vocab-reading {
    display: block;
    margin-top: 4px;
    color: #616161;
    font-size: 13px;
    font-weight: 400;
}
.ik-translation-overlay {
    transition: opacity 0.16s ease;
}
.ik-translation-overlay.ik-closing {
    opacity: 0;
}
@keyframes ik-lookup-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (hover: hover) {
    .ik-nav .ik-brand:hover {
        transform: scale(1.03);
    }
}
@media (max-width: 760px) {
    .ik-nav .ik-nav-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
        height: 112px;
        min-height: 112px;
        padding: 8px 16px;
    }
    .ik-brand img {
        width: 226px;
        height: 36px;
    }
    .ik-nav .ik-nav-actions {
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: thin;
    }
    .ik-nav .ik-nav-btn {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 12px;
    }
    .ik-app-chat .ik-chat-page {
        padding: 0;
    }
    .ik-app-chat .ik-chat-container {
        border: 0;
        border-radius: 0;
    }
    .ik-chat-header {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
    }
    .ik-chat-header-actions {
        margin-left: auto;
    }
    .ik-chat-header-actions > .ik-btn {
        display: inline-flex;
        font-size: 12px;
    }
    .ik-chat-header-actions > .ik-btn-premium {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ik-nav .ik-brand, .ik-reading-collapse, .ik-illustration, .ik-translation-overlay {
        animation: none;
        transition: none;
    }
    .ik-nav .ik-brand:hover {
        transform: none;
    }
}

.ik-translation-popup {
    max-width: min(300px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}
.ik-translation-popup {
    transform: none;
}

/* Mobile navigation uses the same control on public pages and in the app. */
.ik-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    padding: 8px 12px;
    background: #fff;
    color: #292929;
    font: 600 15px/1.2 system-ui, sans-serif;
    cursor: pointer;
}
.ik-calendar-countdown { display: flex; gap: 6px; }
.ik-countdown-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
    overflow: hidden;
    border: 1px solid #ead7d3;
    border-radius: 9px;
    background: #fff;
    color: #292929;
}
.ik-countdown-tile strong { width: 100%; padding: 5px 8px; text-align: center; font: 700 24px/1.2 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.ik-countdown-tile small { width: 100%; padding: 3px; background: #a91b0d; color: #fff; text-align: center; font-size: 10px; }
.ik-pricing-offer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; border: 1px solid #ead7d3; border-radius: 20px; padding: 24px; background: #fff6f2; }
.ik-pricing-offer[hidden] { display: none; }
.ik-persona-fieldset { min-width: 0; margin: 20px 0; border: 0; padding: 0; }
.ik-persona-fieldset legend { margin-bottom: 8px; font-size: 18px; font-weight: 700; }
.ik-persona-hint { color: #616161; font-size: 14px; }
.ik-persona-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ik-persona-card { display: flex; flex-direction: column; gap: 12px; border: 2px solid #ddd; border-radius: 18px; padding: 18px; background: #fff; }
.ik-persona-card.ik-selected { border-color: #d62311; background: #fff6f2; }
.ik-persona-card label { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; text-align: center; }
.ik-persona-card input { align-self: flex-start; accent-color: #d62311; }
.ik-persona-card img, .ik-session-avatar { flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.ik-persona-interests { color: #616161; font-size: 13px; line-height: 1.5; }
.ik-chat-tutor { display: flex; align-items: center; gap: 10px; }
.ik-chat-preferences { border-bottom: 1px solid #ddd; padding: 18px; background: #fff6f2; }
.ik-chat-preferences p { font-size: 13px; }
.ik-session-persona { font-weight: 700; }
@media (max-width: 1020px) {
    .ik-nav .ik-nav-inner { position: relative; height: 68px; min-height: 68px; overflow: visible; padding: 0 16px; }
    .ik-nav .ik-brand img { width: 200px; height: 34px; }
    .ik-nav .ik-menu-toggle { display: inline-flex; margin-left: auto; }
    .ik-nav .ik-nav-actions { position: absolute; top: 68px; right: 0; left: 0; display: none; width: 100%; max-width: none; overflow: visible; border-bottom: 2px solid #d62311; padding: 12px; background: #fff; box-shadow: 0 12px 18px rgb(0 0 0 / 8%); }
    .ik-nav .ik-nav-actions.ik-menu-open { display: flex; flex-direction: column; align-items: stretch; }
    .ik-nav .ik-nav-btn { justify-content: flex-start; min-height: 44px; }
    .ik-pricing-offer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
    .ik-persona-grid { grid-template-columns: 1fr; }
    .ik-persona-card label { display: grid; grid-template-columns: auto 72px 1fr; text-align: left; }
    .ik-persona-card img { grid-column: 2; grid-row: 1 / 4; width: 72px; height: 72px; }
    .ik-persona-card strong, .ik-persona-card label > span { grid-column: 3; }
    .ik-promo-banner-spa { flex-wrap: wrap; padding: 12px; font-size: 13px; }
    .ik-countdown-tile { min-width: 48px; }
    .ik-chat-tutor { font-size: 14px; }
}

/* Keep the countdown centered under the signed-in offer copy at every width. */
.ik-promo-banner-spa .ik-calendar-countdown { justify-content: center; margin: 8px auto; }
.ik-regional-variants { max-width: 800px; margin: 24px auto 0; text-align: center; }
