/* Movewise website. Colours follow the app. */
:root {
  --ink: #17191E; --muted: #5B5F68; --ground: #F5F4F0; --surface: #FFFFFF; --line: #E3E1DA;
  --accent: #1E4FA8; --accent-hover: #163B7F; --accent-soft: #E8EEF9; --light-accent: #8FB3F0;
  --ok: #17603C; --ok-soft: #E6F3EC; --warn: #8A3F06; --warn-soft: #FDF1E3;
  --side: #17191E; --side-ink: #E9E7E1; --side-muted: #A3A6AD;
  --radius: 12px; --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-top: 0; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
code { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: .9em; background: #ECEAE4; padding: 1px 6px; border-radius: 4px; }

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

/* Header */
.top { background: var(--side); color: var(--side-ink); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 650; font-size: 1.1rem; }
.brand svg { color: var(--light-accent); }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.top nav a { color: #C9CBD0; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.top nav a:hover, .top nav a[aria-current="page"] { background: #2A2D35; color: #fff; }

/* Hero */
.hero { background: var(--side); color: #F2F1ED; padding: 56px 0 0; overflow: hidden; }
.hero h1 span { color: var(--light-accent); }
.hero .lead { font-size: 1.2rem; color: #C9CBD0; max-width: 760px; }
.hero .shot { margin-top: 40px; border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -10px 50px rgba(0,0,0,.4); }
.tag { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--light-accent); background: #2A2D35; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); color: #fff; }
.btn.ghost { border-color: #3A3D45; color: #F2F1ED; }
.btn.ghost:hover { background: #2A2D35; color: #fff; }
.light .btn.ghost { border-color: #D4D1C8; color: var(--ink); background: var(--surface); }

/* Sections */
section.block { padding: 64px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro { max-width: 760px; color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.alt .card { background: var(--ground); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.card a.more { display: inline-block; margin-top: 12px; font-weight: 600; text-decoration: none; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps b { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); }
.split { display: grid; gap: 40px; grid-template-columns: 1fr 1.3fr; align-items: center; margin-top: 32px; }
.split.flip { grid-template-columns: 1.3fr 1fr; }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(23, 25, 30, .14); background: #fff; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 700; }
.note { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 14px 18px; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #FAF9F6; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* Article pages */
.page-head { background: var(--side); color: #F2F1ED; padding: 48px 0; }
.page-head p { color: #C9CBD0; font-size: 1.15rem; max-width: 760px; margin: 0; }
.crumbs { font-size: .9rem; margin-bottom: 12px; color: var(--side-muted); }
.crumbs a { color: var(--light-accent); }
article.doc { max-width: 820px; padding: 48px 24px 64px; margin: 0 auto; }
article.doc h2 { margin-top: 1.6em; }
article.doc ul { padding-left: 1.2em; }
article.doc li { margin-bottom: .4em; }
article.doc .shot { margin: 24px 0; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; }
summary { font-weight: 650; cursor: pointer; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Footer */
.cta { background: var(--side); color: #F2F1ED; padding: 56px 0; text-align: center; }
.cta p { color: #C9CBD0; }
.cta .actions { justify-content: center; }
footer { background: #101114; color: var(--side-muted); padding: 32px 0; font-size: .9rem; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: #C9CBD0; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .split, .split.flip { grid-template-columns: 1fr; }
  .top nav { margin-left: 0; }
  section.block { padding: 48px 0; }
}
