/* =====================================================
   OtterSelf — shared stylesheet
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400;1,9..144,500&family=DM+Sans:ital,opsz,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Variables ──────────────────────────────────────── */
:root {
  --c-primary:    #55B0C1;   /* otter-teal — interactive elements */
  --c-primary-dk: #2D4A68;   /* otter-navy — darker state */
  --c-primary-bg: #E3F2F4;   /* otter-pale — tinted backgrounds */
  --c-cream:      #FDF8F2;   /* otter-cream — page background */
  --c-white:      #ffffff;
  --c-text:       #1E2A3A;   /* otter-ink — body text */
  --c-muted:      #6B7B8E;   /* otter-mid — captions, secondary */
  --c-border:     #C5D0DA;   /* otter-border — dividers */
  --c-footer-bg:  #213653;   /* otter-deep — nav / footer */
  --c-amber:      #C4915A;   /* otter-amber — CTA accent */

  --font:   'DM Sans', -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif:  'Fraunces', Georgia, "Times New Roman", serif;

  --max-w:  1100px;
  --r:      10px;
  --r-lg:   16px;
  --r-pill: 999px;

  --sh:    0 2px 8px rgba(0,0,0,.07);
  --sh-md: 0 4px 20px rgba(0,0,0,.09);
  --sh-lg: 0 8px 40px rgba(0,0,0,.12);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; }
a    { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul   { list-style: none; }

/* ── Layout ─────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: 88px; }
.section.cream { background: var(--c-cream); }
.tc { text-align: center; }
.mx-auto { margin-inline: auto; }

.eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-text);
  margin-bottom: 14px;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ── Navigation ─────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}
.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -.01em;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand span { color: var(--c-primary); }
.nav-brand img  { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--c-muted);
  transition: color .15s;
}
.nav-links a:hover { color: var(--c-text); text-decoration: none; }

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

/* ── Language switcher ──────────────────────────────── */
.lang-switch {
  position: relative;
  font-size: .83rem;
  font-weight: 600;
}
.lang-switch > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  color: var(--c-muted);
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, color .15s;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::after { content: '▾'; font-size: .65rem; margin-top: 1px; }
.lang-switch[open] > summary,
.lang-switch:hover > summary {
  border-color: var(--c-primary);
  color: var(--c-primary);
  text-decoration: none;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 152px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  box-shadow: var(--sh-md);
  overflow: hidden;
  z-index: 300;
}
.lang-menu a {
  display: block;
  padding: 9px 15px;
  color: var(--c-text);
  font-size: .85rem;
  font-weight: 500;
  transition: background .1s;
}
.lang-menu a:hover { background: var(--c-primary-bg); text-decoration: none; }
.lang-menu a.active { font-weight: 700; color: var(--c-primary); }

/* ── Hamburger ──────────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all .2s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer { display: none; border-top: 1px solid var(--c-border); }
.nav-drawer.is-open { display: block; }
.nav-drawer a {
  display: block;
  padding: 14px 24px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
}
.nav-drawer a:hover { background: var(--c-primary-bg); text-decoration: none; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn-primary:hover {
  background: var(--c-primary-dk);
  border-color: var(--c-primary-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(85,176,193,.38);
}
.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-outline:hover {
  background: var(--c-primary-bg);
  transform: translateY(-1px);
}
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding-block: 108px 96px; }
.hero-body { max-width: 640px; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--c-text);
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--c-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-meta {
  margin-top: 18px;
  font-size: .82rem;
  color: var(--c-muted);
  letter-spacing: .01em;
}

/* ── Feature grid ───────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feat-card {
  background: var(--c-white);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--sh);
}
.feat-icon { font-size: 1.8rem; margin-bottom: 14px; line-height: 1; }
.feat-card h3 { font-size: .97rem; font-weight: 600; color: var(--c-text); margin-bottom: 8px; }
.feat-card p  { font-size: .86rem; color: var(--c-muted); line-height: 1.65; }

/* ── Steps ──────────────────────────────────────────── */
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.how-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
  margin-top: 8px;
}
.how-track {
  background: var(--c-cream);
  border-radius: 16px;
  padding: 32px 28px;
}
.how-track-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-primary);
  margin-bottom: 28px;
}
.steps-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.steps-col .step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.steps-col .step h3 { font-size: 1rem; font-weight: 600; color: var(--c-text); margin-bottom: 5px; }
.steps-col .step p  { font-size: .88rem; color: var(--c-muted); line-height: 1.6; margin: 0; }

/* ── Pricing ────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 780px;
  margin-inline: auto;
}
.price-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .2s;
  text-align: left;
}
.price-card:hover { box-shadow: var(--sh-md); }
.price-card.featured {
  border: 2px solid var(--c-primary);
  box-shadow: 0 0 0 5px var(--c-primary-bg);
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.price-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 10px;
}
.price-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 7px; color: var(--c-text); }
.price-desc    { font-size: .87rem; color: var(--c-muted); margin-bottom: 24px; }
.price-amount {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1;
  margin-bottom: 4px;
}
.price-amount sup { font-size: 1.3rem; font-weight: 600; vertical-align: super; line-height: 0; }
.price-per  { font-size: 1.1rem; font-weight: 600; }
.price-note { font-size: .8rem; color: var(--c-muted); margin-bottom: 28px; }
.price-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  flex: 1;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .87rem;
  color: var(--c-muted);
  line-height: 1.5;
}
.price-features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--c-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6l2.5 2.5 4.5-4.5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ── Pills ──────────────────────────────────────────── */
.pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill {
  display: inline-block;
  padding: 9px 22px;
  border: 1.5px solid var(--c-primary);
  border-radius: var(--r-pill);
  color: var(--c-primary);
  font-size: .9rem;
  font-weight: 500;
}

/* ── Sample ─────────────────────────────────────────── */
.sample-box {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-primary);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 36px 40px;
  max-width: 760px;
  margin-inline: auto;
  text-align: left;
  box-shadow: var(--sh);
}
.sample-meta {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 16px;
}
.sample-box blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--c-text);
}

/* ── FAQ ────────────────────────────────────────────── */
.faq-wrap { max-width: 680px; margin-inline: auto; text-align: left; }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-item:first-child { border-top: 1px solid var(--c-border); }
.faq-btn {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
}
.faq-btn:hover { color: var(--c-primary); }
.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--c-border);
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  color: var(--c-primary);
  transition: transform .25s, background .15s, border-color .15s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--c-primary-bg);
  border-color: var(--c-primary);
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease, padding .28s ease;
}
.faq-item.open .faq-body { max-height: 400px; padding-bottom: 20px; }
.faq-body p { font-size: .93rem; color: var(--c-muted); line-height: 1.8; }
.faq-body a { color: var(--c-primary); }

/* ── Footer ─────────────────────────────────────────── */
.footer { background: var(--c-footer-bg); padding-block: 44px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand { font-size: 1rem; font-weight: 700; color: #fff; }
.footer-brand span { color: var(--c-primary); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: .82rem; color: rgba(255,255,255,.45); transition: color .15s; }
.footer-links a:hover { color: rgba(255,255,255,.9); text-decoration: none; }
.footer-legal { font-size: .72rem; line-height: 1.75; color: rgba(255,255,255,.28); text-align: center; }

/* ── Privacy prose ──────────────────────────────────── */
.prose { max-width: 720px; margin-inline: auto; }
.prose h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}
.prose .updated {
  display: block;
  font-size: .85rem;
  color: var(--c-muted);
  margin-bottom: 52px;
}
.prose h2 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--c-text);
  margin-top: 40px;
  margin-bottom: 10px;
}
.prose p, .prose li { font-size: .93rem; color: var(--c-muted); line-height: 1.8; }
.prose p { margin-bottom: 10px; }
.prose ul { margin: 10px 0 14px 20px; list-style: disc; }
.prose li { margin-bottom: 5px; }
.prose a { color: var(--c-primary); }
.prose strong { color: var(--c-text); font-weight: 600; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .how-tracks    { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links  { display: none; }
  .nav-burger { display: flex; }
  .section    { padding-block: 60px; }
  .hero       { padding-block: 68px 52px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
}
@media (max-width: 500px) {
  .features-grid { grid-template-columns: 1fr; }
  .sample-box    { padding: 28px 22px; }
  .price-card    { padding: 36px 26px; }
  .btn-lg        { width: 100%; justify-content: center; }
  .footer-inner  { flex-direction: column; text-align: center; }
  .footer-links  { justify-content: center; }
}

/* ── Launch mode: payments not yet active ───────────────
   Remove this entire block once Paddle is live.
   ────────────────────────────────────────────────────── */
body::before {
  content: "Payments are not yet active - we\2019re finishing setup. The service will be available very soon.";
  display: block;
  background: #FEF3C7;
  color: #92400E;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
}
html[lang="cs"] body::before { content: "Platby zat\ED m nejsou aktivn\ED - dokon\010Dujeme nastaven\ED. Slu\017Eba bude brzy dostupn\E1."; }
html[lang="sk"] body::before { content: "Platby zatia\013E nie s\FA akt\EDvne - dokon\010Dujeme nastaven\ED. Slu\017Eba bude \010Doskoro dostupn\E1."; }
html[lang="pl"] body::before { content: "P\142atno\15Bci nie s\105 jeszcze aktywne - ko\144czymy konfiguracj\119. Us\142uga b\119dzie dost\119pna bardzo wkr\F3tce."; }
html[lang="de"] body::before { content: "Zahlungen noch nicht aktiv - wir schlie\DFen die Einrichtung ab. Der Dienst wird sehr bald verf\FCgbar sein."; }
html[lang="es"] body::before { content: "Los pagos a\FAn no est\E1n activos - estamos terminando la configuraci\F3n. El servicio estar\E1 disponible muy pronto."; }
html[lang="it"] body::before { content: "I pagamenti non sono ancora attivi - stiamo completando la configurazione. Il servizio sar\E0 disponibile molto presto."; }
html[lang="fr"] body::before { content: "Les paiements ne sont pas encore actifs - nous finalisons la configuration. Le service sera disponible tr\E8s bient\F4t."; }
html[lang="hu"] body::before { content: "A fizet\E9s m\E9g nem akt\EDv - befejezz\FCk a be\E1ll\EDt\E1st. A szolg\E1ltat\E1s hamarosan el\E9rhető lesz."; }

/* Submit buttons: permanently disabled during launch mode */
#btn-submit,
#btn-cg-submit {
  pointer-events: none;
  opacity: 0.55;
  cursor: not-allowed;
}
#btn-submit .btn-label,
#btn-cg-submit .btn-label {
  display: none;
}
#btn-submit::after,
#btn-cg-submit::after {
  content: "Coming soon";
}
html[lang="cs"] #btn-submit::after,
html[lang="cs"] #btn-cg-submit::after { content: "Brzy dostupn\E9"; }
html[lang="sk"] #btn-submit::after,
html[lang="sk"] #btn-cg-submit::after { content: "\010Coskoro dostupn\E9"; }
html[lang="pl"] #btn-submit::after,
html[lang="pl"] #btn-cg-submit::after { content: "Wkr\F3tce dost\119pne"; }
html[lang="de"] #btn-submit::after,
html[lang="de"] #btn-cg-submit::after { content: "Demn\E4chst verf\FCgbar"; }
html[lang="es"] #btn-submit::after,
html[lang="es"] #btn-cg-submit::after { content: "Pr\F3ximamente"; }
html[lang="it"] #btn-submit::after,
html[lang="it"] #btn-cg-submit::after { content: "Disponibile a breve"; }
html[lang="fr"] #btn-submit::after,
html[lang="fr"] #btn-cg-submit::after { content: "Bient\F4t disponible"; }
html[lang="hu"] #btn-submit::after,
html[lang="hu"] #btn-cg-submit::after { content: "Hamarosan el\E9rhető"; }
