@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F6F5F0;
  --paper-top: #F8F7F2;
  --paper-bottom: #F4F2EC;
  --card: #FFFFFF;
  --card-line: rgba(17, 19, 21, 0.09);
  --ink: #111315;
  --ink-2: #5B5650;
  --ink-3: #78736C;
  --emerald: #0F9D7A;
  --emerald-deep: #0C7E62;
  --emerald-soft: #E6F4EF;
  --indigo: #492FDD;
  --indigo-soft: #ECEBFE;
  --stone: #EFECE6;
  --shadow: 0 10px 28px rgba(17, 19, 21, 0.045);
  --display: "Instrument Sans", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ui: "Geist", "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --measure: 68ch;
  --wrap: 1120px;
  --gutter: 40px;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--paper-top) 0%, var(--paper-bottom) 100%);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 430;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ——— Nav ——— */
.site-header {
  padding: 28px 0 8px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.wordmark .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 480;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

/* ——— Hero ——— */
.hero {
  padding: 96px 0 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 580;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  flex: 0 0 auto;
}

.hero h1 {
  font-size: clamp(42px, 6.2vw, 80px);
  font-weight: 680;
  letter-spacing: -0.048em;
  line-height: 0.98;
  color: var(--ink);
  margin: 0 0 32px;
}

.hero-lead {
  max-width: 36em;
  font-size: 18.5px;
  font-weight: 430;
  letter-spacing: -0.018em;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ——— Sections ——— */
.section {
  padding: 16px 0 96px;
}

.section[id] {
  scroll-margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(17, 19, 21, 0.10);
}

.section-label {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 580;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ——— Product cards ——— */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-family: var(--ui);
  font-size: 20px;
  font-weight: 670;
  letter-spacing: -0.04em;
  line-height: 1;
}

.badge-valutina {
  background: var(--indigo);
  color: #fff;
}

.badge-pocket {
  background: var(--stone);
  color: var(--ink-2);
}

.card-id {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
}

.card-name {
  font-size: 17px;
  font-weight: 640;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 580;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.pill-live {
  background: var(--emerald-soft);
  color: var(--emerald-deep);
}

.pill-live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
}

.pill-soon {
  background: var(--stone);
  color: var(--ink-2);
}

.card-tagline {
  font-size: 22px;
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin: 0 0 12px;
  text-wrap: pretty;
}

.card-copy {
  font-size: 15.5px;
  font-weight: 430;
  letter-spacing: -0.012em;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 42em;
  text-wrap: pretty;
}

.card-actions {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 530;
  letter-spacing: -0.015em;
  transition: background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  background: #000;
}

.text-link {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 86, 80, 0.35);
  padding-bottom: 1px;
  transition: color 160ms ease, border-color 160ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}

.card-quiet .card-copy {
  max-width: 28em;
}

/* ——— How we work ——— */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px 36px;
}

.work-item {
  min-width: 0;
  padding-top: 4px;
}

.work-index {
  display: block;
  margin-bottom: 14px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 580;
  letter-spacing: 0.12em;
  color: var(--emerald-deep);
}

.work-item h3 {
  font-size: 18px;
  font-weight: 630;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 10px;
}

.work-item p {
  font-size: 15.5px;
  font-weight: 430;
  letter-spacing: -0.012em;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.loop {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.loop span {
  color: var(--emerald);
  font-weight: 450;
  padding: 0 0.12em;
}

/* ——— Footer ——— */
.site-footer {
  padding: 0 0 48px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  padding-top: 24px;
  border-top: 1px solid rgba(17, 19, 21, 0.10);
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 450;
  letter-spacing: -0.005em;
  color: var(--ink-3);
}

.footer-inner a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--ink);
}

.sep {
  display: inline-block;
  margin: 0 10px;
  opacity: 0.55;
}

/* ——— Privacy page ——— */
body.privacy-page {
  font-size: 16.5px;
}

body.privacy-page .wrap {
  max-width: calc(var(--measure) + var(--gutter) * 2);
}

.privacy-header {
  padding: 28px 0 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 520;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 160ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--ink);
}

.back-link .chev {
  color: var(--emerald-deep);
  font-weight: 500;
}

.privacy {
  padding: 40px 0 112px;
}

.privacy-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 580;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.privacy-kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

.privacy h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 16px;
}

.updated {
  margin: 0 0 36px;
  font-family: var(--ui);
  font-size: 13.5px;
  font-weight: 450;
  color: var(--ink-3);
  letter-spacing: -0.005em;
}

.lede {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px 24px 22px 28px;
  margin: 0 0 44px;
}

.lede::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: var(--emerald);
  border-radius: 0 2px 2px 0;
}

.lede h2 {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 580;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 10px;
}

.lede p {
  font-size: 16.5px;
  line-height: 1.55;
  letter-spacing: -0.014em;
  color: var(--ink);
  text-wrap: pretty;
}

.privacy h2 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 2.2em 0 0.7em;
}

.privacy p,
.privacy li {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: -0.011em;
}

.privacy p + p {
  margin-top: 0.9em;
}

.privacy ul {
  margin: 0.7em 0 0.2em;
  padding: 0 0 0 1.15em;
}

.privacy li {
  margin: 0.35em 0;
  padding-left: 0.15em;
}

.privacy li::marker {
  color: var(--emerald-deep);
}

.privacy strong {
  color: var(--ink);
  font-weight: 600;
}

.privacy a {
  color: var(--emerald-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(12, 126, 98, 0.4);
}

.privacy a:hover,
.privacy a:focus-visible {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

.nowrap {
  white-space: nowrap;
}

/* ——— Responsive ——— */
@media (max-width: 860px) {
  :root { --gutter: 24px; }

  .hero { padding: 64px 0 64px; }
  .section { padding-bottom: 72px; }

  .product-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-grid { gap: 36px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  .site-header { padding: 20px 0 4px; }

  .nav {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px 20px;
  }

  .nav-links {
    width: 100%;
    gap: 18px;
    font-size: 13.5px;
  }

  .hero { padding: 48px 0 52px; }
  .hero-lead { font-size: 17px; }

  .card { padding: 24px 22px 22px; }
  .card-tagline { font-size: 20px; }

  .btn { width: 100%; }
  .card-actions { gap: 14px; }

  .footer-inner {
    gap: 6px 0;
    line-height: 1.7;
  }

  .privacy { padding: 36px 0 80px; }
  .lede { padding: 18px 18px 18px 24px; }
}
