/* Home page, all four locales (/, /ru/, /tr/, /es/). Moved out of the
   pages' <style> blocks and style="" attributes (task #7014). */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
input:focus { outline: none; }
::selection { background: rgba(234,88,12,0.12); }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1C1917;
  background: #FFFFFF;
  overflow-x: hidden;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.6} }

/* FadeIn animation */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-5 { transition-delay: 0.05s; }
.delay-8 { transition-delay: 0.08s; }
.delay-10 { transition-delay: 0.1s; }
.delay-15 { transition-delay: 0.15s; }
.delay-16 { transition-delay: 0.16s; }
.delay-20 { transition-delay: 0.2s; }
.delay-24 { transition-delay: 0.24s; }
.delay-25 { transition-delay: 0.25s; }
.delay-30 { transition-delay: 0.3s; }
.delay-32 { transition-delay: 0.32s; }
.delay-40 { transition-delay: 0.4s; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: #E7E5E4;
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { font-size: 24px; font-weight: 800; color: #EA580C; letter-spacing: -1px; text-decoration: none; }
.nav-links { display: flex; gap: 32px; align-items: center; }
/* Plain links only: a bare descendant-link rule (0,1,1) outranked .nav-cta and the
   .lang-option rows of the language menu, which sits inside .nav-links (#10530). */
.nav-links > a:not(.nav-cta) { font-size: 14px; color: #78716C; text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-links > a:not(.nav-cta):hover { color: #1C1917; }
.nav-cta {
  background: #C2410C; color: #fff !important; padding: 8px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 600; text-decoration: none; transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: #9A3412; }

.nav-mobile-btn { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid #E7E5E4; padding: 16px 24px;
  flex-direction: column; gap: 16px;
}
.nav-mobile-menu.open { display: flex; }
/* Direct children only: the language pills inside the menu keep their own padding (lang-switcher.css). */
.nav-mobile-menu > a { font-size: 15px; font-weight: 500; color: #44403C; text-decoration: none; }

/* Hero */
.hero {
  padding-top: 140px; padding-bottom: 80px;
  background: linear-gradient(180deg, #FAFAF9 0%, #FFF7ED 50%, #FFFFFF 100%);
  position: relative; overflow: hidden;
}
.hero-circle-1 {
  position: absolute; top: 80px; left: -120px; width: 400px; height: 400px;
  border-radius: 50%; background: rgba(234,88,12,0.03); pointer-events: none;
}
.hero-circle-2 {
  position: absolute; bottom: -50px; right: -100px; width: 300px; height: 300px;
  border-radius: 50%; background: rgba(124,58,237,0.03); pointer-events: none;
}
.hero-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px; text-align: center; position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #FEF3C7;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 24px;
  font-size: 13px; font-weight: 600; color: #B45309;
}
.hero-badge-emoji { animation: pulse 2s ease infinite; }
.hero h1 {
  font-size: 56px; font-weight: 800; line-height: 1.1; letter-spacing: -2px;
  color: #1C1917; max-width: 700px; margin: 0 auto 20px;
}
.hero h1 .highlight { color: #EA580C; position: relative; }
.hero h1 .highlight svg {
  position: absolute; bottom: -4px; left: 0; width: 100%;
}
.hero-subtitle {
  font-size: 19px; color: #78716C; max-width: 540px; margin: 0 auto 36px; line-height: 1.65;
}
.hero-form {
  display: flex; gap: 10px; max-width: 440px; margin: 0 auto 16px; justify-content: center;
}
.hero-form a:hover { background: #9A3412 !important; transform: translateY(-1px); }
.hero-note { font-size: 13px; color: #57534E; }
/* The real calendar under the call to action. */
.hero-shot {
  max-width: 1000px; margin: 56px auto 0; border-radius: 12px; overflow: hidden;
  border: 1px solid #E7E5E4; background: #FAFAF9; box-shadow: 0 25px 60px rgba(28,25,23,0.18);
}
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-cta {
  display: inline-block; background: #C2410C; color: #fff; padding: 14px 36px; border-radius: 8px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 14px rgba(234,88,12,0.35); transition: all 0.2s;
}

/* Social proof */
.social-proof {
  padding: 48px 24px; background: #FFFFFF;
  border-top: 1px solid #F5F5F4; border-bottom: 1px solid #F5F5F4;
}
.social-proof-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.social-proof-text { font-size: 14px; color: #78716C; font-weight: 500; }
.social-proof-stats { display: flex; justify-content: center; gap: 48px; margin-top: 20px; flex-wrap: wrap; }
.social-proof-stat-val { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 28px; font-weight: 800; color: #EA580C; }
.social-proof-stat-label { font-size: 12px; color: #78716C; margin-top: 2px; }

/* Features */
.features { padding: 80px 24px; background: #FFFFFF; }
.features-inner { max-width: 1080px; margin: 0 auto; }
.features-header { text-align: center; margin-bottom: 56px; }
.features-header h2 { font-size: 38px; font-weight: 800; letter-spacing: -1px; color: #1C1917; }
.features-header p { font-size: 17px; color: #78716C; margin-top: 12px; max-width: 480px; margin-left: auto; margin-right: auto; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: #FAFAF9; border-radius: 12px; padding: 28px; border: 1px solid #E7E5E4;
  height: 100%; transition: all 0.25s ease; cursor: default;
}
.feature-card:hover {
  border-color: rgba(234,88,12,0.31); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(234,88,12,0.08);
}
.feature-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 700; color: #1C1917; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: #78716C; line-height: 1.65; }

/* Pricing */
.pricing { padding: 80px 24px; background: #FAFAF9; }
.pricing-inner { max-width: 900px; margin: 0 auto; }
.pricing-header { text-align: center; margin-bottom: 48px; }
.pricing-header h2 { font-size: 38px; font-weight: 800; letter-spacing: -1px; color: #1C1917; }
.pricing-header p { font-size: 17px; color: #78716C; margin-top: 10px; }

/* Pricing comparison */
.compare { background: #FFFFFF; border: 1px solid #E7E5E4; border-radius: 12px; padding: 32px; }
.compare-title { font-size: 24px; font-weight: 800; color: #1C1917; text-align: center; margin-bottom: 6px; }
.compare-sub { font-size: 14px; color: #78716C; text-align: center; margin-bottom: 24px; }
.compare-table-wrap { max-width: 600px; margin: 0 auto; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare-table th {
  padding: 8px 0; text-align: left; font-size: 11px; color: #78716C; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.compare-table td { padding: 14px 0; color: #78716C; font-size: 14px; }
.compare-table td:first-child { color: #44403c; }
.compare-table .num { text-align: right; white-space: nowrap; padding-left: 12px; }
.compare-table .compare-annual { font-weight: 600; }
.compare-table .compare-zutor { background: #F0FDF4; }
.compare-table .compare-zutor td { padding: 14px 12px; color: #065F46; font-weight: 700; font-size: 15px; }
.compare-table .compare-zutor td:first-child { border-radius: 8px 0 0 8px; }
.compare-table .compare-zutor td:last-child { border-radius: 0 8px 8px 0; }
.compare-note { font-size: 11px; color: #78716C; font-weight: 400; }
.compare-save { text-align: center; font-size: 16px; font-weight: 700; color: #047857; margin-top: 24px; }
.compare-verified { text-align: center; font-size: 11px; color: #78716C; margin-top: 6px; }
.compare-cta-wrap { text-align: center; margin-top: 20px; }
.compare-cta {
  display: inline-block; background: #C2410C; color: #fff; padding: 12px 32px; border-radius: 8px;
  font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 4px 14px rgba(234,88,12,0.3);
}
.compare-cta:hover { background: #9A3412; }

/* FAQ */
.faq { padding: 80px 24px; background: #FFFFFF; }
.faq-inner { max-width: 640px; margin: 0 auto; }
.faq h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; color: #1C1917; text-align: center; margin-bottom: 40px; }
.faq-item { padding: 20px 0; border-bottom: 1px solid #F5F5F4; }
.faq-item h3 { font-size: 16px; font-weight: 700; color: #1C1917; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: #78716C; line-height: 1.7; }

/* Final CTA */
.final-cta {
  padding: 80px 24px; text-align: center;
  background: linear-gradient(135deg, #C2410C, #9A3412);
}
.final-cta h2 { font-size: 36px; font-weight: 800; color: #FFFFFF; letter-spacing: -0.5px; margin-bottom: 12px; }
.final-cta p { font-size: 17px; color: #FFEDD5; margin-bottom: 32px; max-width: 440px; margin-left: auto; margin-right: auto; }
.final-cta a:hover { opacity: 0.9; }
.final-cta-btn {
  display: inline-block; background: #1C1917; color: #fff; padding: 14px 36px; border-radius: 8px;
  font-size: 15px; font-weight: 700; text-decoration: none; transition: opacity 0.2s;
}

/* Responsive */
/* The phone's week (see the <picture> in the hero): a phone-sized frame,
   cut at the third day so the call to action stays the first thing. */
@media (max-width: 560px) {
  .hero-shot { max-width: 320px; margin-top: 40px; border-radius: 16px; }
  .hero-shot img { max-height: 400px; object-fit: cover; object-position: top; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .hero-subtitle { font-size: 16px; }
  .hero-form { flex-direction: column; }
  .features-grid { grid-template-columns: 1fr; }
  .social-proof-stats { gap: 24px; }
  .final-cta h2 { font-size: 28px; }
}

/* Tablet widths (769-900px): the full row does not fit (RU, the longest
   locale, needs ~805px, ES ~760px); at 769-890px the CTA wrapped and the logo
   touched the first link (#10530). Rather than the burger, drop the FAQ link
   (an anchor on this page, the reader scrolls to it anyway) and tighten the gap. */
@media (min-width: 769px) and (max-width: 900px) {
  .nav-links { gap: 22px; }
  .nav-links .nav-optional { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
  .nav-mobile-menu > a { padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
  .nav-mobile-menu .nav-cta { padding: 12px 20px; min-height: 44px; justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding-top: 110px; padding-bottom: 50px; }
  .hero h1 { font-size: 30px; }
  .features-header h2, .pricing-header h2 { font-size: 28px; }
  /* Four figures in a row do not fit a phone: three and an orphan read as
     a mistake, two by two do not. */
  .social-proof-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .compare { padding: 24px 16px; }
}

/* Russian and Turkish headlines run longer than English and Spanish: a wider
   measure and a step smaller type keep them on as many lines. */
:lang(ru) .hero h1, :lang(tr) .hero h1 { max-width: 760px; }
:lang(ru) .hero-subtitle, :lang(tr) .hero-subtitle { max-width: 560px; }
@media (max-width: 768px) {
  :lang(ru) .hero h1, :lang(tr) .hero h1 { font-size: 34px; }
}
@media (max-width: 480px) {
  :lang(ru) .hero h1, :lang(tr) .hero h1 { font-size: 28px; }
}
