.product-header .header-inner { min-height: 76px; }
.product-header .main-nav { gap: clamp(14px, 2.1vw, 30px); }
.product-header .header-end { gap: 17px; }
.product-header .lang-link { color: var(--ink); }
.product-header [hidden], .product-header .compact-link { display: none; }
.nav-toggle {
  min-height: 44px;
  border: 1px solid #b7c3ef;
  border-radius: 999px;
  padding: 6px 13px;
  background: transparent;
  color: var(--blue-deep);
  font: 700 .82rem/1.2 var(--body);
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: #e9edfd; }

.home-hero, .product-hero.has-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 78px);
}
.home-hero { padding-block: clamp(28px, 5vw, 68px) 44px; }
.home-intro h1 {
  font-size: clamp(3.4rem, 7.35vw, 7.55rem);
  letter-spacing: -.075em;
  line-height: .97;
}
.page-lede {
  max-width: 41ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.57;
}
.home-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 490px;
  padding: 32px;
  overflow: hidden;
  border-radius: 30px;
  background: radial-gradient(ellipse at 68% 40%, #4e72e5, #244cce 54%, #17378f);
  color: white;
}
.home-visual::before, .page-art::before {
  position: absolute;
  z-index: -1;
  width: 75%;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .19;
  box-shadow: 0 0 0 27px #fff4, 0 0 0 67px #fff2;
  content: "";
  pointer-events: none;
}
.home-visual::before { top: 5%; right: -4%; }
.home-visual .phone {
  width: min(48%, 207px);
  margin: 8px 4% 8px auto;
  transform: rotate(-8deg);
}
.home-caption { position: absolute; left: 6%; top: 11%; }
.home-caption span, .home-caption strong { display: block; }
.home-caption span { color: #e1e9ff; font-size: .8rem; font-weight: 700; }
.home-caption strong { margin-top: 5px; font: 520 clamp(1.5rem, 3vw, 2.5rem)/1.06 var(--display); letter-spacing: -.045em; }
.home-visual-links { position: absolute; bottom: 9%; left: 6%; display: grid; gap: 7px; }
.home-visual-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid #e3ecff80;
  border-radius: 10px;
  background: #142e83;
  color: white;
  text-decoration: none;
  font-size: .81rem;
  font-weight: 700;
}
.home-visual-links a:hover { background: #102367; text-decoration: underline; }
.home-visual a:focus-visible { outline-color: #ffe2ce; }

.home-pathways, .story, .related-pages { border-top: 1px solid var(--line); padding-block: 34px 50px; }
.home-pathways h2, .story h2, .related-pages h2, .faq-groups h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4.2vw, 3.65rem);
}
.path-grid, .more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.path-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}
.path-visual { position: relative; display: grid; place-items: center; height: 145px; overflow: hidden; }
.path-coach .path-visual { padding: 14px; background: #dfe6ff; }
.path-chat { width: min(100%, 214px); }
.path-chat p {
  width: fit-content;
  margin-left: auto;
  border-radius: 11px 11px 2px 11px;
  background: var(--blue-deep);
  padding: 6px 8px;
  color: white;
  font-size: .68rem;
  line-height: 1.32;
}
.path-chat p + p {
  margin: 7px 0 0;
  border-radius: 11px 11px 11px 2px;
  background: white;
  color: var(--ink);
}
.path-nutrition .path-visual { background: #ffd7bf; }
.path-sleep .path-visual { background: #192754; }
.path-visual .phone { position: absolute; top: 13px; width: 112px; padding: 4px; border-radius: 16px; transform: rotate(12deg); }
.path-visual .phone img { border-radius: 12px; }
.path-sleep .phone { transform: rotate(-11deg); }
.path-workouts .path-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.path-copy { padding: 17px 16px 19px; }
.path-copy h3, .more-grid h3 { margin-bottom: 8px; font-size: clamp(1.27rem, 2vw, 1.65rem); }
.path-copy a, .more-grid a, .related-pages a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
}
.path-copy a span, .more-grid a span, .related-pages a span { flex: none; color: var(--blue-deep); font: 680 .98rem/1 var(--body); }
.path-copy a:hover, .more-grid a:hover, .related-pages a:hover { color: var(--blue-deep); text-decoration: underline; }
.path-copy p, .more-grid p, .story-grid p { color: var(--muted); font-size: .95rem; }
.more-grid article { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: #f9eee4; }

.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 24px; color: var(--muted); font-size: .85rem; }
.breadcrumbs a { font-weight: 700; }
.product-hero { padding-block: 25px 50px; }
.product-hero.text-hero { padding-block: 34px 43px; }
.page-topic { margin-bottom: 15px; color: var(--blue-deep); font-weight: 800; }
.page-intro h1 { font-size: clamp(3.05rem, 5.8vw, 6.2rem); line-height: .99; letter-spacing: -.072em; }
.page-intro h1 em { display: block; }
.text-hero .page-intro { max-width: 800px; }
.text-hero .page-intro h1 em { display: inline; }
.text-hero .page-lede { max-width: 57ch; }
.page-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
  min-height: 428px;
  padding: 24px 24px 50px;
  overflow: hidden;
  border-radius: 28px;
  color: var(--blue-deep);
  background: #dfe6ff;
}
.page-art::before { left: 13%; top: 10%; }
.page-art .phone { width: min(44%, 169px); }
.visual-label {
  position: absolute;
  bottom: 14px;
  left: 16px;
  width: fit-content;
  max-width: calc(100% - 32px);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: .76rem;
  font-weight: 750;
}
.art-nutrition, .art-recipes { background: radial-gradient(ellipse at 50% 35%, #ffece1, #f7be9d); color: #8b4f32; }
.art-nutrition .phone, .art-plan .phone { transform: rotate(-8deg); }
.art-recipes .phone:first-child, .art-sleep .phone:first-child { transform: rotate(-8deg) translateX(5%); }
.art-recipes .phone:nth-child(2), .art-sleep .phone:nth-child(2) { transform: rotate(8deg) translateX(-5%); }
.art-workouts > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 35% center; }
.art-workouts .phone { margin-left: 38%; transform: rotate(7deg); }
.art-sleep { background: radial-gradient(ellipse at 60% 40%, #374e96, #141f44); color: #c6d4ff; }
.art-plan { background: radial-gradient(ellipse at 50% 35%, #e5efff, #a6c3f6); }

.art-coach { background: radial-gradient(ellipse at 52% 44%, #5780f3, #234acb 70%); color: #e2e9ff; }
.demo-card { width: min(100%, 410px); padding: 13px 18px; border-radius: 18px; background: var(--paper); color: var(--ink); }
.demo-header { display: flex; align-items: center; gap: 11px; padding: 5px 0 9px; }
.demo-header img { border-radius: 10px; }
.demo-header p { color: var(--muted); font-size: .75rem; font-weight: 750; }
.demo-header h2 { font-size: 1.38rem; }
.demo-card summary { min-height: 45px; padding-block: 7px; font-size: .9rem; }
.demo-card details:last-child { border-bottom: 0; }
.demo-dialog { padding-bottom: 11px; }
.demo-dialog p { margin-top: 7px; font-size: .83rem; }
.demo-dialog strong { display: block; margin-bottom: 2px; color: var(--blue-deep); font-size: .7rem; }

.story-grid, .compatibility-grid, .workout-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(15px, 2.8vw, 38px);
}
.story-grid article { padding: 16px 0 0; border-top: 2px solid #cdd7f6; }
.story-grid h3, .compatibility-grid h3 { margin-bottom: 9px; font-size: clamp(1.45rem, 2.6vw, 2.12rem); }
.story-grid p { max-width: 45ch; }
.workout-gallery { gap: 14px; }
.workout-gallery img { width: 100%; border-radius: 16px; }
.product-questions { display: grid; grid-template-columns: minmax(170px, .6fr) minmax(0, 1fr); gap: 19px 40px; }
.text-link { display: block; width: fit-content; margin-bottom: 9px; font-weight: 750; }
.text-link span { margin-left: 6px; }
.compatibility-grid { gap: 14px; }
.compatibility-grid article { border: 1px solid #d3d9eb; border-radius: 20px; padding: clamp(16px, 2.3vw, 28px); background: #f0f3fc; }
.compatibility-grid dl, .compatibility-grid dd { margin: 0; }
.compatibility-grid dt { margin-top: 15px; font-weight: 780; }
.compatibility-grid dd { margin-top: 4px; color: var(--muted); }
.faq-page { display: grid; grid-template-columns: minmax(170px, .53fr) minmax(0, 1fr); gap: 25px clamp(25px, 6vw, 85px); margin-bottom: 44px; }
.faq-index { display: grid; align-content: start; gap: 8px; }
.faq-index a { width: fit-content; border-radius: 10px; padding: 8px 12px; background: #e8edfc; font-weight: 700; }
.faq-groups section + section { margin-top: 33px; }
.faq-groups h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); margin-bottom: 13px; }
.contact-box { background: #e9edfb; border-radius: 20px; padding: clamp(17px, 3vw, 30px); }
.contact-box .hero-actions { margin-top: 13px; }
.related-pages h2 { font-size: clamp(1.85rem, 3vw, 2.8rem); }
.related-pages > div { display: flex; flex-wrap: wrap; gap: 9px; }
.related-pages a { align-items: center; gap: 14px; min-height: 44px; padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 730; }

.product-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 25px;
  padding-block: 30px;
}
.product-footer > div > p { margin-top: 9px; color: var(--muted); }
.product-footer nav { display: grid; justify-items: start; align-content: start; gap: 2px; }
.product-footer nav p { margin-bottom: 4px; font-weight: 800; }
.product-footer nav a { min-height: 33px; padding-block: 3px; color: var(--ink); font-size: .89rem; }

/* Premium, contact, guides, press and changelog pages */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--paper); border-radius: 20px; overflow: hidden; }
.compare-table th, .compare-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.compare-table thead th { font-size: .82rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); }
.compare-table tbody th { font-weight: 650; }
.compare-table td { text-align: center; width: 22%; font-weight: 700; }
.compare-table thead th.premium-col, .compare-table td.premium-col { background: #e9edfb; color: var(--blue-deep); }
.compare-table thead th:not(:first-child) { text-align: center; }
.tick { color: var(--blue); font-size: 1.15rem; }
.dash { color: #a99b8e; }
.plan-grid, .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plan-card { padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: radial-gradient(ellipse at 70% 0%, #5479f0 0, #2c57df 55%, #193dab 100%); color: #fff; }
.plan-card .plan-name { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.plan-card h3 { margin: 10px 0 8px; font-size: clamp(2rem, 3.4vw, 2.8rem); color: #fff; }
.plan-card p:last-child { color: #e8ecff; }
.info-card { display: flex; flex-direction: column; gap: 8px; padding: clamp(18px, 2.6vw, 28px); border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.info-card h2, .info-card h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 0; }
.info-card h2 a { color: var(--ink); text-decoration: none; }
.info-card h2 a:hover { color: var(--blue-deep); text-decoration: underline; }
.info-card p { color: var(--muted); }
.info-card > a { margin-top: auto; padding-top: 8px; font-weight: 750; overflow-wrap: anywhere; }
.info-card > a span { margin-left: 6px; }
.guide-card .page-topic { margin: 0; }
.article-body { max-width: 760px; display: grid; gap: 28px; }
.article-body h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); margin-bottom: 10px; }
.article-body p { font-size: 1.05rem; line-height: 1.7; }
.article-body p + p { margin-top: 10px; }
.fact-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 24px; margin: 0; }
.fact-list div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fact-list dt { color: var(--muted); font-size: .8rem; font-weight: 750; }
.fact-list dd { margin: 3px 0 0; font-weight: 650; }
.copy-button { align-self: flex-start; margin-top: 6px; min-height: 40px; padding: 7px 15px; border: 1px solid #b7c3ef; border-radius: 999px; background: transparent; color: var(--blue-deep); font: 700 .84rem var(--body); cursor: pointer; }
.copy-button:hover { background: #e9edfd; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.asset-grid figure { display: grid; gap: 8px; }
.asset-preview { display: grid; place-items: center; height: 190px; padding: 12px; border-radius: 18px; background: #eef1fc; }
.asset-preview img { max-height: 166px; width: auto; border-radius: 12px; }
.asset-grid figcaption { font-size: .86rem; color: var(--muted); }
.asset-grid figcaption a { display: inline-block; margin-left: 4px; font-weight: 750; }
.press-contact { margin-top: 24px; }
.press-contact h2 { font-size: 1.5rem; margin-bottom: 6px; }
.changelog { display: grid; gap: 0; }
.changelog article { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 10px 30px; padding: 24px 0; border-top: 1px solid var(--line); }
.changelog article:first-child { border-top: 0; padding-top: 0; }
.changelog time { color: var(--blue-deep); font-weight: 750; }
.changelog h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.changelog ul { margin: 0; padding-left: 1.2em; display: grid; gap: 5px; color: var(--muted); }

/* Legal pages */
.legal-hero { max-width: 860px; padding-block: 30px 34px; }
.legal-hero h1 { margin-top: 10px; font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.legal-updated { margin-top: 14px; color: var(--muted); font-size: .9rem; font-weight: 650; }
.legal-lang { margin-top: 6px; font-size: .9rem; font-weight: 700; }
.legal-intro { margin-top: 14px; max-width: 72ch; color: var(--ink); font-size: 1.04rem; line-height: 1.7; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); padding-bottom: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.legal-toc { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; }
.legal-toc p { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--ink); font-size: .88rem; text-decoration: none; line-height: 1.35; }
.legal-toc a::before { content: counter(toc) '.'; color: var(--muted); min-width: 1.4em; }
.legal-toc a:hover { background: #efe5da; color: var(--blue-deep); }
.legal-body { min-width: 0; max-width: 820px; }
.legal-body section + section { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal-body h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin-bottom: 12px; }
.legal-body h3 { font: 750 1.02rem/1.35 var(--body); letter-spacing: 0; margin: 20px 0 6px; }
.legal-body p, .legal-body li { font-size: .98rem; line-height: 1.7; }
.legal-body p + p { margin-top: 10px; }
.legal-body ul { margin: 10px 0; padding-left: 1.25em; display: grid; gap: 6px; }
.legal-note { padding: 14px 18px; border-radius: 14px; background: #fff1e6; border: 1px solid #f3c9a8; font-weight: 650; margin-bottom: 12px; }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; margin: 12px 0; font-size: .9rem; background: var(--paper); }
.legal-table th, .legal-table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.legal-table thead th { background: #f1e8de; font-size: .8rem; font-weight: 800; }
.legal-table tbody th { font-weight: 700; width: 26%; }

@media (max-width: 1000px) {
  .product-footer { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-footer > div { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .home-visual { min-height: 420px; padding: 24px; }
}
@media (max-width: 850px) {
  .product-header .header-inner { flex-wrap: wrap; gap: 8px; padding-block: 8px; min-height: 62px; }
  .product-header .main-nav { order: 3; width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 2px 20px; padding-top: 4px; border-top: 1px solid var(--line); }
  .product-header .main-nav a { min-height: 44px; }
  .product-header .compact-link { display: inline-flex; }
  .product-header .header-cta { display: none; }
  .product-header .header-end { gap: 10px; }
  .page-art { min-height: 380px; padding-inline: 17px; }
  .path-grid, .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .home-hero, .product-hero.has-art, .story-grid, .compatibility-grid, .faq-page, .product-questions { grid-template-columns: minmax(0, 1fr); }
  .home-hero { gap: 23px; padding-bottom: 30px; }
  .home-intro h1 { font-size: clamp(3.25rem, 12.5vw, 6rem); }
  .page-intro h1 { font-size: clamp(2.7rem, 10vw, 5rem); }
  .page-lede { margin-top: 16px; }
  .home-visual { min-height: 360px; border-radius: 23px; }
  .home-visual .phone { width: min(43%, 165px); margin-right: 8%; }
  .product-hero, .product-hero.text-hero { padding-block: 20px 32px; }
  .page-art { min-height: 340px; border-radius: 22px; }
  .page-art .phone { width: min(41%, 147px); }
  .home-pathways, .story, .related-pages { padding-block: 27px 34px; }
  .home-pathways h2, .story h2, .related-pages h2 { margin-bottom: 18px; }
  .story-grid article { padding-top: 11px; }
  .product-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
  .product-footer > div { grid-column: 1 / -1; }
  .workout-gallery { grid-template-columns: 1fr; }
  .changelog article { grid-template-columns: minmax(0, 1fr); }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--paper); }
}
@media (max-width: 380px) {
  .path-grid, .more-grid { gap: 8px; }
  .path-visual { height: 126px; }
  .path-copy, .more-grid article { padding: 11px; }
  .home-visual { min-height: 322px; padding: 17px; }
  .home-visual .phone { width: 44%; margin-right: 5%; }
  .home-caption strong { font-size: 1.25rem; }
  .home-visual-links a { min-height: 36px; }
}

