/* SMARTSOL LIMITED: the company page above ProcuraCloud and Frontage.
   Ink and paper, with the amber of the mark's upper ring as the one accent, so
   it sits apart from both products' own colours (blue, and green and clay). */

:root {
  --ink: #15171c;
  --ink-soft: #3a3f49;
  --slate: #5b6270;
  --paper: #f5f6f3;
  --card: #ffffff;
  --line: #dde0da;
  --sun: #f0a526;
  --sun-deep: #8a5a00;
  --night-line: #333844;
  --night-text: #c9ccd2;
  --procura: #1f6aa3;
  --frontage: #106e5c;
  --radius: 14px;
  --wrap: 1120px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; z-index: 10; }

/* ---- the mark, drawn inline so it follows the page's colours */
.ring-sun, .ring-ground { fill: none; stroke-width: 16; }
.ring-sun { stroke: var(--sun); }
.ring-ground { stroke: var(--ink); }

/* ---- header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; min-height: 76px; flex-wrap: wrap; padding: 10px 0; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup .mark { width: 34px; height: 34px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.08em; }
.site-header nav { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; }
.site-header nav a { color: var(--ink-soft); font-weight: 500; text-decoration: none; }
.site-header nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-header nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }

/* ---- type */
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.7rem; font-weight: 700; }
.eyebrow { margin: 0 0 18px; color: var(--slate); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---- hero */
.hero { padding: 88px 0 76px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lede { max-width: 58ch; margin: 24px 0 0; color: var(--ink-soft); font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 34px 0 0; }
.button { display: inline-block; padding: 13px 22px; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.button:hover { background: #2a2e37; }
.text-link { color: var(--sun-deep); font-weight: 600; text-underline-offset: 4px; }
.hero-mark { width: 100%; max-width: 340px; justify-self: end; }

/* ---- products */
.products, .company { padding: 76px 0; border-top: 1px solid var(--line); }
.section-lede { max-width: 62ch; margin: 14px 0 36px; color: var(--ink-soft); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product { display: flex; flex-direction: column; gap: 10px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.product img { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; }
.product h3 { margin-top: 12px; }
.product p { margin: 0; color: var(--ink-soft); }
.product .product-what { color: var(--ink); font-weight: 600; }
.product-procura .product-what { color: var(--procura); }
.product-frontage .product-what { color: var(--frontage); }
.product-link { margin-top: auto; padding-top: 16px; font-weight: 600; text-decoration: none; }
.product-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---- company */
.company-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts div:first-child { border-top: 1px solid var(--line); }
.facts dt { color: var(--slate); font-weight: 500; }
.facts dd { margin: 0; font-weight: 500; }

/* ---- contact and footer, on ink */
.contact { padding: 76px 0 88px; background: var(--ink); color: var(--paper); }
.contact h2 { color: var(--paper); }
.contact p { max-width: 52ch; color: var(--night-text); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-card { padding: 28px; border: 1px solid var(--night-line); border-radius: var(--radius); }
.contact-card .label { margin: 0 0 4px; color: var(--sun); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-card .big { margin: 0 0 22px; color: var(--paper); font-family: var(--display); font-size: clamp(1.15rem, 2.3vw, 1.5rem); overflow-wrap: anywhere; }
.contact-card a { color: var(--paper); text-underline-offset: 5px; }
.contact-card .big:last-child { margin-bottom: 0; }

.site-footer { background: var(--ink); color: #9aa0aa; border-top: 1px solid #2a2e37; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 72px; padding: 12px 0; }
.footer-row p { margin: 0; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-row a { color: var(--night-text); text-decoration: none; }
.footer-row a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }

/* ---- legal pages */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal .updated { margin: 12px 0 36px; color: var(--slate); }
.legal h2 { margin: 38px 0 10px; font-size: 1.35rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--sun-deep); }

@media (max-width: 820px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid, .product-grid, .company-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-mark { order: -1; max-width: 120px; justify-self: start; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .products, .company, .contact { padding: 56px 0; }
}
