/* assets/css/style.css — TeachStart坂上 design system (和モダン - Premium Redesign) */

:root {
    /* Surfaces (Warm, refined Japanese tones) */
    --color-bg-base: #FAF7F2;       /* Premium warm silk white */
    --color-bg-card: #FFFFFF;       /* Clean solid white */
    --color-bg-neutral: #F3ECE0;    /* Unbleached linen wash */
    --color-bg-sink: #F5EFE4;       /* Soft recessed floor tint */

    /* Text (Elegant contrast hierarchy) */
    --color-text-main: #2C241E;     /* Deep cedar charcoal */
    --color-text-muted: #6E6154;    /* Warm wood ash */
    --color-text-soft: #9E9080;     /* Soft sand caption */

    /* Wood tones (Brass, hinoki and aged cedar) */
    --color-wood-primary: #A4744E;  /* Sandalwood / cedar */
    --color-wood-light: #DEC2A2;    /* Hinoki plank */
    --color-wood-dark: #66432B;     /* Aged oak / mahogany */
    --color-wood-tint: #F7EFE4;     /* Delicate wood wash */

    /* Status (Matcha, terracotta and autumn leaf) */
    --color-status-success: #607C57; /* Matcha green */
    --color-status-error: #C85D3B;   /* Warm terracotta red */
    --color-status-warning: #D98B32; /* Rich autumn leaf orange */

    /* Lines & Rings */
    --color-line: #EADFCF;          /* Faint warm border */
    --color-ring: rgba(164, 116, 78, 0.2);
    --color-ring-success: rgba(96, 124, 87, 0.25);
    --color-ring-error: rgba(200, 93, 59, 0.25);

    /* Typography */
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Outfit', 'Noto Sans JP', sans-serif;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    /* Radii */
    --radius-sm: 6px;
    --radius: 12px;                 /* Slightly rounder and friendlier */
    --radius-lg: 20px;
    --radius-pill: 999px;
    --border-radius: 12px;          /* Legacy alias alignment */

    /* Shadows (Multi-layered, warm ambient light) */
    --shadow-sm: 0 2px 4px rgba(79, 52, 32, 0.03), 0 1px 2px rgba(79, 52, 32, 0.02);
    --shadow-md: 0 10px 25px -4px rgba(94, 64, 40, 0.06), 0 4px 12px -2px rgba(94, 64, 40, 0.03);
    --shadow-lg: 0 28px 50px -10px rgba(79, 52, 32, 0.12), 0 10px 22px -5px rgba(79, 52, 32, 0.06);
    --box-shadow: var(--shadow-md); /* Legacy alias */

    --max-width: 1140px;
    --header-h: 80px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulseSuccess {
    0%, 100% { box-shadow: 0 0 0 0 rgba(96, 124, 87, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(96, 124, 87, 0); }
}

@keyframes pulseError {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200, 93, 59, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(200, 93, 59, 0); }
}

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

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg-base);
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    padding-bottom: var(--space-8);
    overflow-x: hidden;
}

::selection {
    background: var(--color-wood-light);
    color: var(--color-wood-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: 0.04em;
    line-height: 1.5;
}

p {
    margin: 0;
}

a {
    color: var(--color-wood-primary);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

a:hover {
    color: var(--color-wood-dark);
}

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

:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-ring);
    border-radius: var(--radius-sm);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--color-wood-light);
    border-radius: var(--radius-pill);
    border: 2px solid var(--color-bg-base);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-wood-primary);
}

/* Containers */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
    width: 100%;
}

/* ---------- Header & Nav ---------- */
header {
    background: rgba(250, 247, 242, 0.85);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    backdrop-filter: saturate(1.4) blur(16px);
    border-bottom: 1px solid rgba(164, 116, 78, 0.08);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease;
}

header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo a {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.logo-symbol {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: transparent;
    border: 3.5px solid var(--color-wood-primary);
    transform: rotate(45deg);
    position: relative;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.logo a:hover .logo-symbol {
    transform: rotate(225deg);
}

.logo-symbol::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--color-wood-primary);
    top: 2.5px;
    left: 2.5px;
    border-radius: 50%;
}

.logo-text-brand {
    font-family: var(--font-sans);
    font-weight: 800;
    color: var(--color-wood-primary);
}

.logo-text-sub {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-text-main);
    margin-left: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: color 0.25s ease, background-color 0.25s ease;
}

nav a:not(.nav-btn):not(.btn)::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: var(--color-wood-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 2px;
}

nav a:not(.nav-btn):not(.btn):hover::after,
nav a:not(.nav-btn):not(.btn).active::after {
    transform: scaleX(1);
}

nav a:not(.nav-btn):not(.btn):hover,
nav a:not(.nav-btn):not(.btn).active {
    color: var(--color-wood-primary);
}

.nav-btn {
    background-color: var(--color-wood-primary);
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-pill);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.nav-btn:hover {
    background-color: var(--color-wood-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 67, 43, 0.25);
}

/* ---------- Footer ---------- */
footer {
    background: linear-gradient(180deg, var(--color-bg-neutral) 0%, var(--color-wood-tint) 100%);
    padding: 64px 0 48px 0;
    margin-top: var(--space-8);
    border-top: 1px solid var(--color-line);
    color: var(--color-text-muted);
    font-size: 14px;
}

footer .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 32px;
    list-style: none;
}

footer a {
    color: var(--color-text-muted);
    font-weight: 500;
}

footer a:hover {
    color: var(--color-wood-primary);
}

footer p {
    letter-spacing: 0.04em;
    font-size: 13px;
    color: var(--color-text-soft);
    margin-top: 8px;
}

/* ---------- Page headers & section titles ---------- */
.page-header {
    padding: 16px 0 32px 0;
    border-bottom: 1px solid var(--color-line);
    margin-bottom: var(--space-7);
}

.page-header h1 {
    font-size: clamp(26px, 4.5vw, 34px);
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.page-header p {
    color: var(--color-text-muted);
    font-size: 16px;
    max-width: 72ch;
    line-height: 1.8;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-wood-primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(24px, 3.8vw, 30px);
    text-align: center;
    margin-bottom: var(--space-7);
    color: var(--color-text-main);
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-wood-primary);
    margin: 16px auto 0 auto;
    border-radius: var(--radius-pill);
}

.section-title.left {
    text-align: left;
}

.section-title.left::after {
    margin-left: 0;
}

section {
    scroll-margin-top: calc(var(--header-h) + 32px);
}

/* ---------- Cards ---------- */
.card {
    background: var(--color-bg-card);
    border: 1px solid rgba(164, 116, 78, 0.08);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-hover {
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(164, 116, 78, 0.25);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Numbered step marker */
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background: var(--color-wood-tint);
    color: var(--color-wood-primary);
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    border: 1.5px solid var(--color-wood-light);
    box-shadow: inset 0 2px 4px rgba(164, 116, 78, 0.05);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    border: 1.5px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-family: var(--font-sans);
    letter-spacing: 0.03em;
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #B2835C 0%, #8E5A35 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(142, 90, 53, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #BF9068 0%, #9C6741 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(142, 90, 53, 0.35);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: rgba(164, 116, 78, 0.4);
    color: var(--color-wood-primary);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--color-wood-tint);
    border-color: var(--color-wood-primary);
    color: var(--color-wood-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-danger {
    background: linear-gradient(135deg, #D47A5C 0%, #B04B2D 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(176, 75, 45, 0.22);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #E0876B 0%, #BF583A 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(176, 75, 45, 0.35);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ---------- Forms & Custom Input controls ---------- */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text-main);
    letter-spacing: 0.03em;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background-color: var(--color-bg-sink);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.form-control::placeholder {
    color: var(--color-text-soft);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-wood-primary);
    background-color: var(--color-bg-card);
    box-shadow: 0 0 0 4px var(--color-ring);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* Checkbox and Radio Overhaul */
.checkbox-group, .radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.checkbox-label, .radio-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: var(--color-bg-card);
    padding: 12px 18px;
    border-radius: var(--radius);
    user-select: none;
    border: 1px solid var(--color-line);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Style the native input nicely */
.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    position: relative;
    width: 18px;
    height: 18px;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--color-bg-sink);
    border: 2px solid var(--color-wood-light);
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex-shrink: 0;
}

.radio-label input[type="radio"] {
    border-radius: var(--radius-pill);
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: var(--color-wood-primary);
    border-color: var(--color-wood-primary);
    box-shadow: 0 0 6px var(--color-ring);
}

.radio-label input[type="radio"]:checked {
    background-color: #fff;
    border-color: var(--color-wood-primary);
    box-shadow: 0 0 6px var(--color-ring);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.radio-label input[type="radio"]:checked::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--color-wood-primary);
    border-radius: var(--radius-pill);
}

.checkbox-label:hover, .radio-label:hover {
    border-color: var(--color-wood-primary);
    background: var(--color-wood-tint);
}

.checkbox-label:hover input[type="checkbox"],
.radio-label:hover input[type="radio"] {
    border-color: var(--color-wood-primary);
}

/* ---------- Alerts ---------- */
.alert {
    padding: 16px 22px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 15px;
    border: 1px solid transparent;
    line-height: 1.7;
    animation: fadeIn 0.4s ease-out;
}

.alert-success {
    background-color: #EBF2E8;
    color: #3C4B33;
    border-color: #D2E0CD;
    border-left: 4px solid var(--color-status-success);
}

.alert-danger {
    background-color: #FAF0EB;
    color: #8C3E23;
    border-color: #F0D5CA;
    border-left: 4px solid var(--color-status-error);
}

.alert-info {
    background-color: var(--color-wood-tint);
    color: var(--color-text-main);
    border-color: var(--color-line);
    border-left: 4px solid var(--color-wood-primary);
}

/* ---------- Tables ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

th, td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--color-line);
    font-size: 14px;
}

th {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: var(--color-bg-sink);
    border-bottom: 2px solid var(--color-wood-light);
}

thead th:first-child {
    border-top-left-radius: var(--radius);
}

thead th:last-child {
    border-top-right-radius: var(--radius);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover td {
    background-color: rgba(164, 116, 78, 0.04);
}

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    letter-spacing: 0.06em;
    line-height: 1.4;
}

.badge-success {
    background-color: #EBF2E8;
    color: #4D5E43;
}

.badge-danger {
    background-color: #FCECE6;
    color: #AD4421;
}

.badge-warning {
    background-color: #FDF1DE;
    color: #A36A20;
}

/* ---------- Dashboard Metrics ---------- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.metric-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(164, 116, 78, 0.08);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 4px solid var(--color-wood-light);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(164, 116, 78, 0.2);
}

.metric-card:first-child {
    border-top-color: var(--color-wood-primary);
}

.metric-value {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 700;
    color: var(--color-wood-primary);
    margin: 8px 0;
    line-height: 1.1;
}

.metric-label {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* ---------- Smart Lock Control ---------- */
/* Lock status wrapper animation */
.card-lock-active {
    background: var(--color-bg-base);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--color-line);
}

.lock-pulse-success {
    animation: pulseSuccess 2s infinite;
}

.lock-pulse-danger {
    animation: pulseError 2s infinite;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: clamp(60px, 10vw, 100px) clamp(28px, 6vw, 72px);
    margin-bottom: var(--space-8);
    text-align: center;
    background-color: var(--color-wood-dark);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
    isolation: isolate;
    animation: fadeIn 1.2s ease-out;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(38, 25, 17, 0.58) 0%, rgba(28, 18, 12, 0.88) 100%),
        radial-gradient(120% 90% at 50% 0%, rgba(164, 116, 78, 0.38) 0%, transparent 80%);
}

.hero .hero-badge {
    display: inline-block;
    background: rgba(250, 247, 242, 0.12);
    border: 1.5px solid rgba(250, 247, 242, 0.28);
    color: #fff;
    padding: 8px 24px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    margin-bottom: 28px;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    animation: float 4s ease-in-out infinite;
}

.hero h1 {
    color: #fff;
    font-size: clamp(28px, 5.5vw, 44px);
    line-height: 1.5;
    margin-bottom: 24px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero .hero-sub {
    display: block;
    font-family: var(--font-sans);
    font-size: clamp(16px, 2.4vw, 20px);
    font-weight: 600;
    color: var(--color-wood-light);
    margin-top: 16px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
}

.hero .hero-lead {
    color: rgba(250, 247, 242, 0.95);
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 2.0;
    max-width: 780px;
    margin: 0 auto 40px auto;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

.hero .btn-group {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s forwards;
}

.hero .btn-secondary {
    border-color: rgba(250, 247, 242, 0.65);
    color: #fff;
    background: rgba(250, 247, 242, 0.08);
}

.hero .btn-secondary:hover {
    background: #fff;
    color: var(--color-wood-dark);
    border-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Pricing tag */
.price-value {
    font-size: 38px;
    margin: 12px 0;
    color: var(--color-wood-primary);
    font-family: var(--font-serif);
    font-weight: 700;
}

.price-value span {
    font-size: 15px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ---------- Utilities ---------- */
.text-muted {
    color: var(--color-text-muted);
}

.text-center {
    text-align: center;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.doc-scroll {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--color-line);
    padding: 16px;
    border-radius: var(--radius);
    background: var(--color-bg-sink);
}

.doc-scroll h4 {
    margin-top: 16px;
    margin-bottom: 6px;
    color: var(--color-text-main);
    font-size: 15px;
}

.doc-scroll h4:first-child {
    margin-top: 0;
}

/* Legacy responsive helper */
.br-desktop {
    display: inline;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    header .header-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .page-header {
        text-align: center;
    }

    .page-header p {
        margin-left: auto;
        margin-right: auto;
    }

    .section-title.left {
        text-align: center;
    }

    .section-title.left::after {
        margin-left: auto;
    }

    th, td {
        padding: 12px 14px;
        font-size: 13px;
    }

    .br-desktop {
        display: none;
    }
}

@media (max-width: 576px) {
    body {
        padding-bottom: var(--space-6);
    }

    .container {
        padding: 0 20px;
    }

    .card {
        padding: 28px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
    }
}

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

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}
