/* Brand tokens: placeholders (UnifyM's own navy and link blue) until RealFlex's brand colours and font are supplied. */
:root {
  --brand: #12122e;        /* headers, dark bands */
  --brand-2: #1c1f4a;      /* banner gradient end */
  --accent: #1f4fbf;       /* buttons, links */
  --accent-dark: #173d94;
  --text: #1d2130;
  --muted: #4a5163;
  --line: #d9dce5;
  --soft: #f3f5f9;
  --white: #ffffff;
  --focus: #f2b705;
  --radius: 10px;
  --font: "Montserrat", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; color: var(--brand); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* the form's hidden anti-bot field */
.result.is-error { color: #a1271b; }

/* Top bar and header */
.topbar { background: var(--brand); color: #d8dbec; font-size: .85rem; }
.topbar .wrap { padding-top: 6px; padding-bottom: 6px; text-align: right; }
.topbar a { color: var(--white); font-weight: 600; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); }
.badge { display: block; width: 38px; height: 38px; flex: none; }
.logo-row { display: flex; align-items: center; gap: 10px; }
.logo-row .badge { width: 32px; height: 32px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.logo-text { font-weight: 800; font-size: 1.35rem; display: flex; flex-direction: column; line-height: 1.1; }
.logo-text small { font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.logo-text.light { color: var(--white); margin-bottom: .6em; }
.logo-text.light small { color: #c3c7dc; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: 6px; }
.site-nav a, .sub-toggle { display: block; padding: 10px 12px; color: var(--text); text-decoration: none; font: inherit; font-weight: 600; font-size: .95rem; background: none; border: 0; cursor: pointer; border-radius: 6px; }
.site-nav a:hover, .sub-toggle:hover { color: var(--accent); }
.site-nav a[aria-current="page"], .has-sub.is-current > .sub-toggle { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.sub-toggle::after { content: " ▾"; font-size: .8em; }
.has-sub { position: relative; }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(18, 18, 46, .12); padding: 6px; }
.has-sub.open .sub, .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.menu-toggle { display: none; font: inherit; font-weight: 700; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; color: var(--brand); }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 6px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.site-nav .btn-primary, .btn-primary { background: var(--accent); color: var(--white); }
.site-nav .btn-primary:hover, .btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--brand); }
.site-nav .btn-outline, .btn-outline { border: 2px solid var(--accent); color: var(--accent); }
.site-nav .btn-outline:hover, .btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-light { background: var(--white); color: var(--brand); }
.btn-light:hover { background: #e7e9f3; color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* Hero and inner banner */
.hero { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #e6e8f4; padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); }
.hero .kicker, .tagline { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: #aab3ff; margin-bottom: .8em; }
.hero .hero-sub { font-size: 1.15rem; }
.banner { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #e6e8f4; padding: 48px 0 56px; }
.banner h1 { color: var(--white); margin-top: .3em; }
.banner .lead { font-size: 1.2rem; max-width: 760px; border-left: 4px solid var(--accent); padding-left: 16px; color: var(--white); }
.crumbs { font-size: .9rem; }
.crumbs a { color: #c9cdfa; }
.crumbs span { color: #c3c7dc; margin: 0 4px; }

/* Sections */
.section { padding: 64px 0; }
.section.soft { background: var(--soft); }
.section.dark { background: var(--brand); color: #e6e8f4; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark a:not(.btn) { color: #c9cdfa; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.intro { font-size: 1.1rem; color: var(--muted); max-width: 820px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 28px; position: relative; margin-bottom: .6em; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.section.dark .checks li::before { color: #aab3ff; }

/* Cards and grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card p:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .more::after { content: " →"; }
.card.product { padding: 0; overflow: hidden; }
.card.product .card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #e8edfb; color: var(--accent); margin-bottom: 14px; }
.icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .3em; }
.feature p { color: var(--muted); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 22px 64px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--white); font-weight: 800; display: grid; place-items: center; }
.steps h3 { margin-bottom: .2em; padding-top: 8px; }
.steps p { color: var(--muted); }
.how .card { text-align: center; align-items: center; }
.meta { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.owner-check { font-size: .8rem; background: #fff4cc; color: #4d3b00; border-radius: 4px; padding: 2px 6px; }

/* Screenshot placeholders */
.ph { margin: 0; border: 2px dashed #9aa3c0; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #eef0f6, #eef0f6 12px, #e6e9f2 12px, #e6e9f2 24px); min-height: 260px; display: grid; place-items: center; text-align: center; padding: 24px; color: #3d4560; font-weight: 600; font-size: .95rem; }
.ph.small { min-height: 160px; }
.ph.flat { border-radius: 0; border-width: 0 0 2px; }
.hero .ph, .section.dark .ph { color: #3d4560; }

/* Lets work together */
.together { background: var(--accent); color: var(--white); padding: 48px 0; }
.together h2 { color: var(--white); }
.together-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.contact-line { font-size: .92rem; opacity: .95; margin: 0; }

/* Forms */
form .field { margin-bottom: 18px; }
label, legend { display: block; font-weight: 700; margin-bottom: 6px; }
.req { color: #b3261e; }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #8b93ab; border-radius: 6px; background: var(--white); color: var(--text); }
textarea { min-height: 110px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin-bottom: 6px; }
.choice input { margin-top: 6px; }
.small-print { font-size: .85rem; color: var(--muted); }
.result { background: #e5f4ea; color: #14532d; border-radius: 6px; padding: 12px 16px; font-weight: 600; }
details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin-bottom: 12px; background: var(--white); }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; color: var(--brand); }
details p { color: var(--muted); }

/* Footer */
.site-footer { background: #0b0b1f; color: #c3c7dc; padding: 48px 0 24px; font-size: .95rem; }
.site-footer h2 { color: var(--white); font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #e1e4f5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.copyright { border-top: 1px solid #262a47; margin-top: 32px; padding-top: 18px; font-size: .85rem; }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .sub { position: static; box-shadow: none; border: 0; padding-left: 12px; }
  .site-header { position: relative; }
  .together-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 48px 0 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section.dark .card h3 { color: var(--brand); }
.section.dark .card p { color: var(--muted); }
[id] { scroll-margin-top: 88px; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(18, 18, 46, .14); background: var(--white); }
.shot.flat img { border-radius: 0; border-width: 0 0 1px; box-shadow: none; }
.draft-note { background: #fff4d6; border-left: 4px solid #b7791f; padding: 10px 14px; }
.legal h2 { margin-top: 32px; }
.shot.wide { max-width: 1040px; margin: 48px auto 0; }
.shots-row { margin-top: 40px; }
.shot figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.section.dark .shot figcaption { color: #c3c7dc; }
