@font-face {
  font-family: Onest;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/onest-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Onest;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/onest-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2116, U+2122;
}

@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/assets/fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/assets/fonts/unbounded-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2116, U+2122;
}

:root {
  --bg: #f5eee2;
  --card: #fffaf2;
  --line: #e2d5c1;
  --ink: #221b16;
  --muted: #6b5d51;
  --accent: #b0451a;
  --shadow-card: 0 1px 0 var(--line), 0 6px 14px -10px rgba(0, 0, 0, .25);
  --gutter: clamp(16px, 4vw, 32px);
  --radius-card: 18px;
  --radius-pill: 22px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161f;
    --card: #1e2130;
    --line: #323650;
    --ink: #efe9de;
    --muted: #9ea1b3;
    --accent: #f2b56b;
  }
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Onest, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Unbounded, Onest, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
  hyphens: auto;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(1180px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px) saturate(1.08);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding-block: 10px;
}

.wordmark {
  font-family: Unbounded, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark .dot {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg);
  font-family: Onest, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: transform .16s ease, opacity .16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: .94;
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7vw, 96px);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

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

.hero h1 {
  margin-top: 24px;
  font-size: clamp(1.75rem, 8vw, 3.25rem);
  font-weight: 600;
}

.hero-line {
  display: block;
}

.lead {
  max-width: 46ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 30px;
}

.qr-invite {
  display: none;
  align-items: center;
  gap: 12px;
}

.qr-tile {
  flex: 0 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf2;
}

.qr-tile img {
  width: 96px;
  height: 96px;
}

.qr-caption {
  max-width: 14ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

@media (min-width: 900px) and (hover: hover) {
  .qr-invite {
    display: flex;
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.link-arrow:hover {
  color: var(--accent);
}

.fineprint {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-wrap {
  position: relative;
  width: 300px;
}

.phone {
  width: 300px;
  max-width: 100%;
  overflow: hidden;
  border: 10px solid var(--ink);
  border-radius: 44px;
  background: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(0, 0, 0, .45);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 34px;
}

.float-task {
  position: absolute;
  right: -84px;
  bottom: 46px;
  width: 188px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.float-time {
  display: block;
  color: var(--accent);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.float-title {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.float-day {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

/* Sections */

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

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

.section-head {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.kicker {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

h2 {
  max-width: 20ch;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 600;
}

.section-note {
  max-width: 52ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.section-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 32px;
}

.section-head-split .section-note {
  margin-top: 0;
}

/* How it works */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-card {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.step-num {
  display: block;
  color: var(--accent);
  font-family: Unbounded, sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}

.step-card h3 {
  margin-top: 26px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.step-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* Live example */

.try-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
}

.phrase-list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
}

.phrase {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--ink);
  font-family: Onest, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
  appearance: none;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.phrase:hover {
  border-color: var(--ink);
}

.phrase[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.parse-panel {
  position: relative;
}

.parse-label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.parse-result {
  display: grid;
  gap: 12px;
}

.parse-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.parse-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.parse-time {
  color: var(--accent);
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
}

.parse-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.parse-meta {
  display: flex;
  gap: 28px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.parse-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.parse-meta dd {
  margin: 3px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

/* Features */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  transition: border-color .16s ease;
}

.feature-card:hover {
  border-color: var(--ink);
}

.feature-num {
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.feature-card h3 {
  margin-top: 26px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.feature-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* Day and night */

.phone-pair {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
}

.shot {
  flex: 0 0 auto;
  width: 260px;
  margin: 0;
}

.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -30px rgba(0, 0, 0, .45);
}

.shot figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .02em;
  text-align: center;
}

/* Data */

.data-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}

.data-grid .section-head {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 20px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--accent);
}

.data-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.data-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.data-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.data-num {
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.data-list p {
  max-width: 46ch;
  font-size: 17px;
}

.data-list strong {
  font-weight: 600;
}

/* FAQ */

.faq-wrap {
  width: min(860px, calc(100% - var(--gutter) * 2));
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-family: Unbounded, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 64ch;
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.55;
}

/* Final CTA */

.cta {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 7vw, 100px);
  padding: clamp(64px, 8vw, 104px) 0 200px;
  border-block: 1px solid var(--line);
  background: var(--card);
  text-align: center;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta h2 {
  max-width: none;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.cta .btn {
  margin-top: 32px;
}

.snout {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 0;
  display: block;
  width: 346px;
  height: 178px;
  line-height: 0;
  text-decoration: none;
  transform: translateX(-50%);
}

.snout img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transform-origin: 50% 100%;
  animation: breathe 3.8s ease-in-out infinite;
}

.snout:active img {
  animation: none;
  transform: scaleY(.94);
}

.snout:focus-visible {
  outline-offset: -2px;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.015);
  }
}

/* Footer */

.site-footer {
  padding-block: 36px 44px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.wordmark-footer {
  font-size: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-copy {
  color: var(--muted);
  font-size: 14px;
}

/* Subpages */

.page {
  max-width: 860px;
  padding-block: clamp(36px, 5vw, 64px) clamp(64px, 8vw, 96px);
}

.page-head {
  max-width: 720px;
}

.page-title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 600;
}

.page-lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.page .btn {
  margin-top: 28px;
}

.legal {
  max-width: 72ch;
  margin-top: 44px;
}

.legal h3 {
  margin: 32px 0 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.legal p,
.legal li {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.legal p {
  margin: 10px 0;
}

.legal ul {
  margin: 10px 0;
  padding-left: 20px;
}

.legal li {
  margin: 6px 0;
}

.legal .muted {
  color: var(--muted);
}

.draft {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.draft summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.draft summary::-webkit-details-marker {
  display: none;
}

.draft summary::after {
  content: "+";
  color: var(--accent);
  font-family: Unbounded, sans-serif;
  font-size: 22px;
  line-height: 1;
}

.draft[open] summary::after {
  content: "−";
}

.draft .legal {
  max-width: none;
  margin-top: 0;
  padding-bottom: 28px;
}

/* 404 */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px);
  text-align: center;
}

.error-page .page-title {
  max-width: 16ch;
}

.error-snout {
  width: min(346px, 80vw);
  height: auto;
  margin-top: 36px;
}

.error-page .btn {
  margin-top: 18px;
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: rise .6s cubic-bezier(.2, .7, .2, 1) both;
  }

  .hero-visual {
    animation: rise .7s cubic-bezier(.2, .7, .2, 1) .1s both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .snout img {
    animation: none;
  }

  .hero-copy,
  .hero-visual {
    animation: none;
  }

  .btn,
  .phrase,
  .feature-card {
    transition: none;
  }
}

/* Responsive */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 28px;
  }

  .hero-copy {
    max-width: none;
  }

  .try-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-grid {
    grid-template-columns: 1fr;
  }

  .data-grid .section-head {
    margin-bottom: 8px;
  }
}

@media (max-width: 860px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .section-head-split {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }

  .phone-pair {
    justify-content: flex-start;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .shot {
    width: 240px;
    scroll-snap-align: center;
  }

  .phone-wrap {
    width: 260px;
  }

  .phone {
    width: 260px;
    border-radius: 40px;
  }

  .phone img {
    border-radius: 30px;
  }

  .hero-visual {
    padding-bottom: 36px;
  }

  .float-task {
    right: auto;
    bottom: -26px;
    left: 50%;
    width: 190px;
    padding: 12px 16px;
    transform: translateX(-50%);
  }

  .float-time {
    font-size: 18px;
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

  .header-inner {
    min-height: 64px;
  }

  .header-inner > .btn {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .lead {
    font-size: 17px;
  }

  .cta {
    padding-bottom: 184px;
  }

  .snout {
    width: min(346px, calc(100vw - 40px));
    height: auto;
  }

  .snout img {
    height: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .footer-links {
    gap: 0 20px;
  }

  .footer-copy {
    margin-top: 4px;
  }
}

@media (max-width: 380px) {
  .wordmark {
    font-size: 22px;
  }

  .header-inner {
    gap: 12px;
  }

  .btn-sm {
    padding: 0 14px;
    font-size: 13px;
  }

  .eyebrow {
    font-size: 12px;
  }
}
