/* ═══════════════════════════════════════════════════════════
   Stop Sorry, Start French — landing
   Концепція: французький шкільний зошит (cahier)
   ═══════════════════════════════════════════════════════════ */

:root {
  /* палітра */
  --paper: #FBFAF4;        /* папір */
  --paper-deep: #F4F1E6;   /* тінь паперу */
  --ink: #232D52;          /* чорнило */
  --ink-soft: #4A5478;     /* другорядний текст */
  --pen-blue: #2743D4;     /* кулькова ручка Bic — CTA */
  --pen-blue-deep: #1D33A8;
  --pen-red: #D63C2F;      /* червона ручка вчителя */
  --rule: #D9E2F0;         /* лінійка зошита (séyès) */
  --line: #E6E1D2;         /* межі карток */
  --marker: #FFE795;       /* жовтий маркер */
  --white: #FFFFFF;

  /* типографіка */
  --font-display: "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Golos Text", -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --container: 30rem;
}

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

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

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

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.nowrap-sm { display: inline; }

/* ── типографіка ─────────────────────────────────────────── */

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pen-red);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 8vw, 2.6rem);
  line-height: 1.08;
  text-wrap: balance;
  margin-bottom: 1.75rem;
}

.section-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--pen-blue);
}

mark {
  background: linear-gradient(180deg, transparent 8%, var(--marker) 8%, var(--marker) 88%, transparent 88%);
  color: inherit;
  padding-inline: 0.08em;
}

.ipa {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1em;
  white-space: nowrap;
}

/* ── кнопки ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  color: var(--white);
  background: var(--pen-blue);
  border: none;
  border-radius: 999px;
  padding: 0.95rem 2rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(39, 67, 212, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { background: var(--pen-blue-deep); }
.btn:active { transform: translateY(1px); box-shadow: 0 3px 10px rgba(39, 67, 212, 0.25); }

.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--pen-red);
  outline-offset: 3px;
}

.btn-lg {
  font-size: 1.08rem;
  padding: 1.1rem 2.6rem;
}

.btn-light {
  background: var(--paper);
  color: var(--pen-blue);
  box-shadow: none;
}
.btn-light:hover { background: var(--white); }

/* ── hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-top: 3.5rem;
  text-align: center;
  overflow: hidden;
  /* лінійка зошита séyès + червона лінія полів */
  background:
    linear-gradient(90deg, transparent 24px, rgba(214, 60, 47, 0.20) 24px, rgba(214, 60, 47, 0.20) 25.5px, transparent 25.5px),
    repeating-linear-gradient(180deg, transparent 0, transparent 31px, var(--rule) 31px, var(--rule) 32px),
    var(--paper);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 13.5vw, 4.4rem);
  line-height: 1.02;
  margin-top: 1rem;
  text-wrap: balance;
}

.hero-title span { display: block; }

.hero-title-stop em {
  font-style: italic;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--pen-red);
  text-decoration-thickness: 0.06em;
}

.hero-title-start { color: var(--pen-blue); }
.hero-title-start mark { padding-inline: 0.12em; }

.hero-sub {
  max-width: 24rem;
  margin: 1.25rem auto 1.75rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* фото + фонетичні картки */

.hero-media {
  position: relative;
  margin: 3rem auto 0;
  max-width: 19rem;
}

.phoneme-chip {
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.35rem 0.7rem;
  box-shadow: 0 4px 14px rgba(35, 45, 82, 0.10);
}

.phoneme-chip--1 { top: -1.2rem; left: -1.4rem; rotate: -7deg; color: var(--pen-red); }
.phoneme-chip--2 { top: 34%; right: -1.9rem; rotate: 5deg; color: var(--pen-blue); }
.phoneme-chip--3 { bottom: 14%; left: -2rem; rotate: -4deg; }

/* ── фото ────────────────────────────────────────────────── */

.photo-frame { position: relative; }

.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 10px 28px rgba(35, 45, 82, 0.14);
}

.teacher-photo {
  width: 13rem;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-inline: auto;
  border: 5px solid var(--white);
  box-shadow: 0 8px 24px rgba(35, 45, 82, 0.16);
}

/* «скотч», яким приклеєне фото в зошиті */
.tape {
  position: absolute;
  z-index: 2;
  top: -0.7rem;
  left: 50%;
  translate: -50% 0;
  rotate: -3deg;
  width: 5.5rem;
  height: 1.5rem;
  background: rgba(255, 231, 149, 0.75);
  box-shadow: 0 1px 3px rgba(35, 45, 82, 0.12);
}

/* ── секції ──────────────────────────────────────────────── */

.section {
  padding-block: 4rem;
}

.section--ruled {
  background:
    repeating-linear-gradient(180deg, transparent 0, transparent 31px, rgba(217, 226, 240, 0.55) 31px, rgba(217, 226, 240, 0.55) 32px),
    var(--paper);
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ── картки ──────────────────────────────────────────────── */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 2px 10px rgba(35, 45, 82, 0.05);
}

.card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pen-red);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

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

.audience-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── що всередині ────────────────────────────────────────── */

.features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.features li {
  position: relative;
  padding-left: 1.9rem;
  font-weight: 500;
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 0.2rem;
  color: var(--pen-red);
  font-weight: 700;
}

.lessons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* сторінка зошита: червона лінія полів зліва */
.lesson {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.4rem 2.1rem;
  box-shadow: 0 2px 10px rgba(35, 45, 82, 0.05);
  overflow: hidden;
}

.lesson::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.15rem;
  width: 1.5px;
  background: rgba(214, 60, 47, 0.35);
}

.lesson-no {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.1;
}

.lesson-objectif {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pen-blue);
  margin: 0.35rem 0 0.6rem;
}

.lesson ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--ink-soft);
}

.lesson ul li {
  position: relative;
  padding-left: 1.1rem;
}

.lesson ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--pen-blue);
}

.lesson--bonus {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.lesson--bonus::before { background: rgba(255, 231, 149, 0.5); }

.lesson--bonus p { color: rgba(251, 250, 244, 0.85); }
.lesson--bonus .lesson-no { color: var(--paper); }

.bonus-tag {
  display: inline-block;
  vertical-align: 0.35em;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--marker);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  margin-left: 0.5rem;
}

.lesson--bonus p { margin-top: 0.75rem; }

/* ── викладачка ──────────────────────────────────────────── */

.teacher { text-align: center; }

.teacher-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  margin-top: 1.5rem;
}

.teacher-role {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--pen-blue);
  margin-top: 0.25rem;
}

.teacher-creds {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.teacher-creds li {
  position: relative;
  padding: 0.9rem 1.1rem 0.9rem 2.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-soft);
}

.teacher-creds li::before {
  content: "✓";
  position: absolute;
  left: 1.05rem;
  color: var(--pen-red);
  font-weight: 700;
}

.teacher-creds b { color: var(--ink); }

/* ── на курсі ви ─────────────────────────────────────────── */

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--ink .section-title em { color: var(--marker); }

.results {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  counter-reset: result;
}

.result {
  counter-increment: result;
  border-top: 1px solid rgba(251, 250, 244, 0.18);
  padding-top: 1.1rem;
}

.result h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.1;
}

.result h3::after {
  content: counter(result, decimal-leading-zero);
  float: right;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(251, 250, 244, 0.45);
  padding-top: 0.5rem;
}

.result p {
  margin-top: 0.4rem;
  color: rgba(251, 250, 244, 0.78);
}

.result .ipa { color: var(--marker); font-style: italic; }

/* пісня — маргіналія червоною ручкою */
.song-note {
  margin-top: 2.5rem;
  background: rgba(255, 231, 149, 0.1);
  border: 1.5px dashed rgba(255, 231, 149, 0.55);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  text-align: center;
}

.song-note p:first-child {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--marker);
}

.song-note-asterisk {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(251, 250, 244, 0.6);
}

/* ── пакети ──────────────────────────────────────────────── */

.plans {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
}

.plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.1;
}

.plan-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1;
  margin-top: 0.4rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink); /* перебиває .card p */
}

.plan-currency {
  font-size: 1.4rem;
  font-style: italic;
}

.plan-features {
  list-style: none;
  margin: 1.25rem 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--ink-soft);
}

.plan-features li {
  position: relative;
  padding-left: 1.6rem;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0.1rem;
  font-weight: 700;
  color: var(--pen-blue);
}

.plan .btn { margin-top: auto; }

/* виділений тариф — залитий чорнилом */
.plan--featured {
  background: var(--pen-blue);
  border-color: var(--pen-blue);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(39, 67, 212, 0.35);
}

.plan--featured .plan-price { color: var(--white); }
.plan--featured .plan-features { color: rgba(255, 255, 255, 0.85); }
.plan--featured .plan-features li::before { color: var(--marker); }

.plan-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--marker);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.9rem;
}

.plan-feature-plus { font-weight: 600; color: var(--white); }
.plan--featured .plan-feature-plus::before { content: "+"; font-size: 1.1em; }

/* ── FAQ ─────────────────────────────────────────────────── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
}

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

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--pen-blue);
  transition: rotate 0.2s ease;
}

.faq[open] summary::after { rotate: 45deg; }

.faq p {
  padding: 0 1.25rem 1.2rem;
  color: var(--ink-soft);
}

/* ── фінальний CTA ───────────────────────────────────────── */

.final-cta {
  text-align: center;
  padding-block: 3rem 4.5rem;
}

.final-cta-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1.15;
  color: var(--pen-blue);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.final-cta-title span {
  display: block;
  font-style: normal;
  font-size: 1.55rem;
  color: var(--ink);
  margin-top: 0.4rem;
}

/* ── футер ───────────────────────────────────────────────── */

.footer {
  background: var(--ink);
  color: rgba(251, 250, 244, 0.75);
  padding-block: 2.5rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--paper);
}

.footer-brand em { color: var(--marker); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-block: 1.5rem;
}

.footer-links a {
  color: rgba(251, 250, 244, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(251, 250, 244, 0.3);
}

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

.footer-note { font-size: 0.8rem; color: rgba(251, 250, 244, 0.4); }

/* ── плаваюча кнопка ─────────────────────────────────────── */

.floating-cta {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  translate: -50% 0;
  z-index: 40;
  padding: 0.9rem 2.2rem;
  box-shadow: 0 10px 30px rgba(39, 67, 212, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, translate 0.25s ease;
}

.floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── сторінки документів (оферта, конфіденційність) ──────── */

.doc-header {
  padding-top: 2.5rem;
  background:
    linear-gradient(90deg, transparent 24px, rgba(214, 60, 47, 0.20) 24px, rgba(214, 60, 47, 0.20) 25.5px, transparent 25.5px),
    repeating-linear-gradient(180deg, transparent 0, transparent 31px, var(--rule) 31px, var(--rule) 32px),
    var(--paper);
  padding-bottom: 2rem;
}

.doc-back {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pen-blue);
  text-decoration: none;
  margin-bottom: 1.75rem;
}

.doc-back:hover { text-decoration: underline; }

.doc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 7vw, 2.4rem);
  line-height: 1.1;
  text-wrap: balance;
  margin-top: 0.75rem;
}

.doc-updated {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.doc {
  padding-block: 2rem 3.5rem;
}

.doc h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.15;
  margin: 2.25rem 0 0.75rem;
}

.doc h2:first-child { margin-top: 0; }

.doc p {
  margin-bottom: 0.85rem;
  color: var(--ink-soft);
}

.doc ul {
  list-style: none;
  margin: 0 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--ink-soft);
}

.doc ul li {
  position: relative;
  padding-left: 1.2rem;
}

.doc ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--pen-blue);
}

.doc b { color: var(--ink); }

/* незаповнені реквізити — підсвічені маркером, щоб не забути */
.doc mark { font-weight: 600; }

.doc-requisites {
  margin-top: 2.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.doc-requisites h2 { margin-top: 0; }

/* ── анімації появи ──────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .faq summary::after, .floating-cta { transition: none; }
}

/* Ширші екрани: сайт свідомо мобільний — та сама колонка по центру,
   повнокольорові смуги секцій тягнуться на всю ширину. */
