/* Frankly Consulting site (franklyconsultinglimited.co.uk, #389), from the draft site's stylesheet less the app page's parts. Layout: centred hero, full-width bands alternating brand navy and pale grey, 1440px column. Type: DM Sans only, medium weight for headings. Colour: the logo's navy and amber only; all labels amber, no grey body text. */
/* DM Sans, served from this site (fonts/OFL.txt), so no visitor is sent to another company for it */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/dm-sans-latin.woff2) format("woff2"); }

:root {
  --black: #1c222c; --black-2: #2b3240; --white: #f0f1f3; --amber: #f5a61a;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--white); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Bands carry their own palette; components read the tokens */
.dark { --bg: var(--black-2); --ink: var(--white); --mute: var(--white); --faint: var(--white); --card: rgba(255,255,255,.06); --card-solid: #353d4c; --line: rgba(255,255,255,.1); --btn: var(--amber); --btn-ink: var(--black); }
.deep { --bg: var(--black); }
.light { --bg: var(--white); --ink: var(--black-2); --mute: var(--black-2); --faint: var(--black-2); --card: #ffffff; --card-solid: #ffffff; --line: rgba(43,50,64,.1); --btn: var(--amber); --btn-ink: var(--black); }
.band { background: var(--bg); color: var(--ink); padding-block: 6em; }
.band.tight { padding-block: 1.5em; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
@media (max-width: 760px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
@media (max-width: 480px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
@media (max-width: 760px) { .band { padding-block: 4em; } }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; line-height: 1.05; }
h1 { font-size: clamp(2.5rem, 6vw, 3.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); max-width: 20em; }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
.sub { color: var(--mute); font-size: 1.05rem; line-height: 1.55; max-width: 34em; }
/* .card .eyebrow outranks .card p, so a label inside a card keeps the one amber style. */
.eyebrow, .card .eyebrow, .card .num, .faq-group, .strip small, .foot h5 { font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
a { color: inherit; text-decoration: none; }
p a { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* Buttons: pill with an arrow chip, as on the reference */
.btn { display: inline-flex; align-items: center; gap: .9em; background: var(--btn); color: var(--btn-ink); border: 0; border-radius: 2em; padding: .25em .3em .25em 1.1em; font: 500 1rem var(--font); cursor: pointer; transition: opacity .2s, transform .15s; white-space: nowrap; }
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn i { font-style: normal; display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--btn-ink); color: var(--btn); font-size: .95em; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.ghost i { background: var(--ink); color: var(--bg); }
.btn.amber { background: var(--amber); color: var(--black); }
.btn.amber i { background: var(--black); color: var(--amber); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions.center { justify-content: center; }

/* Header */
.top { background: var(--black-2); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.1); }
nav { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-block: 18px; flex-wrap: wrap; }
.brand { font-weight: 500; font-size: 1.45rem; letter-spacing: -0.04em; }
.brand b { color: var(--amber); font-weight: 500; }
.links { display: flex; gap: 26px; font-size: .95rem; color: var(--white); }
.links a:hover, .links a[aria-current="page"] { color: var(--white); }
.top .btn { --btn: var(--amber); --btn-ink: var(--black); font-size: .92rem; }
@media (max-width: 720px) { nav { gap: 14px 20px; } .links { order: 3; width: 100%; justify-content: flex-start; gap: 18px; flex-wrap: wrap; font-size: .9rem; } }

/* Hero: centred, like the reference */
.hero { text-align: center; display: grid; justify-items: center; gap: 1.4em; padding-block: 2.5em 2em; }
.hero h1 { max-width: 14em; }
.hero .sub { max-width: 32em; }
.hero.left { text-align: left; justify-items: start; }
.hero.left h1 { max-width: 15em; }
@media (max-width: 760px) { .hero { padding-block: 3.5em 3em; } }

/* Client logos: scrolling marquee on the light band, logos in the ink colour */
.strip { display: flex; align-items: center; gap: 40px; overflow: hidden; }
.strip small { flex: none; white-space: nowrap; }
.clip { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; align-items: center; gap: 80px; width: max-content; animation: scroll 32s linear infinite; }
.track:has(.client:hover) { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.client { flex: none; width: auto; filter: brightness(0) invert(.16) sepia(.3) saturate(2.4) hue-rotate(185deg); transition: filter .25s; }
.dark .client { filter: brightness(0) invert(1); }
.client:hover { filter: none; }
@media (max-width: 760px) { .strip { flex-direction: column; align-items: flex-start; gap: 14px; } .clip { width: 100%; } }

/* Section heads */
.head { display: grid; gap: 1em; margin-bottom: 3em; }
.head.center { text-align: center; justify-items: center; }
.head.center .sub { margin-inline: auto; }

/* Card grids */
.cards { display: grid; gap: 1.25em; grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: 1fr 1fr; }
.card { background: var(--card); border-radius: 1em; padding: 1.6em; display: grid; gap: .75em; align-content: start; min-width: 0; }
.card.solid { background: var(--card-solid); }
.card p { color: var(--mute); font-size: .95rem; line-height: 1.55; }
.card.link { transition: transform .15s, background .2s; }
.card.link:hover { transform: translateY(-2px); }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5em; }
.card li { display: flex; gap: .7em; align-items: baseline; font-size: .95rem; color: var(--ink); }
.card li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); transform: translateY(-2px); }

@media (max-width: 760px) { .cards, .cards.two { grid-template-columns: 1fr; } }

/* Split: text beside something */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4em; align-items: center; }
.split .copy { display: grid; gap: 1.2em; }
.split .copy p { color: var(--mute); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 2.5em; } }

/* Hairline list */
.list { display: grid; }
.list > div { padding-block: 1.1em; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 1.5em; align-items: baseline; }
.list > div:last-child { border-bottom: 1px solid var(--line); }
.list b { font-weight: 500; }
.list p { color: var(--mute); font-size: .95rem; }
@media (max-width: 640px) { .list > div { grid-template-columns: 1fr; gap: .3em; } }

/* Questions */
.faq { display: grid; max-width: 800px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-block: 1.1em; font-weight: 500; font-size: 1.08rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 1.4rem; line-height: 1; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding-bottom: 1.3em; color: var(--mute); max-width: 66ch; display: grid; gap: .6em; }
.faq-group { margin: 2.5em 0 .8em; }
.faq-group:first-child { margin-top: 0; }

/* Form */
form { display: grid; gap: 14px; background: var(--card-solid); border: 1px solid var(--line); border-radius: 1.2em; padding: 2em; }
label { display: grid; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--mute); }
input, select, textarea { font: 400 1rem var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--amber); outline-offset: 0; border-color: transparent; }
textarea { resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.thanks { font-size: .92rem; color: var(--ink); font-weight: 500; }
.form-note { font-size: .85rem; color: var(--faint); }
.turnstile:empty { display: none; }
.email { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 500; font-size: 1.1rem; }
.email button { font: 500 .8rem var(--font); background: transparent; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.email button:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 820px) { form { padding: 1.4em; } }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }

/* Closing CTA */
.cta { text-align: center; display: grid; justify-items: center; gap: 1.4em; }
.cta h2 { max-width: 14em; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.cta .fine { font-size: .9rem; color: var(--faint); }

/* Footer */
.foot { background: var(--black); color: var(--white); padding-block: 4em 3.5em; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2em; font-size: .92rem; }
.foot h5 { margin: 0 0 .8em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5em; color: var(--white); }
.foot li { overflow-wrap: anywhere; }
.foot a:hover { color: var(--white); }
.foot .about { color: var(--white); max-width: 30em; margin-top: .6em; }
.foot .fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--white); padding-top: 1.5em; margin-top: 2.5em; border-top: 1px solid rgba(255,255,255,.08); }
@media (max-width: 820px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > div:first-child { grid-column: 1 / -1; } }

/* Logo */
.brand img { display: block; height: 64px; width: auto; }
.foot .brand img { height: 72px; }
@media (max-width: 720px) { .brand img { height: 50px; } .foot .brand img { height: 56px; } }

/* The one line pointing small businesses to Frankly Flow */
.flowline { text-align: center; color: var(--mute); margin-top: 2.5em; }
.flowline a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.band.rule { border-top: 1px solid rgba(255,255,255,.08); }

/* Privacy notice: readable paragraphs in the site's existing bands. */
.privacy-copy { max-width: 72ch; margin-inline: auto; display: grid; gap: 2.5em; overflow-wrap: anywhere; }
.privacy-copy section { display: grid; gap: 1em; }
.privacy-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* Long-form copy in readable measures, within the existing wide grid. */
.reading { max-width: 70ch; margin-inline: auto; display: grid; gap: 1.2em; }
.reading + .cards, .reading + .actions, .actions + .reading, .cards + .reading { margin-top: 2.5em; }

/* The official Cal.com pop-up supplies its own layout and backdrop. */
.booking-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.booking-dialog::backdrop { background: transparent; }

/* Worked examples keep the assumptions and arithmetic beside each process.
   Numbered steps, not the amber dots .card li gives other lists. */
.example-calculation { border-top: 1px solid var(--line); padding-top: 1em; display: grid; gap: .75em; }
.example-calculation ol { margin: 0; padding-left: 1.3em; display: grid; gap: .75em; font-size: .95rem; }
.card .example-calculation li { display: list-item; padding-left: .2em; }
.card .example-calculation li::before { content: none; }
.example-calculation li::marker { color: var(--ink); }
