/* vimaryapp.com — one light theme, the app's palette, system type. */

:root {
  --cream: #f4f2e9;
  --paper: #ffffff;
  --ink: #0c120d;
  --ink-70: rgba(12, 18, 13, 0.72);
  --ink-50: rgba(12, 18, 13, 0.52);
  --line: rgba(12, 18, 13, 0.1);
  --mint: #3ed96b;
  --mint-soft: #e2f7e8;
  --mint-deep: #0e6b36;
  --sky-wide: #a4e8bc;
  --sky-tall: #97eab7;
  --meadow-wide: #a5edbf;
  --meadow-tall: #92e9b4;
  --night-wide: #012820;
  --night-tall: #002923;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans',
    'Noto Sans Georgian', Arial, sans-serif;
  color-scheme: light;
}

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

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

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

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

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.75rem);
}

h2 {
  font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.5rem);
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--mint-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--mint-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}

.wrap.narrow {
  max-width: 760px;
}

@media (min-width: 600px) {
  .wrap {
    padding-inline: 24px;
  }
}

@media (min-width: 1000px) {
  .wrap {
    padding-inline: 40px;
  }
}

/* Skip link */
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  z-index: 20;
  transition: top 0.2s var(--ease);
}

.skip:focus {
  top: 12px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 242, 233, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.page-home .top {
  background: rgba(164, 232, 188, 0.82);
  border-bottom-color: rgba(12, 18, 13, 0.08);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.menu {
  display: none;
  gap: 4px;
  margin-left: 8px;
}

.menu a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.menu a:hover,
.menu a[aria-current] {
  background: rgba(12, 18, 13, 0.08);
}

@media (min-width: 760px) {
  .menu {
    display: flex;
  }
}

.langs {
  margin-left: auto;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(12, 18, 13, 0.06);
}

.langs a {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-70);
  text-decoration: none;
}

.langs a[aria-current] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(12, 18, 13, 0.12);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease),
    background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

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

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-ink {
  background: var(--ink);
  color: var(--cream);
}

.btn-ink:hover {
  background: #1d2a20;
}

.btn-mint {
  background: var(--mint);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(62, 217, 107, 0.35);
}

.btn-mint:hover {
  background: #4fe07a;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border-color: rgba(12, 18, 13, 0.18);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.85);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.soon {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
}

.store img {
  height: 56px;
  width: auto;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--sky-tall);
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: 40px;
  padding-bottom: 8px;
}

.kicker {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin-bottom: 14px;
}

.hero h1 {
  margin-bottom: 18px;
}

.lead {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 640px;
  margin-inline: auto;
}

.hero .lead {
  color: rgba(12, 18, 13, 0.78);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

.hero-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: rgba(12, 18, 13, 0.6);
}

/* The picture sits at the bottom edge; the spacer keeps its lower part —
   the hills, Vim, the path — clear of the copy whatever the copy's height. */
.hero-spacer {
  aspect-ratio: 1024 / 900;
}

.hero-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
}

.hero-art img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 56px);
  mask-image: linear-gradient(to bottom, transparent, #000 56px);
}

@media (min-width: 760px) {
  .hero {
    background: var(--sky-wide);
  }

  .hero-copy {
    padding-top: 64px;
  }

  .hero-spacer {
    aspect-ratio: 1536 / 640;
  }
}

/* Sections */
.band {
  padding-block: 56px;
}

.band h2 {
  margin-bottom: 14px;
}

.section-lead {
  color: var(--ink-70);
  max-width: 680px;
  margin-bottom: 28px;
  font-size: 1.1rem;
}

@media (min-width: 760px) {
  .band {
    padding-block: 88px;
  }

  .band h2 {
    margin-bottom: 18px;
  }
}

/* Cards */
.cards {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: 0 1px 0 rgba(12, 18, 13, 0.04);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--ink-70);
}

.card-art {
  width: 96px;
  height: 96px;
  margin: -8px 0 8px -8px;
}

@media (min-width: 600px) {
  .cards {
    gap: 18px;
  }

  .cards.four,
  .cards.three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .cards.four {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.area-note {
  margin-bottom: 14px;
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-weight: 600;
  font-size: 0.92rem;
}

/* Techniques */
.techniques {
  padding-bottom: 0;
  background: var(--cream);
}

.techs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.techs li {
  padding-left: 18px;
  border-left: 3px solid var(--mint);
}

.techs h3 {
  margin-bottom: 6px;
}

.techs p {
  color: var(--ink-70);
}

.tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (min-width: 760px) {
  .techs {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 40px;
  }
}

.palace-art {
  margin-top: 40px;
  background: var(--meadow-tall);
}

.palace-art img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 64px);
  mask-image: linear-gradient(to bottom, transparent, #000 64px);
}

@media (min-width: 760px) {
  .palace-art {
    background: var(--meadow-wide);
  }
}

/* Steps */
/* Starts in the meadow green the palace picture ends in, so the two meet without a seam. */
.day {
  background: linear-gradient(to bottom, #78cb5e 0%, #a9dc92 28%, var(--cream) 62%);
}

@media (min-width: 760px) {
  .day {
    background: linear-gradient(to bottom, #82c75d 0%, #b0dd98 26%, var(--cream) 60%);
  }
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  margin-bottom: 14px;
}

.steps h3 {
  margin-bottom: 8px;
}

.steps p {
  color: var(--ink-70);
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

/* Tagline */
.tagline {
  text-align: center;
}

.tagline-text {
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 820px;
  margin-inline: auto;
}

.tagline-text span {
  display: block;
}

.tagline-text span + span {
  color: var(--mint-deep);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
}

.qa {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 18px;
}

.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
}

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

.qa summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.qa[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.qa p {
  padding: 0 0 18px;
  color: var(--ink-70);
}

/* Feedback form */
.feedback {
  background: var(--paper);
}

.fb {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.fb label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 10px;
}

.fb textarea,
.fb input[type='email'] {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid rgba(12, 18, 13, 0.2);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
}

.fb textarea {
  resize: vertical;
  min-height: 140px;
}

.fb textarea:focus,
.fb input:focus {
  outline: none;
  border-color: var(--mint-deep);
  box-shadow: 0 0 0 3px rgba(62, 217, 107, 0.3);
}

.fb .hint {
  font-size: 0.9rem;
  color: var(--ink-50);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile {
  margin-top: 10px;
  min-height: 0;
}

.fb-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.fb-status {
  color: var(--ink-70);
  min-height: 1.5em;
}

.fb-status.ok {
  color: var(--mint-deep);
  font-weight: 600;
}

.fb-status.err {
  color: #a3230f;
}

.fine {
  font-size: 0.85rem;
  color: var(--ink-50);
  margin-top: 8px;
}

/* Footer */
.night {
  color: #eaf5ee;
}

.night-sky {
  position: relative;
  overflow: hidden;
  background: var(--night-tall);
  text-align: center;
}

.night-copy {
  position: relative;
  z-index: 1;
  padding-top: 56px;
  max-width: 720px;
}

.night-title {
  color: #fff;
  margin-bottom: 10px;
}

.night-note {
  color: rgba(234, 245, 238, 0.78);
  max-width: 520px;
  margin-inline: auto;
}

.night-support {
  margin-top: 30px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.night-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(234, 245, 238, 0.65);
}

.night-hint {
  font-size: 0.9rem;
  color: rgba(234, 245, 238, 0.7);
}

.night-mail {
  color: #fff;
}

.night-links {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}

.night-links a {
  color: rgba(234, 245, 238, 0.85);
  font-size: 0.95rem;
}

.night-copyright {
  margin-top: 18px;
  font-size: 0.85rem;
  color: rgba(234, 245, 238, 0.55);
}

/* Keeps the copy in the plain night above the picture: only its topmost stars may sit behind text. */
.night-spacer {
  aspect-ratio: 1024 / 1250;
}

.night-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.night-art img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 80px);
  mask-image: linear-gradient(to bottom, transparent, #000 80px);
}

@media (min-width: 760px) {
  .night-sky {
    background: var(--night-wide);
  }

  .night-copy {
    padding-top: 72px;
  }

  .night-spacer {
    aspect-ratio: 1536 / 880;
  }
}

/* Documents: support, privacy, terms, 404 */
.doc {
  padding-top: 40px;
  padding-bottom: 72px;
}

.doc h1 {
  margin-bottom: 14px;
}

.doc .lead {
  margin: 0 0 28px;
}

.doc .updated {
  color: var(--ink-50);
  margin-bottom: 28px;
}

.doc section {
  margin-top: 32px;
}

.doc h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.doc p + p,
.doc ul {
  margin-top: 12px;
}

.doc ul {
  padding-left: 22px;
}

.doc section.card {
  margin-top: 28px;
}

.doc .card .btn {
  margin-top: 14px;
}

.doc .mail {
  font-weight: 600;
  font-size: 1.1rem;
}

.doc .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 10px;
}

.lost {
  text-align: center;
  padding-top: 56px;
}

.lost img {
  margin: 0 auto 10px;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

[data-reveal].in,
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .skip,
  .qa summary::after {
    transition: none;
  }
}
