:root {
    --primary: #2fb595;
    /* VEWiGN mint main accent */
    --secondary: #1a8cbe;
    /* recording button gradient end */
    --bg-dark: #0d1b2a;
    --bg-card: rgba(255, 255, 255, 0.7);
    /* Lighter card for light background */
    --text-main: #263a43;
    /* Exact appTitleColor */
    --text-dim: #263a43b3;
    /* B3 opacity equivalent (appSubtitleColor) */
    --glass-border: rgba(38, 58, 67, 0.1);
    --bg-gradient-start: #c2f2e4;
    --bg-gradient-end: #c0dcf4;
}



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

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 24px;
    height: 24px;
}

/* Glass button style to match Flutter app UI - Scaled down for manual text flow */
.app-glass-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    height: auto;
    padding: 6px 2px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white !important;
    text-decoration: none;
    margin: 0 4px;
    vertical-align: middle;
    transform: translateY(-1px);
}

.step-visual .app-glass-button {
    width: 64px;
    height: 64px;
    /* Keep fixed size for the big one but will ensure content is tight */
    padding: 0;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    margin: 0;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border-radius: 18px;
}

.step-visual .app-glass-button .material-symbols-outlined {
    display: block !important;
    font-size: 28px !important;
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
}

.step-visual .app-glass-button .label {
    display: block !important;
    font-size: 9px;
    margin-top: 0px !important;
}

.app-glass-button .material-symbols-outlined {
    display: block !important;
    /* Override inline-flex */
    font-size: 20px !important;
    /* Reduced from 24px */
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    /* Match size exactly */
    color: white !important;
    text-align: center;
}

.app-glass-button .label {
    display: block !important;
    font-size: 7px;
    /* Reduced from 8px */
    font-weight: 400;
    line-height: normal;
    margin-top: 0px !important;
    /* No margin needed if icon is sized correctly */
    padding: 0;
    color: white !important;
    text-align: center;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-gradient-start);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(to bottom, var(--bg-gradient-start), var(--bg-gradient-end));
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    padding: 2rem 0 1rem;
}

/* --- Opening Animation Styles --- */
.logo-animation-container {
    position: relative;
    width: 100%;
    min-height: 240px;
    /* Reduced from 280px */
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 769px) {
    header {
        padding: 3rem 0 1.5rem;
    }

    .logo-animation-container {
        min-height: 140px;
    }
}

.phrases-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    opacity: 0;
}

.logo-animation-container.playing .phrases-container {
    animation: phrasesSequence 6s forwards;
}

.phrase-line {
    font-family: 'Saira', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #94a3b8;
    /* Grayish color for non-keywords */
    display: flex;
    align-items: baseline;
    opacity: 0;
}

/* Phase 1: Fade in sequential */
.logo-animation-container.playing .line-1 {
    animation: fadeIn 0.8s 0.0s forwards;
}

.logo-animation-container.playing .line-2 {
    animation: fadeIn 0.8s 0.8s forwards;
}

.logo-animation-container.playing .line-3 {
    animation: fadeIn 0.8s 1.6s forwards;
}

.keyword {
    font-weight: 800;
    /* Extra bold to stand out */
    color: var(--text-main) !important;
    /* Force lead color to contrast with the gray phrase */
    margin: 0 4px;
    transition: all 0.5s ease-in-out;
}

/* Phase 2: Isolation & Scale */
@keyframes phrasesSequence {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    60% {
        opacity: 1;
        transform: scale(1);
    }

    80% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 0;
        transform: scale(0.5);
        pointer-events: none;
    }
}

/* Phase 3: Final Header Morph Reveal */
.final-header-content {
    position: absolute;
    opacity: 0;
    display: flex;
    flex-direction: column;
    /* Default: Mobile vertical */
    align-items: center;
    justify-content: center;
    gap: 20px;
    transform: scale(1.1);
    width: 100%;
}

.logo-animation-container.playing .final-header-content {
    animation: finalHeaderReveal 1.2s 5s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (min-width: 769px) {
    .final-header-content {
        flex-direction: row;
        /* Desktop horizontal */
        gap: 40px;
        transform: scale(1.1);
    }
}

@keyframes finalHeaderReveal {
    0% {
        opacity: 0;
        transform: scale(1.1) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Default: Mobile centered */
    text-align: center;
}

@media (min-width: 769px) {
    .logo-text-group {
        align-items: flex-start;
        text-align: left;
    }
}

.logo-container {
    position: relative;
    display: inline-block;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    /* Expanded from 140px */
    height: 200px;
    background: rgba(255, 255, 255, 1);
    /* Pure white */
    border-radius: 50%;
    filter: blur(60px);
    /* Increased blur for a softer, wider glow */
    z-index: -1;
    opacity: 0.8;
    /* Strong but not a solid block */
}

.app-logo {
    width: 100px;
    /* Mobile size */
    height: 100px;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.app-logo:active {
    transform: scale(0.92);
}

@media (min-width: 769px) {
    .app-logo {
        width: 140px;
        height: 140px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

h1 {
    font-family: 'Saira', sans-serif;
    font-size: 38px;
    /* Mobile size */
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 769px) {
    h1 {
        font-size: 48px;
        margin-bottom: 4px;
        line-height: 1;
    }
}

.logo-i-dot {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 0.18em;
    /* Proportional width from app */
    margin: 0 0.05em;
    vertical-align: baseline;
    position: relative;
    height: 1em;
    /* Match text height */
}

/* Red indicator dot */
.logo-i-dot::before {
    content: '';
    position: absolute;
    top: -5%;
    /* Moved up further by approx radius */
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    /* Proportional to app's dotSize */
    height: 8px;
    background-color: #FF3B30;
    /* Professional Red */
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 59, 48, 0.6);
    animation: blinkIndicator 0.8s infinite ease-in-out alternate;
}

/* The vertical bar of the 'i' */
.logo-i-dot::after {
    content: '';
    width: 100%;
    height: 55%;
    /* Proportional height from app */
    background-color: var(--text-main);
    border-radius: 2px;
    margin-bottom: 0.16em;
    /* Matches app spacing */
}

@keyframes blinkIndicator {
    0% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(255, 59, 48, 0.8), 0 0 12px rgba(255, 59, 48, 0.4);
    }

    100% {
        opacity: 0.3;
        box-shadow: 0 0 2px rgba(255, 59, 48, 0.2);
    }
}

.subtitle {
    font-size: 12px;
    /* Mobile size */
    letter-spacing: 0.1em;
    font-weight: 400;
    color: var(--text-dim);
    margin: 8px 0 0 0;
}

@media (min-width: 769px) {
    .subtitle {
        font-size: 14px;
        letter-spacing: 0.12em;
        margin: 0;
    }
}

/* Keep cards hidden until animation finishes or scroll */
.card {
    opacity: 0;
    transform: translateY(30px);
}

.card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(38, 58, 67, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease-out both;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(38, 58, 67, 0.1);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2fb595;
    /* Mint accent from theme */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 1.05rem;
}

strong {
    color: #000;
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.4);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.feature-item h3 {
    color: #2fb595;
    /* Mint accent */
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* --- Manual Specific Components --- */
.img-base {
    width: 100%;
    max-width: 300px;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.img-base:hover {
    transform: scale(1.02);
}

.img-v {
    max-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.img-h {
    max-width: none;
}

.img-caption {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.75rem;
    text-align: center;
}

.manual-list {
    list-style: none;
    padding: 0;
}

.manual-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.manual-section {
    border-top: 1px solid var(--glass-border);
    padding-top: 2.5rem;
    margin-top: 2.5rem;
}

/* Remove border for the first section in a card */
.card>h2+p+.manual-section,
.card>h2+.manual-section {
    border-top: none;
    padding-top: 0;
    margin-top: 1.5rem;
}

.manual-section h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.manual-section h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background: var(--primary);
    border-radius: 4px;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.item-desc {
    padding-left: calc(24px + 0.5rem);
    /* Align with text after icon */
    font-size: 0.95rem;
    color: var(--text-dim);
}

.manual-list .material-symbols-outlined {
    color: var(--primary);
    flex-shrink: 0;
}

.pro-tip {
    background: rgba(47, 181, 149, 0.08);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.pro-tip h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.pro-tip .manual-list li {
    margin-bottom: 1rem;
}

.pro-tip .manual-list li:last-child {
    margin-bottom: 0;
}

.pro-tip .item-header {
    font-size: 1rem;
}

.pro-tip .item-desc {
    font-size: 0.9rem;
}


.intro-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 3rem;
}

.feature-highlight {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.feature-highlight.reverse {
    flex-direction: row-reverse;
}

/* Mobile fix for Introduction section only */
@media (max-width: 768px) {
    #intro .feature-highlight {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    #intro .highlight-text {
        order: 1 !important;
    }

    #intro .img-container {
        order: 2 !important;
    }
}

.highlight-text {
    flex: 1;
    min-width: 300px;
}

.highlight-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.hint {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    font-style: italic;
    display: block;
}

.hint ul {
    margin: 0.5rem 0 0 1.5rem;
    list-style-type: disc;
}

.hint li {
    margin-bottom: 0.4rem;
    padding-left: 0.2rem;
}

.hint p {
    margin-bottom: 0.4rem;
}

code {
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
    background: rgba(0, 0, 0, 0.05);
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 0.95em;
    font-style: normal;
}

.img-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img-container.sz-v {
    flex: 0 0 220px;
}

.img-container.sz-h {
    flex: 0 0 300px;
}

.img-container.sz-full {
    flex: none;
    width: 100%;
    max-width: 640px;
    margin: 2rem auto;
}

.img-container.is-sticky {
    position: sticky;
    top: 2.5rem;
}



.step-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

/* --- Walkthrough Layout (Main Visual + Vertical Steps) --- */
.walkthrough-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    align-items: flex-start;
}




.walkthrough-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.step-mini-panel {
    position: relative;
    padding: 2rem 1.25rem 1.25rem 1.25rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.step-mini-panel:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.step-mini-panel .step-num-badge {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 20px 0 16px 0;
    font-size: 0.7rem;
    padding: 3px 12px;
    z-index: 2;
}

.step-mini-panel .step-visual {
    flex: 0 0 auto;
    margin-bottom: 0;
    min-height: auto;
    padding-top: 0.25rem;
}

.step-mini-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Adjust glass button size within mini panels */
.step-mini-panel .app-glass-button {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.step-mini-panel .app-glass-button .material-symbols-outlined {
    font-size: 20px !important;
}

.step-mini-panel .app-glass-button .label {
    font-size: 7px;
}

.step-mini-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.step-mini-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}



.step-item,
.step-card {
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    transition: all 0.3s ease;
    z-index: 1;
}

.step-item .step-img {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 240px;
}

.step-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}


.step-visual {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Added vertical centering */
    min-height: 100px;
    /* Ensure enough space for large icons */
}

.step-badge {
    position: relative;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible;
    /* Prevent clipping of number badge and transformed icon */
}

.step-item:hover .step-badge {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 15px 35px rgba(47, 181, 149, 0.15);
    background: white;
}

.step-num-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    /* Increased padding slightly for corner look */
    height: auto;
    border-radius: 20px 0 20px 0;
    /* Match parent's corner radius */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.05);
    /* Shadow offset towards bottom-right */
    z-index: 2;
    letter-spacing: 0.05em;
    white-space: nowrap;
    /* Avoid number wrapping */
}

.step-icon {
    font-size: 4.5rem !important;
    /* Increased from 3rem */
    width: auto;
    /* Override fixed 24px */
    height: auto;
    /* Override fixed 24px */
    color: var(--primary);
    opacity: 0.9;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 12px rgba(47, 181, 149, 0.2));
    /* Added subtle glow/depth */
}

.step-item:hover .step-icon {
    opacity: 1;
    transform: scale(1.05);
    /* Slight scale on hover */
    filter: drop-shadow(0 6px 16px rgba(47, 181, 149, 0.3));
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.step-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 0;
}



.footer {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.lang-switch {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }
}

.nowrap {
    white-space: nowrap;
}

/* Sophisticated Alert/Caution Card */
.caution-card {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 107, 107, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 59, 48, 0.15);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255, 59, 48, 0.04);
}

.caution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #FF3B30, #FFD60A);
}

.caution-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #d32f2f;
}

.caution-header h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.caution-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-main);
}

.caution-details {
    cursor: pointer;
}

.caution-summary {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    list-style: none;
    outline: none;
    user-select: none;
    padding: 0;
    background: transparent;
    transition: color 0.2s ease;
    margin-top: 0;
    height: 24px;
    line-height: 24px;
    width: fit-content;
}

.caution-summary::-webkit-details-marker {
    display: none;
}

.caution-summary::marker {
    display: none;
    content: "";
}

.caution-summary:hover {
    color: var(--text-main);
}

.caution-summary::-webkit-details-marker {
    display: none;
}

.caution-summary .material-symbols-outlined {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin: 0;
}

.caution-details[open] .caution-summary .material-symbols-outlined {
    transform: rotate(180deg);
}

.caution-content {
    padding-top: 1rem;
    animation: slideDown 0.3s ease-out;
}

.caution-content p,
.caution-content li,
.caution-content span:not(.material-symbols-outlined) {
    font-size: 0.85rem !important;
    line-height: 1.6;
}

.caution-content p {
    margin-bottom: 0.75rem;
}

.caution-content .hint {
    font-size: 0.7rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    font-style: normal;
    opacity: 0.85;
}

.caution-content .hint p,
.caution-content .hint li,
.caution-content .hint span:not(.material-symbols-outlined) {
    font-size: 0.7rem !important;
}

.caution-content .hint ul {
    margin-top: 0.5rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.caution-body strong {
    color: #000;
}

.indicator-meaning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    font-weight: 600;
}

.caution-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 59, 48, 0.08);
}

@media (max-width: 768px) {
    .caution-actions {
        gap: 1rem;
    }
}

.action-items-group {
    display: flex;
    gap: 1.25rem;
    flex-shrink: 0;
    align-items: center;
}

@media (max-width: 480px) {
    .action-items-group {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    min-width: 80px;
}

.action-item.recommended {
    flex: 0 0 auto;
}

.action-key-point {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .action-key-point {
        font-size: 0.8rem;
    }
}

.action-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 600;
    white-space: nowrap;
    height: 1.2rem;
    display: flex;
    align-items: center;
}

.caution-actions .app-glass-button {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

/* --- Floating Navigation --- */
.floating-nav {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.floating-nav.visible {
    opacity: 1;
    visibility: visible;
}

.nav-trigger {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    color: var(--primary);
}

.nav-trigger:hover {
    transform: scale(1.05);
    background: white;
    box-shadow: 0 8px 32px rgba(47, 181, 149, 0.2);
}

.nav-trigger .material-symbols-outlined {
    font-size: 28px !important;
    width: 28px !important;
    height: 28px !important;
}

.nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 240px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transform-origin: top left;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-height: calc(100vh - 120px);
    max-height: calc(100svh - 120px);
    overflow-y: auto;
}

.nav-menu::-webkit-scrollbar {
    width: 4px;
}

.nav-menu::-webkit-scrollbar-track {
    background: transparent;
}

.nav-menu::-webkit-scrollbar-thumb {
    background: rgba(47, 181, 149, 0.2);
    border-radius: 10px;
}

.nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(47, 181, 149, 0.4);
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-menu-header {
    font-family: 'Saira', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    letter-spacing: 0.05em;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 4px;
}

.nav-menu li:last-child {
    margin-bottom: 0;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s;
}

.nav-menu a:hover {
    background: rgba(47, 181, 149, 0.1);
    color: var(--primary);
    transform: translateX(4px);
}

.nav-menu a .material-symbols-outlined {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    color: var(--text-dim);
}

.nav-menu a:hover .material-symbols-outlined {
    color: var(--primary);
}

@media (max-width: 768px) {
    .floating-nav {
        top: 1rem;
        left: 1rem;
    }

    .nav-trigger {
        width: 44px;
        height: 44px;
    }

    .nav-trigger img {
        width: 28px;
        height: 28px;
    }
}

/* --- Nav Menu Header Improvements --- */
.nav-menu-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.nav-logo-small {
    width: 24px;
    height: 24px;
}

.logo-text-group-mini {
    font-family: 'Saira', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    letter-spacing: 0.05em;
}

.logo-i-dot.mini {
    width: 0.18em;
    margin: 0 0.05em;
    height: 1em;
    position: relative;
    display: inline-flex;
    align-items: flex-end;
}

.logo-i-dot.mini::before {
    content: '';
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #FF3B30;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 59, 48, 0.6);
    animation: blinkIndicator 0.8s infinite ease-in-out alternate;
}

.logo-i-dot.mini::after {
    content: '';
    width: 100%;
    height: 55%;
    background-color: var(--text-main);
    border-radius: 1px;
    margin-bottom: 0.15em;
}

@media (max-width: 768px) {

    .feature-highlight,
    .walkthrough-layout {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .step-mini-panel {
        padding: 1.75rem 1rem 0.75rem 1rem;
        gap: 1rem;
    }

    .img-container {
        flex: 1 1 100% !important;
        order: -1;
        /* Image on top */
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center the image and caption */
        width: 100% !important;
        max-width: none !important;
        position: static !important;
        margin-bottom: 1.5rem;
    }

    .img-container .img-v {
        max-width: 240px;
        width: 100%;
    }

    .img-container .img-h {
        max-width: 500px;
        width: 100%;
    }

    .highlight-text {
        order: 1;
        /* Text below image */
        width: 100%;
    }
}

@media (min-width: 1025px) {
    .step-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .step-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .step-item {
        flex-direction: row;
        text-align: left;
        padding: 1.5rem 1.25rem 1rem 1.25rem;
        gap: 1.5rem;
        align-items: center;
    }

    .step-visual {
        margin-bottom: 0;
        min-height: auto;
        flex: 0 0 auto;
    }

    .step-icon {
        font-size: 3.5rem !important;
    }

    .step-title {
        font-size: 1.1rem;
        margin-top: 0;
        margin-bottom: 0.15rem;
        line-height: 1.2;
    }

    .step-desc {
        font-size: 0.9rem;
        margin-bottom: 0;
        line-height: 1.4;
    }
}

@media (max-width: 768px) {
    .step-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step-item {
        flex-direction: row;
        text-align: left;
        padding: 1.5rem 1rem 0.75rem 1rem;
        gap: 1.25rem;
        align-items: center;
    }

    .step-num-badge {
        font-size: 0.65rem;
        padding: 3px 10px;
    }

    .step-visual {
        margin-bottom: 0;
        min-height: auto;
        flex: 0 0 auto;
    }

    .step-icon {
        font-size: 3rem !important;
    }

    .step-title {
        font-size: 1rem;
        margin-top: 0;
        margin-bottom: 0.15rem;
        line-height: 1.2;
    }

    .step-desc {
        font-size: 0.85rem;
        margin-bottom: 0;
        line-height: 1.4;
    }
}

/* Pro Comparison Table */
.table-scroll-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.pro-comparison-table {
    width: 100%;
    min-width: 400px;
    /* Ensure it's wide enough on mobile to be readable */
    border-collapse: collapse;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.3);
}

.pro-comparison-table th,
.pro-comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
}

.pro-comparison-table th:last-child,
.pro-comparison-table td:last-child {
    border-right: none;
}

.pro-comparison-table th {
    background: rgba(47, 181, 149, 0.15);
    color: var(--primary);
    font-weight: 700;
}

.pro-comparison-table tr:last-child td {
    border-bottom: none;
}

.pro-comparison-table td:nth-child(2),
.pro-comparison-table td:nth-child(3) {
    text-align: center;
}

.pro-comparison-table strong {
    color: var(--primary);
}

@media (max-width: 480px) {
    .table-scroll-container {
        margin: 1rem 0;
    }

    .pro-comparison-table {
        font-size: 0.82rem;
        min-width: 420px;
        /* Slightly wider to accommodate longer translations like Italian */
    }

    .pro-comparison-table th,
    .pro-comparison-table td {
        padding: 10px 8px;
    }
}

.table-subtext {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
    font-weight: normal;
}

/* --- FAQ Section --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: var(--text-main);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.faq-question-content .material-symbols-outlined {
    background: var(--primary);
    color: white !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 32px !important;
}

.faq-toggle-icon {
    font-size: 20px !important;
    color: var(--text-dim);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 4rem;
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.7;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    padding-top: 1.25rem;
    animation: faqFadeIn 0.4s ease-out;
}

@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .faq-answer {
        padding-left: 1.5rem;
    }
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.25rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer p {
    margin-bottom: 0.75rem;
}

.privacy-statement {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: rgba(46, 125, 50, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.privacy-statement p:last-child {
    margin-bottom: 0;
}

/* --- Language Switcher --- */
.lang-switcher-container {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 1000;
}

.lang-trigger {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    font-family: 'Saira', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.lang-trigger:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.lang-trigger .material-symbols-outlined {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}

.lang-trigger .expand-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-dim);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
    line-height: 1;
}

.lang-switcher-container.active .expand-icon {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
    max-height: calc(100vh - 120px);
    max-height: calc(100svh - 120px);
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform-origin: top right;
    animation: menuAppear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lang-menu::-webkit-scrollbar {
    width: 4px;
}

.lang-menu::-webkit-scrollbar-track {
    background: transparent;
}

.lang-menu::-webkit-scrollbar-thumb {
    background: rgba(47, 181, 149, 0.2);
    border-radius: 10px;
}

.lang-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(47, 181, 149, 0.4);
}

@keyframes menuAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lang-menu.show {
    display: flex;
}

.lang-item {
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-item:hover {
    background: rgba(47, 181, 149, 0.1);
    color: var(--primary);
}

.lang-item.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.nowrap {
    white-space: nowrap;
}

/* Footer Section */
.footer {
    text-align: center;
    padding: 4rem 0 2rem;
    color: var(--text-dim);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .lang-switch-fixed {
        top: 0.75rem;
        right: 0.75rem;
        padding: 4px 10px;
    }
}