/* Times everywhere. Liberation Serif is Times New Roman's metric twin (SIL OFL 1.1, fonts/LICENSE-LiberationSerif.txt),
   served as-is: older Times New Roman and Georgia builds lack Romanian ș/ț, which made the browser patch them in
   from another font. */
@font-face { font-family: "Liberation Serif"; font-style: normal; font-weight: 400; font-display: swap; src: local("Liberation Serif"), url("/fonts/LiberationSerif-Regular.woff2") format("woff2"); }
@font-face { font-family: "Liberation Serif"; font-style: normal; font-weight: 700; font-display: swap; src: local("Liberation Serif Bold"), url("/fonts/LiberationSerif-Bold.woff2") format("woff2"); }
@font-face { font-family: "Liberation Serif"; font-style: italic; font-weight: 400; font-display: swap; src: local("Liberation Serif Italic"), url("/fonts/LiberationSerif-Italic.woff2") format("woff2"); }

:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #111216;
  --ink-2: #3d3e45;
  --ink-3: #6e6f78;
  --line: #dcd9d1;
  --rule: #111216;
  --ok: #1f7a4d;
  --warn: #a2620a;
  --font: "Liberation Serif", "Times New Roman", Times, serif;
  /* the phone mock-up only, in the app's own system font; no Arial/Helvetica (old builds lack ș/ț too) */
  --font-app: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e0f12;
    --surface: #15161a;
    --ink: #ededf0;
    --ink-2: #b9bac2;
    --ink-3: #85868f;
    --line: #2a2b31;
    --rule: #ededf0;
    --ok: #5fcf95;
    --warn: #e9b05d;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 19px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.eyebrow { display: block; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { height: 44px; width: auto; }
@media (prefers-color-scheme: dark) { .brand img { filter: invert(1); } }
.brand span { font-size: 16px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.nav a:hover { color: var(--ink); }
.nav a.lang { padding: 5px 9px; border: 1px solid var(--line); font-size: 12px; }
@media (max-width: 980px) { .nav a:not(.btn):not(.lang) { display: none; } .nav { gap: 12px; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border: 1px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--paper);
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transition: background .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.nav a.btn { padding: 10px 16px; color: var(--paper); font-size: 13px; }
.nav a.btn:hover { color: var(--ink); }

/* Hero */
.hero { padding: 112px 0 0; }
.hero h1 { font-size: clamp(40px, 5.4vw, 70px); line-height: 1.08; letter-spacing: -.01em; max-width: 12em; margin: 22px 0 28px; }
.lede { font-size: clamp(20px, 2vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 38em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
@media (max-width: 640px) { .hero { padding-top: 64px; } }

.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 96px 0 0; border-top: 1px solid var(--rule); }
.keyfacts div { padding: 22px 24px 28px 0; }
.keyfacts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.keyfacts dt { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.keyfacts dd { margin: 0; font-size: 19px; line-height: 1.35; }
@media (max-width: 900px) {
  .keyfacts { grid-template-columns: 1fr 1fr; margin-top: 64px; }
  .keyfacts div, .keyfacts div + div { padding: 18px 16px 20px 0; border-left: 0; }
  .keyfacts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: 128px 0; }
.section + .section { border-top: 1px solid var(--line); }
@media (max-width: 640px) { .section { padding: 80px 0; } }
.section-head { max-width: 780px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -.01em; margin: 18px 0 22px; }
.section-head p { font-size: 21px; color: var(--ink-2); }
.tinted { background: var(--surface); }

/* What we do: four capabilities */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 40px; counter-reset: step; }
.step { counter-increment: step; border-top: 1px solid var(--rule); padding-top: 22px; }
.step::before { content: counter(step, upper-roman); display: block; font-style: italic; color: var(--ink-3); margin-bottom: 10px; }
.step h3 { font-size: 27px; line-height: 1.2; margin-bottom: 12px; }
.step p { color: var(--ink-2); font-size: 18px; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; gap: 48px 32px; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

/* Lists with hairlines (the featured product) */
.plain-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.plain-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 20px; }
.plain-list li small { display: block; color: var(--ink-3); font-size: 16px; }

/* Portfolio: one featured product with its phone, the rest as cards */
.featured { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; padding-bottom: 88px; }
@media (max-width: 960px) { .featured { grid-template-columns: 1fr; gap: 56px; padding-bottom: 64px; } }
.featured h3 { display: flex; align-items: center; gap: 14px; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; margin: 14px 0 16px; }
.featured h3 img { width: 38px; height: auto; }
.featured .intro { font-size: 21px; color: var(--ink-2); max-width: 32em; margin-bottom: 32px; }
.featured .status { margin-top: 0; }
.kind { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

.products { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; gap: 48px; } }
.product-card { display: flex; flex-direction: column; border-top: 1px solid var(--rule); padding-top: 22px; }
.product-card h3 { display: flex; align-items: center; gap: 12px; font-size: 30px; line-height: 1.15; margin: 14px 0 12px; }
.product-card h3 img { width: 30px; height: auto; }
.product-card p { color: var(--ink-2); font-size: 18px; }
.product-card.upcoming { border-top-style: dashed; }
.product-card.upcoming h3, .product-card.upcoming p { color: var(--ink-3); }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: auto; padding-top: 22px; font-size: 16px; color: var(--ink-2); }
.status span { display: inline-flex; align-items: center; gap: 8px; }
.status span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status .live::before { background: var(--ok); }
.status .beta::before { background: var(--warn); }
.status a { margin-left: auto; color: var(--ink); text-underline-offset: 4px; }

/* Phone mockup */
.phone-stage { display: flex; justify-content: center; }
.phone {
  width: 300px; aspect-ratio: 9 / 19; border-radius: 48px; padding: 11px;
  background: linear-gradient(145deg, #2a2b33, #0b0c10);
  box-shadow: 0 40px 80px -30px rgba(17, 18, 22, .45), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden;
  background: #f5f2ec; color: #181817; padding: 46px 16px 18px;
  display: flex; flex-direction: column; font: 12px/1.35 var(--font-app);
}
.screen::before { content: ""; position: absolute; top: 11px; left: 50%; translate: -50% 0; width: 90px; height: 26px; border-radius: 20px; background: #0b0c10; }

/* Signetur's welcome screen (app/welcome.tsx), redrawn in the app's own font: its strings, colours and artwork */
.sg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin: 18px 0 22px; }
.sg-title { font-size: 21px; line-height: 1.18; letter-spacing: -.02em; color: #6b675f; }
.sg-title b { display: block; color: #181817; font-weight: 750; }
.sg-head img { width: 62px; flex: none; }
.sg-search {
  display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 12px; border-radius: 999px;
  background: #fffdfa; color: #8a877f; font-size: 11px; box-shadow: 0 4px 14px rgba(24, 24, 23, .08);
}
.sg-search svg { width: 12px; height: 12px; flex: none; }
.sg-search b { margin-left: auto; padding: 7px 12px; border-radius: 999px; background: #dc2f33; color: #fff; font-weight: 650; }
.sg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 4px; margin-top: 30px; text-align: center; font-size: 10.5px; }
.sg-grid img { width: 46px; height: 46px; margin: 0 auto 5px; object-fit: contain; }
.sg-cta { margin-top: auto; padding: 11px; border-radius: 999px; background: #181817; color: #fff; text-align: center; font-weight: 650; }
.sg-alt { margin-top: 9px; text-align: center; font-weight: 600; }

/* Phone in dark mode: the app's own dark theme, and a bezel that stays visible on a dark page */
@media (prefers-color-scheme: dark) {
  .phone {
    background: linear-gradient(145deg, #3a3b45, #1a1b21);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 80px -30px rgba(0, 0, 0, .9);
  }
  .screen { background: #000; color: #f2f2f5; }
  .sg-title { color: #98989f; }
  .sg-title b { color: #fff; }
  .sg-search { background: #1c1c1e; color: #8e8e93; box-shadow: none; }
  .sg-cta { background: #fff; color: #000; }
}

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.principle { border-top: 1px solid var(--rule); padding-top: 22px; }
.principle h3 { font-size: 27px; line-height: 1.2; margin-bottom: 12px; }
.principle p { color: var(--ink-2); font-size: 18px; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; gap: 36px; } }

/* Company */
.company { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
@media (max-width: 960px) { .company { grid-template-columns: 1fr; gap: 40px; } }
.company .section-head { margin-bottom: 0; }
.facts { margin: 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 230px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-3); font-size: 17px; }
.facts dd { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.facts dd a { text-underline-offset: 4px; text-decoration-color: var(--line); }
.facts dd a:hover { text-decoration-color: currentColor; }
@media (max-width: 600px) { .facts div { grid-template-columns: 1fr; gap: 0; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 32px; } }
.contact .section-head { margin-bottom: 0; }
.contact-lines { border-top: 1px solid var(--rule); }
.contact-lines a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 21px; }
.contact-lines a span { color: var(--ink-3); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; align-self: center; }
.contact-lines a:hover { color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 36px 0 48px; color: var(--ink-3); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Legal page */
.legal { max-width: 800px; padding: 80px 32px 112px; }
.legal h1 { font-size: clamp(40px, 5.4vw, 60px); line-height: 1.05; margin-bottom: 12px; }
.legal .updated { color: var(--ink-3); margin-bottom: 48px; }
.legal h2 { font-size: 28px; margin: 44px 0 12px; }
.legal p { color: var(--ink-2); margin-bottom: 14px; }
.legal a { text-underline-offset: 3px; }
@media (max-width: 640px) { .legal { padding: 56px 16px 80px; } }
