/* Homepage landing design. Everything is scoped under .ap so the shared
   app.css/precision.css rules for the editor and tool pages are untouched. */

/* Outfit and DM Sans (SIL Open Font License), latin subset, self-hosted so the
   page needs no third-party font requests. Both are variable fonts. */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("../fonts/outfit-latin.fdf9c509a809.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/dm-sans-latin.6c1e961057d2.woff2") format("woff2"); }

@keyframes apFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes apFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes apFloatR { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-8px) rotate(-4deg); } }
@keyframes apPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 50% { box-shadow: 0 0 0 6px rgba(22,163,74,0); } }
@keyframes apSheen { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes apReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

body.ap-body { background: #F8FAFC; }
.ap { font-family: "DM Sans", system-ui, sans-serif; color: #0F172A; background: #F8FAFC; min-width: 0; overflow-x: clip; line-height: normal; }
.ap *, .ap *::before, .ap *::after { box-sizing: border-box; }
.ap a { color: #3B22A8; text-decoration: none; }
.ap a:hover { color: #2A1585; }
.ap :focus-visible { outline: 2px solid #5434D4; outline-offset: 3px; border-radius: 8px; }
.ap h1, .ap h2, .ap h3, .ap p { font-weight: inherit; }
.ap svg { display: block; flex-shrink: 0; }
.ap-display { font-family: "Outfit", sans-serif; }
.ap-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.ap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shared interaction classes from the design */
.ap-card { transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s, border-color .28s; }
.ap-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(52,30,160,.35); border-color: #CFC6F8; }
.ap-card:hover .ap-arrow { transform: translateX(4px); }
.ap-btn { transition: filter .2s, transform .2s, box-shadow .2s; cursor: pointer; }
.ap-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.ap-ghost { transition: background .2s, border-color .2s; cursor: pointer; }
.ap-ghost:hover { background: #FFFFFF; border-color: #CBD5E1; }
.ap-arrow { transition: transform .2s; }
.ap-link:hover .ap-arrow { transform: translateX(4px); }
.ap-tab { transition: background .2s, color .2s, box-shadow .2s; cursor: pointer; }

/* Section scaffolding */
.ap-section { padding: clamp(72px, 9vw, 120px) 0; }
.ap-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #4A2BC9; }
.ap-h2 { font-family: "Outfit", sans-serif; font-weight: 700; font-size: clamp(32px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -.03em; margin: 12px 0 0; }
.ap-lede { font-size: 18px; line-height: 1.6; color: #475569; margin: 14px 0 0; }
.ap-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.ap-center-head { text-align: center; max-width: 620px; margin: 0 auto; }
.ap-check { width: 22px; height: 22px; border-radius: 50%; background: #EEEAFD; display: flex; align-items: center; justify-content: center; }

/* ============ NAV ============ */
.ap-header { position: sticky; top: 0; z-index: 50; background: rgba(248,250,252,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(226,232,240,.9); }
.ap-header-row { max-width: 1240px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 32px); display: flex; align-items: center; gap: 24px; }
.ap-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ap .ap-brand, .ap .ap-brand:hover { color: #0F172A; }
.ap-brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(140deg, #6D4CFF 0%, #4A2BC9 100%); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px -6px rgba(84,52,212,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.ap-brand-name { font-family: "Outfit", sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.ap-nav { display: flex; align-items: center; gap: 26px; margin-left: 20px; font-size: 15px; font-weight: 500; }
.ap .ap-nav a { color: #334155; transition: color .15s; display: flex; align-items: center; gap: 4px; }
.ap .ap-nav a:hover { color: #3B22A8; }
.ap-account { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ap-account form { margin: 0; }
.ap .ap-login { font: inherit; font-size: 15px; font-weight: 600; color: #334155; padding: 10px 14px; background: none; border: 0; cursor: pointer; }
.ap .ap-login:hover { color: #3B22A8; }
.ap .ap-signup { font: inherit; font-size: 15px; font-weight: 600; color: #FFFFFF; background: #0F172A; padding: 11px 18px; border: 0; border-radius: 12px; box-shadow: 0 6px 14px -8px rgba(15,23,42,.6); display: inline-block; }
.ap .ap-signup:hover { color: #FFFFFF; }

/* ============ HERO ============ */
.ap-hero { position: relative; overflow: hidden; background: radial-gradient(55% 60% at 85% 0%, rgba(124,92,255,.18) 0%, rgba(124,92,255,0) 70%), radial-gradient(45% 50% at 0% 25%, rgba(56,189,248,.12) 0%, rgba(56,189,248,0) 70%), #F8FAFC; }
.ap-hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 70% at 50% 30%, #000 0%, transparent 75%); }
.ap-hero-inner { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 32px) clamp(64px, 8vw, 112px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(40px, 6vw, 80px); align-items: center; }
.ap-hero-copy { min-width: 0; }
.ap-status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid #E2E8F0; font-size: 14px; font-weight: 500; color: #334155; box-shadow: 0 1px 2px rgba(15,23,42,.04); animation: apFadeUp .7s cubic-bezier(.2,.7,.2,1) both; }
.ap-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; animation: apPulse 2.4s ease-in-out infinite; }
.ap-h1 { font-family: "Outfit", sans-serif; font-weight: 700; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -.035em; margin: 24px 0 0; animation: apFadeUp .7s .08s cubic-bezier(.2,.7,.2,1) both; }
.ap-h1-accent { background: linear-gradient(95deg, #5434D4 0%, #8B5CF6 45%, #3B82F6 90%, #5434D4 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: apSheen 8s linear infinite; }
.ap-hero-lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: #475569; margin: 22px 0 0; max-width: 520px; animation: apFadeUp .7s .16s cubic-bezier(.2,.7,.2,1) both; }
.ap-hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 15px; font-weight: 500; color: #334155; animation: apFadeUp .7s .24s cubic-bezier(.2,.7,.2,1) both; }
.ap-hero-points li { display: flex; align-items: center; gap: 8px; }
.ap-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; animation: apFadeUp .7s .32s cubic-bezier(.2,.7,.2,1) both; }
.ap-jump-label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #64748B; align-self: center; margin-right: 4px; }
.ap .ap-pill { font-size: 14px; font-weight: 600; color: #1E293B; padding: 8px 14px; border-radius: 999px; border: 1px solid #E2E8F0; background: rgba(255,255,255,.6); }
.ap .ap-pill:hover { color: #1E293B; }

/* Upload card */
.ap-upload { position: relative; min-width: 0; animation: apFadeUp .8s .2s cubic-bezier(.2,.7,.2,1) both; }
.ap-float-doc { position: absolute; top: -28px; right: 8%; width: 150px; height: 190px; border-radius: 14px; background: #FFFFFF; border: 1px solid #E2E8F0; box-shadow: 0 20px 40px -24px rgba(15,23,42,.35); padding: 18px; display: flex; flex-direction: column; gap: 8px; animation: apFloatR 7s ease-in-out infinite; }
.ap-bar { border-radius: 3px; background: #E2E8F0; height: 6px; }
.ap-bar-head { height: 8px; border-radius: 4px; background: #CBD5E1; }
.ap-upload-card { position: relative; background: rgba(255,255,255,.9); border: 1px solid #E2E8F0; border-radius: 28px; padding: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 40px 80px -40px rgba(52,30,160,.45); }
.ap-upload-card form { margin: 0; }
.ap-drop { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: clamp(36px, 5vw, 56px) 24px; border: 2px dashed #D4CCF7; border-radius: 20px; background: linear-gradient(180deg, #FDFCFF 0%, #F6F4FF 100%); cursor: pointer; transition: border-color .25s, background .25s; }
.ap-drop:hover, .ap-drop.is-dragging { border-color: #7C5CFF; background: #FCFBFF; }
.ap-drop:has(input:focus-visible) { outline: 2px solid #5434D4; outline-offset: 3px; }
.ap-drop input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; }
.ap-drop-icon { width: 68px; height: 68px; border-radius: 20px; background: linear-gradient(140deg, #7C5CFF, #4A2BC9); display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 30px -12px rgba(84,52,212,.7); animation: apFloat 4s ease-in-out infinite; }
.ap-drop-title { font-family: "Outfit", sans-serif; font-size: 24px; font-weight: 600; letter-spacing: -.015em; margin-top: 18px; }
.ap-drop-sub { font-size: 15px; color: #64748B; }
.ap-drop-btn { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; background: #5434D4; color: #FFFFFF; font-size: 17px; font-weight: 600; padding: 15px 28px; border-radius: 14px; box-shadow: 0 12px 24px -10px rgba(84,52,212,.75), inset 0 1px 0 rgba(255,255,255,.2); }
.ap-drop-note { font-size: 13px; color: #64748B; margin-top: 12px; }
.ap-upload-status { padding: 0 10px; }
.ap-upload-status .field-error:not([hidden]) { margin-top: 12px; font-size: 14px; }
.ap-upload-status .selected-files:empty { display: none; }
.ap-upload-status .upload-progress { margin-top: 12px; font-size: 14px; color: #475569; }
.ap-upload-status .upload-progress progress { width: 100%; accent-color: #5434D4; }
.ap .ap-open-btn { width: 100%; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-size: 16px; font-weight: 600; color: #FFFFFF; background: #0F172A; border: 0; border-radius: 14px; padding: 14px 20px; }
.ap .ap-open-btn[hidden] { display: none; }
.ap .ap-open-btn svg { width: 18px; height: 18px; }

.ap-limits { padding: 14px 10px 4px; }
.ap-limits > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; }
.ap-limits > summary::-webkit-details-marker { display: none; }
.ap-limits-note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #475569; }
.ap-limits-toggle { font-size: 14px; font-weight: 600; color: #3B22A8; padding: 8px 6px; display: flex; align-items: center; gap: 6px; }
.ap-limits-toggle svg { transition: transform .25s; }
.ap-limits[open] .ap-limits-toggle svg { transform: rotate(180deg); }
.ap-limits-panel { margin: 6px 0 6px; padding: 18px 20px; border-radius: 16px; background: #F8FAFC; border: 1px solid #E2E8F0; display: grid; gap: 12px; font-size: 14px; line-height: 1.55; color: #475569; animation: apReveal .3s ease both; }
.ap-limits-panel p { margin: 0; }
.ap-limits-panel strong { color: #0F172A; font-weight: 700; }

.ap-float-file { position: absolute; left: -36px; top: 32%; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: #FFFFFF; border: 1px solid #E2E8F0; box-shadow: 0 16px 32px -16px rgba(15,23,42,.3); animation: apFloat 5s .4s ease-in-out infinite; }
.ap-float-file-badge { width: 32px; height: 32px; border-radius: 9px; background: #FEE2E2; color: #B91C1C; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ap-float-ready { position: absolute; right: -24px; bottom: 18%; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: #0F172A; color: #FFFFFF; font-size: 13px; font-weight: 600; box-shadow: 0 16px 32px -14px rgba(15,23,42,.6); animation: apFloat 6s 1.2s ease-in-out infinite; }
.ap-float-ready > span { width: 20px; height: 20px; border-radius: 50%; background: #22C55E; display: flex; align-items: center; justify-content: center; }

/* ============ FREE TOOLS BENTO ============ */
.ap-tools { background: #FFFFFF; border-top: 1px solid #EEF2F6; }
.ap-tools .ap-head-row { margin-bottom: 48px; }
.ap .ap-more { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.ap-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); grid-auto-rows: minmax(150px, auto); gap: 18px; }
.ap .ap-tool { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 22px; border: 1px solid #E2E8F0; background: #FFFFFF; color: #0F172A; }
.ap-tool-top { display: flex; align-items: center; justify-content: space-between; }
.ap-tool-icon { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.ap-tool-name { font-family: "Outfit", sans-serif; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.ap-tool-desc { font-size: 15px; line-height: 1.55; color: #475569; margin: 6px 0 0; }
.ap-tone-violet { background: #EEEAFD; color: #4A2BC9; }
.ap-tone-sky { background: #E0F2FE; color: #0369A1; }
.ap-tone-pink { background: #FCE7F3; color: #BE185D; }
.ap-tone-amber { background: #FEF3C7; color: #B45309; }
.ap-tone-green { background: #DCFCE7; color: #15803D; }
.ap .ap-tool-feature { grid-row: span 3; position: relative; overflow: hidden; gap: 0; padding: 28px; border-radius: 24px; background: linear-gradient(170deg, #F6F3FF 0%, #FFFFFF 55%); }
.ap-feature-icon { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(140deg, #7C5CFF, #4A2BC9); color: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px -10px rgba(84,52,212,.7); }
.ap-free-badge { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #166534; background: #DCFCE7; padding: 5px 10px; border-radius: 999px; }
.ap-feature-name { font-family: "Outfit", sans-serif; font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin-top: 22px; }
.ap-feature-desc { font-size: 16px; line-height: 1.6; color: #475569; margin: 8px 0 0; }
.ap-mock { margin-top: auto; padding-top: 28px; }
.ap-mock-window { border-radius: 16px; background: #FFFFFF; border: 1px solid #E2E8F0; box-shadow: 0 24px 40px -28px rgba(15,23,42,.4); overflow: hidden; }
.ap-mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #EEF2F6; background: #FBFBFE; }
.ap-mock-bar > i { width: 26px; height: 26px; border-radius: 7px; background: #F1F5F9; }
.ap-mock-bar > i:first-child { background: #EEEAFD; }
.ap-mock-export { margin-left: auto; height: 26px; padding: 0 10px; border-radius: 7px; background: #0F172A; color: #FFFFFF; font-size: 11px; font-weight: 600; display: flex; align-items: center; }
.ap-mock-body { display: flex; gap: 12px; padding: 14px; }
.ap-mock-thumbs { display: flex; flex-direction: column; gap: 8px; width: 46px; }
.ap-mock-thumbs > i { height: 58px; border-radius: 6px; border: 1px solid #E2E8F0; background: #F8FAFC; }
.ap-mock-thumbs > i:first-child { border: 2px solid #7C5CFF; background: #FFFFFF; }
.ap-mock-page { flex: 1; border-radius: 8px; border: 1px solid #EEF2F6; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ap-mock-stamp { align-self: flex-start; margin: 6px 0; padding: 6px 10px; border: 1.5px solid #7C5CFF; border-radius: 6px; background: rgba(124,92,255,.06); font-size: 12px; font-weight: 600; color: #4A2BC9; }
.ap .ap-tool-dark { justify-content: space-between; border-color: #1E293B; background: radial-gradient(120% 120% at 100% 0%, #3B2A8C 0%, #0F172A 60%); color: #FFFFFF; }
.ap .ap-tool-dark:hover { color: #FFFFFF; }
.ap-tool-dark .ap-tool-name { line-height: 1.3; }
.ap-tool-dark-cta { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #C4B5FD; }

/* ============ HOW IT WORKS ============ */
.ap-how { background: linear-gradient(180deg, #F8FAFC 0%, #F3F1FF 100%); }
.ap-how .ap-center-head { margin-bottom: 56px; }
.ap-steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.ap-steps::before { content: ""; position: absolute; top: 52px; left: 16%; right: 16%; border-top: 2px dashed #D4CCF7; }
.ap-step { position: relative; background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 24px; padding: 32px 28px; text-align: center; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.ap-step-num { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; background: linear-gradient(140deg, #7C5CFF, #4A2BC9); color: #FFFFFF; font-family: "Outfit", sans-serif; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px #FFFFFF, 0 0 0 9px #E4DEFC; }
.ap-step h3 { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 22px; letter-spacing: -.01em; margin: 24px 0 0; }
.ap-step p { font-size: 16px; line-height: 1.6; color: #475569; margin: 8px 0 0; }

/* ============ PRO TOOLS (tabs) ============ */
.ap-pro { background: #FFFFFF; }
.ap-pro .ap-head-row { gap: 24px; margin-bottom: 36px; }
.ap-pro-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.ap-pro-badge { font-size: 11px; letter-spacing: .04em; color: #FFFFFF; background: #0F172A; padding: 3px 8px; border-radius: 999px; }
.ap-segmented { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 16px; background: #F1F5F9; border: 1px solid #E2E8F0; margin: 0; min-width: 0; }
.ap-segmented legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ap-segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-seg { font-size: 15px; font-weight: 600; padding: 10px 16px; border-radius: 12px; background: transparent; color: #475569; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.ap-seg-count { font-size: 12px; font-weight: 700; color: #475569; background: #E2E8F0; padding: 2px 8px; border-radius: 999px; }
.ap-segmented input:checked + .ap-seg { background: #FFFFFF; color: #0F172A; box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 4px 12px -6px rgba(15,23,42,.2); }
.ap-segmented input:checked + .ap-seg .ap-seg-count { color: #FFFFFF; background: #4A2BC9; }
.ap-segmented input:focus-visible + .ap-seg { outline: 2px solid #5434D4; outline-offset: 2px; }
.ap-pro-panel { animation: apFadeUp .45s cubic-bezier(.2,.7,.2,1) both; }
.ap-pro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.ap .ap-pro-tool { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; border: 1px solid #E2E8F0; background: #FFFFFF; color: #0F172A; height: 100%; }
.ap-pro-tag { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.ap-pro-tag-from-pdf { background: #EEEAFD; color: #3B22A8; }
.ap-pro-tag-to-pdf { background: #E0F2FE; color: #075985; }
.ap-pro-tag-security, .ap-pro-tag-default { background: #FEF3C7; color: #92400E; }
.ap-pro-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ap-pro-name { font-size: 16px; font-weight: 600; }
.ap-pro-desc { font-size: 14px; line-height: 1.5; color: #64748B; margin-top: 2px; }
.ap-pro-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 18px 22px; border-radius: 16px; background: #F8FAFC; border: 1px solid #E2E8F0; }
.ap-pro-foot > span { font-size: 15px; color: #475569; display: flex; align-items: center; gap: 10px; }
.ap .ap-pro-foot a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }

/* ============ FILE HANDLING ============ */
.ap-files { position: relative; overflow: hidden; background: radial-gradient(60% 80% at 100% 0%, rgba(124,92,255,.28) 0%, rgba(124,92,255,0) 60%), radial-gradient(50% 60% at 0% 100%, rgba(59,130,246,.18) 0%, rgba(59,130,246,0) 60%), #0B1224; color: #FFFFFF; }
.ap-files-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 72px); align-items: center; }
.ap-files .ap-eyebrow { color: #C4B5FD; }
.ap-files-lede { font-size: 18px; line-height: 1.65; color: #CBD5E1; margin: 18px 0 0; }
.ap-files-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ap .ap-btn-light { font-size: 15px; font-weight: 600; color: #0F172A; background: #FFFFFF; padding: 12px 18px; border-radius: 12px; }
.ap .ap-btn-light:hover { color: #0F172A; }
.ap .ap-btn-outline { font-size: 15px; font-weight: 600; color: #E2E8F0; padding: 12px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); }
.ap .ap-btn-outline:hover { color: #FFFFFF; }
.ap-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.ap-fact { padding: 24px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.ap-fact h3 { font-size: 17px; font-weight: 600; margin: 14px 0 0; }
.ap-fact p { font-size: 14px; line-height: 1.6; color: #94A3B8; margin: 6px 0 0; }

/* ============ PRICING ============ */
.ap-pricing { background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%); }
.ap-pricing .ap-wrap { max-width: 1040px; }
.ap-cadence { display: inline-flex; border-radius: 14px; background: #EEF2F6; margin-top: 28px; }
.ap-cadence .ap-seg { padding: 10px 18px; border-radius: 10px; }
.ap-save { font-size: 12px; font-weight: 700; color: #166534; background: #DCFCE7; padding: 2px 7px; border-radius: 999px; margin-left: -2px; }
.ap-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; margin-top: 48px; align-items: stretch; }
.ap-plan { display: flex; flex-direction: column; padding: 36px; border-radius: 28px; background: #FFFFFF; border: 1px solid #E2E8F0; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.ap-plan h3 { font-family: "Outfit", sans-serif; font-size: 22px; font-weight: 600; margin: 0; }
.ap-plan-sub { font-size: 15px; color: #64748B; margin: 4px 0 0; }
.ap-plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 24px; }
.ap-plan-price strong { font-family: "Outfit", sans-serif; font-size: 56px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.ap-plan-price span { font-size: 17px; color: #94A3B8; }
.ap-plan-terms { font-size: 15px; color: #475569; margin: 10px 0 0; }
.ap-plan-features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; font-size: 16px; color: #1E293B; }
.ap-plan-features li { display: flex; gap: 12px; align-items: flex-start; }
.ap-plan-features svg { margin-top: 1px; }
.ap .ap-plan-free-cta { text-align: center; font-size: 16px; font-weight: 600; color: #0F172A; border: 1px solid #CBD5E1; border-radius: 14px; padding: 14px 20px; display: block; background: #F8FAFC; }
.ap-plan-free-cta-wrap { margin-top: 32px; }
.ap-plan-note { font-size: 13px; color: #64748B; text-align: center; margin: 12px 0 0; }
.ap-plan-pro { position: relative; background: radial-gradient(90% 70% at 100% 0%, rgba(124,92,255,.45) 0%, rgba(124,92,255,0) 60%), #0F172A; color: #FFFFFF; border: 1px solid #312E81; box-shadow: 0 40px 80px -40px rgba(52,30,160,.6); }
.ap-plan-pro-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ap-plan-pro-badge { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #0F172A; background: #C4B5FD; padding: 5px 10px; border-radius: 999px; }
.ap-plan-pro .ap-plan-sub { color: #94A3B8; }
.ap-plan-pro .ap-plan-terms { color: #CBD5E1; }
.ap-plan-pro .ap-plan-features { color: #E2E8F0; }
.ap-plan-pro .ap-plan-note { color: #94A3B8; }
.ap-plan-pro form { margin: 32px 0 0; }
.ap .ap-plan-pro-cta { width: 100%; text-align: center; font: inherit; font-size: 16px; font-weight: 600; color: #FFFFFF; background: #5434D4; border: 0; border-radius: 14px; padding: 15px 20px; display: block; box-shadow: 0 14px 28px -12px rgba(124,92,255,.8), inset 0 1px 0 rgba(255,255,255,.2); }
/* The checked cadence shows its price and checkout form; without :has() both stay visible. */
.ap-pricing:has(#ap-cadence-annual:checked) [data-cadence="monthly"],
.ap-pricing:has(#ap-cadence-monthly:checked) [data-cadence="annual"] { display: none; }

/* ============ FAQ ============ */
.ap-faq-section { background: #F8FAFC; border-top: 1px solid #EEF2F6; }
.ap-faq-inner { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 80px); }
.ap-faq-intro { flex: 1 1 300px; min-width: 0; }
.ap-faq-intro p { font-size: 17px; line-height: 1.6; color: #475569; margin: 16px 0 0; }
.ap .ap-faq-intro a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ap-faq-list { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ap-faq { border-radius: 20px; background: #FFFFFF; border: 1px solid #E2E8F0; transition: all .25s; }
.ap-faq[open] { border-color: #D9D1FB; box-shadow: 0 16px 36px -24px rgba(52,30,160,.35); }
.ap-faq > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: "Outfit", sans-serif; font-size: 18px; font-weight: 600; color: #0F172A; padding: 20px 22px; border-radius: 18px; cursor: pointer; transition: background .2s; }
.ap-faq > summary::-webkit-details-marker { display: none; }
.ap-faq-q { margin: 0; font: inherit; color: inherit; letter-spacing: inherit; }
.ap-faq > summary:hover { background: #F8F7FF; }
.ap-faq-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #F1F5F9; color: #334155; transform: rotate(0deg); transition: transform .3s, background .3s; }
.ap-faq[open] .ap-faq-icon { background: #4A2BC9; color: #FFFFFF; transform: rotate(45deg); }
.ap-faq > p { margin: 0; padding: 0 22px 22px; font-size: 16px; line-height: 1.7; color: #475569; animation: apReveal .3s ease both; }
.ap .ap-faq > p a { text-decoration: underline; text-underline-offset: 3px; }

/* ============ FINAL CTA ============ */
.ap-cta-section { padding: 0 0 clamp(72px, 9vw, 120px); background: #F8FAFC; }
.ap-cta { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); background: radial-gradient(60% 120% at 100% 0%, #8B5CF6 0%, rgba(139,92,246,0) 60%), radial-gradient(50% 100% at 0% 100%, #3B82F6 0%, rgba(59,130,246,0) 60%), #4A2BC9; color: #FFFFFF; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.ap-cta-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(60% 80% at 80% 50%, #000, transparent 75%); mask-image: radial-gradient(60% 80% at 80% 50%, #000, transparent 75%); }
.ap-cta-copy { position: relative; max-width: 580px; }
.ap-cta-copy h2 { font-family: "Outfit", sans-serif; font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.03em; margin: 0; }
.ap-cta-copy p { font-size: 18px; line-height: 1.6; color: #E0DAFF; margin: 14px 0 0; }
.ap .ap-cta-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: #3B22A8; background: #FFFFFF; padding: 16px 28px; border-radius: 14px; box-shadow: 0 16px 32px -14px rgba(15,23,42,.5); }

/* ============ FOOTER ============ */
.ap-foot { background: #0B1224; color: #CBD5E1; padding: 72px 0 36px; }
.ap-foot a, .ap-foot-link { color: #94A3B8; transition: color .15s; }
.ap-foot a:hover, .ap-foot-link:hover { color: #FFFFFF; }
.ap-foot-link { font: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.ap-foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 40px; }
.ap-foot-brand { grid-column: span 2; min-width: 0; }
.ap-foot .ap-brand, .ap-foot .ap-brand:hover { color: #FFFFFF; }
.ap-foot-brand .ap-brand-mark { box-shadow: none; }
.ap-foot-brand > p { font-size: 15px; line-height: 1.6; color: #94A3B8; margin: 16px 0 0; max-width: 340px; }
.ap-foot-status { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-size: 14px; color: #E2E8F0; }
.ap-foot-status > span { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; animation: apPulse 2.4s ease-in-out infinite; }
.ap-foot nav { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 15px; }
.ap-foot-heading { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #FFFFFF; margin: 0 0 4px; }
.ap-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; color: #94A3B8; }

/* Responsive and motion */
@media (max-width: 960px) {
  .ap-hide-md { display: none !important; }
  .ap-steps::before { display: none; }
  .ap-foot-brand { grid-row: auto; grid-column: auto; }
  /* The tall feature tile takes a row of its own, so it never stretches the tile beside it. */
  .ap .ap-tool-feature { grid-row: auto; grid-column: 1 / -1; }
}
@media (min-width: 641px) and (max-width: 960px) {
  .ap .ap-tool-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 32px; }
  .ap-tool-feature > .ap-tool-top, .ap-feature-name, .ap-feature-desc { grid-column: 1; }
  .ap-tool-feature > .ap-mock { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; padding-top: 0; align-self: center; }
}
@media (max-width: 640px) { .ap-hide-sm { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .ap *, .ap *::before, .ap *::after { animation: none !important; transition: none !important; }
}
