:root {
  --primary: #475cb8;
  --primary-soft: #edeff8;
  --primary-dark: #2b376e;
  --ot-100: #dadef1;
  --ot-200: #b6bee2;
  --ot-300: #919dd4;
  --ot-600: #394a93;
  --ot-900: #0e1225;

  --teal: #4db3af;
  --teal-soft: #edf7f7;
  --tt-100: #dbf0ef;
  --tt-200: #b8e0df;
  --tt-700: #2e6b69;

  --bg: #f4f2f0;
  --border: #d4ccc4;
  --text: #1e1a15;
  --muted: #94806b;

  --fawn: #be8c41;
  --fawn-soft: #f8f3ec;

  --error: #b54a4f;
  --error-soft: #f8eded;
  --lp-200: #e1b7b9;

  --white: #ffffff;
  --dg-100: #eae6e1;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow: 0 8px 28px rgba(30, 26, 21, 0.06);
  --shadow-lg: 0 24px 60px rgba(30, 26, 21, 0.12);
  --header-h: 72px;
  --max: 1120px;
  --font: "Plus Jakarta Sans", "Manrope", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 1000;
}

.skip:focus {
  left: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(244, 242, 240, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header.is-scrolled {
  border-bottom-color: rgba(212, 204, 196, 0.7);
  box-shadow: 0 8px 24px rgba(30, 26, 21, 0.04);
}

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

.header-end {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  position: relative;
}

.lang-switch > summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  padding: 0 10px 0 12px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.lang-switch > summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.lang-switch > summary::-webkit-details-marker {
  display: none;
}

.lang-switch > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -2px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
}

.lang-switch[open] > summary {
  border-color: var(--ot-200);
  background: var(--primary-soft);
}

.lang-switch[open] > summary::after {
  margin-top: 2px;
  transform: rotate(-135deg);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 168px;
  padding: 6px;
  background: var(--white);
  border: 1px solid rgba(212, 204, 196, 0.7);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

.lang-switch-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.lang-switch-menu a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
  text-decoration: none;
}

.lang-switch-menu a[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.4px;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff !important;
  font-size: 14px;
}

.nav-cta:hover {
  background: var(--ot-600);
  text-decoration: none;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 12px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ot-600);
}

.btn-ghost {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  background: var(--primary-soft);
}

.store-badges {
  --store-badge-h: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
  border-radius: 8px;
}

.store-badge:hover {
  text-decoration: none;
}

.store-badge:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.store-badge img {
  display: block;
  height: var(--store-badge-h);
  width: auto;
  max-width: none;
  flex-shrink: 0;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 72px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  top: -160px;
  right: -80px;
}

.hero::after {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--fawn-soft) 0%, transparent 70%);
  bottom: -80px;
  left: -40px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fawn);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h1,
.h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.08;
  margin-bottom: 16px;
}

.lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero .store-badges {
  margin-bottom: 22px;
}

.hero-note {
  font-size: 13px;
  color: var(--muted);
}

.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.pill {
  background: var(--white);
  border: 1px solid rgba(212, 204, 196, 0.7);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
}

/* Phone mockups */
.hero-phones {
  position: relative;
  min-height: 620px;
}

.phone {
  --bezel: 10px;
  width: 280px;
  height: 572px;
  background: #1e1a15;
  border-radius: 40px;
  padding: var(--bezel);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: calc(var(--bezel) - 1px);
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 18px;
  background: #1e1a15;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

.phone-screen {
  background: var(--bg);
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-body {
  flex: 1;
  padding: 28px 14px 10px;
  overflow: hidden;
}

.phone-nav {
  margin: 0 10px 12px;
  background: var(--white);
  border: 1px solid rgba(212, 204, 196, 0.55);
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 4px;
  box-shadow: var(--shadow);
}

.phone-nav span {
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
}

.phone-nav span b {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.phone-nav .on {
  color: var(--primary);
}

.phone-front {
  position: absolute;
  left: 18px;
  top: 24px;
  z-index: 2;
}

.phone-back {
  position: absolute;
  right: 8px;
  top: 72px;
  transform: rotate(6deg);
  z-index: 1;
  opacity: 0.96;
}

.status {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.status small {
  color: var(--muted);
  font-size: 10px;
}

.status strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.4px;
}

.chip {
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 700;
}

.card {
  background: var(--white);
  border: 1px solid rgba(212, 204, 196, 0.55);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 8px;
}

.card.warm {
  background: var(--fawn-soft);
  border: 0;
}

.card.soft {
  background: var(--primary-soft);
  border: 0;
}

.card.teal {
  background: var(--teal-soft);
  border: 0;
}

.card-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--fawn);
}

.card-kicker.blue {
  color: var(--primary);
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emoji-well {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.progress {
  height: 6px;
  background: var(--dg-100);
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}

.progress > i {
  display: block;
  height: 100%;
  width: 60%;
  background: var(--fawn);
  border-radius: 999px;
}

.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 10px;
  text-align: center;
}

.week b {
  display: block;
  font-size: 8px;
  color: var(--muted);
  font-weight: 600;
}

.fake-btn {
  height: 32px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
}

.folder-row {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.folder-item {
  width: 52px;
  text-align: center;
}

.folder-item .well {
  width: 44px;
  height: 44px;
  margin: 0 auto 4px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.folder-item span {
  font-size: 8px;
  font-weight: 700;
  color: var(--muted);
}

.lesson-q {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 10px;
}

.lesson-emoji {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  background: var(--primary-soft);
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 46px;
  box-shadow: 0 10px 24px rgba(71, 92, 184, 0.16);
}

.opt {
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.opt.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.lib-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.lib-head h3 {
  font-size: 20px;
  letter-spacing: -0.4px;
}

.lib-head p {
  font-size: 10px;
  color: var(--muted);
}

.dict {
  background: var(--teal-soft);
  color: var(--tt-700);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 700;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.folder-card {
  background: var(--white);
  border: 1px solid rgba(212, 204, 196, 0.55);
  border-radius: 16px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow);
}

.folder-card .well {
  width: 48px;
  height: 48px;
  margin: 0 auto 6px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.folder-card strong {
  display: block;
  font-size: 11px;
}

.folder-card span {
  font-size: 9px;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 80px 0;
}

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

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.sub {
  color: var(--muted);
  font-size: 16px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.feature-copy h3 {
  font-size: 26px;
  letter-spacing: -0.5px;
  margin: 8px 0 12px;
}

.feature-copy p {
  color: var(--muted);
  margin-bottom: 16px;
}

.checklist {
  list-style: none;
}

.checklist li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 15px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 800;
}

.phone-stage {
  display: flex;
  justify-content: center;
}

.bg-white {
  background: var(--white);
}

.bg-soft {
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg) 100%);
}

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.benefit {
  background: var(--white);
  border: 1px solid rgba(212, 204, 196, 0.55);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}

.benefit .icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 14px;
}

.benefit h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.benefit p {
  font-size: 14px;
  color: var(--muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(212, 204, 196, 0.55);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}

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

.step p {
  color: var(--muted);
  font-size: 14px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-items: center;
}

.gallery figure {
  width: 100%;
  max-width: 280px;
}

.gallery .phone {
  transform: scale(0.92);
  transform-origin: top center;
}

.caption {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(212, 204, 196, 0.7);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
}

.faq-item button::after {
  content: "+";
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
}

.faq-item.is-open button::after {
  content: "–";
}

.faq-item .answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 15px;
}

.faq-item.is-open .answer {
  display: block;
}

/* CTA band */
.cta-band {
  padding: 0 0 88px;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--teal) 140%);
  color: #fff;
  border-radius: 32px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}

.cta-card h2 {
  color: #fff;
  margin-bottom: 8px;
}

.cta-card p {
  opacity: 0.86;
  max-width: 520px;
}

.cta-card .store-badge:focus-visible {
  outline-color: #fff;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(212, 204, 196, 0.7);
  padding: 36px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer strong {
  display: block;
  margin-bottom: 10px;
}

.footer a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}

.footer p,
.legal-copy {
  color: var(--muted);
  font-size: 13px;
}

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
}

.footer-langs a {
  display: inline;
  margin-bottom: 0;
  font-weight: 600;
}

.footer-langs a[aria-current="page"] {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 204, 196, 0.5);
}

/* Inner pages */
.page-hero {
  padding: 48px 0 20px;
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 8px;
}

.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.crumbs a {
  color: var(--muted);
}

.legal {
  max-width: 760px;
  padding-bottom: 80px;
}

.legal h2 {
  font-size: 22px;
  margin: 32px 0 10px;
}

.legal h3 {
  font-size: 17px;
  margin: 20px 0 8px;
}

.legal p,
.legal li {
  color: #4a433c;
  margin-bottom: 10px;
}

.legal ul,
.legal ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.toc {
  background: var(--white);
  border: 1px solid rgba(212, 204, 196, 0.7);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 20px 0 8px;
}

.toc a {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.support-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin-top: 28px;
  margin-bottom: 48px;
}

.support-card {
  background: var(--white);
  border: 1px solid rgba(212, 204, 196, 0.7);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow);
}

.support-card h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.support-card p {
  color: var(--muted);
  margin-bottom: 14px;
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}

.help-list {
  list-style: none;
}

.help-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--dg-100);
}

.help-list li:last-child {
  border-bottom: 0;
}

.help-list .n {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .split.reverse,
  .benefits,
  .steps,
  .gallery,
  .support-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .hero-phones {
    min-height: 600px;
    max-width: 420px;
    margin: 0 auto;
  }

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

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 20px;
    gap: 14px;
  }

  .nav.is-open {
    display: flex;
  }

  .menu-btn {
    display: inline-block;
  }

  .hero {
    padding-top: 28px;
  }

  .phone-back {
    display: none;
  }

  .phone-front {
    left: 50%;
    transform: translateX(-50%);
  }

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

  .gallery .phone {
    transform: none;
  }

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