/* Crewniq marketing site. Colours come from the logo: sky blue through royal
   blue to violet, on navy ink. */
:root {
  --ink: #0b1730;
  --ink-2: #43506c;
  --ink-3: #6c7791;
  --line: #e2e7f1;
  --bg: #ffffff;
  --soft: #f4f7fd;
  --sky: #0aa8ff;
  --blue: #2a5cf0;
  --violet: #8b3ff0;
  --grad: linear-gradient(115deg, var(--sky), var(--blue) 48%, var(--violet));
  --good: #0a8f5b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 23, 48, .06), 0 12px 32px -12px rgba(11, 23, 48, .18);
  --shadow-lg: 0 2px 4px rgba(11, 23, 48, .06), 0 40px 80px -30px rgba(42, 92, 240, .35);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); }
.muted { color: var(--ink-3); }
.center { text-align: center; }

/* --- Buttons ----------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: #fff; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--grad); background-size: 140% 100%; border-color: transparent; color: #fff; box-shadow: 0 10px 24px -10px rgba(42, 92, 240, .7); }
.btn.primary:hover { background-position: 100% 0; }
.btn.sm { padding: 9px 16px; font-size: .95rem; border-radius: 10px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--blue); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.center .row, .row.center { justify-content: center; }

/* --- Header ------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(226, 231, 241, .8); }
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.word { font-size: 1.32rem; font-weight: 750; letter-spacing: -.03em; }
.word b { color: var(--violet); font-weight: inherit; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-gap { flex: 1; }
.nav-link { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .98rem; padding: 8px 12px; border-radius: 9px; }
.nav-link:hover { color: var(--ink); background: var(--soft); }
.nav-link[aria-current=page] { color: var(--blue); }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 11px 10px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; flex-direction: column; align-items: stretch; gap: 2px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav-link { padding: 12px; font-size: 1.05rem; }
  .nav .btn { margin-top: 8px; }
}

/* --- Hero -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 0; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 760px; background: radial-gradient(48% 55% at 30% 30%, rgba(10, 168, 255, .16), transparent 70%), radial-gradient(42% 50% at 72% 22%, rgba(139, 63, 240, .15), transparent 70%); pointer-events: none; }
.hero > * { position: relative; }
.hero h1 { max-width: 15ch; margin-inline: auto; }
.hero .lead { max-width: 60ch; margin: 22px auto 30px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border: 1px solid var(--line); background: #fff; border-radius: 99px; font-size: .9rem; font-weight: 600; color: var(--ink-2); margin-bottom: 26px; box-shadow: 0 1px 2px rgba(11, 23, 48, .05); }
.pill i { background: var(--grad); color: #fff; font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; }
.under-cta { margin-top: 14px; font-size: .92rem; color: var(--ink-3); }
.hero-shot { margin: clamp(40px, 6vw, 70px) auto -1px; width: min(1120px, 100% - 32px); }

/* --- Screens in a browser frame ---------------------------------------------------- */
.frame { border-radius: 14px; background: #fff; border: 1px solid #d5dcea; box-shadow: var(--shadow-lg); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f1f4fa; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd6e4; }
.frame-bar span { margin-left: 12px; font-size: .74rem; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 12px; }
.frame img { width: 100%; }
.hero-shot .frame { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.phone { width: min(280px, 70%); border-radius: 34px; border: 8px solid #0b1730; box-shadow: var(--shadow-lg); overflow: hidden; background: #fff; }

/* --- Sections ---------------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.soft { background: var(--soft); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head p { margin-top: 16px; }

.strip { border-block: 1px solid var(--line); background: #fff; }
.strip-in { display: grid; grid-template-columns: repeat(5, 1fr); }
.strip a { padding: 22px 16px; text-decoration: none; color: var(--ink); border-left: 1px solid var(--line); display: grid; gap: 2px; }
.strip a:first-child { border-left: 0; }
.strip a:hover { background: var(--soft); }
.strip b { font-size: 1.02rem; }
.strip span { font-size: .88rem; color: var(--ink-3); }
@media (max-width: 860px) { .strip-in { grid-template-columns: repeat(2, 1fr); } .strip a { border-left: 0; border-top: 1px solid var(--line); } .strip a:nth-child(-n+2) { border-top: 0; } .strip a:nth-child(even) { border-left: 1px solid var(--line); } }

/* Feature picker on the home page */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.tabs [role=tab] { border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-weight: 600; font-size: .98rem; padding: 10px 18px; border-radius: 99px; cursor: pointer; }
.tabs [role=tab]:hover { color: var(--ink); border-color: #c9d2e4; }
.tabs [role=tab][aria-selected=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.025em; }
.split p { color: var(--ink-2); margin-top: 14px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.ticks li b { color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); }
.ticks li::after { content: ""; position: absolute; left: 6.5px; top: 9px; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split.flip > :first-child { order: 0; } }
.stack > * + * { margin-top: clamp(64px, 9vw, 110px); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p, .card li { color: var(--ink-2); font-size: .98rem; }
.card ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.card .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; margin-bottom: 16px; color: var(--blue); }
.card .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) { .cards, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards, .cards.two, .cards.four { grid-template-columns: minmax(0, 1fr); } }

/* A quote-like example of the product explaining itself */
.why { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; max-width: 520px; }
.why .ln { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.why .ln:last-of-type { border-bottom: 0; }
.why .ln u { text-decoration: underline dotted; text-underline-offset: 4px; }
.why .because { margin: 2px 0 8px; padding: 10px 14px; background: var(--soft); border-left: 3px solid var(--blue); border-radius: 0 10px 10px 0; font-size: .93rem; color: var(--ink-2); }

/* Call to action band */
.cta { margin: 0 auto; text-align: center; background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(44px, 7vw, 80px) 24px; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 15% 0%, rgba(10, 168, 255, .35), transparent 70%), radial-gradient(50% 80% at 90% 100%, rgba(139, 63, 240, .4), transparent 70%); }
.cta > * { position: relative; }
.cta p { color: #c6d0e6; max-width: 54ch; margin: 16px auto 28px; }
.cta .btn { border-color: transparent; }
.cta .btn.plain { background: rgba(255, 255, 255, .1); color: #fff; }

/* --- Features page ------------------------------------------------------------------ */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 44px); text-align: center; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: -60% -10% auto; height: 560px; background: radial-gradient(45% 55% at 30% 40%, rgba(10, 168, 255, .13), transparent 70%), radial-gradient(40% 50% at 72% 30%, rgba(139, 63, 240, .12), transparent 70%); pointer-events: none; }
.page-head > * { position: relative; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 20ch; margin-inline: auto; }
.page-head .lead { max-width: 62ch; margin: 18px auto 0; }
.jump { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.jump a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: #fff; }
.jump a:hover { color: var(--ink); border-color: #c9d2e4; }
.group { padding: clamp(48px, 7vw, 84px) 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.group-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 60px); align-items: center; margin-bottom: 36px; }
.group-head p { color: var(--ink-2); margin-top: 12px; }
@media (max-width: 900px) { .group-head { grid-template-columns: minmax(0, 1fr); } }
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.feat > div { background: #fff; padding: 22px 24px; }
.feat h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feat p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) { .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feat { grid-template-columns: minmax(0, 1fr); } }

/* --- Pricing ------------------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin: 0 auto; }
.plan { border: 1px solid var(--line); border-radius: 22px; padding: 32px; background: #fff; display: flex; flex-direction: column; }
.plan.best { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: var(--shadow-lg); }
.plan .price { font-size: 3rem; font-weight: 750; letter-spacing: -.04em; line-height: 1; margin: 16px 0 6px; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan .ticks { margin: 22px 0 28px; flex: 1; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 650; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding: 0 0 20px; max-width: 68ch; }

/* --- Long text pages (privacy, terms, security detail) -------------------------------- */
.prose { padding-bottom: clamp(56px, 8vw, 96px); }
.prose h2 { font-size: 1.45rem; margin: 44px 0 12px; }
.prose h3 { margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.prose .note { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 20px 0; font-size: .96rem; }

/* --- Footer ------------------------------------------------------------------------ */
.foot { border-top: 1px solid var(--line); background: var(--soft); margin-top: clamp(56px, 8vw, 96px); padding-top: 56px; }
.foot-in { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-weight: 700; }
.foot nav { display: grid; gap: 9px; align-content: start; }
.foot nav a { color: var(--ink-2); text-decoration: none; font-size: .96rem; }
.foot nav a:hover { color: var(--blue); }
.foot-brand p { color: var(--ink-3); margin-top: 12px; max-width: 30ch; font-size: .96rem; }
.foot-end { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; margin-top: 44px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .9rem; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* --- Reveal on scroll ---------------------------------------------------------------- */
/* (Scroll reveal is defined with the rest of the motion below.) */
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .btn { transition: none; } }

/* --- How to use --------------------------------------------------------------------- */
.guide-search { max-width: 560px; margin: 28px auto 0; }
.guide-search input { width: 100%; font: inherit; font-size: 1.05rem; padding: 15px 18px 15px 48px; border-radius: 14px; border: 1px solid #cfd7e6; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236c7791' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='M14 14l4 4'/%3E%3C/svg%3E") no-repeat 16px center; box-shadow: var(--shadow); }
.guide-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42, 92, 240, .15); }
.guides { padding-bottom: 24px; }
.guide-chapter { padding: 40px 0 8px; scroll-margin-top: 80px; }
.chapter-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.chapter-num { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 750; display: grid; place-items: center; font-size: 1.1rem; }
.chapter-head h2 { font-size: 1.5rem; }
.chapter-head p { color: var(--ink-2); margin-top: 4px; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.guide-card:hover { border-color: #b9c6e2; box-shadow: var(--shadow); transform: translateY(-1px); }
.guide-num { flex: none; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--blue); min-width: 2.2em; padding-top: 1px; }
.guide-body { display: grid; gap: 3px; flex: 1; min-width: 0; }
.guide-body span { color: var(--ink-2); font-size: .95rem; }
.who { flex: none; font-size: .74rem; font-weight: 700; letter-spacing: .03em; padding: 3px 10px; border-radius: 99px; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.who-hr { background: #efe8fd; color: #5b2bb5; }
.who-managers { background: #e3f3ff; color: #0b6aa8; }
.who-everyone { background: #e6f6ee; color: #0a7a4d; }
@media (max-width: 760px) { .guide-list { grid-template-columns: minmax(0, 1fr); } .guide-card .who { display: none; } }

.guide-page { padding: clamp(36px, 5vw, 56px) 0 0; }
.crumb { display: flex; gap: 8px; font-size: .92rem; color: var(--ink-3); margin-bottom: 18px; }
.crumb a { color: var(--ink-2); text-decoration: none; }
.crumb a:hover { color: var(--blue); }
.guide-head { max-width: 760px; margin-bottom: 30px; }
.guide-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.guide-head .lead { margin-top: 14px; }
.guide-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.guide-shot { position: sticky; top: 92px; }
.guide-video { width: 100%; border-radius: 14px; margin-bottom: 24px; background: #000; aspect-ratio: 16 / 9; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: minmax(0, 1fr); } .guide-shot { position: static; } }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 4px; }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 52px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); font-weight: 750; display: grid; place-items: center; font-size: .95rem; }
.steps b { color: var(--ink); font-weight: 650; }
.tip { margin-top: 18px; background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--violet); border-radius: 10px; padding: 14px 16px; color: var(--ink-2); font-size: .96rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: clamp(48px, 7vw, 72px) 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: grid; gap: 2px; text-decoration: none; color: var(--ink); font-weight: 650; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; }
.pager a:hover { border-color: #b9c6e2; }
.pager a span { font-size: .8rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.pager .nx { text-align: right; grid-column: 2; }

/* --- Contact ----------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 56px); align-items: start; padding-bottom: clamp(40px, 6vw, 72px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form label small { font-weight: 400; color: var(--ink-3); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 10px; border: 1px solid #cfd7e6; background: #fff; color: var(--ink); width: 100%; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42, 92, 240, .15); }
.form .hp { position: absolute; left: -9999px; }
.form-msg { padding: 14px 16px; border-radius: 12px; font-size: .96rem; }
.form-msg.ok { background: #e6f6ee; color: #0a6b44; }
.form-msg.bad { background: #fdecec; color: #a8261f; }
.side-list { display: grid; gap: 14px; }

/* --- Security ---------------------------------------------------------------------- */
.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .sec-grid { grid-template-columns: minmax(0, 1fr); } }

/* --- 404 --------------------------------------------------------------------------- */
.lost { text-align: center; padding: clamp(80px, 12vw, 140px) 0 clamp(40px, 6vw, 80px); }
.lost .big { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }

/* ===================================================================================
   Motion. Everything below stays still for people who ask their device for less motion.
   =================================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(4%, 3%, 0) scale(1.06); } 100% { transform: translate3d(-3%, 1%, 0) scale(.98); } }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes chip-in { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(42, 92, 240, .35); } 100% { box-shadow: 0 0 0 10px rgba(42, 92, 240, 0); } }

/* Hero: words arrive one after another, the background drifts, the headline shimmers. */
.hero .pill, .hero h1, .hero .lead, .hero .row, .hero .under-cta, .page-head > .wrap > *, .page-head > .narrow > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1, .page-head h1 { animation-delay: .08s; }
.hero .lead, .page-head .lead { animation-delay: .16s; }
.hero .row, .page-head .jump, .page-head .guide-search { animation-delay: .24s; }
.hero .under-cta { animation-delay: .32s; }
.hero::before, .page-head::before { animation: drift 18s ease-in-out infinite alternate; }
.grad-text { background-size: 200% 100%; animation: shimmer 6s ease-in-out infinite alternate; }

/* Hero screenshot: arrives tilted back and settles flat as the page scrolls. */
.hero-shot { position: relative; perspective: 1800px; }
.hero-shot .frame { transform-origin: 50% 0; transform: rotateX(var(--tilt, 0deg)) translateY(var(--lift, 0px)) scale(var(--scale, 1)); will-change: transform; animation: fade 1s .35s both; }
html.js .hero-shot .frame { --tilt: 12deg; --lift: 28px; --scale: .965; }

/* Notification cards floating around the hero screenshot. */
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 12px 12px; box-shadow: 0 18px 40px -16px rgba(11, 23, 48, .35); text-align: left; font-size: .92rem; animation: chip-in .8s cubic-bezier(.2, .7, .2, 1) both, float 7s ease-in-out infinite; }
.chip b { display: block; color: var(--ink); font-weight: 650; }
.chip small { display: block; color: var(--ink-3); font-size: .8rem; }
.chip-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; }
.chip-ico.ok { background: linear-gradient(135deg, #18b47a, #0a8f5b); }
.chip-ico.pay { background: var(--grad); }
.chip-ico.due { background: linear-gradient(135deg, #ffb547, #f08a24); }
.chip-a { left: -28px; top: 18%; animation-delay: 1s, 1.8s; }
.chip-b { right: -34px; top: 38%; animation-delay: 1.25s, 2.4s; animation-duration: .8s, 8s; }
.chip-c { left: 7%; bottom: 10%; animation-delay: 1.5s, 3s; animation-duration: .8s, 9s; }
@media (max-width: 1220px) { .chip-a { left: 10px; } .chip-b { right: 10px; } }
@media (max-width: 860px) { .chip { display: none; } }

/* Numbers band */
.numbers { border-bottom: 1px solid var(--line); }
.numbers-in { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 34px 0; gap: 16px; }
.numbers b { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.numbers span { display: block; margin-top: 8px; color: var(--ink-3); font-size: .95rem; }
@media (max-width: 760px) { .numbers-in { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }

/* Scroll reveal: sections, cards and list items rise in, one after another. */
html.js :is(.reveal, .section-head, .split > *, .card, .feat > div, .group-head > *, .plan, .faq details, .guide-card, .chapter-head, .cta, .steps li, .ticks li, .tip, .pager, .numbers-in > div, .strip a, .prose > *, .form, .side-list > *, .foot-in > *):not(.in) { opacity: 0; transform: translateY(22px); }
html.js :is(.reveal, .section-head, .split > *, .card, .feat > div, .group-head > *, .plan, .faq details, .guide-card, .chapter-head, .cta, .steps li, .ticks li, .tip, .pager, .numbers-in > div, .strip a, .prose > *, .form, .side-list > *, .foot-in > *) { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .15s, border-color .15s; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
/* Once something has risen into place, hover effects go back to their own quick timing. */
html.js .in.settled { transition: transform .25s, box-shadow .25s, border-color .25s, background .2s, color .2s; transition-delay: 0s; }

/* Feature tabs: the chosen panel slides in, and a bar shows when the next one comes. */
[role=tabpanel].enter > * { animation: rise .55s cubic-bezier(.2, .7, .2, 1) both; }
[role=tabpanel].enter > *:nth-child(2) { animation-delay: .08s; }
.tabs [role=tab] { position: relative; overflow: hidden; transition: background .2s, color .2s, border-color .2s; }
.tabs.auto [role=tab][aria-selected=true]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); transform-origin: 0 50%; animation: fill var(--every, 7s) linear both; }

/* The payslip example opens its explanations one by one, as if each line were clicked. */
html.js .why .because { max-height: 0; opacity: 0; margin-block: 0; padding-block: 0; overflow: hidden; transition: max-height .6s ease, opacity .5s ease, margin .6s ease, padding .6s ease; }
html.js .why.in .because { max-height: 140px; opacity: 1; margin: 2px 0 8px; padding-block: 10px; }
html.js .why.in .because:nth-of-type(1) { transition-delay: .5s; }
html.js .why.in .because:nth-of-type(2) { transition-delay: 1.3s; }
html.js .why.in .because:nth-of-type(3) { transition-delay: 2.1s; }
.why .ln u { transition: color .3s; }
html.js .why.in .ln:nth-of-type(1) u { animation: pulse-ring 1s .3s; border-radius: 6px; }

/* Things that move a little on their own */
.phone { animation: float 7s ease-in-out infinite; }
.cta::before { animation: drift 16s ease-in-out infinite alternate; }
.chapter-num { transition: transform .3s; }
.guide-card:hover .chapter-num, .guide-chapter:hover .chapter-num { transform: rotate(-6deg) scale(1.06); }

/* Buttons: a light sweep across the main button on hover. */
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }
.btn.primary:hover::after { animation: shine .9s ease; }
.card { transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfd8ea; }
.card .ico { transition: transform .3s, background .3s; }
.card:hover .ico { transform: scale(1.08) rotate(-4deg); background: #e8eefc; }
.feat > div { transition: background .2s; }
.feat > div:hover { background: #fafbff; }
.strip a { position: relative; }
.strip a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 12px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s; }
.strip a:hover::after { transform: scaleX(1); }
.frame img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.split .frame:hover img, .group-head .frame:hover img { transform: scale(1.015); }

/* Header gains a shadow once the page moves; a thin bar shows reading progress on guides. */
.top { transition: box-shadow .25s, background .25s; }
.top.scrolled { box-shadow: 0 8px 24px -16px rgba(11, 23, 48, .35); background: rgba(255, 255, 255, .94); }
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); z-index: 40; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js :is(.reveal, .section-head, .split > *, .card, .feat > div, .group-head > *, .plan, .faq details, .guide-card, .chapter-head, .cta, .steps li, .ticks li, .tip, .pager, .numbers-in > div, .strip a, .prose > *, .form, .side-list > *, .foot-in > *) { opacity: 1 !important; transform: none !important; }
  html.js .hero-shot .frame { --tilt: 0deg; --lift: 0px; --scale: 1; }
  html.js .why .because { max-height: none; opacity: 1; margin: 2px 0 8px; padding-block: 10px; }
}

/* Cards that are links */
.link-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.link-card .more { margin-top: auto; padding-top: 16px; color: var(--blue); font-weight: 650; font-size: .96rem; }
.link-card .more::after { content: " →"; display: inline-block; transition: transform .2s; }
.link-card:hover .more::after { transform: translateX(4px); }

/* ===================================================================================
   Motion, part two: the pieces the first pass left still.
   =================================================================================== */
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.5); } 70% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
@keyframes glow { from { box-shadow: 0 2px 4px rgba(11, 23, 48, .06), 0 30px 70px -30px rgba(42, 92, 240, .3); } to { box-shadow: 0 2px 4px rgba(11, 23, 48, .06), 0 40px 90px -26px rgba(139, 63, 240, .45); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pages move into one another instead of flashing white (browsers that support it). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
}
.top { view-transition-name: top; }

/* Guide pages and the 404 page arrive the way the other pages do. */
.guide-page .crumb, .guide-head > *, .lost > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.guide-head > :nth-child(1) { animation-delay: .05s; }
.guide-head > :nth-child(2) { animation-delay: .12s; }
.guide-head > :nth-child(3) { animation-delay: .19s; }
.guide-shot { animation: rise .9s .28s cubic-bezier(.2, .7, .2, 1) both; }
.lost > :nth-child(2) { animation-delay: .1s; }
.lost > :nth-child(3) { animation-delay: .18s; }
.lost > :nth-child(4) { animation-delay: .26s; }
.lost .big { display: inline-block; animation: rise .7s cubic-bezier(.2, .7, .2, 1) both, float 6s 1s ease-in-out infinite, shimmer 6s ease-in-out infinite alternate; }

/* The chapter links on the features page arrive one after another. */
.page-head .jump a { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; transition: color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.page-head .jump a:nth-child(1) { animation-delay: .28s; }
.page-head .jump a:nth-child(2) { animation-delay: .33s; }
.page-head .jump a:nth-child(3) { animation-delay: .38s; }
.page-head .jump a:nth-child(4) { animation-delay: .43s; }
.page-head .jump a:nth-child(5) { animation-delay: .48s; }
.page-head .jump a:nth-child(6) { animation-delay: .53s; }
.page-head .jump a:nth-child(n+7) { animation-delay: .58s; }
.jump a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Tick lists inside a feature tab follow the panel in, one line after another. */
[role=tabpanel].enter .ticks li { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
[role=tabpanel].enter .ticks li:nth-child(1) { animation-delay: .14s; }
[role=tabpanel].enter .ticks li:nth-child(2) { animation-delay: .2s; }
[role=tabpanel].enter .ticks li:nth-child(3) { animation-delay: .26s; }
[role=tabpanel].enter .ticks li:nth-child(4) { animation-delay: .32s; }
[role=tabpanel].enter .ticks li:nth-child(n+5) { animation-delay: .38s; }
/* Each tick pops in as its line arrives (a hidden tab replays this when it is shown). */
@keyframes pop-tick { from { opacity: 0; transform: rotate(-45deg) scale(.2); } to { opacity: 1; transform: rotate(-45deg) scale(1); } }
html.js .ticks li.in::before { animation: pop .5s calc(var(--d, 0s) + .15s) both; }
html.js .ticks li.in::after { animation: pop-tick .4s calc(var(--d, 0s) + .32s) both; }

/* Guide steps: each number pops as its step arrives. */
html.js .steps li.in::before { animation: pop .5s calc(var(--d, 0s) + .1s) both; }
.steps li { transition: background .2s; }

/* Links and small controls ease instead of snapping. */
.nav-link, .foot nav a, .crumb a, .pager a, .faq summary, .tabs [role=tab], .btn { transition: color .2s, background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.pager a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.foot nav a:hover { transform: translateX(3px); }
.foot nav a { display: inline-block; width: fit-content; }
.brand img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.brand:hover img { transform: rotate(-10deg) scale(1.06); }
.nav-link { position: relative; }
.nav-link[aria-current=page]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad); animation: fill .5s .2s cubic-bezier(.2, .7, .2, 1) both; transform-origin: 0 50%; }
@media (max-width: 860px) { .nav-link[aria-current=page]::after { display: none; } }

/* Phone menu: slides down, and the three lines turn into a cross. */
.menu-btn span { transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .2s; }
.menu-btn[aria-expanded=true] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded=true] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded=true] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav.open { animation: drop .28s cubic-bezier(.2, .7, .2, 1) both; }
  .nav.open > * { animation: drop .35s cubic-bezier(.2, .7, .2, 1) both; }
  .nav.open > :nth-child(2) { animation-delay: .03s; }
  .nav.open > :nth-child(3) { animation-delay: .06s; }
  .nav.open > :nth-child(4) { animation-delay: .09s; }
  .nav.open > :nth-child(5) { animation-delay: .12s; }
  .nav.open > :nth-child(n+6) { animation-delay: .15s; }
}

/* Questions on the pricing page open smoothly; the plus turns into a cross. */
.faq summary::after { content: "+"; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); }
.faq details[open] > :not(summary) { animation: drop .4s cubic-bezier(.2, .7, .2, 1) both; }
.faq summary:hover { color: var(--blue); }

/* The free plan's border glows slowly. */
.plan.best { animation: glow 5s ease-in-out infinite alternate; }
.plan { transition: transform .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-4px); }

/* Pictures fade in when they have loaded, instead of appearing in one jump. */
html.js .frame img, html.js .phone img { opacity: 0; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
html.js .frame img.loaded, html.js .phone img.loaded { opacity: 1; }

/* Contact form: a spinner while sending, and the answer slides in. */
.btn.busy { pointer-events: none; opacity: .85; }
.btn.busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
.form-msg:not([hidden]) { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.form input, .form select, .form textarea { transition: border-color .2s, box-shadow .2s; }
.guide-search input { transition: border-color .2s, box-shadow .2s; }

/* Guide search: matching cards settle back in as the list narrows. */
.guide-card.found { animation: rise .35s cubic-bezier(.2, .7, .2, 1) both; }
#guide-none:not([hidden]) { animation: rise .4s both; }

@media (prefers-reduced-motion: reduce) {
  html.js .frame img, html.js .phone img { opacity: 1; }
}

/* Printing shows everything, whatever has been scrolled to. */
@media print {
  html.js :is(.reveal, .section-head, .split > *, .card, .feat > div, .group-head > *, .plan, .faq details, .guide-card, .chapter-head, .cta, .steps li, .ticks li, .tip, .pager, .numbers-in > div, .strip a, .prose > *, .form, .side-list > *, .foot-in > *), html.js .frame img, html.js .phone img { opacity: 1 !important; transform: none !important; }
  html.js .why .because { max-height: none; opacity: 1; }
  .chip, .progress, .menu-btn { display: none !important; }
  .top { position: static; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
