/* 1. palete (aktīvā: krēms, mīksti melns, meža zaļš) */
:root {
  --paper: #f2ebdd;
  --surface: #faf6ee;
  --ink: #1f1d1a;
  --ink-muted: #524d45;
  --accent: #2f5d50;
  --accent-hover: #22473d;
  --on-accent: #f2ebdd;
  --line: rgba(31, 29, 26, 0.14);
  --rule: rgba(31, 29, 26, 0.30);
}

/* 2. palete (bēšs, brūns, haki: skatīt README.md par pārslēgšanu) */
/*
:root {
  --paper: #ebe1d1;
  --surface: #f5efe4;
  --ink: #332419;
  --ink-muted: #594638;
  --accent: #4c5733;
  --accent-hover: #3a4426;
  --on-accent: #f5efe4;
  --line: rgba(51, 36, 25, 0.15);
  --rule: rgba(51, 36, 25, 0.30);
}
*/

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

html {
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 2px;
  --radius-btn: 4px;
  --measure: 38rem;
  background-color: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: clip;
}

@media (min-width: 48rem) {
  body {
    font-size: 1.125rem;
  }
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(1.9375rem, 1.4rem + 2.3vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 1.15rem + 0.35vw, 1.375rem);
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

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

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

picture {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: 68.75rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 48rem) {
  .wrap {
    padding-inline: 2.5rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.label {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--ink-muted);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -6rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-btn);
  background-color: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.5rem;
  color: var(--paper);
}

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.375rem;
  border-bottom: 1px solid var(--line);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo:hover {
  color: var(--accent);
}

.logo-a2 {
  display: block;
  width: auto;
  height: 22px;
}

.logo-c2 {
  display: none;
}

@media (min-width: 48rem) {
  .site-header .wrap {
    padding-block: 0.625rem;
  }

  .logo-a2 {
    display: none;
  }

  .logo-c2 {
    display: block;
    width: auto;
    height: 50px;
  }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-decoration: none;
}

.lang-link[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-btn);
  background-color: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-btn);
  background-color: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-btn);
  background-color: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  padding-block: 0.9rem 2.5rem;
}

.hero-text h1 {
  margin-bottom: 0.45rem;
}

.hero-sub {
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.hero-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.85rem;
  margin-bottom: 0.2rem;
}

.price-value {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-status {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-muted);
}

.hero-cta {
  display: grid;
  gap: 0.55rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
}

.email-text {
  font-weight: 600;
  font-size: 1rem;
}

.copy-status {
  font-size: 0.9375rem;
  color: var(--accent);
}

.figure {
  margin: 0;
}

.hero-media,
.media-frame {
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: var(--surface);
}

.hero-media img,
.hero-media video,
.media-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.figure figcaption {
  margin-top: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink-muted);
  max-width: var(--measure);
}

@media (min-width: 48rem) {
  .hero .wrap {
    grid-template-columns: 1.05fr 0.95fr;
    column-gap: 2.5rem;
    row-gap: 1.25rem;
    padding-block: 2.5rem 3.5rem;
    align-items: start;
  }

  .hero-text {
    grid-column: 1;
    align-self: end;
  }

  .hero-text .label {
    margin-bottom: 0.75rem;
  }

  .hero-text h1 {
    margin-bottom: 0.75rem;
  }

  .hero-sub {
    margin-bottom: 1.15rem;
  }

  .price-value {
    font-size: 2.125rem;
  }

  .hero-cta {
    grid-column: 1;
    align-self: start;
    gap: 0.85rem;
  }

  .hero-figure {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

@media (min-width: 64rem) {
  .hero .wrap {
    column-gap: 4rem;
    padding-block: 3.5rem 4.5rem;
  }
}

/* Sections */
.section > .wrap {
  padding-block: 2.75rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 48rem) {
  .section > .wrap {
    padding-block: 4rem;
  }
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin-bottom: 0.5rem;
}

.section-head p:last-child {
  margin-bottom: 0;
}

/* Section 1: What it does */
.feature-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.feature-row {
  display: grid;
  gap: 1.15rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.feature-copy h3 {
  margin-bottom: 0.4rem;
}

.feature-copy p {
  margin-bottom: 0;
}

@media (min-width: 48rem) {
  .feature-row {
    grid-template-columns: 14rem 1fr;
    gap: 2rem;
    align-items: center;
    padding-block: 2rem;
  }
}

@media (min-width: 52rem) {
  .feature-row {
    grid-template-columns: 16rem 1fr;
    gap: 2.5rem;
  }
}

/* Section 2: Who it is for */
.audience-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 44rem) {
  .audience-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 4rem;
  }
}

.audience-col h3 {
  margin-bottom: 0.75rem;
}

.app-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.app-list li {
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
}

.audience-note {
  margin-bottom: 0;
  color: var(--ink-muted);
}

/* Section 3: How it is made */
.visual-pair {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 48rem) {
  .visual-pair {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.75rem;
  }
}

.spec-list {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.spec-row {
  display: grid;
  gap: 0.25rem 2rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.spec-row dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 0.2rem;
}

.spec-row dd {
  margin: 0;
  max-width: var(--measure);
}

@media (min-width: 48rem) {
  .spec-row {
    grid-template-columns: 12rem 1fr;
  }
}

/* Section 4: Questions */
.faq-list {
  max-width: 50rem;
  border-top: 1px solid var(--rule);
}

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

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 48px;
  padding: 0.85rem 2.75rem 0.85rem 0;
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.75rem;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5rem;
  text-align: center;
  color: var(--ink);
  transition: transform 0.18s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 1.25rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Section 5: Fair banner */
.fair-section > .wrap {
  border-top: 0;
  padding-block: 0 2.75rem;
}

@media (min-width: 48rem) {
  .fair-section > .wrap {
    padding-block: 0 4rem;
  }
}

.fair-banner {
  background-color: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
}

.fair-banner p:last-child {
  margin-bottom: 0;
}

/* Section 6: Contact */
.contact-stack {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.25rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  font-weight: 600;
}

/* Privacy & 404 */
.page-section > .wrap {
  padding-block: 2.25rem 3.5rem;
}

@media (min-width: 48rem) {
  .page-section > .wrap {
    padding-block: 3.5rem 4.5rem;
  }
}

.prose-lead {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.policy-list {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

.policy-item h2 {
  font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  margin-bottom: 0.4rem;
}

.policy-item p:last-child {
  margin-bottom: 0;
}

.not-found-copy {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.not-found-copy p {
  margin-bottom: 0;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */
.site-footer .wrap {
  display: grid;
  gap: 1.25rem;
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--rule);
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.footer-c2 {
  display: block;
  width: auto;
  height: 56px;
}

.ja-logo-img {
  display: block;
  width: auto;
  height: 48px;
}

.footer-legal {
  display: grid;
  gap: 0.5rem;
}

.footer-legal p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  max-width: 46rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
