/*
  Family template for src/t/family/index.html.
  Tokens follow helper/themes/Family: warm canvas and stone bands, white cards
  with a 1px inset stone border and 10px radius, a dark ink pill and a sand
  pill, link blue for inline links, and cartoon mascots in sky / sun / mint /
  pink. The display face is Unbounded 500 with tight tracking; Inter carries
  the body text.
*/

@font-face {
  font-family: "Unbounded";
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/unbounded-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/unbounded-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --canvas: #fbfaf9;
  --stone: #f2f0ed;
  --sand: #f6f4ef;
  --ink: #121212;
  --heading: #343433;
  --body: #474645;
  --muted: #6f6d6a;
  --blue: #0086fc;
  /* Link Blue darkened for text links: #0086fc gives only 3.2–3.6:1 on the
     canvas and stone surfaces; this passes 4.5:1 on both. */
  --link: #0066cc;
  --ember: #ff3e00;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
code {
  font: 500 0.85em/1.4 ui-monospace, "SFMono-Regular", monospace;
  background: var(--stone);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--heading); margin: 0; }
h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.12; letter-spacing: -0.03em; color: var(--ink); }
h2 { font-size: clamp(28px, 3.1vw, 42px); line-height: 1.18; letter-spacing: -0.025em; margin-bottom: 18px; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 10px; }
.blue { color: var(--blue); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.center { text-align: center; }

.logo-mark {
  width: 26px;
  height: 26px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("/assets/logo/logo-ink.svg") center / contain no-repeat;
  mask: url("/assets/logo/logo-ink.svg") center / contain no-repeat;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 16px/1 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.pill {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font: 700 15px/1.2 var(--text);
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}
.pill:hover { transform: translateY(-1px); }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #333; }
.pill-sand { background: var(--sand); color: var(--ink); box-shadow: inset 0 0 0 1px #e6e2da; }
.pill-sand:hover { background: #ece8df; }
.pill-light { background: #fff; color: var(--ink); }
.link { font-weight: 700; text-decoration: none; }
.link::after { content: " →"; content: " →" / ""; }
.link:hover { text-decoration: underline; }
.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--stone);
  color: var(--ink);
  font: 700 13px/1 var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.tag-dark { background: #2a2a2a; color: #fff; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 249, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 700; }
.nav-links a { color: var(--ink); text-decoration: none; }
.brand, .nav-links a, .nav .pill { white-space: nowrap; }
.nav-links a:hover { color: var(--blue); }
.nav .pill { padding: 10px 18px; font-size: 14px; }

.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.7fr 1fr; gap: 24px; align-items: center; }
.hero-text { text-align: center; }
.hero .lead { font-size: 19px; margin: 24px auto 32px; max-width: 580px; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.section { padding: 96px 0; }
.section-stone { background: var(--stone); }
.intro { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.intro p { font-size: 18px; margin: 0 0 26px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--stone);
  padding: 32px;
}
.feature p { margin: 0; }
.dot {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c);
  margin-bottom: 20px;
  flex: none;
}
.dot svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.two-col h3 { font-size: 24px; margin-bottom: 14px; }
.two-col p { margin: 0 0 18px; }

.phones {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.phones li {
  background: #fff;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--stone);
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.phones img { width: 200px; margin-bottom: 14px; }
.phones b { font: 500 18px/1.3 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.store-links { display: flex; gap: 18px; font-weight: 700; font-size: 15px; }

.section-alt { padding-top: 24px; }
.alt { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; }
.alt-reverse .alt-text { order: 2; }
.alt-text p { margin: 0 0 20px; }
.alt-art {
  background: var(--stone);
  border-radius: 16px;
  padding: 24px;
}
.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; color: var(--ink); font-weight: 700; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #00c978 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%23121212' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.dark-card {
  background: var(--ink);
  color: #d9d7d3;
  border-radius: 24px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.dark-card h2 { color: #fff; }
.dark-card p { margin: 0 0 28px; }
.dark-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dark-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #1e1e1e;
  border-radius: 12px;
  padding: 16px 18px;
  color: #fff;
  font-weight: 700;
}
.dark-list .dot { width: 18px; height: 18px; margin: 0; }

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.faq-grid p { margin: 0 0 26px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  background: #fff;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #e6e2da;
  padding: 0 24px;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  position: relative;
  font: 500 16px/1.4 var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 15px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sand);
  text-align: center;
  font: 500 18px/26px var(--text);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -4px 0 20px; }

.finale { padding: 110px 0; text-align: center; }
.finale img { margin: 0 auto 28px; width: 300px; }
.finale h2 { font-size: clamp(32px, 4.4vw, 60px); color: var(--ink); margin-bottom: 32px; }

footer { background: var(--stone); padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col b { color: var(--ink); font-family: var(--display); font-weight: 500; font-size: 14px; margin-bottom: 4px; }
.footer-col a { color: var(--body); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 48px; color: var(--muted); }

/* Below the full nav width the six links move to a second, swipeable row, so
   the menu stays reachable without JavaScript. */
@media (max-width: 1160px) {
  html { scroll-padding-top: 120px; }
  .nav-row { flex-wrap: wrap; height: auto; padding-top: 14px; row-gap: 0; }
  .nav-links { order: 3; flex: 0 0 100%; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: none; }
}
@media (max-width: 860px) {
  .features, .phones { grid-template-columns: 1fr 1fr; }
  .two-col, .alt, .dark-card, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .alt-reverse .alt-text { order: 0; }
  .dark-card { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  h2 { font-size: 24px; }
  .brand { font-size: 14px; }
  .nav .pill { padding: 9px 14px; font-size: 13px; }
  .hero { padding: 48px 0 64px; }
  .hero .lead { font-size: 17px; }
  .section { padding: 64px 0; }
  .section-alt { padding-top: 8px; }
  .alt { padding: 36px 0; }
  .features, .phones { grid-template-columns: 1fr; }
  .feature { padding: 26px; }
  .dark-card { padding: 32px 22px; border-radius: 18px; }
  .finale { padding: 72px 0; }
}
/* The brand and the header CTA no longer fit side by side; the hero repeats
   the CTA right below. */
@media (max-width: 480px) {
  .nav .pill { display: none; }
  .nav-row { padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill:hover { transform: none; }
}
