:root {
    --bg: #07080d;
    --bg-raise: #12151d;
    --text: #f4f6fb;
    --muted: #b4bdce;
    --line: rgba(255, 255, 255, 0.12);
    --blue: #2f7cf6;
    --cyan: #7ad7ff;
    --pink: #ff6b9a;
    --orange: #ffb15a;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --display: "Bricolage Grotesk", "Avenir Next", "Segoe UI", sans-serif;
    --font: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --header: 76px;
    --max: 1120px;
    --radius: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

[x-cloak],
[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background:
        radial-gradient(ellipse 55% 40% at 100% -10%, rgba(47, 124, 246, 0.22), transparent 55%),
        radial-gradient(ellipse 40% 30% at 0% 20%, rgba(255, 107, 154, 0.12), transparent 50%),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

button,
input {
    font: inherit;
    color: inherit;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    font-family: var(--display);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    margin-bottom: 0.35em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.15rem);
    margin-bottom: 0.4em;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.4em;
}

p {
    color: var(--muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: 12px;
    transform: translateY(-140%);
    background: #fff;
    color: #111;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    z-index: 20;
}

.skip-link:focus {
    transform: none;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: #f5f7fb;
    color: #101218;
}

.btn-primary:hover {
    background: #fff;
}

.btn-accent {
    background: var(--blue);
    color: #fff;
}

.btn-accent:hover {
    background: #4b90f8;
}

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.28);
}

.eyebrow {
    margin-bottom: 0.8rem;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    padding: 4.5rem 0;
}

.section-heading {
    max-width: 40rem;
    margin-bottom: 2rem;
}

.section-heading p:last-child {
    font-size: 1.08rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    height: var(--header);
    backdrop-filter: blur(16px);
    background: rgba(7, 8, 13, 0.72);
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
    border-bottom-color: var(--line);
}

.header-inner {
    width: min(var(--max), calc(100% - 2rem));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: 1.15rem;
}

.brand img,
.footer-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.nav-panel,
.header-cta {
    display: none;
}

.site-nav {
    display: flex;
    flex-direction: column;
}

.nav-toggle {
    margin-left: auto;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 16px;
    height: 1.5px;
    margin: 0 auto;
    background: #fff;
    border-radius: 2px;
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before {
    top: -5px;
}

.nav-toggle-bars::after {
    top: 5px;
}

.site-header.is-open .nav-toggle-bars {
    background: transparent;
}

.site-header.is-open .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.site-header.is-open .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.site-header.is-open .nav-panel {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.4rem 1rem 1rem;
    background: rgba(7, 8, 13, 0.96);
    border-bottom: 1px solid var(--line);
}

.site-nav a {
    padding: 0.8rem 0.15rem;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.site-header.is-open .header-cta {
    display: flex;
    width: 100%;
    margin-top: 0.85rem;
}

.hero {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.2rem 0 3rem;
    display: grid;
    gap: 2rem;
}

.lede {
    font-size: 1.12rem;
    max-width: 38rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.6rem 0 1.3rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hero-points li {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.hero-stage::before {
    content: "";
    position: absolute;
    width: min(78%, 420px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 124, 246, 0.45), rgba(255, 107, 154, 0.18) 46%, transparent 70%);
    filter: blur(6px);
    z-index: 0;
}

.hero-logo {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    animation: float 7s ease-in-out infinite;
}

.float-card {
    position: relative;
    z-index: 1;
    width: min(100%, 260px);
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(16, 18, 27, 0.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.float-label {
    margin: 0 0 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
}

.float-card-reply .float-label {
    color: var(--pink);
}

.float-text {
    margin: 0;
    color: var(--text);
    font-weight: 600;
}

.steps,
.setup-list,
.note-row {
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps {
    display: grid;
    gap: 0.8rem;
    counter-reset: step;
}

.steps li {
    padding: 1.15rem 1.15rem 1.15rem 4.4rem;
    position: relative;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 1.15rem;
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #181c27;
    color: var(--cyan);
    font-family: var(--display);
    font-weight: 700;
}

.steps p,
.platform-card p,
.bento-card p,
.setup-copy p {
    margin-bottom: 0;
}

.platform-grid,
.bento {
    display: grid;
    gap: 0.9rem;
}

.platform-card,
.bento-card,
.setup-panel,
.demo {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.platform-card {
    padding: 1.4rem;
    border-radius: var(--radius);
    min-height: 220px;
}

.platform-card-facebook {
    box-shadow: inset 3px 0 0 #1877f2;
}

.platform-card-instagram {
    box-shadow: inset 3px 0 0 #ee2a7b;
}

.platform-kicker {
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--text);
}

.demo {
    display: grid;
    border-radius: 28px;
    overflow: hidden;
}

.demo[data-platform="facebook"] {
    box-shadow: inset 0 3px 0 #1877f2;
}

.demo[data-platform="instagram"] {
    box-shadow: inset 0 3px 0 #ee2a7b;
}

.demo-rules,
.demo-thread {
    padding: 1.15rem;
}

.demo-thread {
    background: rgba(0, 0, 0, 0.22);
    border-top: 1px solid var(--line);
}

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
}

.segmented button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    color: var(--muted);
    font-weight: 600;
}

.segmented button[aria-selected="true"] {
    background: #f5f7fb;
    color: #12141b;
}

.account-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    align-items: baseline;
    margin: 1rem 0 0.8rem;
    color: var(--text);
    font-weight: 700;
}

.account-note {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.92rem;
}

.rule-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.rule {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: start;
    padding: 0.8rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.rule.is-used {
    border-color: rgba(122, 215, 255, 0.7);
}

.rule.is-off {
    opacity: 0.55;
}

.rule p {
    margin: 0.25rem 0 0;
    color: var(--text);
}

.trigger {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: #1a2233;
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 0.92rem;
}

.switch {
    width: 46px;
    height: 28px;
    margin-top: 0.15rem;
    border: 0;
    border-radius: 999px;
    background: #2a3142;
    position: relative;
    cursor: pointer;
}

.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #d5dbe8;
    transition: transform 0.15s ease;
}

.switch[aria-checked="true"] {
    background: #2f7cf6;
}

.switch[aria-checked="true"]::after {
    transform: translateX(18px);
    background: #fff;
}

.thread-kicker {
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
}

.thread-post {
    margin-bottom: 1rem;
    color: var(--text);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.comment-form input {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
}

.comment-form input::placeholder {
    color: #8d97ab;
}

.sample-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.sample-row button {
    min-height: 36px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.sample-row button:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.28);
}

.match-hint,
.thread-empty,
.thread-status {
    color: var(--muted);
    font-size: 0.92rem;
}

.match-hint {
    margin: 0.8rem 0;
}

.thread,
.thread-result {
    display: grid;
    gap: 0.65rem;
}

.bubble {
    padding: 0.75rem 0.85rem;
    border-radius: 16px;
}

.bubble span {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bubble-visitor {
    background: rgba(255, 255, 255, 0.05);
}

.bubble-visitor span {
    color: var(--muted);
}

.bubble-bot {
    background: rgba(47, 124, 246, 0.16);
}

.bubble-bot span {
    color: var(--cyan);
}

.bubble p,
.thread-status {
    margin: 0;
}

.bubble p {
    color: var(--text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.thread-status.is-fallback {
    color: var(--orange);
}

.thread-status.is-quiet {
    color: var(--pink);
}

.note-row {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.note-row li {
    padding-left: 1rem;
    border-left: 2px solid rgba(122, 215, 255, 0.7);
    color: var(--muted);
}

.noscript-rules {
    margin-top: 1.5rem;
}

.noscript-rules table {
    width: 100%;
    border-collapse: collapse;
}

.noscript-rules th,
.noscript-rules td {
    text-align: left;
    padding: 0.7rem 0.4rem;
    border-bottom: 1px solid var(--line);
}

.bento-card {
    padding: 1.2rem;
    border-radius: 22px;
}

.mini-thread {
    margin-top: 1rem;
    display: grid;
    gap: 0.45rem;
}

.mini-thread p {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
}

.mini-thread span {
    display: block;
    margin-bottom: 0.1rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.setup-panel {
    display: grid;
    gap: 1.5rem;
    padding: 1.3rem;
    border-radius: 28px;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(47, 124, 246, 0.2), transparent 55%),
        rgba(255, 255, 255, 0.03);
}

.setup-list {
    display: grid;
    gap: 0.7rem;
    counter-reset: setup;
}

.setup-list li {
    position: relative;
    padding: 0.95rem 0.95rem 0.95rem 3.4rem;
    border-radius: 16px;
    background: rgba(7, 8, 13, 0.45);
    counter-increment: setup;
}

.setup-list li::before {
    content: counter(setup);
    position: absolute;
    left: 0.85rem;
    top: 0.95rem;
    font-family: var(--display);
    font-weight: 700;
    color: var(--cyan);
}

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 1rem;
}

.footer-inner {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 2.4rem;
    display: grid;
    gap: 1.2rem;
}

.footer-brand {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.footer-brand p,
.footer-copy {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
}

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

@media (min-width: 720px) {
    .comment-form {
        flex-direction: row;
    }

    .comment-form input {
        flex: 1;
    }

    .platform-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bento {
        grid-template-columns: 1fr 1fr;
    }

    .note-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 880px) {
    .nav-toggle {
        display: none;
    }

    .nav-panel,
    .header-cta {
        display: flex;
    }

    .nav-panel {
        align-items: center;
        gap: 1.4rem;
        margin-left: auto;
    }

    .site-nav {
        flex-direction: row;
        gap: 1.25rem;
    }

    .site-nav a {
        padding: 0;
        border-bottom: 0;
        color: var(--muted);
        font-weight: 600;
    }

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

    .hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        align-items: center;
        gap: 3rem;
        padding-top: 2.5rem;
        padding-bottom: 4rem;
    }

    .hero-stage {
        min-height: 0;
    }

    .hero-logo {
        width: min(100%, 420px);
    }

    .float-card {
        width: min(100%, 320px);
    }

    .steps {
        grid-template-columns: repeat(5, 1fr);
    }

    .steps li {
        padding: 1.1rem;
    }

    .steps li::before {
        position: static;
        margin-bottom: 0.9rem;
    }

    .demo {
        grid-template-columns: 0.92fr 1.08fr;
    }

    .demo-thread {
        border-top: 0;
        border-left: 1px solid var(--line);
    }

    .setup-panel {
        grid-template-columns: 0.8fr 1.2fr;
        align-items: center;
        padding: 2rem;
    }
}

@media (min-width: 1040px) {
    .bento {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-logo,
    .btn {
        animation: none;
        transition: none;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login {
    width: min(480px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.5rem 0 4rem;
}

.login-card {
    padding: 1.5rem 1.2rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(47, 124, 246, 0.18), transparent 60%),
        rgba(255, 255, 255, 0.03);
}

.login-mark {
    display: block;
    width: 84px;
    margin: 0 auto 0.4rem;
}

.login-mark img {
    width: 84px;
    height: 84px;
    object-fit: contain;
}

.login h1 {
    margin-bottom: 0.45rem;
    font-size: clamp(2.2rem, 6vw, 3rem);
    text-align: center;
}

.login-lede,
.login-back {
    text-align: center;
}

.login-lede {
    margin-bottom: 1.3rem;
}

.login-hint {
    margin: 0.15rem 0 0;
    font-size: 0.92rem;
}

.login-alert {
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 107, 154, 0.12);
    color: #ffd0de;
}

.login-alert.success {
    background: rgba(122, 215, 255, 0.12);
    color: #d7f4ff;
}

.social-stack {
    display: grid;
    gap: 0.7rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.social-btn svg {
    width: 20px;
    height: 20px;
    flex: none;
}

.social-google {
    background: #fff;
    color: #1f1f1f;
}

.social-facebook {
    background: #1877f2;
    color: #fff;
}

.social-instagram {
    background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7);
    color: #fff;
}

.connect-choices {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.login-or {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.8rem;
    margin: 1.15rem 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.login-or::before,
.login-or::after {
    content: "";
    height: 1px;
    background: var(--line);
}

.login-form {
    display: grid;
    gap: 0.45rem;
}

.login-form label {
    margin-top: 0.35rem;
    font-weight: 600;
}

.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 4.5rem;
}

.password-field button {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    transform: translateY(-50%);
    min-height: 36px;
    padding: 0 0.7rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--cyan);
    font-weight: 600;
    cursor: pointer;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.35rem 0 0.2rem;
    color: var(--muted);
    font-weight: 500;
}

.remember input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--blue);
}

.login-submit {
    width: 100%;
    margin-top: 0.6rem;
}

.login-back {
    margin: 1.1rem 0 0;
}

.login-back a {
    color: var(--muted);
}

.plans-page h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.plan-grid,
.plan-tease {
    display: grid;
    gap: 0.85rem;
}

.plan-card,
.plan-tease a {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.15rem 1.1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(47, 124, 246, 0.16), transparent 62%),
        rgba(255, 255, 255, 0.03);
    text-decoration: none;
}

.plan-card h2,
.plan-tease strong {
    margin-bottom: 0;
    font-size: 1.35rem;
}

.plan-price,
.plan-tease span {
    margin: 0;
    color: var(--text);
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.plan-price span,
.plan-tease span {
    font-size: 2.4rem;
    line-height: 1;
}

.plan-price {
    margin-bottom: 0.6rem;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font);
    letter-spacing: 0;
}

.plan-card ul {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.plan-card .btn {
    margin-top: auto;
}

.plan-tease small {
    color: var(--muted);
}

.plan-more {
    margin: 1.2rem 0 0;
}

.plan-compare-title {
    margin: 3rem 0 0.8rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.plan-scroll-hint {
    margin-bottom: 0.7rem;
    font-size: 0.92rem;
}

.plan-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
}

.plan-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.plan-table th,
.plan-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: center;
    white-space: nowrap;
}

.plan-table th {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.plan-table thead th {
    color: var(--text);
    background: #12151d;
}

.plan-table tbody th,
.plan-table thead th:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 1;
    background: #10131b;
    color: var(--text);
    min-width: 12.5rem;
    white-space: normal;
}

.plan-table td {
    color: var(--text);
}

.plan-table .is-no {
    color: var(--muted);
}

.plan-table tr:last-child th,
.plan-table tr:last-child td {
    border-bottom: 0;
}

@media (min-width: 720px) {
    .plan-grid,
    .plan-tease {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1040px) {
    .plan-grid,
    .plan-tease {
        grid-template-columns: repeat(4, 1fr);
    }

    .plan-scroll-hint {
        display: none;
    }
}

.header-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

.header-logout {
    display: contents;
}

.dash h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.account-head {
    margin-bottom: 2rem;
}

.account-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.account-title h1 {
    margin-bottom: 0;
}

.account-head > p:last-child {
    margin: 0.45rem 0 0;
}

.account-balance {
    margin: 0;
    text-align: right;
    flex: none;
}

.account-balance span {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.account-balance strong {
    color: var(--text);
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.dash-layout {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: sticky;
    top: calc(var(--header) + 12px);
    margin: 0;
}

.dash-nav button {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.dash-nav button.is-active {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.dash-panel {
    min-width: 0;
}

.dash-section {
    margin-bottom: 0;
    padding: 1.15rem 1.1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(47, 124, 246, 0.14), transparent 55%),
        rgba(255, 255, 255, 0.03);
}

.dash-section h2 {
    margin-bottom: 0.35em;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.dash-section h3 {
    margin: 1.2rem 0 0.4rem;
}

.dash-note,
.dash-error {
    margin: 0.8rem 0 0;
}

.dash-error {
    color: #ffd0de;
}

.plan-switch-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
}

.plan-switch {
    display: grid;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.plan-confirm {
    align-self: flex-start;
}

.plan-confirm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.plan-choice {
    position: relative;
    display: grid;
    gap: 0.2rem;
    width: 100%;
    padding: 1rem 1rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.22);
    text-align: left;
    cursor: pointer;
}

.plan-choice.is-current {
    border-color: var(--cyan);
}

.plan-choice.is-picked:not(.is-current) {
    border-color: #fff;
}

.plan-choice-name {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.plan-choice-price {
    color: var(--muted);
}

.plan-choice-price span {
    color: var(--text);
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.plan-choice-meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.plan-current {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dash-form {
    display: grid;
    gap: 0.45rem;
    margin-top: 1rem;
}

.dash-form label {
    display: block;
    margin-top: 0.35rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.page-submit {
    margin-top: 0.85rem;
}

.pair-row {
    display: grid;
    gap: 0.55rem;
}

.pair-row label {
    margin-top: 0;
}

.pair-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-self: start;
}

.pair-actions button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.dash-form h3 {
    margin: 0.9rem 0 0;
    font-size: 1.15rem;
}

.reply-line {
    display: block;
}

.dash-form input,
.dash-form select {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1.15rem;
}

.page-head h2 {
    margin-bottom: 0;
}

.page-table-wrap {
    margin-top: 1.1rem;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.page-table {
    width: 100%;
    min-width: 40rem;
    border-collapse: collapse;
}

.page-table th,
.page-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.page-table th {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.page-table tr:last-child td {
    border-bottom: 0;
}

.page-table .is-off td {
    color: var(--muted);
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.post-add {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.22);
}

.post-add h3 {
    margin-bottom: 0.35em;
}

.post-watch {
    display: grid;
    gap: 0.4rem;
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.post-watch li {
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.btn-small {
    gap: 0.35rem;
    min-height: 40px;
    padding: 0.4rem 0.8rem;
}

.btn-icon {
    width: 0.9rem;
    height: 0.9rem;
    flex: none;
}

.bill-summary {
    display: grid;
    gap: 0.45rem;
    margin: 0.2rem 0 0.4rem;
}

.bill-summary p {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.bill-summary span {
    color: var(--muted);
}

.bill-row {
    display: grid;
    gap: 0.7rem;
}

@media (min-width: 720px) {
    .dash-layout {
        grid-template-columns: 12.5rem minmax(0, 1fr);
        gap: 1.25rem;
    }

    .pair-row,
    .plan-switch {
        grid-template-columns: 1fr 1fr;
    }

    .bill-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 880px) {
    .header-actions {
        flex-direction: row;
        align-items: center;
        width: auto;
    }
}

@media (min-width: 1040px) {
    .plan-switch {
        grid-template-columns: repeat(4, 1fr);
    }
}
