/* SmartFlip Technologies — shared stylesheet.
   Everything down to "Inner pages" is the live smartfliptech.co.uk page's own
   inline CSS, moved here unchanged apart from the self-hosted fonts. */

/* Fonts, self-hosted (SIL Open Font Licence, see fonts/OFL-*.txt). Both are
   variable fonts, so one file covers every weight the site uses. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 680;
  font-display: swap;
  src: url(fonts/fraunces-latin-ext.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;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 680;
  font-display: swap;
  src: url(fonts/fraunces-latin.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext.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;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin.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;
}

:root {
  --ink: #10151c;
  --panel: #171f2a;
  --panel-line: #29323f;
  --text: #eceff3;
  --text-muted: #8d97a5;
  --accent: #5b93ff;
  --accent-warm: #d8a857;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ink: #f7f7f5;
    --panel: #ffffff;
    --panel-line: #e3e1db;
    --text: #14181d;
    --text-muted: #5b6470;
    --accent: #2d5fd1;
    --accent-warm: #a97c2d;
  }
}
:root[data-theme="dark"] {
  --ink: #10151c;
  --panel: #171f2a;
  --panel-line: #29323f;
  --text: #eceff3;
  --text-muted: #8d97a5;
  --accent: #5b93ff;
  --accent-warm: #d8a857;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
header {
  padding: 30px 0 26px;
  border-bottom: 1px solid var(--panel-line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}
nav {
  font-size: 0.95rem;
  color: var(--text-muted);
}
nav a { text-decoration: none; margin-left: 28px; }
nav a:hover { color: var(--text); }

.hero {
  padding: 96px 0 84px;
  display: flex;
  align-items: flex-end;
}
/* Was an inline style on the hero's .wrap, which stopped it stacking on phones. */
.hero-inner { display: flex; align-items: flex-end; width: 100%; }
.hero-main { width: 62%; padding-right: 56px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  max-width: 15ch;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0;
}
.hero-aside {
  width: 38%;
  border-left: 1px solid var(--panel-line);
  padding-left: 28px;
}
.hero-aside p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}
.hero-aside span {
  display: block;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: normal;
}

section { padding: 72px 0; border-top: 1px solid var(--panel-line); }
.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-warm);
  font-size: 1rem;
  margin: 0 0 8px;
}
h2 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  margin: 0 0 44px;
  max-width: 22ch;
}

.pillars {
  display: flex;
}
.pillar {
  width: 33.333%;
  padding: 0 32px;
  border-left: 1px solid var(--panel-line);
}
.pillar:first-child { padding-left: 0; border-left: none; }
.pillar h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 12px;
}
.pillar p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0;
}

.approach {
  display: flex;
}
.approach-text { width: 45%; padding-right: 56px; }
.approach p {
  color: var(--text-muted);
  max-width: 52ch;
}
.approach p + p { margin-top: 18px; }
.stat-block {
  width: 55%;
  display: flex;
  flex-direction: column;
}
.stat {
  border-top: 1px solid var(--panel-line);
  padding-top: 16px;
}
.stat + .stat { margin-top: 22px; }
.stat b {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.6rem;
  display: block;
}
.stat span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--panel-line);
  color: var(--text-muted);
  font-size: 0.86rem;
}
footer .foot-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer a { text-decoration: none; color: var(--text-muted); }
footer a:hover { color: var(--text); }

@media (max-width: 760px) {
  .hero { flex-direction: column; padding: 56px 0 48px; }
  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-main, .hero-aside { width: 100%; padding-right: 0; }
  .hero-aside { border-left: none; padding-left: 0; border-top: 1px solid var(--panel-line); padding-top: 24px; margin-top: 24px; }
  .pillars { flex-direction: column; }
  .pillar { width: 100%; border-left: none; padding-left: 0; border-top: 1px solid var(--panel-line); padding-top: 24px; margin-top: 24px; }
  .pillar:first-child { border-top: none; padding-top: 0; margin-top: 0; }
  .approach { flex-direction: column; }
  .approach-text, .stat-block { width: 100%; padding-right: 0; }
  .stat-block { margin-top: 32px; }
  footer .foot-row div + div { margin-top: 8px; }
}

/* ---------- Inner pages (new; products and legal) ---------- */

.foot-links a + a { margin-left: 20px; }
nav a[aria-current="page"] { color: var(--text); }

.page-head { padding-top: 72px; padding-bottom: 40px; }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.page-head .lede {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 60ch;
  margin: 0;
}
.meta { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 12px; }

/* Products */
.feature-grid { display: flex; flex-wrap: wrap; margin: 0 -16px; }
.feature { width: 50%; padding: 0 16px 36px; }
.feature h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin: 0 0 8px; }
.feature p { color: var(--text-muted); font-size: 0.98rem; margin: 0; }
.plain-list { color: var(--text-muted); max-width: 66ch; padding-left: 20px; margin: 0; }
.plain-list li + li { margin-top: 10px; }
.plain-list strong { color: var(--text); font-weight: 600; }
.body-text { color: var(--text-muted); max-width: 66ch; margin: 0 0 16px; }

/* Legal documents: a single readable column */
/* Keep the page's left edge in line with the header; cap the reading width. */
.doc { padding-top: 64px; padding-bottom: 72px; }
.doc > * { max-width: 760px; }
.doc h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.doc h2 {
  font-size: 1.45rem;
  max-width: none;
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--panel-line);
}
.doc h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--text-muted); }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--accent); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
.doc th, .doc td { border: 1px solid var(--panel-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { color: var(--text); font-weight: 600; background: var(--panel); }
.doc td { color: var(--text-muted); }

/* Working-draft notes. The publish step strips these, and the banner, from the live pages. */
.draft-banner, .solicitor-note, .build-note {
  display: block;
  margin: 14px 0;
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  border-left: 3px solid;
  background: var(--panel);
  color: var(--text);
}
.draft-banner { border-color: var(--accent-warm); margin-bottom: 32px; }
.solicitor-note { border-color: var(--accent-warm); }
.build-note { border-color: var(--accent); }
.solicitor-note::before { content: "For Later Legal Review " attr(data-id) ": "; font-weight: 600; color: var(--accent-warm); }
.build-note::before { content: "To Confirm " attr(data-id) ": "; font-weight: 600; color: var(--accent); }

@media (max-width: 760px) {
  .page-head { padding-top: 48px; padding-bottom: 28px; }
  .feature { width: 100%; }
  .foot-links a + a { margin-left: 16px; }
}
