/* Yolka Ltd. website. System fonts only: no external fonts, scripts or trackers. */

:root {
  color-scheme: light dark;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --text: #141a18;
  --muted: #56605c;
  --line: #e2e0d8;
  --accent: #1c6a4e;
  --accent-hover: #14523b;
  --accent-soft: #d9eae1;
  --on-accent: #ffffff;
  --radius: 16px;
  --max: 1120px;
  --gutter: 24px;
  --header-h: 68px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1210;
    --surface: #141b18;
    --text: #e8eeeb;
    --muted: #9ba6a1;
    --line: #25302c;
    --accent: #72d1a6;
    --accent-hover: #93e0bc;
    --accent-soft: #143024;
    --on-accent: #07120d;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

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

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  top: 12px;
  left: -9999px;
  z-index: 20;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}

.skip:focus {
  left: 16px;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.wordmark {
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.site-header ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

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

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 120px 0 56px;
}

.hero + .section {
  padding-top: 48px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -22%;
  right: -12%;
  z-index: -1;
  width: min(62vw, 780px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 72%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(115deg, transparent 38%, #000 80%);
  mask-image: linear-gradient(115deg, transparent 38%, #000 80%);
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 38rem;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.7vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.button:hover {
  border-color: var(--text);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.button.primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

/* Sections */

.section {
  padding: 104px 0;
}

.section.alt {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.section.alt:last-child {
  border-bottom: 0;
}

/* Adjacent sections on the same background share one gap. */
.section:not(.alt) + .section:not(.alt) {
  padding-top: 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 56px;
}

.section-head h2,
.contact h2 {
  font-size: clamp(2rem, 3.6vw, 2.875rem);
}

.section-head p:last-child {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.125rem;
}

/* About */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards.wide {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s;
}

.card::before {
  content: "";
  width: 32px;
  height: 3px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: var(--accent);
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.card h3 {
  font-size: 1.25rem;
}

.card p {
  color: var(--muted);
  font-size: 1rem;
}

/* Products */

.product-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 48px;
  padding: 48px 56px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.product-card::before {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -60%;
  z-index: -1;
  width: min(70%, 640px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 72%);
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 24px 48px -32px rgba(20, 40, 30, 0.35);
}

.product-info {
  max-width: 34rem;
}

.product-info h3 {
  margin-top: 20px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.product-info p:not(.status) {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.more {
  display: inline-flex;
  gap: 6px;
  margin-top: 24px;
  color: var(--accent);
  font-weight: 650;
}

.product-card:hover .more {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Contact */

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.contact-intro p:not(.eyebrow) {
  max-width: 30rem;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.125rem;
}

.contact-intro .button {
  margin-top: 32px;
}

.details {
  margin: 0;
  border-top: 1px solid var(--line);
}

.details > div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.details dt {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.details dd {
  margin: 8px 0 0;
  font-size: 1.125rem;
}

.details address {
  font-style: normal;
}

.details a {
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: 3px;
}

.details a:hover {
  color: var(--accent);
}

/* Yolka VPN page */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.product-tag {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.product-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.platforms {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.device {
  justify-self: end;
  width: min(100%, 340px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: 0 32px 64px -32px rgba(20, 40, 30, 0.3);
}

.device-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 650;
}

.device-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}

.device-status span,
.status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.device-power {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 32px auto 16px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 58%, var(--accent-soft) 59% 100%);
}

.device-power.small {
  flex: none;
  width: 120px;
  height: 120px;
  margin: 0 16px 0 0;
}

.device-power span {
  position: relative;
  width: 44px;
  height: 44px;
  border: 4px solid var(--on-accent);
  border-top-color: transparent;
  border-radius: 50%;
}

.device-power span::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 4px;
  height: 24px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--on-accent);
}

.device-caption {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

.device-locations {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.device-locations li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.device-locations li.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
}

.device-locations img,
.location-list img {
  flex: none;
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--line);
}

.device-locations b {
  margin-left: auto;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.locations-grid,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.locations-grid {
  align-items: center;
}

.locations-grid .section-head,
.faq-grid .section-head {
  margin-bottom: 0;
}

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

.location-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.9375rem;
}

.location-list img {
  border-radius: 6px;
}

.location-list strong {
  display: block;
  color: var(--text);
  font-size: 1.0625rem;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.plan h3 {
  font-size: 1.125rem;
}

.price {
  margin-top: 16px;
  color: var(--muted);
}

.price strong {
  display: block;
  color: var(--text);
  font-size: 2.75rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.plan-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.plan-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.plan-includes li {
  font-size: 0.9375rem;
  font-weight: 600;
}

.plan-includes li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--accent);
  font-weight: 700;
}

.fine-print {
  max-width: 46rem;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.875rem;
}

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

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 1.0625rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

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

.faq details p {
  max-width: 40rem;
  padding-bottom: 22px;
  color: var(--muted);
}

.faq a,
.faq-grid .section-head a {
  color: var(--text);
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: 3px;
}

/* Footer */

.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

/* Not found page */

.notfound {
  min-height: calc(100vh - var(--header-h) - 120px);
}

.notfound h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

/* Smaller screens */

@media (max-width: 860px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-grid,
  .locations-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .device {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --header-h: 60px;
  }

  body {
    font-size: 1rem;
  }

  .wordmark {
    font-size: 1.15rem;
  }

  .site-header ul {
    gap: 18px;
  }

  .site-header nav a {
    font-size: 0.875rem;
  }

  .hero {
    padding: 72px 0 40px;
  }

  .section {
    padding: 72px 0;
  }

  .hero + .section {
    padding-top: 32px;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .product-card {
    padding: 32px 24px;
  }

  .product-card .device-power {
    display: none;
  }

  .actions .button {
    flex: 1 1 auto;
  }
}
