:root{--ink:#172024;--muted:#6b7378;--paper:#fbfaf7;--card:rgba(255,255,255,.88);--line:#e9e6df;--coral:#ef6b5b;--coral-dark:#d95546;--sage:#dceadf;--sage-dark:#244a36;--navy:#17342a;--yellow:#f6d777;--shadow:0 24px 70px rgba(33,48,43,.10)}
*{box-sizing:border-box}body{min-height:100vh;background:radial-gradient(circle at 12% 10%,#fce6de 0,transparent 30%),radial-gradient(circle at 88% 18%,#e6f2e8 0,transparent 30%),var(--paper);color:var(--ink);font-family:"Manrope",system-ui,sans-serif}.korean{font-family:"Noto Sans KR",sans-serif}.app-nav{background:rgba(251,250,247,.76);backdrop-filter:blur(16px);border-bottom:1px solid rgba(224,220,211,.8)}.brand{font-weight:800;letter-spacing:-.04em;color:var(--ink)!important}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:15px;background:var(--navy);color:#fff;margin-right:.65rem;box-shadow:0 9px 22px rgba(23,52,42,.18)}.nav-link{font-weight:700;color:#5d6762}.nav-link:hover{color:var(--coral)}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--sage);color:var(--sage-dark);font-weight:800}.glass-card{background:var(--card);border:1px solid rgba(255,255,255,.8);border-radius:30px;box-shadow:var(--shadow);backdrop-filter:blur(14px)}.eyebrow{font-size:.76rem;text-transform:uppercase;letter-spacing:.16em;font-weight:800;color:var(--coral)}.display-title{font-weight:800;letter-spacing:-.055em;line-height:1.05}.text-muted{color:var(--muted)!important}.btn{font-weight:800;border-radius:14px;padding:.75rem 1rem}.btn-primary{--bs-btn-bg:var(--coral);--bs-btn-border-color:var(--coral);--bs-btn-hover-bg:var(--coral-dark);--bs-btn-hover-border-color:var(--coral-dark);--bs-btn-active-bg:var(--coral-dark);--bs-btn-active-border-color:var(--coral-dark)}.btn-dark{--bs-btn-bg:var(--navy);--bs-btn-border-color:var(--navy)}.form-control,.form-select{border:1px solid var(--line);border-radius:14px;padding:.78rem 1rem;background:#fff}.form-control:focus,.form-select:focus{border-color:#ef8f83;box-shadow:0 0 0 .22rem rgba(239,107,91,.12)}.choice{display:block;height:100%;padding:1rem;border:1px solid var(--line);border-radius:17px;background:#fff;cursor:pointer;transition:.18s}.choice:hover{transform:translateY(-2px);border-color:#d7d1c5}.choice:has(input:checked){background:#fff1ed;border-color:var(--coral);box-shadow:0 8px 22px rgba(239,107,91,.10)}.choice input{margin-right:.55rem}.auth-shell{min-height:calc(100vh - 86px);display:grid;align-items:center}.auth-art{background:var(--navy);color:#fff;border-radius:30px;min-height:620px;position:relative;overflow:hidden}.auth-art:before,.auth-art:after{content:"";position:absolute;border-radius:50%;filter:blur(2px)}.auth-art:before{width:300px;height:300px;background:#2f5c49;right:-90px;top:-70px}.auth-art:after{width:210px;height:210px;background:var(--coral);left:-95px;bottom:-75px}.hangul-orbit{position:relative;z-index:2;display:grid;place-items:center;width:180px;height:180px;border-radius:50%;background:#fff;color:var(--navy);font-size:5.5rem;font-weight:800;box-shadow:0 25px 80px rgba(0,0,0,.22)}.pill{display:inline-flex;align-items:center;gap:.45rem;padding:.45rem .75rem;border-radius:99px;background:#edf4ef;color:#315c45;font-weight:800;font-size:.8rem}.conversation-shell{height:calc(100vh - 112px);min-height:650px}.side-panel{background:var(--navy);color:#fff;border-radius:27px;padding:1.35rem;height:100%}.plan-chip{padding:.8rem;border:1px solid rgba(255,255,255,.13);border-radius:16px;background:rgba(255,255,255,.06)}.usage-track{height:8px;background:rgba(255,255,255,.13);border-radius:99px;overflow:hidden}.usage-fill{height:100%;background:var(--yellow);border-radius:99px}.chat-card{height:100%;display:flex;flex-direction:column;overflow:hidden}.chat-header{padding:1.15rem 1.35rem;border-bottom:1px solid var(--line)}.chat-messages{flex:1;overflow:auto;padding:1.5rem;background:linear-gradient(180deg,#fff,#fdfbf7)}.message-row{display:flex;gap:.7rem;margin-bottom:1rem;align-items:flex-end}.message-row.user{justify-content:flex-end}.bot-face{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:13px;background:var(--sage);color:var(--sage-dark)}.bubble{max-width:min(76%,680px);border-radius:20px;padding:.85rem 1rem;white-space:pre-wrap}.assistant .bubble{background:#eef5f0;border-bottom-left-radius:6px}.user .bubble{background:var(--navy);color:#fff;border-bottom-right-radius:6px}.voice-dock{padding:1rem 1.25rem 1.2rem;border-top:1px solid var(--line);background:#fff}.voice-orb{width:62px;height:62px;border:0;border-radius:50%;background:var(--coral);color:#fff;font-size:1.5rem;box-shadow:0 12px 28px rgba(239,107,91,.32);transition:.2s}.voice-orb:hover{transform:translateY(-2px)}.voice-orb.listening{animation:pulse 1.7s infinite;background:var(--navy)}@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(23,52,42,.3)}70%{box-shadow:0 0 0 18px rgba(23,52,42,0)}100%{box-shadow:0 0 0 0 rgba(23,52,42,0)}}.status-dot{width:8px;height:8px;border-radius:50%;background:#96a39b;display:inline-block}.status-dot.live{background:#31a36a;box-shadow:0 0 0 5px rgba(49,163,106,.12)}.pricing-card{border:1px solid var(--line);border-radius:25px;background:#fff;padding:1.6rem;height:100%;position:relative}.pricing-card.featured{background:var(--navy);color:#fff;transform:translateY(-8px);box-shadow:var(--shadow)}.pricing-list{list-style:none;padding:0;margin:1.25rem 0}.pricing-list li{margin:.7rem 0}.pricing-list li:before{content:"✓";display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--sage);color:var(--sage-dark);font-size:.75rem;font-weight:900;margin-right:.55rem}.alert{border:0;border-radius:15px}.step-number{width:32px;height:32px;border-radius:11px;display:inline-grid;place-items:center;background:var(--navy);color:white;font-weight:800;margin-right:.55rem}@media(max-width:991.98px){.conversation-shell{height:auto}.side-panel{height:auto}.chat-card{min-height:700px}.auth-art{min-height:360px}.hangul-orbit{width:130px;height:130px;font-size:4rem}}@media(max-width:575.98px){.glass-card{border-radius:22px}.chat-messages{padding:1rem}.bubble{max-width:88%}.voice-dock{padding:.85rem}.display-title{font-size:2.25rem}}
.choice:hover,
.voice-orb:hover {
    transform: none;
}

.brand-name,
.brand-language-roll,
.brand-language-track,
.brand-language-track > span {
    display: inline-block;
}

.brand-name {
    display: inline-flex;
    align-items: center;
    gap: .22em;
    line-height: 1;
    white-space: nowrap;
}

.brand-language-roll {
    height: 1.25em;
    overflow: hidden;
    line-height: 1.25;
    vertical-align: middle;
}

.brand-language-track {
    animation: brand-language-roll 12.5s cubic-bezier(.65, 0, .35, 1) infinite;
}

.brand-mark .bi {
    font-size: 1.35rem;
    line-height: 1;
}

.brand-mark .somi-mark {
    display: block;
    width: 25px;
    height: 25px;
}

.auth-brand-mark {
    width: 56px;
    height: 56px;
    margin-right: 0;
    border-radius: 20px;
}

.auth-brand-mark .somi-mark {
    width: 34px;
    height: 34px;
}

.brand-language-track > span {
    display: block;
    height: 1.25em;
    line-height: 1.25;
}

@keyframes brand-language-roll {
    0%, 10% { transform: translateY(0); }
    16.666%, 26.666% { transform: translateY(-14.286%); }
    33.333%, 43.333% { transform: translateY(-28.572%); }
    50%, 60% { transform: translateY(-42.858%); }
    66.666%, 76.666% { transform: translateY(-57.144%); }
    83.333%, 93.333% { transform: translateY(-71.43%); }
    100% { transform: translateY(-85.716%); }
}

@media (prefers-reduced-motion: reduce) {
    .brand-language-track {
        animation: none;
    }
}

/* Auth only: avoid the browser's default blue checkbox. */
.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    cursor: pointer;
    user-select: none;
}

.auth-remember .form-check-input {
    appearance: none;
    flex: 0 0 1.35rem;
    width: 1.35rem;
    height: 1.35rem;
    margin: 0;
    border: 1.5px solid #b7c9be;
    border-radius: .4rem;
    background-color: #fff;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.auth-remember .form-check-input:hover {
    border-color: #547866;
}

.auth-remember .form-check-input:checked {
    border-color: var(--navy);
    background-color: var(--navy);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.1 8.2 3 3.1 6.8-6.7' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.15'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1rem;
}

.auth-remember .form-check-input:focus-visible {
    outline: 0;
    border-color: var(--navy);
    box-shadow: 0 0 0 .24rem rgba(23, 52, 42, .18);
}

.auth-remember .form-check-input:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.auth-remember .form-check-label {
    line-height: 1.35;
    color: var(--ink);
    cursor: pointer;
}

.auth-floating > .form-control {
    height: 3.35rem;
    min-height: 3.35rem;
    padding: 1.15rem .9rem .35rem;
    font-size: 1rem;
}

.auth-floating > label {
    padding: .85rem .9rem;
    color: #65716b;
    font-size: .95rem;
    font-weight: 700;
}

.auth-floating > .form-control:focus ~ label,
.auth-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #547866;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.site-main:not(.site-main--conversation) {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

.site-main > .auth-shell {
    flex: 1 0 auto;
    min-height: 0;
}

.site-footer {
    padding: 2rem 0 1.25rem;
    border-top: 1px solid rgba(36, 74, 54, .1);
    background: rgba(255, 255, 255, .36);
}

.site-footer-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
}

.site-footer .brand {
    text-decoration: none;
}

.site-footer .brand-mark {
    width: 2.6rem;
    height: 2.6rem;
    margin-right: .55rem;
    border-radius: .9rem;
}

.site-footer .brand-mark .somi-mark {
    width: 1.5rem;
    height: 1.5rem;
}

.site-footer-note {
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.45;
    text-align: center;
    white-space: nowrap;
}

.site-footer nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.1rem;
    justify-self: end;
}

.site-footer nav a {
    color: #53605a;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
}

.site-footer nav a:hover {
    color: var(--coral);
}

.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(36, 74, 54, .08);
    color: #89918d;
    font-size: .72rem;
    font-weight: 650;
}

.site-footer--wide .site-footer-container {
    width: min(1320px, calc(100% - 3rem));
    max-width: none;
}

.site-footer--compact {
    position: fixed;
    z-index: 1020;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 44px;
    padding: .42rem 0;
    border-top-color: rgba(255, 255, 255, .12);
    background: var(--navy);
    color: rgba(255, 255, 255, .72);
}

.site-footer--compact .site-footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer--compact .brand {
    color: #fff !important;
    font-size: .9rem;
}

.site-footer--compact .brand-mark {
    width: 1.85rem;
    height: 1.85rem;
    margin-right: .42rem;
    border-radius: .65rem;
    box-shadow: none;
}

.site-footer--compact .brand-mark .somi-mark {
    width: 1.1rem;
    height: 1.1rem;
}

.site-footer--compact .site-footer-note,
.site-footer--compact .site-footer-bottom {
    display: none;
}

.site-footer--compact nav {
    gap: .85rem;
}

.site-footer--compact nav a {
    color: rgba(255, 255, 255, .72);
    font-size: .72rem;
}

@media (max-width: 991.98px) {
    .site-footer-main {
        grid-template-columns: 1fr auto;
    }

    .site-footer-note {
        grid-column: 1 / -1;
        grid-row: 2;
        white-space: normal;
    }
}

@media (max-width: 575.98px) {
    .site-footer {
        padding-top: 1.5rem;
    }

    .site-footer-main {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: .9rem;
    }

    .site-footer:not(.site-footer--compact) nav {
        align-self: stretch;
        width: 100%;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: .5rem;
    }

    .site-footer:not(.site-footer--compact) nav a {
        white-space: nowrap;
    }

    .site-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: .3rem;
        margin-top: 1.2rem;
    }

    .site-footer-bottom span:last-child {
        align-self: flex-end;
        text-align: right;
    }

    .site-footer--wide .site-footer-container {
        width: calc(100% - 2rem);
    }

    .site-footer--compact {
        padding: .35rem 0;
    }

    .site-footer--compact .site-footer-main {
        display: flex;
        align-items: center;
        flex-direction: row;
        min-height: 2rem;
    }

    .site-footer--compact nav {
        display: none;
    }
}

@media (max-width: 359.98px) {
    .site-footer:not(.site-footer--compact) nav {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: .55rem 1rem;
    }
}
