/* Base Styles & Variables */
:root {
    --bg-color: #f4f7f8;
    --card-bg: #ffffff;
    --text-primary: #122230;
    --text-secondary: #5e6d7a;
    --accent-color: #177d85;
    --accent-light: #e6f4f4;
    --border-color: #e2e8f0;
    --site-font: "canada-type-gibson", "Gibson", sans-serif;
    --ui-font: 'Manrope', sans-serif;
    --heading-font: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--ui-font);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
}

body {
    background-color: #f8fafc;
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.main-header {
    width: 100%;
    background-color: #eef2f5;
    font-family: var(--ui-font);
}

.main-header * {
    font-family: inherit;
}

.main-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}

.header-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-weight: 500;
    color: #4f6071;
    margin-right: 0.5rem;
}

.nav-links a {
    position: relative;
    color: inherit;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.22rem;
    width: 100%;
    height: 2px;
    background: #177d85;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-links a:hover { color: #177d85; }
.nav-links a:hover::after { transform: scaleX(1); }

.menu-toggle {
    display: none;
    border: 1px solid #c7d4dd;
    background: #ffffff;
    border-radius: 10px;
    width: 42px;
    height: 38px;
    padding: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #1a2c43;
    border-radius: 2px;
}

.menu-toggle span + span { margin-top: 6px; }

/* Hero */
.hero {
    background-color: #eef2f5;
    position: relative;
    text-align: center;
    padding: 4rem 0.15rem 12rem;
    z-index: 1;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    background:
        linear-gradient(115deg, transparent 65%, rgba(220, 230, 235, 0.6) 65%, rgba(220, 230, 235, 0.6) 80%, transparent 80%),
        linear-gradient(115deg, transparent 55%, rgba(228, 236, 240, 0.5) 55%, rgba(228, 236, 240, 0.5) 70%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.25rem);
    line-height: 1.1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    padding: 0 1.5rem;
    color: var(--text-primary);
}

/* Layout Wrapper */
.layout-wrapper {
    max-width: 1200px;
    margin: -9rem auto 4rem;
    display: flex;
    justify-content: center;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

/* Article Card */
.article-card {
    position: relative;
    background-color: var(--card-bg);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    width: 100%;
    max-width: 900px;
    flex: none;
}

.breadcrumb {
    position: absolute;
    top: 20px;
    left: 25px;
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    list-style: none;
}

.breadcrumb-list .separator { line-height: 1; }

.article-card > h2 {
    font-size: 2rem;
    margin: 0 0 1rem;
}

.article-card > p {
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    font-family: var(--site-font);
    color: #111;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Quick Steps */
.quick-steps-overview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0 0 3rem -1.5rem;
    width: fit-content;
    border-radius: 12px;
    list-style: none;
    counter-reset: custom-step-counter;
}

.quick-steps-overview li {
    position: relative;
    background-color: var(--bg-color);
    font-size: 0.95rem;
    color: var(--text-primary);
    counter-increment: custom-step-counter;
    padding: 10px 60px 10px 42px;
    border-radius: 50px 0 0 50px;
    clip-path: polygon(0% 0%, 100% 0%, calc(100% - 20px) 50%, 100% 100%, 0% 100%);
    line-height: 1.45;
}

.quick-steps-overview li::before {
    content: counter(custom-step-counter);
    background-color: var(--accent-color);
    color: white;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    font-size: 0.85rem;
    flex-shrink: 0;
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 3rem 0;
}

/* Content Sections */
.content-section {
    display: block;
    overflow: hidden;
    margin-bottom: 3rem;
}

.content-section .text-content { flex: 1; }

.content-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.content-section p {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
    color: #111;
    padding: 0.5rem 0;
}

.image-placeholder {
    float: right;
    width: 300px;
    height: 250px;
    margin-left: 2rem;
    margin-bottom: 1rem;
    background-color: #e9eff1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Step Guide */
.step-guide-wrapper {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    width: calc(100% + 8rem);
    margin-left: -4rem;
    margin-right: -4rem;
    margin-top: 3rem;
}

.platform-anchor {
    display: block;
    height: 0;
    overflow: hidden;
}

#step-by-step h3 {
    font-family: var(--site-font);
    font-weight: 700;
    color: #122230;
    margin-bottom: 1.25rem;
}

.macos-heading { display: none; }
.android-heading { display: none; }

.steps-list {
    flex: none;
    width: 100%;
    background: #f7fafd;
    border: 1px solid #e3ecf4;
    border-radius: 0;
    padding: 1.2rem 1.2rem 1.35rem;
}

.steps-list > h3,
.steps-list > .tutorial-toggle,
.platform-content > h4 {
    margin-left: 2.8rem;
}

.tutorial-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem;
    margin: 0.5rem 0 2.5rem;
    background: #ecf2f7;
    border: 1px solid #d6e2ec;
    border-radius: 12px;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #5a6a7a;
    font-family: var(--site-font);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 9px;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.toggle-btn.active {
    background: #ffffff;
    color: #122230;
    box-shadow: 0 2px 8px rgba(18, 34, 48, 0.12);
}

.toggle-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    color: #122230;
}

.platform-content > h4 {
    font-size: 1.15rem;
    margin-bottom: 0.9rem;
    color: #243049;
}

.platform-content { margin-top: 0.35rem; }
.platform-content.is-hidden { display: none !important; }

/* How-list */
.how-list {
    counter-reset: how-step;
    margin: 0;
    padding: 0;
    list-style: none;
}

.how-list > li {
    counter-increment: how-step;
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 10px;
    list-style: none;
    border: 1px solid #dfe8f8;
    border-radius: 18px;
    padding: 20px 24px 22px;
    margin: 18px 0;
    color: #243049;
    box-shadow: 0 8px 20px rgba(19, 42, 82, 0.08);
    font-size: 1.05rem;
    line-height: 1.65;
}

.how-list > li::before {
    content: counter(how-step);
    position: static;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1c3db9;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
}

.how-list > li:hover { background: #f8fbff; }

.how-list > li > p:first-child {
    font-family: var(--site-font);
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a2c43;
    margin: 0;
    line-height: 1.2;
}

.how-list > li p {
    grid-column: 2;
    font-family: var(--site-font);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
    color: #111;
    margin-top: 0.5rem;
}

.how-list > li > p:first-child + p { margin-top: 0.9rem; }

.how-list > li img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 18px 0;
    border-radius: 0;
}

/* Quick Tip */
.quick-tip-card {
    width: calc(100% - 8rem);
    flex: none;
    background-color: var(--accent-light);
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid #d7ecec;
    margin-top: 0.9rem;
    margin-left: 4rem;
    box-shadow: 0 6px 14px rgba(18, 34, 48, 0.05);
}

.quick-tip-card h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.quick-tip-card p { font-size: 0.9rem; }

/* Final Thoughts */
.final-thoughts {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.final-thoughts div:first-child { flex: 1; }

.final-thoughts div:first-child p {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
    color: #111;
}

.disclaimer-box {
    flex: 1;
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.disclaimer-box .icon { color: var(--accent-color); }

/* Comments (from src/styles/comments.css — duplicated here for public serving) */
.comments-section { margin-top: 3rem; }
.comments-section > h3 { font-size: 1.4rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 3rem; }
.comment-item { background: var(--bg-color); border-radius: 12px; padding: 1.25rem 1.5rem; border: 1px solid var(--border-color); }
.comment-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; font-size: 0.875rem; }
.comment-author { color: var(--text-primary); font-weight: 700; }
.comment-meta time { color: var(--text-secondary); }
.comment-body { font-size: 1rem; line-height: 1.6; color: #333; margin: 0; padding: 0; }
.comment-form-wrapper { background: #f7fafd; border: 1px solid var(--border-color); border-radius: 16px; padding: 2rem; }
.comment-form-wrapper h4 { font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.comment-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.form-row label small { font-weight: 400; color: var(--text-secondary); }
.form-row input, .form-row textarea { border: 1px solid var(--border-color); border-radius: 10px; padding: 0.65rem 0.9rem; font-size: 1rem; font-family: var(--ui-font); color: var(--text-primary); background: #fff; transition: border-color 0.15s ease; width: 100%; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(23, 125, 133, 0.12); }
.form-row textarea { resize: vertical; min-height: 120px; }
.submit-btn { align-self: flex-start; background: var(--accent-color); color: #fff; border: none; border-radius: 10px; padding: 0.7rem 1.75rem; font-size: 0.95rem; font-weight: 600; font-family: var(--ui-font); cursor: pointer; transition: background 0.15s ease; }
.submit-btn:hover { background: #146c73; }

/* Footer */
.main-footer {
    background: linear-gradient(160deg, #081a31 0%, #0c2241 55%, #112b4f 100%);
    color: #dbe6f3;
    padding: 2.4rem 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: #f2f7fd;
    min-width: 160px;
}

.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }

.link-column h4 {
    font-size: 0.72rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9fb3ca;
}

.link-column a {
    display: block;
    color: #e4edf8;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    opacity: 0.9;
}

.link-column a:hover { opacity: 1; }

.social-links { display: flex; gap: 0.5rem; }

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fbff;
    font-size: 0.78rem;
    font-weight: 700;
}

.footer-bottom {
    text-align: center;
    color: #9cb0c8;
    font-size: 0.72rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-header-inner { flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }
    .menu-toggle { display: inline-block; }
    .header-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0.85rem; padding-top: 0.45rem; }
    .main-header-inner.menu-open .header-menu { display: flex; }
    .nav-links { width: 100%; flex-direction: column; gap: 0.25rem; margin: 0; }
    .nav-links a { padding: 0.6rem 0.2rem; border-bottom: 1px solid #d8e3ea; }
    .layout-wrapper { flex-direction: column; }
    .tutorial-toggle { width: 100%; }
    .toggle-btn { flex: 1; text-align: center; }
    .step-guide-wrapper { width: calc(100% + 8rem); margin-left: -4rem; margin-right: -4rem; }
    .steps-list > h3, .steps-list > .tutorial-toggle, .platform-content > h4 { margin-left: 0; }
    .quick-tip-card { width: 100%; margin-left: 0; }
    .quick-steps-overview { flex-wrap: wrap; margin-left: 0; width: 100%; }
    .footer-content { flex-direction: column; }
    .footer-links { width: 100%; gap: 2rem; }
}

@media (max-width: 768px) {
    .image-placeholder { float: none; width: 100%; max-width: 100%; height: 220px; margin: 0.75rem 0 1.25rem; }
    .hero { padding: 2.5rem 0.15rem 8rem; }
    .layout-wrapper { margin-top: -6rem; padding: 0; }
    .article-card { padding: 3rem 1rem 2rem; border-radius: 0; }
    .article-card > h2 { font-size: 2.1rem; line-height: 1.2; }
    .quick-steps-overview { margin: 0 0 2rem; width: 100%; }
    .quick-steps-overview li { display: block; padding: 0.72rem 0.8rem 0.72rem 2.25rem; border-radius: 12px; clip-path: none; }
    .step-guide-wrapper { width: calc(100% + 2rem); margin-left: -1rem; margin-right: -1rem; }
    .steps-list { padding: 1rem 0.8rem 1rem; }
    .how-list > li { grid-template-columns: 24px minmax(0, 1fr); column-gap: 8px; padding: 12px; border-radius: 12px; margin: 12px 0; }
    .how-list > li::before { width: 24px; height: 24px; font-size: 11px; }
    .comment-form-wrapper { padding: 1.25rem 1rem; }
    .final-thoughts { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 420px) {
    .hero h1 { font-size: 2rem; padding: 0 0.85rem; }
    .article-card { padding-left: 0.8rem; padding-right: 0.8rem; }
    .step-guide-wrapper { width: calc(100% + 1.6rem); margin-left: -0.8rem; margin-right: -0.8rem; }
    .breadcrumb { left: 14px; top: 14px; }
    .article-card > h2 { font-size: 1.8rem; }
}
