/* Soriku Limited: one family (Schibsted Grotesk), Hong Kong tram green,
   real product screenshots, and each product tinted in its own colour. */

:root {
  color-scheme: light dark;
  --paper: #F3F5F2;
  --band: #E8EDEA;
  --card: #FFFFFF;
  --ink: #10261F;
  --muted: #4A5D56;
  --line: #D3DCD7;
  --line-strong: #B5C3BC;
  --green: #157A57;
  --green-ink: #0F5F43;
  --on-green: #FFFFFF;
  --deep: #0F4A36;
  --window-bar: #EDF0EE;
  --shadow: 0 1px 2px rgba(16, 38, 31, 0.08), 0 22px 48px -18px rgba(16, 38, 31, 0.35);

  --reqkey: #E8EAFB;
  --reqkey-edge: #D3D7F7;
  --say: #F8E6DD;
  --say-edge: #F0D2C3;
  --face: #FCF0C8;
  --face-edge: #F2DE97;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0D1A16;
    --band: #10211C;
    --card: #132721;
    --ink: #E5EEEA;
    --muted: #9DB1A9;
    --line: #23372F;
    --line-strong: #35503F;
    --green: #4CC79A;
    --green-ink: #7ED9B6;
    --on-green: #0B2219;
    --deep: #123A2D;
    --window-bar: #1C2A26;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 22px 48px -18px rgba(0, 0, 0, 0.7);

    --reqkey: #171A33;
    --reqkey-edge: #262B52;
    --say: #2A1912;
    --say-edge: #45291D;
    --face: #29230E;
    --face-edge: #463B16;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

a { color: var(--green-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--on-green);
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.button:hover { background: var(--green-ink); border-color: var(--green-ink); }

.button--quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button--quiet:hover { background: var(--card); border-color: var(--ink); }

.button--small { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; border-radius: 10px; }

.button--light { background: #FFFFFF; border-color: #FFFFFF; color: #0F4A36; }
.button--light:hover { background: #E6F3EC; border-color: #E6F3EC; }

/* Header */

.site-header { padding-block: 18px; }

.header-row { display: flex; align-items: center; gap: 24px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.brand img { width: 32px; height: 32px; }

.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; }
.main-nav a:hover { color: var(--green-ink); text-decoration: underline; }

@media (max-width: 640px) {
  .main-nav { display: none; }
  .header-row .button { margin-left: auto; }
}

/* Hero */

.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 9vw, 112px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.lede {
  margin: 24px 0 0;
  max-width: 40ch;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
  color: var(--muted);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* The collage: Reqkey's site behind, SayControl in front, Face Off on a phone */

.hero-visual { position: relative; aspect-ratio: 1.12 / 1; }

.hero-visual .window--back { position: absolute; top: 2%; right: 4%; width: 90%; }
.hero-visual .window--front { position: absolute; left: 0; bottom: 4%; width: 60%; }
.hero-visual .phone--hero { position: absolute; right: 0; bottom: 0; width: 27%; }

.window {
  overflow: hidden;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid rgba(16, 38, 31, 0.12);
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding-inline: 12px;
  background: var(--window-bar);
  border-bottom: 1px solid var(--line);
}
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #E0645A; }
.window-bar i:nth-child(2) { background: #E9B44C; }
.window-bar i:nth-child(3) { background: #58B368; }
.window-bar span {
  margin-left: 10px;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window img { width: 100%; }

.phone {
  padding: 2.6%;
  border-radius: 17% / 7.8%;
  background: #0E1714;
  box-shadow: var(--shadow);
}
.phone img { width: 100%; border-radius: 15% / 6.9%; }

/* Sections */

.section { padding-block: clamp(56px, 8vw, 104px); }

.section h2 {
  margin: 0;
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin: 12px 0 0; color: var(--muted); }

/* Products */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(24px, 4.5vw, 56px);
  border-radius: 28px;
  border: 1px solid transparent;
  scroll-margin-top: 24px;
}
.product + .product { margin-top: 20px; }

.product--reqkey { background: var(--reqkey); border-color: var(--reqkey-edge); }
.product--saycontrol { background: var(--say); border-color: var(--say-edge); }
.product--faceoff { background: var(--face); border-color: var(--face-edge); }

.product:nth-of-type(even) .product-media { order: 2; }

.product-media--phones { display: flex; justify-content: center; gap: 6%; }
.product-media--phones .phone { width: 40%; max-width: 230px; }
.product-media--phones .phone--offset { margin-top: 12%; }

.product-title { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.product-title img {
  width: 56px;
  height: 56px;
  border-radius: 23%;
  box-shadow: 0 0 0 1px rgba(16, 38, 31, 0.1);
}
.product h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.kind { margin: 2px 0 0; font-size: 0.9375rem; color: var(--muted); }

.product-text > p { margin: 0; max-width: 50ch; }

.points { list-style: none; margin: 20px 0 28px; padding: 0; font-size: 1rem; line-height: 1.45; }
.points li { position: relative; padding-left: 26px; }
.points li + li { margin-top: 10px; }
.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.32em;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 14ch; }
  .hero-visual { max-width: 620px; }

  .product { grid-template-columns: minmax(0, 1fr); }
  .product:nth-of-type(even) .product-media { order: 0; }
}

/* About */

.section--about { background: var(--band); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-copy p { margin: 16px 0 0; max-width: 48ch; color: var(--muted); font-size: 1.1875rem; }
.about-copy h2 + p { margin-top: 20px; }

.company-card {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}
.company-card h3 { margin: 0 0 8px; font-size: 1.125rem; font-weight: 700; }
.company-card dl { margin: 0; font-size: 1rem; line-height: 1.5; }
.company-card dl > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}
.company-card dl > div:first-child { border-top: 0; }
.company-card dt { color: var(--muted); }
.company-card dd { margin: 0; font-weight: 500; }
.company-card address { font-style: normal; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .company-card dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Contact */

.contact-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  background: var(--deep);
  color: #FFFFFF;
}
.contact-band h2 { color: #FFFFFF; }
.contact-band p { margin: 10px 0 0; max-width: 46ch; color: rgba(255, 255, 255, 0.82); }
.contact-band .button { overflow-wrap: anywhere; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding-top: clamp(40px, 6vw, 64px); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.footer-grid h3 { margin: 0 0 12px; font-size: 0.9375rem; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li + li { margin-top: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-grid address { font-style: normal; line-height: 1.6; }
.footer-brand .brand { font-size: 1.25rem; color: var(--ink); }
.footer-brand .brand img { width: 28px; height: 28px; }
.footer-brand p { margin: 12px 0 0; max-width: 26ch; }

.footer-base {
  margin-top: clamp(32px, 5vw, 56px);
  padding-block: 20px 32px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-base p { margin: 0; }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
}

/* 404 */
.notfound { margin: 0 0 16px; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em; }
