/* ═══════ oroshin.site — hand-written rules ═══════
 *
 * Colours come from tokens.css (generated from build/tokens.js). There is not a
 * single literal colour below except pure black/white alpha, and there must
 * never be one: a hex here is a colour that build/tokens.js cannot change.
 *
 * The class names are deliberately unchanged from the 2026-04 stylesheet — the
 * pages say `glass-card` in ~100 places. What a `glass-card` *is* changed: it
 * used to be a translucent blurred pane; it is now a solid surface with a
 * hairline. Depth is carried by the line, not by a blur.
 */

html {
    scroll-behavior: smooth;
}
* {
    box-sizing: border-box;
}
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ─── Focus. Visible for keyboards, silent for mice. ─── */
:focus-visible {
    outline: 2px solid var(--oro-ink);
    outline-offset: 2px;
    border-radius: 4px;
}
:focus:not(:focus-visible) {
    outline: none;
}

/* ─── Surfaces ─── */
.glass-card {
    background: var(--oro-surface);
    border: 1px solid var(--oro-line);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(38, 36, 31, 0.04);
}
.glass-hero-box {
    background: var(--oro-surface);
    border: 1px solid var(--oro-line);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(38, 36, 31, 0.05);
}
.glass-typing {
    background: var(--oro-surface);
    border: 1px solid var(--oro-line);
    border-radius: 12px;
}

/* A corporate card lifts, it does not bounce. */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-2px);
    border-color: var(--oro-ink-soft);
    box-shadow: 0 8px 24px rgba(38, 36, 31, 0.07);
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .card-hover:hover { transform: none; }
}

/* ─── Pricing ─── */
.pricing-popular {
    border: 1.5px solid var(--oro-ink) !important;
    position: relative;
}
.pricing-popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--oro-ink);
    color: var(--oro-surface);
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ─── Account ─── */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--oro-line);
    cursor: pointer;
}
.profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 300px;
    background: var(--oro-surface);
    border: 1px solid var(--oro-line);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(38, 36, 31, 0.10);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.profile-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.profile-usage-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--oro-surface-sunken);
    border: 1px solid var(--oro-line-soft);
    overflow: hidden;
}
.profile-usage-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}
.profile-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
    transition: opacity 0.15s;
    text-decoration: none;
}
.profile-action:hover {
    opacity: 0.7;
}

/* ─── Chat illustration on the home page ─── */
@keyframes bubble-in {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.bubble-animate {
    animation: bubble-in 0.3s ease-out forwards;
}
@keyframes typing-dot {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 1; }
}
.typing-dot-1 { animation: typing-dot 1s ease-in-out infinite; }
.typing-dot-2 { animation: typing-dot 1s ease-in-out 0.2s infinite; }
.typing-dot-3 { animation: typing-dot 1s ease-in-out 0.4s infinite; }

.glass-bubble-sent {
    background: var(--oro-ink);
    color: var(--oro-surface);
    border-radius: 12px 12px 2px 12px;
    position: relative;
}
.glass-bubble-received {
    background: var(--oro-surface);
    border: 1px solid var(--oro-line);
    border-radius: 12px 12px 12px 2px;
    position: relative;
}

/* ─── Type ─── */
/* The class is still called `text-gradient` because the pages say so. It is a
 * flat ink lockup now: a gradient headline reads as a 2021 consumer app. */
.text-gradient {
    color: var(--oro-ink);
}
.nav-active {
    color: var(--oro-ink) !important;
    font-weight: 700 !important;
}

/* ─── Layout ─── */
section {
    overflow: hidden;
}

/* Long legal prose reads better narrow and loose. */
.legal-prose {
    max-width: 68ch;
}
.legal-prose h2 {
    scroll-margin-top: 6rem;
}

@media (min-width: 768px) {
    .glass-card,
    .glass-hero-box { border-radius: 16px; }
}
