:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5d6964;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #d9ded6;
  --teal: #11766b;
  --teal-dark: #0c514c;
  --coral: #ec6a4d;
  --yellow: #f5c84b;
  --mint: #dff4eb;
  --shadow: 0 22px 70px rgba(23, 33, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

[dir="rtl"] body {
  text-align: right;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(251, 250, 246, 0.86);
  border-bottom: 1px solid rgba(217, 222, 214, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

.nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--ink);
  border-color: var(--coral);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--teal-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
  white-space: nowrap;
}

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

.language-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  width: 170px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

[dir="rtl"] .language-list {
  right: auto;
  left: 0;
}

.language-list a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.language-list a:hover {
  background: var(--mint);
  color: var(--teal-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px) 32px;
}

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

.eyebrow,
.product-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: 0;
}

.lead,
.page-hero p {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.button.secondary {
  background: var(--surface);
}

.hero-media {
  margin: 0;
  min-width: 0;
}

.hero-media img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section,
.page {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(30px, 5vw, 58px) 0;
  border-top: 1px solid var(--line);
}

.product-row.tiny {
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
}

.product-copy p {
  color: var(--muted);
  font-size: 17px;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
}

.feature-list li::before {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.link-row a {
  color: var(--teal-dark);
  font-weight: 800;
}

.phone-mockup {
  justify-self: center;
  width: min(100%, 320px);
  aspect-ratio: 9 / 16;
  padding: 22px;
  border: 10px solid #17211f;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-top {
  width: 72px;
  height: 8px;
  margin: 0 auto 24px;
  border-radius: 99px;
  background: #17211f;
}

.document-app {
  background: linear-gradient(180deg, #eef8f4 0%, #ffffff 44%, #fff7ed 100%);
}

.scan-frame {
  position: relative;
  display: grid;
  height: 190px;
  place-items: center;
  margin-bottom: 20px;
  border: 2px dashed rgba(17, 118, 107, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.scan-frame span {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: var(--teal);
}

.scan-frame span:first-child {
  top: 14px;
  left: 14px;
  border-top: 4px solid;
  border-left: 4px solid;
}

.scan-frame span:nth-child(2) {
  right: 14px;
  bottom: 14px;
  border-right: 4px solid;
  border-bottom: 4px solid;
}

.field-card,
.math-card,
.support-card,
.support-contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.field-card {
  padding: 18px;
}

.field-card small,
.math-card small {
  color: var(--muted);
  font-weight: 800;
}

.field-card p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.field-card b {
  color: var(--teal);
}

.math-app {
  background: linear-gradient(180deg, #fff7d7 0%, #ffffff 54%, #e5f5ef 100%);
}

.math-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.math-card strong {
  font-size: 52px;
  line-height: 1;
}

.math-card span {
  color: var(--coral);
  font-size: 30px;
  font-weight: 900;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.number-grid button {
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  font-weight: 900;
}

.progress-stars {
  color: var(--yellow);
  font-size: 26px;
  text-align: center;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
}

.page-hero {
  max-width: 850px;
  margin-bottom: 34px;
}

.support-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  margin-bottom: 18px;
}

.support-contact h2,
.support-contact p {
  margin-bottom: 6px;
}

.support-card {
  padding: 26px;
}

.support-card p {
  color: var(--muted);
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.policy-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
}

.policy-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.policy-nav a:hover {
  background: var(--mint);
  color: var(--teal-dark);
}

.policy-content {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.policy-content section {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.policy-content section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.policy-content p {
  color: var(--muted);
}

.privacy-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.privacy-tab {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(23, 33, 31, 0.06);
}

.privacy-tab:hover {
  border-color: rgba(17, 118, 107, 0.45);
}

.privacy-tab span {
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.privacy-tab strong {
  max-width: 420px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef3ee;
  color: var(--teal-dark);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero,
  .product-row,
  .product-row.tiny,
  .content-grid,
  .privacy-tabs,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .product-row.tiny .phone-mockup {
    order: 2;
  }

  .product-row.tiny .product-copy {
    order: 1;
  }

  .policy-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .support-contact,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .nav {
    flex: 1;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
  }

  .language-switch {
    min-width: 46px;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 42px;
  }

  .policy-nav {
    grid-template-columns: 1fr;
  }

  .policy-content {
    padding: 22px;
  }
}
