/* Gulla landing page (www). Plain HTML + CSS: no JavaScript, no external fonts or scripts,
   and no inline style attributes, so the Content-Security-Policy can be style-src 'self'. */
:root {
    --accent: #2563eb;       /* app accent */
    --accent-2: #3b82f6;
    --navy: #0f1e3d;
    --ink: #1c1f24;          /* app ink */
    --muted: #5b6472;
    --line: #e5e7eb;
    --bg: #ffffff;
    --tint: #f4f7fd;
    --open-bg: #e0ecff;   --open-fg: #2563eb;
    --waiting-bg: #fff4d6; --waiting-fg: #a16207;
    --done-bg: #eef0f2;   --done-fg: #4b5563;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(15, 30, 61, .06), 0 8px 24px rgba(15, 30, 61, .08);
    --shadow-lg: 0 24px 60px rgba(15, 30, 61, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1.02rem;
    text-decoration: none; border: 2px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--accent); box-shadow: 0 8px 20px rgba(15, 30, 61, .25); }
.btn-solid { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .3); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }

/* ---------------------------------------------------------------- nav */
.nav {
    position: sticky; top: 0; z-index: 10;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; }
.brand img { display: block; width: 34px; height: 34px; border-radius: 9px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav nav a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- hero */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(255, 255, 255, .18), transparent 60%),
        radial-gradient(800px 400px at -10% 110%, rgba(56, 189, 248, .25), transparent 60%),
        linear-gradient(160deg, #1d4ed8 0%, var(--accent) 50%, #4f8ff7 100%);
    padding: 72px 0 104px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.tagline {
    display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .92rem;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); margin-bottom: 22px;
}
.hero h1 { color: #fff; }
.hero .accent {
    background: linear-gradient(90deg, #fde68a, #fbbf24 50%, #fb923c);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 1.2rem; max-width: 34em; color: rgba(255, 255, 255, .92); margin: 18px 0 28px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.fine { margin-top: 18px; font-size: .9rem; color: rgba(255, 255, 255, .8); }

/* Product picture: a conversation's threads, with floating cards */
.hero-visual { position: relative; }
.device {
    background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); color: var(--ink);
    transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
.device-bar {
    display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line);
    font-size: .8rem; color: var(--muted);
}
.device-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e5e7eb; }
.device-bar span:nth-child(1) { background: #fca5a5; }
.device-bar span:nth-child(2) { background: #fcd34d; }
.device-bar span:nth-child(3) { background: #86efac; }
.device-bar b { margin-left: 10px; font-weight: 600; }
.device-body { padding: 16px 18px 20px; display: grid; gap: 10px; }
.mock-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mock-head strong { font-size: 1.1rem; }
.mock-head span { color: var(--muted); font-size: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.fchip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.fchip small { color: var(--muted); font-weight: 600; margin-left: 2px; }
.fchip.on small { color: #d1d5db; }
.tcard { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; font-size: .85rem; }
.tcard-top { display: flex; align-items: center; gap: 8px; }
.tcard-top b { flex: 1; }
.tcard-top time { color: var(--muted); font-size: .75rem; }
.tcard-last { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard-meta { color: var(--muted); font-size: .75rem; }
.chip { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.chip.open { background: var(--open-bg); color: var(--open-fg); }
.chip.waiting { background: var(--waiting-bg); color: var(--waiting-fg); }
.chip.done { background: var(--done-bg); color: var(--done-fg); }
.badge { background: var(--accent); color: #fff; border-radius: 999px; font-size: .7rem; font-weight: 800; padding: 1px 7px; }
.decision { font-size: .78rem; background: var(--open-bg); color: var(--accent); border-radius: 8px; padding: 3px 8px; }

.float-card {
    position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
    padding: 12px 14px; font-size: .82rem; color: var(--ink);
}
.float-card.shelf { left: -34px; bottom: -48px; width: 250px; }
.float-card.push { right: -26px; top: 40px; width: 230px; }
.fc-title { font-weight: 800; font-size: .9rem; margin-bottom: 6px; }
.fc-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.fc-tabs span { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: var(--muted); }
.fc-tabs span.on { background: var(--ink); color: #fff; }
.fc-month { margin-top: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fc-file { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid #f1f5f9; }
.fc-file:first-of-type { border-top: none; }
.fc-file i { flex: none; width: 26px; height: 26px; border-radius: 6px; background: var(--open-bg); color: var(--accent); font-style: normal; font-size: .6rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.fc-file.old { opacity: .5; }
.fc-file small { display: block; color: var(--muted); font-size: .7rem; }
.push-app { display: flex; align-items: center; gap: 8px; font-size: .72rem; color: var(--muted); margin-bottom: 4px; }
.push-app img { width: 18px; height: 18px; border-radius: 5px; }
.push-title { font-weight: 800; }

/* ---------------------------------------------------------------- values strip */
.values { background: var(--navy); color: #fff; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.values-grid > div { padding: 26px 18px; border-left: 1px solid rgba(255, 255, 255, .12); display: grid; }
.values-grid > div:first-child { border-left: none; }
.values-grid strong { font-size: 1.25rem; color: #93c5fd; }
.values-grid span { color: rgba(255, 255, 255, .8); font-size: .95rem; }

/* ---------------------------------------------------------------- sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.section-lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; margin-bottom: 44px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15, 30, 61, .12); }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }
.icon {
    width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); margin-bottom: 16px;
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Icon colors as classes (no inline styles) */
.c-blue { --c: #2563eb; } .c-amber { --c: #d97706; } .c-green { --c: #16a34a; } .c-purple { --c: #9333ea; }
.c-teal { --c: #0f766e; } .c-pink { --c: #db2777; } .c-cyan { --c: #0891b2; } .c-indigo { --c: #4f46e5; }
.c-orange { --c: #ea580c; } .c-rose { --c: #e11d48; } .c-lime { --c: #65a30d; } .c-slate { --c: #475569; }
.c-sky { --c: #0284c7; } .c-violet { --c: #7c3aed; } .c-emerald { --c: #059669; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.steps p { color: var(--muted); margin: 0; }
.step-n {
    display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1d4ed8, var(--accent-2)); color: #fff; font-weight: 800; margin-bottom: 14px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split p { color: var(--muted); font-size: 1.08rem; }
.split p.eyebrow { color: var(--accent); font-size: .8rem; }
.split.flip > :last-child { order: -1; }
.note { font-size: .85rem !important; margin: 18px 0 0; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; font-weight: 600; }
.checks li::before {
    content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
    background: #dcfce7 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12.5l4 4 8-9' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat;
}

/* Spotlight cards */
.card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 22px; display: grid; gap: 12px; }

/* Thread view picture */
.msg { max-width: 82%; display: grid; gap: 3px; }
.msg.mine { margin-left: auto; justify-items: end; }
.msg small { color: var(--muted); font-size: .72rem; }
.bubble { border-radius: 16px; padding: 8px 12px; background: #f1f3f5; font-size: .92rem; }
.msg.mine .bubble { background: var(--accent); color: #fff; }
.mention { font-weight: 700; color: var(--accent); }
.msg.mine .mention { color: #fff; text-decoration: underline; }
.reacts { display: flex; gap: 4px; }
.reacts span { font-size: .75rem; border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; background: #fff; }
.reacts span.mine { border-color: #93b4f5; background: var(--open-bg); }
.forked { font-size: .75rem; color: var(--muted); }
.forked b { color: var(--accent); }

/* Groups & labels picture */
.lrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #f1f5f9; }
.lrow:first-of-type { border-top: none; }
.lav {
    flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--open-bg); color: var(--accent); font-size: .68rem; font-weight: 800;
}
.lmain { flex: 1; min-width: 0; display: grid; font-size: .9rem; }
.lmain small { color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ltags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ltags i { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.gcard { border: 1px solid #bfd3fb; background: #f7faff; border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; margin-top: 4px; }
.gcard-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gcard-top span { color: var(--muted); font-size: .78rem; }
.gcard-people { display: flex; align-items: center; gap: 4px; }
.gcard-people .lav { width: 26px; height: 26px; font-size: .6rem; background: #fff; border: 1px solid #bfd3fb; }
.gcard-people small { color: var(--muted); font-size: .75rem; margin-left: 2px; }
.gcard-note { font-size: .78rem; color: var(--muted); }

/* Search picture */
.searchbox { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.searchbox svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.result { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 3px; font-size: .9rem; }
.result mark { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 1px; }
.result small { color: var(--muted); font-size: .75rem; }
.kind { justify-self: start; font-size: .68rem; font-weight: 800; border-radius: 999px; padding: 1px 8px; background: var(--done-bg); color: var(--done-fg); }
.kind.decision { background: var(--open-bg); color: var(--accent); }
.kind.file { background: var(--waiting-bg); color: var(--waiting-fg); }

/* Notifications picture */
.phone-push { background: #0f172a; color: #e2e8f0; border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; font-size: .88rem; }
.phone-push .push-app { color: #94a3b8; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #f1f5f9; font-size: .92rem; }
.setting:first-of-type { border-top: none; }
.toggle { width: 38px; height: 22px; border-radius: 999px; background: #cbd5e1; position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.toggle.on { background: var(--accent); }
.toggle.on::after { left: 19px; }

/* ---------------------------------------------------------------- security */
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.security-grid div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.security-grid p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------------------------------------------------------------- final CTA */
.final {
    color: #fff; text-align: center; padding: 88px 0;
    background: radial-gradient(700px 300px at 50% 0%, rgba(255, 255, 255, .2), transparent 70%), linear-gradient(160deg, #1d4ed8, var(--accent-2));
}
.final.full { min-height: 100vh; display: flex; align-items: center; }
.final-inner { display: grid; justify-items: center; gap: 6px; }
.final img { border-radius: 24px; box-shadow: 0 12px 30px rgba(0, 0, 0, .28); margin-bottom: 12px; }
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, .9); font-size: 1.12rem; margin-bottom: 22px; }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer .brand { font-size: 1rem; }
.footer .brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer .spacer { flex: 1; }
.footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .security-grid { grid-template-columns: repeat(2, 1fr); }
    .nav nav { gap: 14px; }
    .nav nav a { font-size: .88rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 80px; }
    .device { transform: none; }
    .float-card.shelf { left: 10px; }
    .float-card.push { right: 10px; }
}
@media (max-width: 760px) {
    .nav nav { display: none; }
    .nav-inner { justify-content: space-between; }
    .hero { padding: 48px 0 96px; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid > div:nth-child(3) { border-left: none; }
    .values-grid > div { border-top: 1px solid rgba(255, 255, 255, .12); }
    .steps, .split, .security-grid { grid-template-columns: 1fr; }
    .split.flip > :last-child { order: 0; }
    .section { padding: 64px 0; }
    .float-card { font-size: .76rem; }
    .float-card.shelf { width: 210px; bottom: -64px; }
    .float-card.push { width: 190px; top: 30px; }
}
@media (max-width: 520px) {
    .features { grid-template-columns: 1fr; }
    .float-card.push { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .feature { transition: none; }
}
