/* Inter is the same font the app uses, served from this site. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-1.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-2.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* FitInPoc website. Dark brand world taken from the app: navy ground, lavender accent, one pink spark from the logo. */
:root {
  --bg: #12131f;
  --bg-deep: #0d0e18;
  --surface: #1b1d2d;
  --surface-2: #232638;
  --line: rgba(233, 233, 237, 0.12);
  --text: #ececf3;
  --muted: #a9acc2;
  --accent: #9184d9;
  --accent-soft: #d2cefd;
  --accent-ink: #12131f;
  --spark: #ff8fcf;
  --ok: #7fd6a8;
  --warn: #f2c46d;
  --radius: 14px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  background-image: radial-gradient(60rem 28rem at 78% -6rem, rgba(145, 132, 217, 0.16), transparent 70%);
  background-repeat: no-repeat;
}
img, svg { max-width: 100%; }
a { color: var(--accent-soft); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent-soft); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 14px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 19, 31, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font: 700 1.2rem var(--font-head); letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 11px; border-radius: 9px; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary { color: var(--accent-ink); background: var(--accent-soft); }
.nav a.btn-primary:hover { background: #fff; color: var(--accent-ink); }
.menu-btn { display: none; margin-left: auto; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font: 600 0.95rem var(--font-body); cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border-radius: 11px; font: 600 0.98rem var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--accent-soft); color: var(--accent-ink); }
.btn-primary:hover { background: #fff; color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: #fff; }
.btn-sm { padding: 9px 15px; font-size: 0.9rem; }
.btn svg, .ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* sections */
section { padding-block: clamp(52px, 8vw, 96px); }
.band { background: var(--bg-deep); border-block: 1px solid var(--line); }
.sec-head { max-width: 44rem; margin-bottom: 38px; }
.hero { padding-block: clamp(44px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .note { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.page-hero { padding-block: clamp(44px, 6vw, 76px) 20px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }

/* phones */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 0; min-height: 0; }
.phone { width: min(250px, 44vw); border-radius: 34px; border: 7px solid #070810; background: #070810; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08); flex: none; }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; }
.phones .phone:nth-child(2) { margin-top: 56px; margin-left: -30px; }
.phone.sm { width: 210px; }

/* cards and grids */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 26px; height: 26px; color: var(--accent-soft); margin-bottom: 14px; display: block; }
.card .btn .ico { color: inherit; width: 20px; height: 20px; margin: 0; display: inline-block; }
.card ul, .list { margin: 0; padding-left: 1.1em; }
.card li, .list li { margin-bottom: 0.4em; }
.pill { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--accent-soft); border: 1px solid var(--line); }
.pill.warn { color: var(--warn); }
.pill.ok { color: var(--ok); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; counter-increment: s; min-width: 0; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font: 700 0.9rem var(--font-head); margin-bottom: 12px; }
.steps b { display: block; margin-bottom: 4px; font-family: var(--font-head); }
.steps span { color: var(--muted); font-size: 0.92rem; }

/* split blocks */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip .split-media { order: -1; }
.split-media { display: flex; justify-content: center; }

/* screenshot carousel */
.rail-wrap { position: relative; }
.rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.rail figure { margin: 0; scroll-snap-align: start; flex: none; width: 220px; }
.rail .phone { width: 220px; }
.rail figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--muted); }
.rail figcaption b { display: block; color: var(--text); font-family: var(--font-head); font-size: 1rem; }
.rail-ctl { display: flex; gap: 8px; margin-top: 4px; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.94rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--accent-soft); font-weight: 600; background: var(--surface); }
tr:last-child td { border-bottom: 0; }

/* notices */
.notice { border: 1px solid var(--line); border-left: 4px solid var(--warn); background: var(--surface); border-radius: 10px; padding: 16px 18px; }
.notice.info { border-left-color: var(--accent); }
.notice p:last-child { margin: 0; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; }

/* forms */
.form { display: grid; gap: 16px; max-width: 34rem; }
label { font-weight: 600; font-size: 0.95rem; display: grid; gap: 6px; }
input, textarea, select { background: var(--surface); color: var(--text); border: 1px solid rgba(233, 233, 237, 0.28); border-radius: 10px; padding: 12px 14px; font: 400 1rem var(--font-body); width: 100%; }
input:focus, textarea:focus { border-color: var(--accent-soft); outline: 3px solid rgba(210, 206, 253, 0.35); outline-offset: 0; }
textarea { min-height: 150px; resize: vertical; }
.err { color: #ffb4b4; font-size: 0.88rem; font-weight: 500; min-height: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.email-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.email-box code { font: 600 1.05rem var(--font-body); background: var(--surface-2); padding: 8px 12px; border-radius: 9px; user-select: all; }

/* pricing */
.price { font: 700 2.1rem var(--font-head); margin: 6px 0 2px; }

/* docs-like pages */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: 0.5em; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding-block: 48px 36px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h3 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a { color: var(--text); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 0.9rem; color: var(--muted); }
.disclaimer { margin-top: 18px; font-size: 0.86rem; color: var(--muted); max-width: 52rem; }

@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px max(20px, env(safe-area-inset-left, 0px)) 18px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; font-size: 1.02rem; }
  .nav .btn { margin: 8px 0 0; }
  .phones { margin-top: 10px; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4, .steps, .foot-grid { grid-template-columns: 1fr; }
  .phone { width: min(200px, 46vw); }
  .phones .phone:nth-child(2) { margin-left: -22px; margin-top: 40px; }
  .cta-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
