/* Image Converter — site styles
   ----------------------------------------------------------
   System-font, no network deps. Adapts to dark / light via
   `prefers-color-scheme`. Layout works at 320px and up.
*/

:root {
    --accent:        #6e5cff;
    --accent-hover:  #8979ff;
    --bg:            #ffffff;
    --bg-elevated:   #f7f7fb;
    --bg-card:       #ffffff;
    --text:          #1a1a26;
    --text-muted:    #5a5a72;
    --border:        #e4e4ec;
    --radius-sm:     8px;
    --radius-md:     16px;
    --radius-lg:     24px;
    --shadow-sm:     0 1px 2px rgba(20, 20, 40, 0.04), 0 1px 1px rgba(20, 20, 40, 0.03);
    --shadow-md:     0 10px 30px rgba(40, 40, 90, 0.08), 0 2px 8px rgba(40, 40, 90, 0.04);
    --shadow-lg:     0 30px 80px rgba(80, 60, 200, 0.18), 0 10px 30px rgba(40, 40, 90, 0.10);
    --gradient-hero: linear-gradient(135deg, #6e5cff 0%, #a05cff 50%, #ff6c8a 100%);
    --gradient-soft: linear-gradient(135deg, rgba(110, 92, 255, 0.06) 0%, rgba(255, 108, 138, 0.06) 100%);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:            #0b0b14;
        --bg-elevated:   #14141f;
        --bg-card:       #1a1a26;
        --text:          #f1f1f5;
        --text-muted:    #9a9ab3;
        --border:        #25253a;
        --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-md:     0 10px 30px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
        --shadow-lg:     0 30px 80px rgba(110, 92, 255, 0.25), 0 10px 30px rgba(0, 0, 0, 0.4);
        --gradient-soft: linear-gradient(135deg, rgba(110, 92, 255, 0.10) 0%, rgba(255, 108, 138, 0.08) 100%);
    }
}

/* ---------- Reset ---------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover, a:focus-visible { color: var(--accent-hover); }
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

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

/* ---------- Layout ---------- */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }

.brand__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    gap: 28px;
    font-size: 15px;
}
.nav a {
    color: var(--text-muted);
    font-weight: 500;
}
.nav a:hover { color: var(--text); }

@media (max-width: 640px) {
    .nav { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--gradient-hero);
    color: white;
    box-shadow: var(--shadow-md);
}
.btn--primary:hover, .btn--primary:focus-visible {
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
    color: var(--text);
    background: var(--bg-elevated);
}

/* ---------- Hero ---------- */

.hero {
    padding: 80px 0 100px;
    background: var(--gradient-soft);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(110, 92, 255, 0.18) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 880px) {
    .hero { padding: 60px 0 70px; }
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
}

.hero__eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.hero__title {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.05;
    margin: 0 0 20px;
    letter-spacing: -0.025em;
    font-weight: 800;
}

.hero__title em {
    font-style: normal;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__subtitle {
    font-size: 19px;
    color: var(--text-muted);
    margin: 0 0 32px;
    max-width: 540px;
}

@media (max-width: 880px) {
    .hero__subtitle { margin-left: auto; margin-right: auto; }
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 880px) {
    .hero__actions { justify-content: center; }
}

.hero__visual {
    display: flex;
    justify-content: center;
}

.phone-mock {
    width: 280px;
    height: 560px;
    border-radius: 44px;
    background: linear-gradient(180deg, #14141f 0%, #25253a 100%);
    padding: 14px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-mock__screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    background: var(--gradient-hero);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 24px;
    overflow: hidden;
    position: relative;
}

.phone-mock__screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 50%);
}

.phone-mock__pill {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.phone-mock__big {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    margin: 0 0 12px;
    letter-spacing: -0.04em;
}

.phone-mock__arrow {
    margin: 8px 0;
    opacity: 0.85;
}

.phone-mock__note {
    font-size: 14px;
    opacity: 0.85;
    margin-top: 12px;
}

/* ---------- Sections ---------- */

section { padding: 80px 0; }

@media (max-width: 880px) {
    section { padding: 56px 0; }
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header__eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header__title {
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    font-weight: 800;
}

.section-header__subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Features ---------- */

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

@media (max-width: 880px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

.feature__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--accent);
}

.feature__icon svg { width: 22px; height: 22px; }

.feature__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.feature__body {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
}

/* ---------- Privacy callout ---------- */

.privacy-callout {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.privacy-callout__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: center;
}

@media (max-width: 720px) {
    .privacy-callout__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.privacy-callout__icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-md);
}

@media (max-width: 720px) {
    .privacy-callout__icon { margin: 0 auto; }
}

.privacy-callout__title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.privacy-callout__body {
    font-size: 17px;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.privacy-callout__points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 14px;
    color: var(--text-muted);
}

@media (max-width: 720px) {
    .privacy-callout__points { justify-content: center; }
}

.privacy-callout__points li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.privacy-callout__points svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ---------- Formats strip ---------- */

.formats {
    text-align: center;
}

.formats__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.format-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-sm);
}

/* ---------- Pricing ---------- */

.pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 880px) {
    .pricing { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

.plan {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.plan--featured {
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(110, 92, 255, 0.2);
}

.plan__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--gradient-hero);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.plan__name {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.plan__price {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 4px;
}

.plan__period {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 20px;
}

.plan__list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.plan__list li {
    padding: 6px 0 6px 24px;
    position: relative;
}

.plan__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.plan__note {
    font-size: 12px;
    color: var(--text-muted);
    margin: 16px 0 0;
}

/* ---------- CTA ---------- */

.cta {
    text-align: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 56px 24px;
    margin: 56px auto;
    max-width: 880px;
}

.cta__title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.cta__subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin: 0 0 28px;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer__links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

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

/* ---------- Legal / docs pages ---------- */

.doc-page {
    padding: 56px 0 80px;
}

.doc-page h1 {
    font-size: clamp(32px, 4vw, 44px);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.doc-page .doc-page__updated {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 32px;
}

.doc-page h2 {
    font-size: 22px;
    margin: 36px 0 12px;
    letter-spacing: -0.01em;
    font-weight: 700;
}

.doc-page h3 {
    font-size: 17px;
    margin: 24px 0 8px;
    font-weight: 700;
}

.doc-page p, .doc-page li {
    color: var(--text);
}

.doc-page ul, .doc-page ol {
    padding-left: 1.4em;
}

.doc-page li {
    margin: 6px 0;
}

.doc-page hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

.doc-page__toc {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 0 0 32px;
}

.doc-page__toc h2 {
    font-size: 14px;
    margin: 0 0 12px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.doc-page__toc ol {
    margin: 0;
    padding-left: 1.2em;
    column-count: 2;
    column-gap: 24px;
    font-size: 15px;
}

@media (max-width: 560px) {
    .doc-page__toc ol { column-count: 1; }
}

/* ---------- FAQ ---------- */

.faq {
    margin-top: 24px;
}

.faq__item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.faq__item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

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

.faq__item summary::after {
    content: "+";
    color: var(--accent);
    font-size: 24px;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.faq__item[open] summary::after { content: "−"; }

.faq__item[open] summary { margin-bottom: 12px; }

.faq__item p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 8px 0 0;
}

/* ---------- Contact card ---------- */

.contact-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    margin-top: 24px;
}

.contact-card__email {
    display: inline-block;
    margin-top: 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ---------- Skip link / accessibility ---------- */

.skip-link {
    position: absolute;
    top: -40px;
    left: 8px;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    z-index: 1000;
}
.skip-link:focus { top: 8px; color: white; }
