:root {
  color-scheme: light;
  --surface: #f4f5f2;
  --surface-raised: #ffffff;
  --text-primary: #171b25;
  --text-muted: #5f6470;
  --rule: #e0e2e5;
  --action: #3e4e8c;
  --action-strong: #324176;
  --action-soft: #e9edf9;
  --on-action: #ffffff;
  --energy: #b34e3d;
  --protein: #1f6a57;
  --carbs: #735719;
  --fat: #6b4f7e;
  --fibre: #2e6684;
  --attention: #7b5a12;
  --attention-soft: #f2ebd7;
  --success: #1f6a57;
  --danger: #a23e36;
  --radius-small: 10px;
  --radius-medium: 16px;
  --radius-large: 28px;
  --shadow-soft: 0 18px 48px rgb(23 27 37 / 0.09);
  --font-body:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --font-display:
    'Avenir Next', Avenir, -apple-system, BlinkMacSystemFont, 'SF Pro Display',
    'Helvetica Neue', Arial, sans-serif;
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--surface);
  color: var(--text-primary);
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-small);
  background: var(--action);
  color: var(--on-action);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.nav-shell,
.section-shell,
.footer-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--text-primary);
  font-size: 1.06rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 700;
}

.nav-links a:not(.button):hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--action);
}

.language-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 13px;
  background: var(--surface-raised);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0 14px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--action);
  border-radius: 15px;
  background: var(--action);
  color: var(--on-action);
  font-size: 0.96rem;
  font-family: var(--font-display);
  font-weight: 700;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  border-color: var(--action-strong);
  background: var(--action-strong);
  transform: translateY(-1px);
}

.compact-button {
  min-height: 44px;
  padding: 0 17px;
  border-radius: 13px;
  font-size: 0.89rem;
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--action);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.hero {
  display: grid;
  min-height: 720px;
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  padding-top: 76px;
  padding-bottom: 86px;
}

.hero-copy-block {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--action);
  font-size: 0.76rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.35;
}

.hero h1,
.page-hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5.8vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.01;
}

.hero-copy,
.section-intro > p:not(.eyebrow),
.product-copy > p:not(.eyebrow),
.price-intro > p:not(.eyebrow) {
  max-width: 61ch;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-copy {
  margin: 27px 0 0;
}

.hero-actions {
  margin-top: 32px;
}

.confirmation-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.confirmation-note img {
  width: 19px;
  height: 19px;
}

.app-figure {
  margin: 0;
}

.hero-figure {
  justify-self: center;
}

.app-figure figcaption {
  margin-top: 15px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 650;
  text-align: center;
}

.device-frame {
  width: min(354px, 82vw);
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--text-primary);
  border-radius: 49px;
  background: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.device-frame img {
  width: 100%;
  height: auto;
  border-radius: 41px;
  background: var(--surface-raised);
}

.device-frame-secondary {
  width: min(326px, 82vw);
}

.section {
  padding: 112px 0;
}

.section.compact {
  padding-top: 96px;
}

.section-intro h2,
.product-copy h2,
.price-card h3,
.support-contact-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.3vw, 3.65rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.07;
}

.section-intro > p:not(.eyebrow),
.product-copy > p:not(.eyebrow) {
  margin: 24px 0 0;
}

.editorial-grid,
.pricing-layout,
.privacy-layout,
.faq-layout {
  display: grid;
  align-items: start;
  gap: clamp(54px, 8vw, 112px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.process-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.process-list li {
  display: grid;
  gap: 22px;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 27px 0;
  border-bottom: 1px solid var(--rule);
}

.process-number {
  display: grid;
  align-content: start;
  gap: 8px;
  justify-items: start;
  color: var(--action);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.process-number img {
  width: 25px;
  height: 25px;
}

.process-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.process-list p {
  max-width: 52ch;
  margin: 7px 0 0;
  color: var(--text-muted);
  line-height: 1.62;
}

.product-section {
  border-top: 1px solid var(--rule);
  background: var(--surface-raised);
}

.product-section-tint {
  border-bottom: 1px solid var(--rule);
  background: var(--action-soft);
}

.product-layout {
  display: grid;
  align-items: center;
  gap: clamp(60px, 10vw, 138px);
  grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.24fr);
}

.product-layout-reverse {
  grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
}

.product-layout-reverse .product-figure {
  order: 2;
}

.product-layout-reverse .product-copy {
  order: 1;
}

.product-figure {
  justify-self: center;
}

.plain-feature-list,
.check-list {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.plain-feature-list li,
.check-list li {
  display: grid;
  align-items: start;
  gap: 12px;
  grid-template-columns: 20px minmax(0, 1fr);
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.5;
}

.plain-feature-list img,
.check-list li::before {
  width: 19px;
  height: 19px;
}

.check-list li::before {
  display: block;
  background: url('/assets/icons/check.svg') center / contain no-repeat;
  content: '';
}

.method-note {
  padding-left: 18px;
  border-left: 3px solid var(--action);
  font-size: 0.92rem !important;
}

.price-intro {
  position: sticky;
  top: 116px;
}

.price-card {
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-large);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
}

.price-kicker {
  margin: 0 0 14px;
  color: var(--action);
  font-size: 0.76rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.035em;
}

.price-card h3 {
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.price-card .button {
  width: 100%;
  margin-top: 28px;
}

.fine-print {
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.privacy-section {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface-raised);
}

.privacy-list {
  border-top: 1px solid var(--rule);
}

.privacy-item {
  display: grid;
  align-items: start;
  gap: 18px;
  grid-template-columns: 27px minmax(0, 1fr);
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.privacy-item > img {
  width: 25px;
  height: 25px;
}

.privacy-item div {
  display: grid;
  gap: 6px;
}

.privacy-item strong {
  font-size: 1.03rem;
}

.privacy-item span {
  color: var(--text-muted);
  line-height: 1.55;
}

.faq-list {
  border-top: 1px solid var(--rule);
}

.faq-list details {
  border-bottom: 1px solid var(--rule);
}

.faq-list summary {
  position: relative;
  padding: 22px 44px 22px 0;
  cursor: pointer;
  font-size: 1.02rem;
  font-family: var(--font-display);
  font-weight: 700;
  list-style: none;
}

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

.faq-list summary::after {
  position: absolute;
  top: 20px;
  right: 4px;
  color: var(--action);
  content: '+';
  font-size: 1.4rem;
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list details p {
  max-width: 60ch;
  margin: -4px 0 22px;
  color: var(--text-muted);
  line-height: 1.65;
}

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--surface-raised);
}

.footer-shell {
  padding-top: 52px;
  padding-bottom: 36px;
}

.footer-top,
.footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.footer-note {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.footer-note p {
  max-width: 72ch;
  margin: 0;
}

.footer-note span {
  flex: 0 0 auto;
}

.page-hero {
  padding-top: 92px;
  padding-bottom: 52px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 6vw, 4.8rem);
}

.page-hero > p:not(.eyebrow) {
  max-width: 68ch;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.legal-layout {
  display: grid;
  align-items: start;
  gap: 48px;
  grid-template-columns: 220px minmax(0, 760px);
  padding-bottom: 110px;
}

.legal-nav {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-medium);
  background: var(--surface-raised);
}

.legal-nav a {
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.legal-nav a:hover {
  background: var(--action-soft);
  color: var(--action);
}

.legal-content {
  min-width: 0;
}

.legal-content section {
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}

.legal-content section:first-child {
  padding-top: 0;
}

.legal-content h2 {
  margin: 0 0 15px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.legal-content h3 {
  margin: 25px 0 9px;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.72;
}

.legal-content ul,
.legal-content ol {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.legal-meta {
  display: inline-flex;
  margin-top: 24px;
  padding: 9px 12px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface-raised);
  color: var(--text-muted);
  font-size: 0.77rem;
  font-weight: 700;
}

.notice {
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-medium);
  background: var(--attention-soft);
  color: var(--attention);
  line-height: 1.65;
}

.support-contact {
  display: grid;
  gap: clamp(32px, 7vw, 80px);
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  margin-bottom: 36px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-large);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
}

.support-contact-copy {
  align-self: center;
}

.support-contact-copy h2 {
  margin: 8px 0 16px;
}

.support-contact-copy > p:not(.eyebrow) {
  color: var(--text-muted);
  line-height: 1.7;
}

.support-privacy-note {
  font-size: 0.88rem;
}

.support-form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: var(--surface);
}

.support-form label {
  display: grid;
  gap: 8px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 750;
}

.support-form label span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 13px;
  outline: none;
  background: var(--surface-raised);
  color: var(--text-primary);
  font: inherit;
}

.support-form input,
.support-form select {
  min-height: 50px;
  padding: 0 14px;
}

.support-form textarea {
  min-height: 136px;
  padding: 14px;
  line-height: 1.55;
  resize: vertical;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgb(62 78 140 / 0.12);
}

.support-form .button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.support-form .button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.support-website {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.support-status {
  min-height: 22px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.support-status[data-state='success'] {
  color: var(--success);
}

.support-status[data-state='error'] {
  color: var(--danger);
}

.support-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: 110px;
}

.support-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: var(--surface-raised);
}

.support-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.26rem;
}

.support-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.support-card .text-link {
  margin-top: 18px;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 64px);
  place-items: center;
  text-align: center;
}

.not-found img {
  width: 108px;
  margin: 0 auto 24px;
  border-radius: 24px;
}

.not-found h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.032em;
}

.not-found p {
  max-width: 520px;
  margin: 18px auto 28px;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 960px) {
  .nav-detail {
    display: none;
  }

  .hero,
  .editorial-grid,
  .product-layout,
  .product-layout-reverse,
  .pricing-layout,
  .privacy-layout,
  .faq-layout,
  .support-contact {
    grid-template-columns: 1fr;
  }

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

  .hero-copy-block {
    width: 100%;
    max-width: 760px;
    justify-self: center;
    text-align: center;
  }

  .hero-copy,
  .confirmation-note {
    margin-right: auto;
    margin-left: auto;
  }

  .confirmation-note {
    justify-content: center;
  }

  .product-layout-reverse .product-figure,
  .product-layout-reverse .product-copy {
    order: initial;
  }

  .product-copy,
  .section-intro {
    max-width: 720px;
  }

  .product-copy {
    justify-self: center;
  }

  .price-intro {
    position: static;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .nav-shell,
  .section-shell,
  .footer-shell {
    width: min(100% - 30px, 1180px);
  }

  .nav-shell {
    min-height: 68px;
  }

  .brand span {
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links > a:not(.language-link):not(.button) {
    display: none;
  }

  .language-link,
  .compact-button {
    min-height: 42px;
  }

  .compact-button {
    display: none;
  }

  .hero {
    gap: 52px;
    padding-top: 54px;
    padding-bottom: 68px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.45rem, 10.5vw, 3.1rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .device-frame,
  .device-frame-secondary {
    width: min(330px, 88vw);
  }

  .section,
  .section.compact {
    padding: 78px 0;
  }

  .section-intro h2,
  .product-copy h2,
  .support-contact-copy h2 {
    font-size: clamp(2rem, 10.5vw, 2.8rem);
  }

  .editorial-grid,
  .pricing-layout,
  .privacy-layout,
  .faq-layout,
  .product-layout {
    gap: 48px;
  }

  .product-section .product-copy {
    order: 1;
  }

  .product-section .product-figure {
    order: 2;
  }

  .price-card,
  .support-contact {
    padding: 24px 20px;
  }

  .footer-top,
  .footer-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-note {
    display: flex;
  }

  .page-hero {
    padding-top: 64px;
  }

  .legal-layout {
    gap: 30px;
    padding-bottom: 78px;
  }

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

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
