/* nexera-ai.co.uk. Calm, medium-weight headings, outlined content, one dark
   hero and one dark band. Violet is the brand colour, taken from the logo. */

@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "InterVar"; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --head: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "InterVar", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --night: #17152b;      /* hero, dark band, footer */
  --night-2: #211e3a;    /* cards on the dark */
  --on-night: #f4f2fb;
  --on-night-2: #c9c4dc;
  --night-hair: rgba(255, 255, 255, .12);

  --violet: #6d28d9;     /* buttons, white text on it */
  --violet-h: #5b21b6;
  --violet-ink: #5b21b6; /* links and labels on white */
  --lilac: #c4b5fd;      /* accents on the dark */
  --lilac-2: #a78bfa;
  --tint: #f1edfd;

  --ink: #17152b;
  --ink-2: #3d3a52;
  --muted: #6b6880;
  --ground: #ffffff;
  --ground-2: #f6f5fa;
  --hair: #e4e1ee;

  --gutter: 1.25rem;
  --wrap: 72rem;
  color-scheme: light;
}
@media (min-width: 48rem) { :root { --gutter: 2rem; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--violet-ink); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lilac-2); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--head); color: inherit; margin: 0 0 .75rem; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: 1.08; font-weight: 500; letter-spacing: -.022em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.12; font-weight: 500; letter-spacing: -.018em; }
h3 { font-size: 1.0625rem; line-height: 1.35; font-weight: 600; letter-spacing: -.005em; margin-bottom: .35rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section--alt { background: var(--ground-2); }
.label { display: block; font: 600 .78rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--violet-ink); margin-bottom: 1rem; }
.lead { font-size: 1.1875rem; color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; background: #fff; padding: .5rem .8rem; z-index: 100; }
.skip:focus { left: .5rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .7rem 1.35rem; border-radius: 6px; font: 600 .975rem/1.2 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.btn--go { background: var(--violet); color: #fff; }
.btn--go:hover { background: var(--violet-h); }
.btn--line { border-color: var(--hair); color: var(--ink); background: #fff; }
.btn--line:hover { border-color: var(--ink-2); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }

/* header */
.mast { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--hair); }
.mast__in { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo svg { width: 2.1rem; height: 2rem; flex: none; }
.logo span { font: 700 1.25rem/1 var(--body); letter-spacing: -.01em; }
.mast__nav { display: none; gap: 1.6rem; }
.mast__nav a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.mast__nav a:hover { color: var(--ink); }
.mast .btn { min-height: 2.6rem; padding: .55rem 1.05rem; font-size: .9rem; }
@media (min-width: 60rem) { .mast__nav { display: flex; } }

/* hero */
.hero { background: var(--night); color: var(--on-night); overflow: hidden; }
.hero__grid { display: grid; gap: 3rem; padding-block: clamp(3.5rem, 8vw, 6rem); align-items: center; }
@media (min-width: 62rem) { .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }
.hero .eyebrow { color: var(--lilac); font-size: .9375rem; font-weight: 500; margin-bottom: 1.1rem; }
.hero h1 { max-width: 15ch; margin-bottom: 1.3rem; }
.hero__sub { color: var(--on-night-2); font-size: clamp(1.0625rem, 1.35vw, 1.1875rem); max-width: 34rem; margin-bottom: 2rem; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .9375rem; color: var(--on-night-2); }
.ticks li { display: inline-flex; align-items: center; gap: .5rem; }
.ticks li::before, .checks li::before { content: ""; width: .95rem; height: .95rem; flex: none; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.6 2.5L10 3.2' fill='none' stroke='%23c4b5fd' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* the hero visual: a phone showing a screened call, and the message it left */
.stage { position: relative; display: flex; justify-content: center; padding-block: 1rem 2rem; }
.stage::before { content: ""; position: absolute; inset: 8% 0 0 12%; background: radial-gradient(closest-side, rgba(167, 139, 250, .22), transparent 70%); pointer-events: none; }
.phone { position: relative; width: min(17.5rem, 78vw); aspect-ratio: 9 / 18.6; border-radius: 2.6rem; padding: .7rem; background: #0c0b16; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 40px 80px -30px rgba(0,0,0,.8); }
.phone__screen { position: relative; height: 100%; border-radius: 2rem; overflow: hidden; background: linear-gradient(180deg, #2a2550 0%, #1a1733 55%, #121025 100%); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 1.1rem 1.1rem 1.6rem; text-align: center; }
.phone__notch { width: 5.5rem; height: 1.45rem; border-radius: 1rem; background: #0c0b16; margin-bottom: 1.6rem; }
.phone__tag { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); margin-bottom: .45rem; }
.phone__who { font: 500 1.45rem/1.2 var(--head); margin-bottom: .2rem; }
.phone__num { font-size: .8rem; color: var(--on-night-2); margin-bottom: 1.3rem; }
.phone__brief { width: 100%; text-align: left; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: .9rem; padding: .75rem .8rem; font-size: .8rem; line-height: 1.45; color: #ece9f8; }
.phone__brief b { display: block; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); font-weight: 600; margin-bottom: .25rem; }
.phone__acts { margin-top: auto; display: flex; justify-content: space-between; width: 82%; }
.phone__act { display: grid; justify-items: center; gap: .4rem; font-size: .7rem; color: var(--on-night-2); }
.phone__act i { width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; }
.phone__act i svg { width: 1.45rem; height: 1.45rem; }
.phone__act--no i { background: #e5484d; }
.phone__act--yes i { background: #30a46c; }
.note { position: absolute; right: max(0rem, calc(50% - 15.5rem)); bottom: 0; width: 15rem; background: #fff; color: var(--ink); border-radius: .9rem; padding: .85rem .95rem; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); font-size: .82rem; line-height: 1.45; }
.note__head { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .78rem; margin-bottom: .35rem; }
.note__head svg { width: 1.25rem; height: 1.2rem; flex: none; }
.note__head small { margin-left: auto; color: var(--muted); font-weight: 400; }
.note p { margin: 0; color: var(--ink-2); }
@media (max-width: 40rem) {
  .stage { flex-direction: column; align-items: center; }
  .phone { width: min(15.5rem, 72vw); }
  .note { position: relative; right: auto; bottom: auto; margin-top: -1.75rem; width: min(17rem, 86vw); }
}

/* section heads: heading left, paragraph right on wide screens */
.head { margin-bottom: 3rem; }
.head h2 { max-width: 20ch; }
.head > p { max-width: 38rem; color: var(--ink-2); font-size: 1.0625rem; }
@media (min-width: 62rem) {
  .head { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4.5rem; align-items: end; }
  .head > * { grid-column: 1; }
  .head h2 { margin-bottom: 0; }
  .head > p { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}

/* three pillars with a rule above */
.cols { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .cols { grid-template-columns: repeat(3, 1fr); } }
.cols > div { border-top: 2px solid var(--violet); padding-top: 1.1rem; }
.cols p { color: var(--ink-2); margin: 0; font-size: 1rem; }

/* the feature list */
.list { display: grid; gap: 0 2.5rem; }
@media (min-width: 40rem) { .list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .list { grid-template-columns: repeat(3, 1fr); } }
.list > div { border-top: 1px solid var(--hair); padding: 1.1rem 0 1.4rem; }
.list p { color: var(--ink-2); margin: 0; font-size: .9575rem; line-height: 1.55; }

/* split: visual one side, words the other */
.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 62rem) { .split { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }
.split h2 { max-width: 18ch; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .8rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-2); }
.checks li::before { margin-top: .35rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background-color: var(--tint); background-size: .7rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.6 2.5L10 3.2' fill='none' stroke='%236d28d9' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checks b { color: var(--ink); font-weight: 600; }

/* the AI receptionist panel: a short call, written down */
.panel { background: var(--night); color: var(--on-night); border-radius: 14px; padding: 1.4rem; box-shadow: 0 30px 60px -36px rgba(23, 21, 43, .7); }
.panel__top { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--on-night-2); padding-bottom: 1rem; border-bottom: 1px solid var(--night-hair); margin-bottom: 1rem; }
.panel__top svg { width: 1.6rem; height: 1.5rem; }
.panel__top b { color: #fff; font-weight: 600; }
.panel__top small { margin-left: auto; }
.say { max-width: 88%; padding: .6rem .85rem; border-radius: 12px; font-size: .9rem; line-height: 1.45; margin-bottom: .55rem; }
.say--ai { background: var(--night-2); border: 1px solid var(--night-hair); border-bottom-left-radius: 4px; }
.say--them { margin-left: auto; background: var(--violet); border-bottom-right-radius: 4px; }
.say small { display: block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-bottom: .15rem; }
.panel__end { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--night-hair); font-size: .82rem; color: var(--on-night-2); display: flex; gap: .5rem; align-items: center; }
.panel__end::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #30a46c; flex: none; }

/* steps */
.how { display: grid; gap: 3rem; }
@media (min-width: 62rem) { .how { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: .45rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--hair); }
.steps li { position: relative; padding: 0 0 1.6rem 2.2rem; }
.steps li::before { content: ""; position: absolute; left: 0; top: .35rem; width: .95rem; height: .95rem; border-radius: 50%; border: 2px solid var(--violet); background: var(--ground-2); }
.steps h3 { font-size: 1.125rem; font-weight: 500; margin-bottom: .2rem; }
.steps p { color: var(--ink-2); margin: 0; font-size: .975rem; }

/* dark band */
.band { background: var(--night); color: var(--on-night); }
.band .label { color: var(--lilac); }
.band .head > p { color: var(--on-night-2); }
.grid4 { display: grid; gap: 1.5rem 2rem; }
@media (min-width: 40rem) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid4 { grid-template-columns: repeat(4, 1fr); } }
.grid4 > div { border-left: 1px solid var(--night-hair); padding-left: 1.1rem; }
.grid4 p { color: var(--on-night-2); margin: 0; font-size: .95rem; line-height: 1.55; }

/* questions */
.qa { max-width: 50rem; }
.qa details { border-top: 1px solid var(--hair); }
.qa details:last-child { border-bottom: 1px solid var(--hair); }
.qa summary { cursor: pointer; list-style: none; padding: 1.15rem 2rem 1.15rem 0; position: relative; font: 500 1.0625rem/1.4 var(--head); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: .25rem; top: 1rem; font: 400 1.4rem/1 var(--body); color: var(--violet-ink); }
.qa details[open] summary::after { content: "\2212"; }
.qa details p { color: var(--ink-2); margin: 0 0 1.2rem; max-width: 44rem; }

/* contact */
.contact { display: grid; gap: 2.5rem; }
@media (min-width: 62rem) { .contact { grid-template-columns: 1.1fr 1fr; gap: 4.5rem; align-items: start; } }
.card { border: 1px solid var(--hair); border-radius: 12px; padding: 1.6rem; background: #fff; }
.card h3 { font-size: 1.125rem; }
.card dl { margin: 1.2rem 0 1.5rem; display: grid; gap: .9rem; }
.card dt { font-size: .8rem; color: var(--muted); letter-spacing: .02em; }
.card dd { margin: 0; font-weight: 500; }
.card dd a { color: var(--ink); }
.card .btn { width: 100%; }
.small { font-size: .875rem; color: var(--muted); }

/* footer */
.foot { background: var(--night); color: var(--on-night-2); font-size: .9rem; padding-block: 3rem 2.5rem; }
.foot__in { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .foot__in { grid-template-columns: 2fr 1fr 1fr; } }
.foot .logo { color: #fff; margin-bottom: .8rem; }
.foot p { max-width: 26rem; }
.foot h2 { font: 600 .78rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--lilac); margin-bottom: .9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot a { color: var(--on-night); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .foot__legal { max-width: none; border-top: 1px solid var(--night-hair); margin-top: 2.5rem; padding-top: 1.4rem; font-size: .82rem; }

/* plain pages (privacy) */
.prose { max-width: 46rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.prose h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.prose h2 { font-size: 1.4rem; margin: 2.4rem 0 .7rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; }

@media print { .mast, .foot { display: none; } }

/* the demo form */
[hidden] { display: none !important; }
.form { display: grid; gap: 1.35rem; padding: clamp(1.4rem, 3vw, 2rem); box-shadow: 0 1px 2px rgba(23, 21, 43, .04), 0 18px 40px -24px rgba(23, 21, 43, .25); }
.form__head h3 { font-size: 1.3rem; font-weight: 600; margin: 0 0 .25rem; }
.form__head p { margin: 0; color: var(--muted); font-size: .95rem; }

.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.stepper li { display: grid; gap: .45rem; font-size: .8rem; color: var(--muted); }
.stepper li::before { content: ""; height: 4px; border-radius: 4px; background: var(--hair); transition: background .25s ease; }
.stepper i { display: none; }
.stepper li.is-on, .stepper li.is-done { color: var(--ink); font-weight: 500; }
.stepper li.is-on::before, .stepper li.is-done::before { background: var(--violet); }

.step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; font-weight: 500; color: var(--ink); }
.field label span { color: var(--muted); font-weight: 400; font-size: .8rem; }
.field input, .field textarea {
  -webkit-appearance: none; appearance: none; width: 100%;
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink);
  background: var(--ground-2); border: 1px solid transparent; border-radius: 8px;
  padding: .8rem .95rem; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #a3a0b5; }
.field input:hover, .field textarea:hover { border-color: var(--hair); }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(109, 40, 217, .14); }
.field input[aria-invalid="true"] { border-color: #d92d20; background: #fff; box-shadow: 0 0 0 4px rgba(217, 45, 32, .1); }
.field textarea { resize: vertical; min-height: 6rem; }
.hint { margin: -.3rem 0 0; font-size: .85rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__msg { margin: 0; padding: .65rem .8rem; border-radius: 8px; background: #fef3f2; color: #b42318; font-size: .9rem; }
.form__msg:empty { display: none; }
.form__nav { display: flex; gap: .75rem; }
.form__nav .btn { min-height: 3.2rem; font-size: 1rem; width: auto; }
.form__next { flex: 1; }
.form__next svg { width: 1.15rem; height: 1.15rem; transition: transform .15s ease; }
.form__next:hover svg { transform: translateX(2px); }
.form__back { flex: 0 0 auto; padding-inline: 1.3rem; }
.form .btn[disabled] { opacity: .7; cursor: progress; }
.form__fine { margin: -.4rem 0 0; text-align: center; font-size: .8rem; color: var(--muted); }

.form__done { text-align: center; padding: 2.5rem 1.75rem; }
.form__tick { display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--tint); color: var(--violet); margin-bottom: 1rem; }
.form__tick svg { width: 1.6rem; height: 1.6rem; }
.form__done h3 { font-size: 1.3rem; }
.form__done p { color: var(--ink-2); margin: 0; }
@media (prefers-reduced-motion: reduce) { .stepper li::before, .field input, .field textarea, .form__next svg { transition: none; } }
