/*
 * Service page v2 (direction A, 2026-10-22). Loaded only by template-parts/service-v2.php.
 * Every rule sits under .v2 so the site-wide styles of other pages are untouched, and the
 * download form keeps working with the result styles from custom-home / download-flow-fixes.
 * Logical properties (inline-start/end) so translated RTL pages need no second sheet.
 */
.v2 {
    --v2-ink: #16142b;
    --v2-body: #4b4866;
    --v2-muted: #6b6886;
    --v2-line: #e7e4f3;
    --v2-tint: #f7f6fd;
    --v2-brand-a: #667eea;
    --v2-brand-b: #764ba2;
    --v2-ok: #16a34a;
    --v2-radius: 20px;
    display: block;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: var(--v2-ink);
    font-family: var(--wp--preset--font-family--manrope, Manrope), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
.v2 *, .v2 *::before, .v2 *::after { box-sizing: border-box; }
/* :where keeps the reset at one class of weight, so every component rule below can set its own spacing. */
.v2 :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
.v2 :where(ul, ol) { list-style: none; }
.v2 a { color: inherit; }
.v2 :focus-visible { outline: 3px solid var(--v2-brand-a); outline-offset: 2px; border-radius: 10px; }
.v2-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v2-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.v2-narrow { max-width: 820px; }
.v2-logo { display: block; flex: none; }

/* Hero ------------------------------------------------------------------------------- */
.v2-hero {
    position: relative;
    padding: 96px 0 24px;
    background:
        radial-gradient(520px 320px at 100% 0%, color-mix(in srgb, var(--v2-blob) 55%, transparent), transparent 70%),
        radial-gradient(420px 300px at 0% 30%, rgba(199, 210, 254, .55), transparent 70%),
        linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
}
.v2-hero-grid { display: grid; gap: 28px; align-items: center; }
.v2-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 6px; border-radius: 999px;
    background: #ffffff; border: 1px solid var(--v2-line);
    box-shadow: 0 4px 14px rgba(22, 20, 43, .06);
    font-size: 13px; font-weight: 700; color: var(--v2-ink); letter-spacing: .01em;
}
.v2-eyebrow-logo {
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--v2-tint);
}
.v2 h1 {
    margin-top: 16px;
    font-size: clamp(30px, 7.4vw, 52px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--v2-ink);
    text-wrap: balance;
}
.v2-h1-main, .v2-h1-tag { display: block; }
.v2-h1-tag {
    margin-top: 6px;
    font-size: .52em; line-height: 1.2; font-weight: 800; letter-spacing: -.01em;
    background: linear-gradient(90deg, var(--v2-brand-a), var(--v2-brand-b));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.v2-sub { margin-top: 14px; max-width: 34em; font-size: 17px; line-height: 1.55; font-weight: 500; color: var(--v2-body); }

.v2-tool {
    position: relative;
    margin-top: 22px;
    padding: 16px;
    border-radius: var(--v2-radius);
    background: #ffffff;
    border: 1px solid var(--v2-line);
    box-shadow: 0 1px 0 rgba(22, 20, 43, .04), 0 22px 48px -18px rgba(76, 61, 160, .28);
    overflow: hidden;
}
/* The thin strip in the service's own color: the one place each page takes its brand. */
.v2-tool::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--v2-accent);
}
/* The site sheet gives .download-form a bottom margin; the card's padding is enough. */
.v2 .v2-form { display: grid; gap: 10px; margin: 0; }
.v2-field { position: relative; display: flex; align-items: center; }
.v2 .v2-input {
    flex: 1; width: 100%; min-width: 0; height: 56px; margin: 0;
    padding: 0 104px 0 16px; padding-inline: 16px 104px;
    border: 2px solid var(--v2-line); border-radius: 14px; background: #fbfbfe;
    color: var(--v2-ink); font-weight: 500; font-size: 16px; line-height: 1.2; font-family: inherit;
    box-shadow: none; transform: none; outline: none;
    transition: border-color .15s ease, background-color .15s ease;
}
.v2 .v2-input::placeholder { color: #7a7795; opacity: 1; font-size: 15px; }
.v2 .v2-input:focus { border-color: var(--v2-brand-a); background: #ffffff; box-shadow: 0 0 0 4px rgba(102, 126, 234, .15); }
.v2 .v2-input:disabled { opacity: .7; }
.v2-paste {
    position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
    border: 0; border-radius: 10px; background: #efedfa; color: #4f3fc9;
    font-weight: 700; font-size: 14px; line-height: 1; font-family: inherit; cursor: pointer;
    transition: background-color .15s ease;
}
.v2-paste:hover { background: #e4e0fb; }
.v2-paste:active { background: #d9d3fa; }
.v2 .v2-download.download-button {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 56px; margin: 0; padding: 0 24px;
    border: 0; border-radius: 14px;
    background: linear-gradient(135deg, var(--v2-brand-a), var(--v2-brand-b));
    color: #ffffff; font-weight: 800; font-size: 17px; line-height: 1; font-family: inherit; letter-spacing: .01em;
    box-shadow: 0 10px 22px -8px rgba(102, 126, 234, .7);
    cursor: pointer; transform: none; transition: filter .15s ease, box-shadow .15s ease;
}
.v2 .v2-download.download-button:hover { filter: brightness(1.06); transform: none; box-shadow: 0 14px 26px -8px rgba(102, 126, 234, .8); }
.v2 .v2-download.download-button:active { filter: brightness(.96); transform: none; }
.v2 .v2-download.download-button.loading { opacity: .85; cursor: progress; }
.v2 .v2-download .spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #ffffff;
    animation: v2-spin .8s linear infinite;
}
@keyframes v2-spin { to { transform: rotate(360deg); } }
.v2-example-row { margin-top: 10px; text-align: center; }
.v2-example {
    border: 0; background: none; padding: 6px 8px; cursor: pointer;
    color: #4f3fc9; font-weight: 700; font-size: 14px; line-height: 1.3; font-family: inherit;
    text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.v2-hint { margin-top: 8px; font-size: 14px; color: var(--v2-body); text-align: center; }
.v2 .download-message { margin: 12px 0 0; border-radius: 12px; font-size: 15px; }
/* The site sheet gives the empty result box margin and padding; it takes no room until a result arrives. */
.v2 #download-result:not(.is-visible) { display: none; }


.v2-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.v2-trust li {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
    background: #ffffff; border: 1px solid var(--v2-line); color: var(--v2-ink);
    font-size: 14px; font-weight: 600;
}
.v2-trust svg { color: var(--v2-ok); flex: none; }

/* Hero photo (Pexels, free licence; sources in inc/service-v2.php) with two floating cards that
   say what the page does: the platform and the saved file. */
.v2-hero-art { justify-self: center; width: 100%; max-width: 420px; padding: 6px 10px 22px; }
.v2-hero-photo { position: relative; margin: 0; }
.v2-hero-photo::before {
    content: ""; position: absolute; inset: 18px -8px -10px 18px; border-radius: 32px;
    background: linear-gradient(135deg, var(--v2-blob), #c7d2fe); opacity: .8;
}
.v2-hero-photo img {
    position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: 28px; box-shadow: 0 30px 60px -28px rgba(40, 24, 110, .55);
}
.v2-float {
    position: absolute; display: flex; align-items: center; gap: 10px; background: #ffffff;
    border-radius: 16px; box-shadow: 0 14px 32px -10px rgba(22, 20, 43, .35);
}
.v2-float-logo { top: -12px; inset-inline-end: 4px; width: 52px; height: 52px; justify-content: center; }
.v2-float-saved { bottom: -18px; inset-inline-start: 4px; padding: 10px 16px 10px 10px; }
.v2-float-check {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--v2-ok); color: #ffffff; flex: none;
}
.v2-float-saved b { display: block; font-size: 14px; line-height: 1.2; color: var(--v2-ink); }
.v2-float-saved small { display: block; font-size: 12.5px; color: var(--v2-muted); font-weight: 600; }

.v2-switch {
    display: flex; gap: 8px; margin-top: 26px; padding-bottom: 6px;
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.v2-switch::-webkit-scrollbar { display: none; }
.v2-chip {
    flex: none; scroll-snap-align: start;
    display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
    border-radius: 999px; border: 1px solid var(--v2-line); background: #ffffff;
    color: var(--v2-ink); text-decoration: none; font-size: 14px; font-weight: 700;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.v2-chip:hover { border-color: #cfcaea; box-shadow: 0 4px 12px rgba(22, 20, 43, .08); }
.v2-chip.is-on { background: var(--v2-accent); border-color: var(--v2-accent); color: #ffffff; }

/* Sections --------------------------------------------------------------------------- */
.v2-section { padding: 52px 0; }
.v2-tint { background: var(--v2-tint); }
.v2 h2 {
    font-size: clamp(24px, 5.6vw, 34px); line-height: 1.15; font-weight: 800;
    letter-spacing: -.02em; color: var(--v2-ink); text-wrap: balance;
}
.v2 h3 { font-size: 18px; line-height: 1.3; font-weight: 800; color: var(--v2-ink); }

/* Steps: the same phone in one hand, three real screens. On phones they sit side by side and
   swipe; from 640px they are a row of three. */
.v2-steps {
    display: flex; gap: 14px; margin: 26px -16px 0; padding: 0 16px 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none;
}
.v2-steps::-webkit-scrollbar { display: none; }
.v2-step {
    flex: 0 0 80%; scroll-snap-align: start; display: flex; flex-direction: column;
    border-radius: var(--v2-radius); background: #ffffff; border: 1px solid var(--v2-line); overflow: hidden;
}
.v2-step-art { margin: 0; aspect-ratio: 4 / 5; background: #efe6f3; }
.v2-step-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v2-step-text { padding: 16px 18px 20px; }
.v2-step-num {
    display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, var(--v2-brand-a), var(--v2-brand-b)); color: #ffffff;
    font-size: 14px; font-weight: 800; margin-bottom: 8px;
}
.v2-step p { margin-top: 6px; color: var(--v2-body); font-size: 15px; }

.v2-devices { margin-top: 24px; padding: 18px; border-radius: var(--v2-radius); background: var(--v2-tint); }
.v2-tablist { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #ffffff; border: 1px solid var(--v2-line); }
.v2-tablist [role="tab"] {
    border: 0; background: none; padding: 9px 14px; border-radius: 9px; cursor: pointer;
    color: var(--v2-body); font-weight: 700; font-size: 14px; line-height: 1; font-family: inherit;
}
.v2-tablist [role="tab"][aria-selected="true"] { background: var(--v2-ink); color: #ffffff; }
.v2-tabpanel { margin-top: 12px; color: var(--v2-ink); font-size: 15px; }

.v2-two { display: grid; gap: 28px; }
.v2-cards { display: grid; gap: 12px; margin-top: 22px; }
.v2-card {
    position: relative; padding: 18px 18px 18px 22px; border-radius: 16px; background: #ffffff;
    border: 1px solid var(--v2-line);
}
.v2-card::before {
    content: ""; position: absolute; inset-block: 16px; inset-inline-start: 0; width: 4px;
    border-radius: 0 4px 4px 0; background: var(--v2-accent);
}
.v2-card p { margin-top: 4px; color: var(--v2-body); font-size: 15px; }
.v2-side { padding: 20px; border-radius: var(--v2-radius); background: #ffffff; border: 1px solid var(--v2-line); align-self: start; }
.v2-side h3 { font-size: 16px; }
.v2-side h3 + ul { margin-top: 10px; }
.v2-side ul + h3 { margin-top: 20px; }
.v2-nots li, .v2-links li { position: relative; padding-inline-start: 26px; font-size: 15px; color: var(--v2-body); }
.v2-nots li + li, .v2-links li + li { margin-top: 8px; }
.v2-nots li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%;
    background: #fde8ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5l5 5m0-5l-5 5' stroke='%23d0264f' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.v2-links li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%;
    background: #e3f6ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-5' stroke='%2316a34a' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.v2-links code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px;
    color: var(--v2-ink); word-break: break-word; background: none; padding: 0;
}
.v2-tip { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--v2-tint); font-size: 14px; color: var(--v2-body); }

.v2-tips { display: grid; gap: 12px; margin-top: 22px; }
.v2-tips li {
    position: relative; padding: 18px 18px 18px 58px; padding-inline: 58px 18px;
    border-radius: 16px; background: var(--v2-tint);
}
.v2-tips li::before {
    content: ""; position: absolute; inset-inline-start: 16px; top: 18px; width: 28px; height: 28px; border-radius: 9px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.6.5 1 1.2 1 2V16h5.2v-.2c0-.8.4-1.5 1-2A6 6 0 0 0 12 3z' stroke='%23764ba2' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
    box-shadow: 0 2px 6px rgba(22, 20, 43, .08);
}
.v2-tips h3 { font-size: 16px; }
.v2-tips p { margin-top: 4px; color: var(--v2-body); font-size: 15px; }
.v2-fixes { display: grid; gap: 12px; margin-top: 22px; }
.v2-fixes > div { padding: 18px; border-radius: 16px; border: 1px solid var(--v2-line); background: #ffffff; }
.v2-fixes dt { font-weight: 800; color: var(--v2-ink); }
.v2-fixes dd { margin-top: 6px; color: var(--v2-body); font-size: 15px; }

.v2-about { margin-bottom: 52px; }
.v2-about p { margin-top: 14px; color: var(--v2-body); font-size: 16px; line-height: 1.7; }
.v2-about h2 + p { margin-top: 18px; }
.v2-faq { margin-top: 22px; display: grid; gap: 10px; }
.v2-faq details { border-radius: 16px; background: #ffffff; border: 1px solid var(--v2-line); }
.v2-faq summary {
    position: relative; list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; padding-inline: 18px 52px;
    font-weight: 800; color: var(--v2-ink); font-size: 16px; line-height: 1.4;
}
.v2-faq summary::-webkit-details-marker { display: none; }
.v2-faq summary::after {
    content: ""; position: absolute; inset-inline-end: 16px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
    border-radius: 50%; background: var(--v2-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v10M7 12h10' stroke='%2316142b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat;
    transition: transform .2s ease;
}
.v2-faq details[open] summary::after { transform: rotate(45deg); }
.v2-faq details p { padding: 0 18px 18px; color: var(--v2-body); font-size: 15px; }
.v2-respect { margin-top: 22px; font-size: 14px; color: var(--v2-muted); text-align: center; }

.v2-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.v2-related a {
    display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 16px;
    border: 1px solid var(--v2-line); background: #ffffff; text-decoration: none;
    font-size: 14px; font-weight: 700; color: var(--v2-ink); line-height: 1.3;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.v2-related a:hover { border-color: #cfcaea; box-shadow: 0 10px 22px -12px rgba(22, 20, 43, .25); transform: translateY(-1px); }
.v2-related-logo { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--v2-tint); }

/* Larger screens ---------------------------------------------------------------------- */
@media (min-width: 640px) {
    .v2 .v2-form { grid-template-columns: 1fr auto; }
    .v2 .v2-download.download-button { width: auto; min-width: 160px; }
    .v2-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 26px 0 0; padding: 0; overflow: visible; }
    .v2-step { flex: none; }
    .v2-fixes, .v2-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v2-related { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .v2-hero { padding: 124px 0 32px; }
    .v2-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; }
    .v2-hero-art { max-width: 500px; padding: 10px 16px 26px; }
    .v2-float-logo { inset-inline-end: -14px; }
    .v2-float-saved { inset-inline-start: -22px; }
    .v2-switch { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
    .v2-section { padding: 76px 0; }
    .v2-two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
    .v2-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .v2-two .v2-cards { grid-template-columns: 1fr; }
}

/* One quiet entrance for the hero picture; nothing else moves on its own. */
@media (prefers-reduced-motion: no-preference) {
    .v2-float { animation: v2-rise .6s cubic-bezier(.2, .7, .2, 1) both .25s; }
    @keyframes v2-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
    .v2 *, .v2 *::before, .v2 *::after { transition: none !important; animation: none !important; }
    .v2 .v2-download .spinner { animation: v2-spin 1.6s linear infinite !important; }
}
