/* Local Inter Font Loading */
@font-face {
    font-family: 'Inter';
    src: url('/assets/inter-regular-COLGFB3M.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/inter-bold-BOs3KVhN.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Body setup with fixed viewport perspective wrapper */
body {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
    position: relative;
}

/* Privacy policy */
.shifted_by_header {
    padding-top: 70px;
}

.content.privacy > * + * {
    margin-top: 1rem;
}

/* Rotated Perspective Background Grid Container */
.bg-viewport {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: #e1edff;
    overflow: hidden;
    perspective: 800px; /* Establishes 3D depth context */
    perspective-origin: 50% 30%;
}

/* Rotated grid plane */
.bg-grid {
    position: absolute;
    width: 300vw;
    height: 300vh;
    top: -100vh;
    left: -100vw;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg stroke='%231d82d8' stroke-width='1.5' stroke-opacity='0.12' fill='none'%3E%3Crect x='0' y='0' width='80' height='80' /%3E%3Cpath d='M 0,40 L 80,40 M 40,0 L 40,80' stroke-dasharray='4,4' /%3E%3C/g%3E%3C/svg%3E");
    transform: rotateX(75deg);
    transform-origin: center center;
    will-change: transform;
}

/* Depth Fade (Fog) to smoothly blend into distance */
.bg-fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #e1edff 15%, transparent 60%, #e1edff 95%);
    pointer-events: none;
}

@media (min-width: 640px) {
    body { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
    body { padding-left: 2rem; padding-right: 2rem; }
}

/* Main Container */
.main-card {
    width: 100%;
    max-width: 48rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 3rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(#1d82d8, #00d0ff);
    color: #ffffff;
    text-align: center;
    padding: 2.5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.header-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.1;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}
@media (min-width: 768px) {
    .header h1 { font-size: 2.25rem; line-height: 2.5rem; }
}

.header p {
    margin-top: 0.75rem;
    font-size: 1.125rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* Content Layout */
.content {
    padding: 1.5rem;
}
@media (min-width: 768px) {
    .content { padding: 2.5rem; }
}

.content.info > * + * {
    margin-top: 3rem;
}

/* Section Layout */
.step-section > * + * {
    margin-top: 1rem;
}

/* Step Rows - Aligning items horizontally */
.step-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.step-row.mt {
    margin-top: 0.6rem;
}

/* Blue Numbers Style */
.step-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: #dbeafe;
    color: #4a6fa5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}

/* Step Text Style */
.step-text {
    font-size: 1.125rem;
    color: #374151;
}
.step-text strong {
    color: #111827;
    font-weight: 600;
}

/* Images Style */
.img-container {
    text-align: center;
    margin-top: 1.5rem;
}
.instruction-image {
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.7rem;
    box-shadow: 0 4px 8px 2px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.footer {
    background-color: #f9fafb;
    border-top: 1px solid #f3f4f6;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-content: center;
    flex-wrap: wrap;
}
.footer a {
    font-size: 0.875rem;
    color: #4a6fa5;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}
.footer a:hover {
    text-decoration: underline;
}
.footer p {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Pointer Animation */
@keyframes point-to-ext {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(15px, -15px) rotate(45deg); }
}

.action-pointer {
    position: fixed;
    top: 1rem;
    right: 9.5vw;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    transform: translateY(1rem);
}

.action-pointer.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.action-bubble {
    background-color: #ff7416;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    font-weight: 500;
    font-size: 0.875rem;
    max-width: 220px;
    text-align: right;
    margin-top: 1.5rem;
    position: relative;
}

.action-icon {
    color: #ff7416;
    font-size: 3rem;
    transform-origin: bottom left;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07));
    animation: point-to-ext 1s ease-in-out infinite;
}