/* ==========================================================================
   Kantrix — Business Tools Suite
   ========================================================================== */

:root {
    --purple: #7c3aed;
    --purple-600: #6d28d9;
    --purple-700: #5b21b6;
    --purple-900: #2e1065;
    --purple-100: #f1e9ff;
    --purple-050: #faf7ff;
    --ink: #17102b;
    --muted: #5d5577;
    --line: #ebe3fa;
    --white: #fff;
    --radius-lg: 22px;
    --radius: 16px;
    --radius-sm: 11px;
    --shadow-sm: 0 8px 24px -18px rgba(46, 16, 101, .5);
    --shadow: 0 26px 60px -34px rgba(46, 16, 101, .55);
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --container: 1180px;
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
    outline: 3px solid rgba(124, 58, 237, .55);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 22px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--purple-900);
    color: #fff;
    border-radius: 8px;
    transition: top .2s ease;
}
.skip-link:focus { top: 14px; }

.ico { width: 20px; height: 20px; flex: 0 0 auto; }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 650;
    cursor: pointer;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
    white-space: nowrap;
}
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-ico { width: 18px; height: 18px; }

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, var(--purple-600));
    color: #fff;
    box-shadow: 0 12px 26px -14px rgba(109, 40, 217, .8);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(109, 40, 217, .9); }

.btn-outline {
    background: #fff;
    color: var(--purple-700);
    border-color: #dccdf8;
}
.btn-outline:hover { border-color: var(--purple); background: var(--purple-050); }

.btn-ghost { background: #fff; color: var(--ink); border-color: #e2d9f4; }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple-700); }

.btn-light { background: #fff; color: var(--purple-700); }
.btn-light:hover { background: #f6f0ff; transform: translateY(-1px); }

/* ---------- Header ------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
    border-color: var(--line);
    box-shadow: 0 12px 30px -26px rgba(46, 16, 101, .7);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-logo { height: 54px; width: auto; max-width: 260px; object-fit: contain; display: block; }
.brand-logo--sm { height: 48px; max-width: 240px; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto; }
.brand-mark--sm { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .01em; }

.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    border: 0;
    background: transparent;
    border-radius: 999px;
    font-size: .94rem;
    font-weight: 550;
    color: #2b2344;
    cursor: pointer;
}
.nav-link:hover { color: var(--purple-700); background: var(--purple-050); }
.nav-link.is-active {
    background: var(--purple-700);
    color: #fff;
    font-weight: 650;
}
.nav-link.is-active:hover { background: var(--purple-900); color: #fff; }
.nav-caret { width: 15px; height: 15px; opacity: .8; }

.has-menu { position: relative; }
.submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 232px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-menu:hover .submenu,
.has-menu:focus-within .submenu,
.has-menu.is-open .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.submenu a,
.submenu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border: 0;
    background: none;
    border-radius: 9px;
    font-size: .9rem;
    color: #322a4d;
    cursor: pointer;
}
.submenu a:hover,
.submenu button:hover { background: var(--purple-050); color: var(--purple-700); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.nav-actions-mobile { display: none; }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--purple-700);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before { content: ""; top: -6px; }
.nav-toggle-bars::after { content: ""; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- Hero -------------------------------------------------------- */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 0 0;
    overflow: hidden;
    background:
        radial-gradient(62% 58% at 88% 16%, rgba(167, 139, 250, .19) 0%, rgba(237, 228, 255, .07) 52%, rgba(255, 255, 255, 0) 78%),
        radial-gradient(48% 64% at 8% 48%, rgba(139, 92, 246, .15) 0%, rgba(244, 236, 255, .06) 50%, rgba(255, 255, 255, 0) 78%),
        linear-gradient(180deg, #faf7ff 0%, #ffffff 54%, #f6f0ff 100%);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(rgba(124, 58, 237, .14) 1.25px, transparent 1.25px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 88% 76% at 50% 44%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 88% 76% at 50% 44%, #000 30%, transparent 100%);
    pointer-events: none;
}
.hero > .container {
    position: relative;
    z-index: 1;
    max-width: 1220px;
    margin-block: 0;
    padding-block: 14px 16px;
}
.hero-glow {
    display: none;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .84fr) minmax(0, 1.26fr);
    gap: 18px;
    align-items: center;
}
.hero-copy { max-width: 485px; padding: 12px 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    color: #3b2f5c;
    box-shadow: var(--shadow-sm);
}
.eyebrow .dot-sep { color: #b6a9d4; }
.eyebrow .heart { color: var(--purple); }

.hero-title {
    margin: 0 0 20px;
    font-size: clamp(2.25rem, 3.9vw, 3.55rem);
    line-height: 1.06;
    letter-spacing: -.035em;
    font-weight: 800;
}
.accent {
    color: var(--purple);
    background-image: linear-gradient(90deg, #a78bfa, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title .accent { position: relative; display: inline-block; }
.hero-title .accent::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: -.16em;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #c4b5fd, #7c3aed);
    opacity: .55;
}

.hero-text { color: #4c4469; font-size: 1.1rem; line-height: 1.65; max-width: 505px; }

.hero-cta-group {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-top: 26px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }

.hero-byline {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 7px;
    margin-top: 18px;
    padding: 9px 17px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    font-size: .86rem;
    color: var(--muted);
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.hero-byline strong { color: var(--ink); font-weight: 700; }
.byline-ico { width: 14px; height: 14px; color: var(--purple-700); transition: transform .16s ease; }
.hero-byline:hover { border-color: #d3bffb; color: var(--purple-700); }
.hero-byline:hover strong { color: var(--purple-700); }
.hero-byline:hover .byline-ico { transform: translate(1px, -1px); }
.hero-byline .dot-sep { color: #b6a9d4; }
.hero-byline .heart { color: var(--purple); font-size: .98rem; line-height: 1; }

/* ---------- Hero visual ------------------------------------------------- */
.hero-media { position: relative; padding: 0; align-self: center; display: flex; flex-direction: column; align-items: center; }
.hero-visual { width: calc(100% + 26px); max-width: 785px; margin: 0 0 0 -26px; }
.hero-visual-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: transparent;
    border: 0;
    box-shadow: none;
    filter: none;
}
.hero-connect {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    flex-wrap: wrap;
    width: min(calc(100% + 26px), 685px);
    margin: -6px 0 0 -26px;
    padding: 11px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #dfd3fa;
    box-shadow: 0 12px 28px -20px rgba(46, 16, 101, .45);
}
.hero-connect-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--purple-100);
    color: var(--purple-700);
    font-size: .75rem;
    font-weight: 750;
    white-space: nowrap;
}
.hero-connect-copy {
    font-size: .84rem;
    color: var(--muted);
    line-height: 1.4;
}
.hero-connect-copy strong { color: var(--ink); font-weight: 700; }
.hero-connect-copy em { font-style: normal; color: var(--purple-700); }
.hero-divider {
    position: relative;
    height: 26px;
    margin-top: 0;
    background: linear-gradient(180deg, #f6f0ff 0%, #fcfaff 56%, #ffffff 100%);
    pointer-events: none;
}

.laptop { position: relative; }
.laptop-screen {
    position: relative;
    border: 9px solid #221a35;
    border-bottom-width: 12px;
    border-radius: 16px 16px 6px 6px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 40px 70px -40px rgba(46, 16, 101, .6);
}
.laptop-base {
    height: 12px;
    margin: 0 -18px;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(180deg, #d9d2e8, #b7aec9);
    box-shadow: 0 12px 22px -14px rgba(46, 16, 101, .6);
}

.app { display: grid; grid-template-columns: 118px minmax(0, 1fr); min-height: 300px; font-size: 11px; }
.app-side {
    background: #fbf9ff;
    border-right: 1px solid #efe8fb;
    padding: 11px 9px;
}
.app-brand {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 800;
    font-size: 11px;
    margin-bottom: 14px;
    color: var(--purple-900);
}
.app-brand-mark {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 5px;
    background: var(--purple);
    color: #fff;
    font-size: 9px;
}
.app-nav { display: grid; gap: 2px; }
.app-nav li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px;
    border-radius: 6px;
    color: #6a6188;
    font-size: 9.5px;
}
.app-nav .ico { width: 11px; height: 11px; }
.app-nav .is-active { background: var(--purple); color: #fff; font-weight: 600; }

.app-main { padding: 10px 14px 14px; background: #fff; min-width: 0; }
.app-top { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.app-bell { width: 12px; height: 12px; color: #8b82a6; }
.app-avatar {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--purple);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}
.app-welcome { font-size: 15px; font-weight: 750; letter-spacing: -.02em; margin-top: 2px; }
.app-sub { font-size: 9px; color: #8b82a6; margin-top: 1px; }

.app-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 10px 0 12px; }
.app-stat {
    border: 1px solid #f0eafc;
    border-radius: 8px;
    padding: 7px 8px 8px;
    background: #fff;
    box-shadow: 0 4px 10px -9px rgba(46, 16, 101, .6);
}
.app-stat small { display: block; font-size: 8px; color: #8b82a6; }
.app-stat b { display: block; font-size: 13px; letter-spacing: -.02em; margin: 1px 0; }
.app-stat em { font-style: normal; font-size: 7.5px; font-weight: 700; color: #15803d; }

.app-label { font-size: 9px; font-weight: 750; margin-bottom: 6px; }
.app-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.app-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px 6px;
    border: 1px solid #f0eafc;
    border-radius: 8px;
    font-size: 7.5px;
    text-align: center;
    color: #3b3355;
    min-width: 0;
}
.app-tool span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.app-tool-ico {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--purple-100);
    color: var(--purple-700);
}
.app-tool-ico .ico { width: 12px; height: 12px; }
.app-tool .ok {
    font-style: normal;
    color: #15803d;
    background: #e7f8ed;
    border-radius: 5px;
    padding: 0 4px;
    font-size: 6.5px;
    font-weight: 700;
}
.app-tool--add { border-style: dashed; color: #8b82a6; justify-content: center; }
.app-plus { font-size: 14px; line-height: 1; color: #a99fc2; }

.phone {
    position: absolute;
    right: -6px;
    bottom: -14px;
    width: 27%;
    max-width: 158px;
    padding: 7px;
    border-radius: 20px;
    background: #1d1630;
    box-shadow: 0 30px 50px -26px rgba(46, 16, 101, .8), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.phone-notch {
    width: 34%;
    height: 4px;
    border-radius: 99px;
    background: #3d3357;
    margin: 0 auto 5px;
}
.phone-head {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 4px 5px;
    color: #fff;
    font-size: 9px;
    font-weight: 650;
}
.phone-cover { border-radius: 7px; overflow: hidden; }
.phone-cover img { width: 100%; height: 74px; object-fit: cover; }
.phone-body { background: #fff; border-radius: 7px; padding: 7px 7px 8px; margin-top: 5px; }
.phone-menu-title { font-size: 8.5px; font-weight: 750; margin-bottom: 4px; }
.phone-menu { display: grid; gap: 4px; }
.phone-menu li {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 7.5px;
    color: #4a4266;
    padding-bottom: 3px;
    border-bottom: 1px solid #f2edfb;
}
.phone-menu li:last-child { border-bottom: 0; padding-bottom: 0; }
.phone-bar {
    width: 36%;
    height: 3px;
    border-radius: 99px;
    background: #5b5178;
    margin: 6px auto 2px;
}

.spark {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, .55), rgba(167, 139, 250, 0) 70%);
    pointer-events: none;
}
.spark--1 { top: -4px; left: 4%; }
.spark--2 { bottom: 18%; left: -20px; width: 62px; height: 62px; }

/* ---------- Sections ---------------------------------------------------- */
.section { padding: 72px 0; }
.tools { padding-top: 72px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--purple-100);
    color: var(--purple-700);
    font-size: .82rem;
    font-weight: 650;
    letter-spacing: .01em;
}
.badge--light { background: #fff; color: var(--purple-700); }

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.15;
    letter-spacing: -.03em;
    font-weight: 800;
    margin-top: 14px;
}
.section-sub { margin-top: 10px; color: var(--muted); font-size: 1rem; }

/* ---------- Tools ------------------------------------------------------- */
.tools { background: linear-gradient(180deg, #fff, #fdfbff); }
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: 18px;
}
.tool-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tool-card:hover {
    transform: translateY(-3px);
    border-color: #d9c8f8;
    box-shadow: 0 24px 44px -30px rgba(76, 29, 149, .65);
}
.tool-ico {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--purple-100);
    color: var(--purple-700);
    margin-bottom: 13px;
}
.tool-ico .ico { width: 23px; height: 23px; }
.tool-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.tool-desc { color: var(--muted); font-size: .92rem; margin-top: 6px; flex: 1; }
.tool-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.tool-tag {
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--purple-100);
    color: var(--purple-700);
    font-size: .75rem;
    font-weight: 650;
}
.tool-arrow {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #faf6ff;
    color: var(--purple-700);
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}
.tool-arrow .ico { width: 16px; height: 16px; }
.tool-arrow:hover { background: var(--purple); color: #fff; transform: translateX(2px); }
.tool-card--cta { background: linear-gradient(160deg, #fbf7ff, #f4ecff); border-style: dashed; }

/* ---------- How it works ------------------------------------------------ */
.how { padding-top: 0; }
.how-card {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 2fr);
    gap: 26px;
    align-items: center;
    padding: 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, #f7f1ff, #f1e8ff 55%, #faf6ff);
    border: 1px solid #efe4ff;
}
.how-copy .section-title { margin-top: 12px; }
.how-copy .section-sub { font-size: .95rem; max-width: 250px; }

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.step { flex: 1 1 0; text-align: center; min-width: 0; }
.step-ico {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #fff;
    color: var(--purple-700);
    box-shadow: 0 12px 26px -18px rgba(76, 29, 149, .9);
}
.step-ico .ico { width: 25px; height: 25px; }
.step-title { font-size: 1rem; font-weight: 750; }
.step-desc { font-size: .87rem; color: var(--muted); margin-top: 4px; }
.step-arrow {
    align-self: flex-start;
    margin-top: 20px;
    color: var(--purple);
    opacity: .65;
}
.step-arrow .ico { width: 20px; height: 20px; }

/* ---------- Pricing ----------------------------------------------------- */
.pricing { background: #fdfbff; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(244px, 1fr));
    gap: 18px;
    align-items: stretch;
}
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.plan.is-featured {
    border: 2px solid var(--purple);
    box-shadow: 0 30px 60px -34px rgba(109, 40, 217, .7);
}
.popular {
    position: absolute;
    top: -14px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #422006;
    font-size: .75rem;
    font-weight: 750;
    box-shadow: 0 10px 20px -12px rgba(180, 83, 9, .9);
}
.popular .ico { width: 13px; height: 13px; }

.plan-head { display: flex; align-items: flex-start; gap: 11px; }
.plan-ico {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--purple-100);
    color: var(--purple-700);
    flex: 0 0 auto;
}
.plan-ico .ico { width: 20px; height: 20px; }
.plan-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.plan-name { font-size: 1.12rem; font-weight: 750; letter-spacing: -.02em; }
.plan-save {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: .71rem;
    font-weight: 750;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.plan-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 7px;
    margin-top: 6px;
}
.plan-old-price {
    font-size: .92rem;
    font-weight: 650;
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}
.plan-price {
    font-size: 1.56rem;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.15;
}
.plan-price span { font-size: .82rem; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.plan-effective {
    margin-top: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--purple-700);
}

.plan-blurb { color: var(--muted); font-size: .9rem; margin: 12px 0 16px; }

.plan-features { display: grid; gap: 10px; margin-bottom: 22px; flex: 1; }
.plan-features li { display: flex; gap: 9px; align-items: flex-start; font-size: .89rem; }
.ico-check { width: 17px; height: 17px; color: #16a34a; margin-top: 2px; }

.plan-cta { margin-top: auto; }
.pricing-more {
    margin-top: 24px;
    text-align: center;
}

/* ---------- Trust ------------------------------------------------------- */
.trust { padding: 34px 0; background: #fff; border-block: 1px solid var(--line); }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 22px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item strong { display: block; font-size: .95rem; }
.trust-item small { display: block; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.trust-ico {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--purple-100);
    color: var(--purple-700);
    flex: 0 0 auto;
}

/* ---------- CTA --------------------------------------------------------- */
.cta-wrap { padding: 40px 0 64px; }
.cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
    padding: 38px 42px;
    border-radius: var(--radius-lg);
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(70% 120% at 100% 0%, rgba(167, 139, 250, .55), rgba(167, 139, 250, 0) 60%),
        radial-gradient(60% 140% at 0% 100%, rgba(139, 92, 246, .5), rgba(139, 92, 246, 0) 65%),
        linear-gradient(120deg, #2e1065, #5b21b6 60%, #4c1d95);
}
.cta-copy { max-width: 620px; }
.cta-title { font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 800; letter-spacing: -.025em; }
.cta-text { margin-top: 8px; color: #ddd0f7; font-size: .95rem; }

/* ---------- Footer ------------------------------------------------------ */
.site-footer { background: #fbf9ff; border-top: 1px solid var(--line); padding-top: 52px; }
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .8fr));
    gap: 30px;
    padding-bottom: 36px;
}
.footer-note { color: var(--muted); font-size: .89rem; margin-top: 14px; max-width: 320px; }
.footer-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; color: #8b82a6; margin-bottom: 12px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a,
.link-button {
    border: 0;
    background: none;
    padding: 0;
    font-size: .9rem;
    color: #3a3253;
    cursor: pointer;
    text-align: left;
}
.footer-col a:hover,
.link-button:hover { color: var(--purple-700); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 18px 22px;
    border-top: 1px solid var(--line);
    font-size: .85rem;
    color: var(--muted);
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a,
.footer-legal .link-button { font-size: .85rem; }

/* ---------- Modal ------------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 16, 43, .55);
    backdrop-filter: blur(3px);
}
.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 80px -40px rgba(23, 16, 43, .7);
    transform: translateY(12px) scale(.99);
    transition: transform .22s ease;
}
.modal.is-open .modal-dialog { transform: none; }
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: #6b6285;
    cursor: pointer;
}
.modal-close:hover { background: var(--purple-050); color: var(--purple-700); }
.modal-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em; margin-top: 12px; }
.modal-sub { color: var(--muted); font-size: .93rem; margin-top: 8px; }

body.has-modal { overflow: hidden; }

/* ---------- Forms ------------------------------------------------------- */
.sales-form { display: grid; gap: 14px; margin-top: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .87rem; font-weight: 650; color: #2d2550; }
.field .optional { font-weight: 500; color: #8b82a6; }
.field input,
.field textarea {
    width: 100%;
    padding: 11px 13px;
    font: inherit;
    font-size: .93rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid #dfd6f2;
    border-radius: 10px;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .18);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #dc2626; }
.field-error { font-size: .8rem; color: #b91c1c; }
.field--check { margin-top: 2px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: .83rem; color: var(--muted); font-weight: 500; line-height: 1.45; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--purple); flex: 0 0 auto; }

.hp-field {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.form-alert {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: .89rem;
}
.form-alert .ico { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.form-alert--ok { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.form-alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.form-note { font-size: .82rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--purple-700); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 1080px) {
    .hero { padding-top: 16px; }
    .hero-grid { grid-template-columns: 1fr; gap: 0; justify-items: stretch; }
    .hero-copy,
    .hero-cta-group { display: contents; }
    .hero-title { order: 1; width: 100%; max-width: 600px; margin-inline: auto; text-align: center; }
    .hero-text { order: 2; width: 100%; max-width: 560px; margin-inline: auto; text-align: center; }
    .hero-media { order: 3; max-width: 580px; width: 100%; margin-inline: auto; align-items: center; }
    .hero-visual { width: 100%; margin: -8px 0 0; }
    .hero-connect { width: 100%; max-width: 560px; justify-content: center; margin: -2px auto 0; text-align: center; background: #fff; border-color: #dfd3fa; }
    .hero-actions { order: 4; width: 100%; justify-content: center; margin: 18px auto 6px; }
    .hero-byline { order: 5; margin: 8px auto 2px; justify-content: center; font-size: .8rem; padding: 6px 13px; }
    .how-card { grid-template-columns: 1fr; padding: 30px; }
    .how-copy { text-align: center; }
    .how-copy .section-sub { max-width: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 0 22px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px -30px rgba(46, 16, 101, .7);
        display: none;
    }
    .site-nav.is-open { display: block; }
    .header-inner { position: relative; flex-wrap: wrap; }
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 14px 0 18px;
    }
    .nav-link { width: 100%; justify-content: space-between; padding: 11px 12px; }
    .has-menu .submenu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--purple-100);
        border-radius: 0;
        margin: 2px 0 6px 12px;
        padding: 0 0 0 6px;
    }
    .has-menu.is-open .submenu { display: grid; }
    .header-actions { display: none; }
    .site-nav .nav-actions-mobile { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 18px; }
    .nav-actions-mobile .btn { padding: 12px 18px; }
}

@media (max-width: 720px) {
    .hero { min-height: calc(100vh - 60px); min-height: calc(100svh - 60px); display: flex; flex-direction: column; justify-content: space-between; padding-top: 22px; }
    .hero > .container { flex: 1; display: flex; flex-direction: column; margin-block: 0; padding-block: 6px 8px; }
    .hero-grid { flex: 1; display: flex; flex-direction: column; align-items: stretch; }
    .hero-br-desktop { display: none; }
    .hero-title { font-size: clamp(1.26rem, 5.45vw, 1.98rem); line-height: 1.18; margin: 4px auto 10px; text-align: center; }
    .hero-title .accent { font-size: 1.14em; }
    .hero-text { display: block; font-size: .92rem; line-height: 1.5; margin-bottom: 12px; text-align: center; }
    .hero-media { margin-top: 6px; }
    .hero-visual { margin-top: 4px; }
    .hero-visual-img { max-height: 270px; width: auto; max-width: 100%; margin-inline: auto; }
    .hero-actions { margin-top: 14px; padding-top: 0; margin-bottom: 4px; }
    .section { padding: 52px 0; }
    .tools { padding-top: 26px; }
    .hero-divider { height: 20px; margin-top: 0; flex-shrink: 0; }
    .how-card { padding: 26px 20px; }
    .steps { flex-direction: column; align-items: center; gap: 16px; }
    .step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; max-width: 280px; }
    .step-ico { width: 52px; height: 52px; margin: 0 0 4px; }
    .step-arrow { transform: rotate(90deg); align-self: center; margin: 0; }
    .plan.is-featured { order: -1; }
    .cta { padding: 30px 22px; justify-content: center; text-align: center; }
    .cta-copy { text-align: center; }
    .cta .btn { width: 100%; }
    .trust-item { flex-direction: column; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .modal-dialog { padding: 24px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .footer-brand, .footer-note { margin-inline: auto; }
    .footer-brand .brand { justify-content: center; }
    .footer-col a, .link-button { text-align: center; }
    .footer-bottom { justify-content: center; text-align: center; }
    .footer-legal { justify-content: center; }
    .app { grid-template-columns: 92px minmax(0, 1fr); min-height: 250px; }
    .app-side { padding: 9px 7px; }
    .app-nav li { font-size: 8.5px; padding: 4px; }
    .app-welcome { font-size: 13px; }
    .app-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .phone { width: 32%; bottom: -10px; right: -2px; }
}

@media (max-width: 540px) {
    .header-inner { min-height: 58px; }
    .hero { min-height: calc(100vh - 58px); min-height: calc(100svh - 58px); padding-top: 20px; }
    .hero-title { font-size: clamp(1.24rem, 5.4vw, 1.64rem); line-height: 1.18; margin: 4px auto 8px; }
    .hero-text { font-size: .89rem; line-height: 1.48; margin-bottom: 10px; }
    .hero-visual { margin-top: 4px; }
    .hero-visual-img { max-height: 235px; }
    .hero-connect { margin-top: -2px; padding: 9px 12px; gap: 5px 10px; }
    .hero-connect-copy { font-size: .79rem; }
    .hero-actions { display: flex; flex-wrap: nowrap; justify-content: center; gap: 6px; max-width: 420px; margin: 12px auto 4px; padding-top: 0; }
    .hero-actions .btn { flex: 1 1 auto; width: auto; min-width: 0; padding: 11px 12px; font-size: clamp(.76rem, 3.35vw, .88rem); gap: 5px; }
    .hero-actions .btn-ico { width: 15px; height: 15px; }
    .app { font-size: 10px; grid-template-columns: 1fr; }
    .app-side { display: none; }
    .phone { width: 36%; }
    .laptop-screen { border-width: 6px; border-bottom-width: 8px; }
    .brand-logo { height: 44px; max-width: 210px; }
    .brand-logo--sm { height: 42px; }
    .brand-text strong { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
