/* nomblin.com: one stylesheet for every page. Palette A from the app (dark only). */
@font-face {
  font-family: 'Onest';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Onest_400Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Onest';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Onest_600SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Onest';
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/Onest_800ExtraBold.ttf') format('truetype');
}

:root {
  --bg: #0b0e13;
  --card: #171c25;
  --line: #2a3140;
  --text: #e8ecf2;
  --muted: #8a93a3;
  --green: #b6ff1f;
  --green-edge: #7fb800;
  --ink: #0b0e13;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    400 17px/1.6 'Onest',
    system-ui,
    sans-serif;
}

a {
  color: var(--green);
  text-underline-offset: 3px;
}
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.narrow {
  max-width: 720px;
}

/* Top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 40px;
  height: 40px;
}
.lang {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 4px;
}
.lang:hover {
  color: var(--text);
}

/* Hero */
.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 32px 0 64px;
}
.hero h1 {
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 20px;
  max-width: 13ch;
}
.hero p {
  color: var(--muted);
  font-size: 19px;
  margin: 0 0 28px;
  max-width: 36ch;
}
.hero .when {
  font-size: 15px;
  margin: 20px 0 0;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--green-edge);
  transition:
    transform 0.1s,
    box-shadow 0.1s;
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--green-edge);
}

.phone {
  width: min(78%, 320px);
  margin: 0 auto;
  border-radius: 36px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(182, 255, 31, 0.25);
}

/* Feature rows: text beside a screen or the mascot, not a grid of identical cards */
.row {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.row h2 {
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  font-weight: 800;
}
.row p {
  color: var(--muted);
  margin: 0 0 12px;
  max-width: 46ch;
}
.row .phone {
  width: min(70%, 280px);
}
.mascot {
  width: min(50%, 220px);
  margin: 0 auto;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}
.facts li {
  padding-left: 28px;
  position: relative;
}
.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--green);
}

/* Legal pages */
.doc {
  padding: 24px 0 64px;
}
.doc h1 {
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 8px 0 8px;
}
.doc .updated {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 32px;
}
.doc h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
}
.doc p,
.doc li {
  color: #c9d0db;
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li {
  margin-bottom: 6px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.doc th {
  color: var(--text);
}
.table-scroll {
  overflow-x: auto;
}
.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 24px 0;
}
.note p {
  margin: 0;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 15px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 16px;
}
.foot nav a {
  color: var(--text);
  text-decoration: none;
}
.foot nav a:hover {
  text-decoration: underline;
}
.foot p {
  margin: 4px 0;
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 56px 0 96px;
  }
  .row {
    grid-template-columns: 1fr 1fr;
    padding: 80px 0;
  }
  .row.flip > :first-child {
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
