/* Fytally marketing site. One stylesheet, no framework. Palette follows the Fytally app (indigo -> cyan),
   darkened where text sits on it so white-on-brand and brand-on-white both pass WCAG AA. */
:root {
  --brand: #4f46e5;        /* indigo 600: buttons, links (white on it 6.3:1; on white 6.3:1) */
  --brand-deep: #4338ca;
  --brand-2: #0e7490;      /* cyan 700: second accent (on white 5.4:1) */
  --brand-soft: #eef2ff;
  --cyan-soft: #ecfeff;
  --hero-a: #a5b4fc;       /* gradient phrase on the dark hero */
  --hero-b: #67e8f9;
  --ink: #0f172a;
  --text: #334155;
  --muted: #526071;
  --line: #e2e8f0;
  --tint: #f6f7fb;
  --night: #0b1023;
  --night-2: #141a3a;
  --warn: #b45309;
  --ok: #047857;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px rgba(15, 23, 42, .08);
  --shadow-lg: 0 30px 80px rgba(8, 12, 40, .35);
  --wrap: 1160px;
  --header-h: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #818cf8; outline-offset: 2px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.hdr__in { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__name b { color: var(--brand); font-weight: 800; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); text-decoration: none; }
.nav .nav__login { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .35); }
.btn--primary:hover { color: #fff; box-shadow: 0 10px 24px rgba(79, 70, 229, .45); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.btn--white { background: #fff; color: var(--brand-deep); }
.btn--white:hover { color: var(--brand-deep); }
.btn--outline { border-color: #c7d2fe; color: var(--brand-deep); background: #fff; }
.nav .btn--primary { color: #fff; height: 42px; min-height: 42px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.burger svg { width: 22px; height: 22px; color: var(--ink); }
@media (max-width: 960px) {
  :root { --header-h: 60px; }
  .burger { display: inline-flex; }
  .nav { display: none; position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; overflow-y: auto; border-top: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn--primary { margin-top: 18px; height: 50px; border-bottom: 0; }
  body.menu-open { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: radial-gradient(1000px 500px at 15% -10%, rgba(99, 102, 241, .45), transparent 60%), radial-gradient(900px 500px at 100% 10%, rgba(6, 182, 212, .28), transparent 60%), linear-gradient(180deg, var(--night), var(--night-2)); color: #cbd5e1; text-align: center; padding: 40px 0 0; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: var(--tint); }
.hero .wrap { position: relative; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #e0e7ff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--hero-b); box-shadow: 0 0 0 4px rgba(103, 232, 249, .2); }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; margin: 16px auto 12px; max-width: 900px; }
.grad { background: linear-gradient(90deg, var(--hero-a), var(--hero-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 18px; max-width: 840px; margin: 0 auto 22px; color: #cbd5e1; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.chips { list-style: none; padding: 0; margin: 18px auto 24px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips li { font-size: 14px; color: #e2e8f0; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.chips b { color: #fff; }
.frame { border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(15, 23, 42, .12); }
.frame__bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.frame__bar i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.frame__bar span { margin-left: 10px; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 12px; }
.hero .frame { max-width: 1100px; margin: 0 auto; }
.demo-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; position: relative; z-index: 1; }

/* ---------- sections ---------- */
.sec { padding: 88px 0; }
.sec--tint { background: var(--tint); }
.sec--tight { padding-top: 40px; }
.sec__head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.sec__head p { font-size: 18px; color: var(--muted); margin: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.split--rev .split__media { order: -1; }
.split + .split { margin-top: 72px; }
.split__text h3 { font-size: 26px; }
.split__text > p { color: var(--muted); font-size: 17px; }
.shot { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot figcaption, .cap { font-size: 13px; color: var(--muted); margin-top: 10px; }
figure { margin: 0; }

/* feature list: icon tile + title + line; no boxes */
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.feats--2 { grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.feats--3 { grid-template-columns: repeat(3, 1fr); gap: 34px 36px; }
.feat { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.feat h4 { font-size: 16px; margin: 2px 0 4px; letter-spacing: -.01em; }
.feat p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }
.tile { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.tile svg { width: 20px; height: 20px; }
.tile--cyan { background: var(--cyan-soft); color: var(--brand-2); }
.more { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* accent cards: small parallel sets */
.acards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.acards--4 { grid-template-columns: repeat(4, 1fr); }
.acard { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c, var(--brand)); border-radius: 12px; padding: 24px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); display: flex; flex-direction: column; }
.acard__lbl { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--brand)); margin-bottom: 8px; }
.acard h3 { font-size: 19px; margin-bottom: 8px; }
.acard p { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.acard__eg { margin-top: auto; font-size: 13px; color: var(--ink); background: var(--tint); border-radius: 8px; padding: 8px 12px; }
.c-brand { --c: var(--brand); }
.c-cyan { --c: var(--brand-2); }
.c-slate { --c: #475569; }
.c-warm { --c: var(--warn); }

/* CTA band */
.band { border-radius: 20px; padding: 44px 48px; background: radial-gradient(600px 300px at 0% 0%, rgba(165, 180, 252, .35), transparent 60%), linear-gradient(120deg, var(--brand-deep), #3730a3 45%, #155e75); color: #e0e7ff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; }
.band p { margin: 0; font-size: 17px; }

/* page hero (inner pages) */
.phero { background: linear-gradient(180deg, var(--night), var(--night-2)); color: #cbd5e1; padding: 64px 0 56px; text-align: center; }
.phero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 50px); font-weight: 800; margin: 12px 0 10px; }
.phero p { font-size: 18px; max-width: 680px; margin: 0 auto; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 19px; margin-top: 1.4em; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 22px; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
input, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); border: 1px solid #cbd5e1; border-radius: 10px; padding: 11px 14px; background: #fff; min-height: 46px; }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .18); }
textarea { min-height: 150px; resize: vertical; }
.status { font-size: 14px; margin: 0; min-height: 1.4em; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.facts li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.facts b { display: block; color: var(--ink); }

/* footer */
.ftr { background: var(--night); color: #a7b1c5; padding: 56px 0 28px; font-size: 15px; }
.ftr a { color: #dbe2f0; }
.ftr a:hover { color: #fff; }
.news { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 26px 30px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: rgba(255, 255, 255, .03); margin-bottom: 48px; }
.news h2 { color: #fff; font-size: 20px; margin: 0 0 4px; letter-spacing: -.01em; }
.news p { margin: 0; }
.news form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.news input { width: 280px; max-width: 100%; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #fff; }
.news input::placeholder { color: #94a3b8; }
.news .status { flex-basis: 100%; color: #cbd5e1; }
.ftr__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.ftr h3 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 14px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ftr .brand { color: #fff; margin-bottom: 12px; }
.ftr .brand__name b { color: #a5b4fc; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.social svg { width: 18px; height: 18px; fill: #dbe2f0; }
.ftr__base { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* cookie notice */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(15, 23, 42, .22); padding: 16px 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.cookie p { margin: 0; flex: 1 1 320px; }
.cookie__act { display: flex; gap: 8px; }
.cookie .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
.cookie[hidden] { display: none; }

@media (max-width: 960px) {
  .split, .split--rev, .contact { grid-template-columns: 1fr; gap: 32px; }
  .split--rev .split__media { order: 0; }
  .feats--3, .acards, .acards--4 { grid-template-columns: 1fr 1fr; }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .sec { padding: 60px 0; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 40px; }
  .hero .lede, .sec__head p, .phero p { font-size: 17px; }
  .feats--2, .feats--3, .acards, .acards--4, .form { grid-template-columns: 1fr; }
  .band { padding: 30px 24px; }
  .ftr__cols { grid-template-columns: 1fr; }
  .frame__bar span { display: none; }
  .card { padding: 22px; }
  .news input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }
.feats--below { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.brand { min-height: 44px; }
.acard__eg { display: flex; align-items: center; min-height: 40px; }
a.acard__eg:hover { text-decoration: none; background: var(--brand-soft); }
