:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --text: #111111;
  --muted: #646469;
  --line: rgba(17, 17, 17, 0.1);
  --accent: #17c964;
  --accent-soft: #e9fff2;
  --shadow: 0 24px 70px rgba(17, 17, 17, 0.07);
  --shadow-hover: 0 26px 60px rgba(17, 17, 17, 0.11);
  --radius-lg: 30px;
  --radius-md: 22px;
  --container: 1120px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  line-height: 1.5;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 245, 247, 0.78);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.logo,
.nav-links,
.hero-actions,
.footer-inner {
  display: flex;
  align-items: center;
}

.logo {
  gap: 10px;
  font-weight: 760;
  font-size: 1.08rem;
}

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #111111, #424248);
  color: #ffffff;
  font-weight: 800;
}

.nav-links {
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 560;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.tools-menu {
  position: relative;
}

.tools-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.tools-trigger span {
  width: 8px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.tools-menu:hover .tools-trigger,
.tools-menu.is-open .tools-trigger {
  color: var(--text);
}

.tools-menu:hover .tools-trigger span,
.tools-menu.is-open .tools-trigger span {
  transform: translateY(2px) rotate(225deg);
}

.tools-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: -18px;
  display: grid;
  width: 258px;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.tools-menu:hover .tools-dropdown,
.tools-menu.is-open .tools-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.tools-dropdown a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #405067;
  line-height: 1.3;
}

.tools-dropdown a:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

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

.section {
  min-height: calc(100svh - var(--header-height));
  padding: 104px 0;
}

.hero {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4.4vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.18;
}

.hero-subtitle {
  max-width: 660px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-dark {
  background: #111111;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.16);
}

.btn-dark:hover {
  background: #2a2a2d;
}

.btn-light {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  color: var(--text);
}

.btn-light:hover {
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.08);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.full {
  width: 100%;
}

.phone-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 610px;
}

.phone-wrap::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 201, 100, 0.22), rgba(23, 201, 100, 0));
}

.phone {
  position: relative;
  width: min(100%, 372px);
  min-height: 610px;
  padding: 18px;
  border: 10px solid #18181b;
  border-radius: 48px;
  background: #f1f3f0;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.phone:hover {
  transform: translateY(-6px) rotate(0.4deg);
  box-shadow: 0 30px 80px rgba(17, 17, 17, 0.12);
}

.phone-speaker {
  width: 86px;
  height: 24px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #18181b;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  font-weight: 800;
}

.chat-header strong,
.chat-header span {
  display: block;
}

.chat-header span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 650;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(23, 201, 100, 0.42);
  animation: pulseStatus 1.9s ease-out infinite;
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 6px 4px;
}

.bubble {
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 22px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.08);
}

.bubble.user {
  align-self: flex-end;
  background: #dcf8c6;
  border-bottom-right-radius: 7px;
}

.bubble.bot {
  align-self: flex-start;
  background: #ffffff;
  border-bottom-left-radius: 7px;
}

.bubble.bot p {
  margin-bottom: 8px;
}

.bubble.bot p:last-child {
  margin-bottom: 0;
}

.bubble.compact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 78%;
  color: #2f563b;
  background: var(--accent-soft);
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.typing-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2f563b;
  opacity: 0.35;
  animation: typingBlink 1.25s ease-in-out infinite;
}

.typing-dots i:nth-child(2) {
  animation-delay: 140ms;
}

.typing-dots i:nth-child(3) {
  animation-delay: 280ms;
}

.meal-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  width: 178px;
  height: 126px;
  margin-top: 10px;
  padding: 8px;
  border-radius: 18px;
  background: #ffffff;
}

.meal-preview span {
  border-radius: 14px;
  background: #e8e8ea;
}

.meal-preview span:first-child {
  grid-row: span 2;
  background: linear-gradient(145deg, #f7f1df, #d6b17a);
}

.meal-preview span:nth-child(2) {
  background: linear-gradient(145deg, #f4cf95, #c9824d);
}

.meal-preview span:nth-child(3) {
  background: linear-gradient(145deg, #c9f0d2, #49a96d);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.steps-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.045);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.interactive-card::before,
.benefit-item::before,
details::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    260px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(23, 201, 100, 0.16),
    transparent 42%
  );
  transition: opacity 180ms ease;
}

.interactive-card:hover,
.benefit-item:hover,
details:hover {
  transform: translateY(-5px);
  border-color: rgba(23, 201, 100, 0.22);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-hover);
}

.interactive-card:hover::before,
.benefit-item:hover::before,
details:hover::before {
  opacity: 1;
}

.step-card {
  min-height: 240px;
  padding: 30px;
}

.step-number {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
}

.step-card p,
.pricing-card li,
.faq-list p {
  color: var(--muted);
}

.soft-band {
  background: var(--surface);
}

.benefits-grid,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 54px;
  align-items: start;
}

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

.benefit-item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.benefit-item.wide {
  grid-column: 1 / -1;
}

.benefit-item span {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px var(--accent-soft);
  animation: softBlink 2.4s ease-in-out infinite;
}

.benefit-item p {
  margin: 0;
  font-weight: 700;
}

.tools-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  padding: 72px 0;
}

.tools-section .container {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  width: min(100% - 40px, 1400px);
}

.tools-section .section-heading {
  margin-bottom: 0;
}

.tools-calculator {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  min-height: 680px;
  padding: 18px;
}

.tool-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border-radius: 24px;
  background: var(--surface-soft);
}

.tool-tab {
  min-height: 54px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #405067;
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.tool-tab:hover {
  background: #ffffff;
  color: var(--text);
  transform: translateX(3px);
}

.tool-tab.is-active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
}

.tool-panel {
  padding: 18px 18px 16px;
}

.tool-copy {
  max-width: 720px;
  min-height: 118px;
  margin-bottom: 24px;
}

.tool-kicker {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 780;
  text-transform: uppercase;
}

.tool-copy h3 {
  min-height: 78px;
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
}

.tool-copy p:last-child,
.tool-note {
  color: var(--muted);
}

.calculator-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.calculator-form label {
  display: grid;
  gap: 8px;
  color: #3f3f46;
  font-size: 0.92rem;
  font-weight: 700;
}

.calculator-form input,
.calculator-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.calculator-form input:focus,
.calculator-form select:focus {
  border-color: rgba(23, 201, 100, 0.5);
  box-shadow: 0 0 0 4px rgba(23, 201, 100, 0.12);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.result-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 22px;
  background: var(--surface-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.result-card:hover,
.result-card.is-focused {
  transform: translateY(-4px);
  border-color: rgba(23, 201, 100, 0.28);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.07);
}

.result-card.is-highlight,
.result-card.is-focused {
  background: linear-gradient(145deg, #ffffff, #effff5);
}

.result-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.result-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.05;
}

.result-card p,
.tool-note {
  margin: 0;
  font-size: 0.92rem;
}

.tool-note {
  margin-top: 18px;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  padding: 34px;
}

.pricing-card.featured {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(145deg, rgba(23, 201, 100, 0.75), rgba(17, 17, 17, 0.18)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}

.featured-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #147a40;
  font-size: 0.82rem;
  font-weight: 780;
}

.plan-label {
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

.price {
  margin: 20px 0 26px;
  font-size: 2.3rem;
  line-height: 1;
  font-weight: 820;
}

.pricing-card ul {
  display: grid;
  gap: 13px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 24px;
}

.pricing-card li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

summary {
  cursor: pointer;
  padding: 22px 24px;
  font-weight: 780;
  list-style: none;
}

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

details p {
  margin: -6px 24px 24px;
}

@keyframes pulseStatus {
  0% {
    box-shadow: 0 0 0 0 rgba(23, 201, 100, 0.42);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(23, 201, 100, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(23, 201, 100, 0);
  }
}

@keyframes typingBlink {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  40% {
    transform: translateY(-3px);
    opacity: 0.95;
  }
}

@keyframes softBlink {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

.contact-section {
  padding: 82px 0;
  background: #111111;
  color: #ffffff;
}

.contact-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact-content h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.contact-section .btn-dark {
  background: #ffffff;
  color: #111111;
}

.footer {
  padding: 30px 0;
  background: #111111;
  color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}

.footer-inner {
  justify-content: space-between;
  gap: 18px;
}

.footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 12px 14px;
  }

  .tools-menu {
    width: 100%;
  }

  .tools-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
  }

  .tools-dropdown {
    position: static;
    display: none;
    width: 100%;
    margin-top: 4px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .tools-menu.is-open .tools-dropdown {
    display: grid;
  }

  .nav-links .btn {
    margin-top: 6px;
  }

  .hero-grid,
  .benefits-grid,
  .faq-grid,
  .pricing-grid,
  .tools-section .container,
  .tools-calculator {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .tools-section .container {
    width: min(100% - 28px, var(--container));
  }

  .tools-section .section-heading {
    margin-bottom: 46px;
  }

  .tool-copy {
    min-height: auto;
  }

  .tool-copy h3 {
    min-height: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 74px;
  }

  .phone-wrap {
    min-height: 560px;
  }

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

  .calculator-form,
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading.compact {
    margin-bottom: 34px;
  }

  .contact-content,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 74px 0;
  }

  h1 {
    font-size: clamp(3.05rem, 17vw, 4.5rem);
  }

  .hero-actions,
  .hero-actions .btn,
  .contact-content .btn {
    width: 100%;
  }

  .phone {
    width: min(100%, 342px);
    min-height: 578px;
    border-width: 8px;
    border-radius: 42px;
  }

  .phone-wrap {
    min-height: 520px;
  }

  .benefit-list {
    grid-template-columns: 1fr;
  }

  .tools-calculator {
    padding: 12px;
  }

  .tool-panel {
    padding: 10px;
  }

  .calculator-form,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    min-height: auto;
    padding: 28px;
  }

  .featured-badge {
    position: static;
    width: fit-content;
    margin-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
