/* ==========================================================================
   OmniWork — Stripe-inspired design system
   Hand-authored CSS (no build step). Palette & motion echo stripe.com:
   blurple primary, deep-navy ink, soft gradients, angled section dividers.
   ========================================================================== */

:root {
    --blurple: #635bff;
    --blurple-dark: #4b45c6;
    --cyan: #21d4fd;
    --navy: #0a2540;
    --navy-soft: #1a2b48;
    --slate: #425466;
    --muted: #697386;
    --line: #e6ebf1;
    --bg: #ffffff;
    --bg-alt: #f6f9fc;
    --white: #ffffff;
    --green: #15be53;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 5px -1px rgba(50, 50, 93, .15), 0 1px 3px -1px rgba(0, 0, 0, .2);
    --shadow: 0 13px 27px -5px rgba(50, 50, 93, .18), 0 8px 16px -8px rgba(0, 0, 0, .2);
    --shadow-lg: 0 30px 60px -12px rgba(50, 50, 93, .25), 0 18px 36px -18px rgba(0, 0, 0, .3);

    --container: 1180px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font);
    color: var(--navy);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
a { color: var(--blurple); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blurple-dark); }
img, svg { display: block; max-width: 100%; }

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

/* ---- Buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: 15px; line-height: 1;
    padding: 12px 20px; border-radius: 999px;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    white-space: nowrap;
}
.btn-arrow .arrow,
.btn-arrow::after { content: "→"; transition: transform .18s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-primary { background: var(--blurple); color: #fff; box-shadow: 0 4px 14px rgba(99, 91, 255, .35); }
.btn-primary:hover { background: var(--blurple-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(99, 91, 255, .42); }
.btn-ghost { color: var(--navy); background: transparent; }
.btn-ghost:hover { color: var(--blurple); }
.btn-light { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--navy); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-google {
    background: #fff; color: #3c4043; border: 1px solid #dadce0;
    box-shadow: var(--shadow-sm); font-weight: 600;
}
.btn-google:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: #3c4043; }

/* ---- Header --------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.nav { display: flex; align-items: center; height: 68px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-name { font-size: 19px; letter-spacing: -0.02em; }
.brand-mark { display: inline-flex; }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { color: var(--slate); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--blurple); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ---- Hero (the Stripe angled gradient) ------------------------------------ */
.hero {
    position: relative;
    padding: 96px 0 200px;
    overflow: hidden;
    background: var(--navy);
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute; inset: -10% -20% 0 -20%;
    background:
        radial-gradient(60% 70% at 75% 5%, rgba(33, 212, 253, .55) 0%, rgba(33, 212, 253, 0) 55%),
        radial-gradient(55% 65% at 18% 0%, rgba(255, 122, 198, .50) 0%, rgba(255, 122, 198, 0) 55%),
        radial-gradient(80% 90% at 50% -10%, rgba(99, 91, 255, .85) 0%, rgba(99, 91, 255, 0) 60%),
        linear-gradient(180deg, #4f9bff 0%, #635bff 38%, #0a2540 92%);
    transform: skewY(-7deg);
    transform-origin: top left;
    z-index: -1;
}
.hero-inner { max-width: 760px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: #cfe1ff; background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 {
    color: #fff; font-size: clamp(40px, 6vw, 68px); font-weight: 800;
    letter-spacing: -0.035em;
}
.hero h1 .grad {
    background: linear-gradient(90deg, #21d4fd, #b692ff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: #c4d0e3; font-size: clamp(18px, 2.4vw, 22px); margin-top: 22px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { margin-top: 30px; color: #93a4c1; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.hero-trust svg { flex: none; }

/* App mockup floating in the hero */
.hero-mock {
    position: absolute; right: max(24px, calc((100vw - var(--container)) / 2 + 24px));
    top: 120px; width: 420px; max-width: 42vw;
    border-radius: var(--radius-lg);
    background: #fff; box-shadow: var(--shadow-lg);
    overflow: hidden; z-index: 2; display: none;
}
@media (min-width: 1080px) { .hero-mock { display: block; } }
.mock-bar { display: flex; gap: 6px; padding: 13px 16px; background: #f1f4f9; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #d3dae3; }
.mock-bar span:nth-child(1){ background:#ff5f57;} .mock-bar span:nth-child(2){ background:#febc2e;} .mock-bar span:nth-child(3){ background:#28c840;}
.mock-body { display: grid; grid-template-columns: 96px 1fr; min-height: 250px; }
.mock-side { background: #fafbfd; border-right: 1px solid var(--line); padding: 14px 12px; }
.mock-side .pill { height: 9px; border-radius: 6px; background: #e6ebf1; margin-bottom: 11px; }
.mock-side .pill.active { background: var(--blurple); width: 70%; }
.mock-list { padding: 14px 16px; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f3f7; }
.mock-row . av { width: 26px; height: 26px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--cyan), var(--blurple)); }
.mock-row .ln { flex: 1; }
.mock-row .ln b { display: block; height: 8px; width: 55%; border-radius: 5px; background: #cfd7e3; margin-bottom: 6px; }
.mock-row .ln i { display: block; height: 7px; width: 80%; border-radius: 5px; background: #e9edf3; }
.mock-row .chk { width: 16px; height: 16px; border-radius: 5px; border: 2px solid #d3dae3; flex: none; }
.mock-row.done .chk { background: var(--green); border-color: var(--green); }
.mock-row.done .ln b { background: #e3e8ef; }

/* ---- Logos / proof strip -------------------------------------------------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-alt { background: var(--bg-alt); }
.proof { margin-top: -120px; position: relative; z-index: 3; }
.proof-card {
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 34px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat .num { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(90deg, var(--blurple), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---- Section headers ------------------------------------------------------ */
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head .kicker { color: var(--blurple); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 12px; }
.section-head p { color: var(--slate); font-size: 18px; margin-top: 16px; }

/* ---- Feature grid --------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature .ic {
    width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(33,212,253,.16), rgba(99,91,255,.16)); margin-bottom: 18px;
}
.feature h3 { font-size: 20px; }
.feature p { color: var(--slate); margin-top: 10px; font-size: 15.5px; }

/* ---- Split / alternating showcase ---------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.reverse .split-media { order: -1; }
.split-copy .kicker { color: var(--blurple); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.split-copy h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 12px; }
.split-copy p { color: var(--slate); font-size: 17px; margin-top: 16px; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--navy); font-weight: 500; }
.checklist li svg { flex: none; margin-top: 2px; }
.split-media {
    border-radius: var(--radius-lg); padding: 28px;
    background: linear-gradient(135deg, #eef2ff 0%, #e6f8ff 100%);
    box-shadow: var(--shadow);
}
.media-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }

/* generic inbox/todo preview inside split-media */
.ui-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f0f3f7; }
.ui-row:last-child { border-bottom: 0; }
.ui-av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; background: linear-gradient(135deg, var(--cyan), var(--blurple)); }
.ui-av.alt { background: linear-gradient(135deg, #ff9a8b, #ff6a88); }
.ui-av.alt2 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.ui-main { flex: 1; min-width: 0; }
.ui-main .t { font-weight: 600; font-size: 14.5px; color: var(--navy); }
.ui-main .s { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-time { font-size: 12px; color: var(--muted); flex: none; }
.ui-check { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #d3dae3; flex: none; display: grid; place-items: center; }
.ui-check.on { background: var(--green); border-color: var(--green); }
.ui-row.done .ui-main .t { color: var(--muted); text-decoration: line-through; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.tag.high { background: #ffe9ec; color: #e0245e; }
.tag.med { background: #eef0ff; color: var(--blurple); }

/* ---- Security band -------------------------------------------------------- */
.security {
    background: var(--navy);
    color: #cdd9ec;
    border-radius: 28px;
    padding: 64px;
    position: relative; overflow: hidden;
}
.security::after {
    content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(99,91,255,.55), transparent 70%); pointer-events: none;
}
.security h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); max-width: 620px; }
.security > .lead { font-size: 18px; margin-top: 16px; max-width: 620px; }
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; position: relative; z-index: 1; }
.sec-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); padding: 24px; }
.sec-card h3 { color: #fff; font-size: 17px; margin: 14px 0 8px; }
.sec-card p { font-size: 14.5px; color: #aebbd2; }
.sec-ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(33,212,253,.16); display: grid; place-items: center; }

/* ---- CTA ------------------------------------------------------------------ */
.cta { text-align: center; padding: 92px 0; }
.cta h2 { font-size: clamp(30px, 4.4vw, 48px); }
.cta p { color: var(--slate); font-size: 19px; margin: 16px auto 0; max-width: 560px; }
.cta .hero-actions { justify-content: center; }
.cta .note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #9fb0cc; padding: 72px 0 36px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.10); }
.brand--light, .brand--light:hover { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 240px; font-size: 14.5px; color: #8095b4; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col a { display: block; color: #9fb0cc; font-size: 15px; margin-bottom: 11px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 14px; color: #7388a8; }
.footer-bottom-links a { color: #9fb0cc; margin-left: 18px; }
.footer-bottom-links a:hover { color: #fff; }

/* ---- Legal / document pages ----------------------------------------------- */
.doc-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 72px 0 48px; }
.doc-hero .eyebrow { color: var(--blurple); background: rgba(99,91,255,.08); border-color: rgba(99,91,255,.18); }
.doc-hero h1 { font-size: clamp(32px, 5vw, 50px); color: var(--navy); margin-top: 18px; }
.doc-hero .updated { color: var(--muted); margin-top: 14px; font-size: 15px; }
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 60px 0 90px; }
.doc-toc { position: sticky; top: 96px; align-self: start; }
.doc-toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.doc-toc a { display: block; color: var(--slate); font-size: 14.5px; padding: 6px 0; border-left: 2px solid transparent; padding-left: 14px; margin-left: -2px; }
.doc-toc a:hover { color: var(--blurple); border-color: var(--blurple); }
.doc-body { max-width: 720px; }
.doc-body h2 { font-size: 24px; margin: 44px 0 14px; scroll-margin-top: 96px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 18px; margin: 26px 0 10px; }
.doc-body p { color: var(--slate); margin: 0 0 16px; font-size: 16px; }
.doc-body ul { color: var(--slate); padding-left: 22px; margin: 0 0 16px; }
.doc-body li { margin-bottom: 9px; }
.doc-body a { font-weight: 500; }
.doc-body strong { color: var(--navy); }
.callout {
    background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--blurple);
    border-radius: var(--radius-sm); padding: 18px 22px; margin: 22px 0;
}
.callout p { margin: 0; font-size: 15px; }
.callout strong { color: var(--navy); }

/* ---- Support page --------------------------------------------------------- */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 12px; }
.support-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.support-card h3 { font-size: 19px; margin-bottom: 8px; }
.support-card p { color: var(--slate); font-size: 15px; margin-bottom: 16px; }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 920px) {
    .features, .security-grid, .support-grid { grid-template-columns: 1fr 1fr; }
    .proof-card { grid-template-columns: 1fr 1fr; gap: 28px; }
    .split, .split.reverse .split-media { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .doc-layout { grid-template-columns: 1fr; gap: 0; }
    .doc-toc { display: none; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .features, .security-grid, .support-grid, .proof-card, .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 64px 0 150px; }
    .security { padding: 40px 26px; border-radius: 20px; }
    .footer-bottom { flex-direction: column; gap: 12px; }
}
