/* Shared app directory */
body:has(.app-guide) { background: #fbf8f0; color: #20201c; }
.guide-header, .guide-section-heading, .guide-brand, .icon-pair, .guide-header nav { display: flex; align-items: center; }
.guide-header { min-height: 76px; justify-content: space-between; gap: 16px; border-bottom: 1px solid #d8d3c6; }
.guide-brand { gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -.04em; }
.icon-pair img { border-radius: 9px; box-shadow: 0 0 0 2px #fbf8f0; }
.icon-pair img + img { margin-left: -8px; transform: rotate(7deg); }
.guide-header nav { gap: clamp(14px, 3vw, 34px); font-size: 15px; font-weight: 600; }
.guide-header a, .guide-footer nav a { padding-block: 10px; }
.guide-header nav a:hover, .guide-footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.guide-intro { margin-block: clamp(28px, 4vw, 56px) clamp(22px, 3vw, 36px); }
.guide-intro h1 { margin: 0; font-size: clamp(42px, 6vw, 88px); line-height: 1; font-weight: 590; letter-spacing: -.065em; }
.app-guide em, .rhythm-product em { font-family: Georgia, serif; font-weight: 400; }
.app-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); padding-bottom: clamp(36px, 6vw, 82px); }
.app-door { display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; }
.rhythm-door { color: #201b47; background: #fff0bf; }
.fasting-door { color: #fff8e9; background: #26231e; }
.door-art { height: clamp(128px, 14vw, 192px); position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; }
.plate-art { background: #f8ce80; background-image: repeating-linear-gradient(0deg, transparent 0 22px, #fff4ce60 22px 42px), repeating-linear-gradient(90deg, transparent 0 22px, #fff4ce60 22px 42px); }
.plate-art img { position: absolute; left: 50%; top: 50%; width: auto; height: 106%; max-width: none; transform: translate(-50%, -50%) rotate(-9deg); filter: drop-shadow(1px 9px 8px #704a302e); }
.timer-art { background: radial-gradient(ellipse at 60% 115%, #9d6633, #473322 55%, #312821); }
.timer-art::before, .rhythm-stage::before { position: absolute; content: ''; z-index: -1; border-radius: 50%; }
.timer-art::before { width: 76%; aspect-ratio: 1; border: 1px solid #ffd69c3d; box-shadow: 0 0 0 23px #ffd69c09, 0 0 0 62px #ffd69c08; }
.timer-art img { width: clamp(168px, 16vw, 256px); height: auto; align-self: start; margin-top: -18px; border: 4px solid #10100f; border-radius: 28px; transform: rotate(7deg); box-shadow: 0 12px 28px #0006; }
.door-copy { padding: clamp(22px, 2.6vw, 38px); flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.door-copy h2 { margin: 0; font-size: clamp(31px, 3.1vw, 47px); font-weight: 650; letter-spacing: -.06em; line-height: 1.06; }
.fasting-door h2 em { color: #ffca84; }
.door-copy p { margin: 14px 0 22px; font-size: clamp(15px, 1.3vw, 18px); max-width: 44ch; line-height: 1.5; }
.door-copy .button { margin-top: auto; }
.rhythm-button { color: white; background: #22204e; }
.rhythm-button:hover { background: #39336d; }
.door-copy small, .rhythm-availability { font-size: 13px; font-weight: 550; }
.door-copy small { margin-top: 10px; color: #554d56; }
.fasting-door small { color: #d9cbbb; }
.store-shortcut { text-decoration: underline; text-underline-offset: .23em; }
.guide-section-heading { justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-block-end: 28px; }
.guide-link, .rhythm-help a { display: inline-block; font-weight: 650; text-decoration: underline; text-underline-offset: .28em; }
.guide-link span { display: inline-block; margin-left: 4px; }
.guide-link:hover, .rhythm-help a:hover { text-decoration-thickness: 2px; }
.rhythm-sampler { background: #edf3eb; color: #25243f; padding-block: clamp(40px, 6vw, 82px); }
.guide-section-heading h2, .rhythm-product h2 { margin: 0; font-size: clamp(34px, 4.4vw, 62px); letter-spacing: -.055em; line-height: 1.06; font-weight: 600; }
.rhythm-cards, .rhythm-extras { display: grid; gap: clamp(18px, 2.5vw, 36px); }
.rhythm-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.screen-excerpt { display: grid; place-items: center; padding: 20px; height: clamp(190px, 22vw, 284px); border-radius: 22px; }
.screen-excerpt img { width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: 12px; box-shadow: 0 8px 18px -5px #27233240; }
.butter { background: #fae8a3; }
.mint { background: #c3dfcf; }
.peach { background: #f5c4b9; }
.lilac { background: #dccbf0; }
.rhythm-cards h3 { font-weight: 650; margin: 20px 0 8px; line-height: 1.13; letter-spacing: -.045em; font-size: clamp(22px, 2.3vw, 32px); }
.rhythm-cards p, .rhythm-extras p { margin: 0; font-size: 16px; line-height: 1.6; }
.journal-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 6vw, 88px); align-items: center; }
.journal-layout p, .rhythm-help p { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.56; max-width: 50ch; }
.guide-footer { background: #23221f; color: #faf6e9; padding-block: 38px; }
.guide-footer>.wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.guide-footer h2 { font-size: 17px; margin: 0 0 8px; line-height: 1.3; }
.guide-footer h2 a { display: inline-flex; gap: 10px; align-items: center; }
.guide-footer img { border-radius: 9px; }
.guide-footer nav { display: flex; flex-wrap: wrap; gap: 3px 18px; color: #d8d2c5; font-size: 14px; }
.app-guide a:focus-visible, .rhythm-product a:focus-visible, .guide-header a:focus-visible { outline-color: #1c6a77; }
.fasting-door a:focus-visible { outline-color: #f4d59b; }

/* Two full feature tours on the shared homepage */
.tracker-chapter { background: #25231f; color: #faf5e9; padding-block: clamp(40px, 6vw, 82px); }
.tracker-chapter h2 em { color: #ffce91; }
.tracker-chapter p { color: #e0d9ca; }
.tracker-chapter a:focus-visible { outline-color: #ffd495; }
.tracker-screen, .plan-preview { background: #37332e; }
.plan-preview { display: grid; align-items: center; height: clamp(190px, 22vw, 284px); padding: clamp(10px, 1.4vw, 22px); border-radius: 22px; }
.plan-preview .plan-demo { min-width: 0; margin: 0; background: #211f1b; padding: clamp(10px, 1.3vw, 18px); }
.plan-preview .plan-options { gap: 4px; flex-wrap: wrap; }
.plan-preview button { flex: 1 1 40px; min-height: 44px; padding-inline: 2px; font-variant-numeric: tabular-nums; }
.chapter-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 60px); border-top: 1px solid #c7cdbf; margin-top: clamp(30px, 4vw, 56px); padding-top: 26px; }
.tracker-chapter .chapter-notes { border-color: #5e574a; }
.chapter-notes h3 { font-size: clamp(21px, 2vw, 28px); line-height: 1.2; margin: 0 0 8px; letter-spacing: -.035em; }
.chapter-notes p { margin: 0; max-width: 59ch; font-size: 16px; line-height: 1.58; }
.chapter-notes .guide-link { margin-top: 10px; }
.tracker-chapter .languages { display: inline-block; margin-top: 18px; }
.tracker-chapter .languages summary { padding: 10px 0; text-decoration: underline; text-underline-offset: .25em; }
.tracker-chapter .languages div { left: 0; right: auto; }
.tracker-chapter .languages a:hover { text-decoration: underline; }

/* Meal Rhythm product tour */
.rhythm-product { background: #fffaf0; color: #211e45; }
.rhythm-hero { background: radial-gradient(ellipse at 72% 83%, #ffd795, transparent 60%), #fff1bb; overflow: hidden; }
.rhythm-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 36px; }
.rhythm-intro { padding-block: 48px; }
.product-icon { border-radius: 14px; margin-bottom: 18px; }
.rhythm-intro h1 { margin: 0; font-size: clamp(64px, 7vw, 108px); letter-spacing: -.065em; line-height: 1; font-weight: 650; }
.rhythm-intro>p:first-of-type { font-size: clamp(18px, 1.8vw, 25px); max-width: 31ch; line-height: 1.48; margin: 22px 0; }
.rhythm-availability { margin: 12px 0 0; }
.rhythm-stage { position: relative; isolation: isolate; display: grid; place-items: center; padding-block: clamp(28px, 4vw, 64px); }
.rhythm-stage::before { width: min(100%, 435px); aspect-ratio: 1; background: #ffcf7d; box-shadow: 0 0 0 18px #ffe2a0; }
.rhythm-phone { width: clamp(190px, 18vw, 268px); height: auto; border: 5px solid #242137; border-radius: 13% / 6%; box-shadow: 3px 16px 30px #65462833; transform: rotate(4deg); }
.hero-sticker { position: absolute; bottom: 7%; left: 0; width: 39%; max-width: 209px; height: auto; transform: rotate(-8deg); filter: drop-shadow(1px 7px 5px #66412529); }
.rhythm-details, .rhythm-extras { padding-block: clamp(42px, 6vw, 84px); }
.rhythm-details h2 { margin-bottom: 30px; }
.rhythm-journal { background: #e6d9ef; overflow: hidden; }
.journal-layout { min-height: 368px; }
.journal-art { position: relative; display: grid; justify-items: start; align-items: start; height: 344px; align-self: end; overflow: hidden; padding-top: 15px; }
.journal-art img:first-child { width: min(56%, 225px); height: auto; border: 4px solid #30283e; border-radius: 21px; transform: rotate(-4deg); margin-left: 5%; }
.journal-art img:last-child { position: absolute; right: 6%; bottom: 20px; width: min(40%, 162px); height: auto; transform: rotate(5deg); border: 4px solid #fff5dd; border-radius: 15px; box-shadow: 0 10px 25px #35224438; }
.rhythm-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rhythm-extras .screen-excerpt { height: clamp(228px, 26vw, 316px); }
.rhythm-extras h2 { margin: 24px 0 10px; font-size: clamp(28px, 3.2vw, 44px); }
.rhythm-help { border-top: 1px solid #d8d1c0; padding-block: clamp(36px, 5vw, 64px); }
.rhythm-help h2 { font-size: clamp(31px, 3.3vw, 48px); }
.rhythm-help a { margin: 0 18px 6px 0; padding-block: 6px; }
.rhythm-doc { padding-block: 64px 90px; max-width: 780px; }
.rhythm-doc h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.05; letter-spacing: -.055em; }
.rhythm-doc h2 { margin-top: 30px; line-height: 1.2; }
.rhythm-doc a { font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.header.rhythm-header nav>a { display: inline-flex; align-items: center; min-height: 44px; }

@media(max-width: 760px) {
  .guide-header { min-height: 60px; }
  .guide-section-heading { margin-bottom: 20px; }
  .rhythm-cards { gap: 22px; grid-template-columns: 1fr; }
  .rhythm-cards article { display: grid; grid-template-columns: minmax(120px, .82fr) 1fr; align-content: center; column-gap: 20px; }
  .rhythm-cards .screen-excerpt { grid-row: span 2; height: auto; min-height: 150px; align-self: stretch; }
  .rhythm-cards .screen-excerpt img { max-height: 160px; }
  .rhythm-cards h3 { align-self: end; margin-top: 0; }
  .rhythm-cards p { max-width: 40ch; }
  .journal-layout { gap: 22px; }
  .rhythm-intro h1 { font-size: clamp(50px, 8vw, 68px); }
  .rhythm-inner { gap: 16px; }
  .rhythm-stage .hero-sticker { bottom: 4%; left: -6%; }
  .journal-art { height: 275px; }
  .journal-layout { min-height: 315px; }
}
@media(max-width: 600px) {
  .guide-header nav { font-size: 13px; }
  .guide-brand { font-size: 15px; gap: 6px; }
  .icon-pair img { width: 26px; height: 26px; border-radius: 7px; }
  .guide-intro h1 { font-size: clamp(36px, 9vw, 52px); }
  .app-pair { grid-template-columns: 1fr; }
  .app-door { display: grid; grid-template-columns: minmax(78px, 29%) 1fr; border-radius: 20px; }
  .door-art { height: 100%; }
  .plate-art img { width: 134%; height: auto; }
  .timer-art img { width: 136%; max-width: none; align-self: center; margin: 0 0 -12% 15%; }
  .door-copy { padding: 20px 16px; }
  .door-copy h2 { font-size: clamp(27px, 6.2vw, 36px); }
  .door-copy p { font-size: 14px; margin: 10px 0 16px; }
  .door-copy .button { min-height: 44px; font-size: 13px; gap: 7px; padding: 10px 13px; }
  .door-copy small { font-size: 12px; }
  .guide-footer>.wrap, .rhythm-inner, .journal-layout, .rhythm-extras { grid-template-columns: 1fr; }
  .rhythm-intro { padding-block: 32px 0; }
  .rhythm-intro>p:first-of-type { max-width: 38ch; margin: 14px 0; }
  .product-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 12px; }
  .rhythm-stage { height: 337px; overflow: hidden; align-items: start; }
  .rhythm-stage .hero-sticker { bottom: 4%; left: 4%; width: 34%; }
  .rhythm-extras { gap: 32px; }
  .journal-layout { padding-top: 36px; }
  .journal-layout>div:last-child { grid-row: 1; }
  .journal-layout p { margin-bottom: 0; }
  .journal-art { height: 235px; max-width: 430px; width: 100%; }
  .rhythm-doc { padding-block: 32px 54px; }
}
@media(max-width: 440px) {
  .rhythm-cards article { display: block; }
  .rhythm-cards .screen-excerpt { min-height: 0; height: 184px; }
  .rhythm-cards h3 { margin-top: 14px; }
  .rhythm-cards { gap: 30px; }
  .rhythm-extras .screen-excerpt { height: 210px; }
}

@media (min-width: 761px) and (max-width: 950px) {
  .tracker-cards { gap: 16px; }
  .plan-preview { padding: 8px; }
  .plan-preview .plan-demo { padding: 9px; }
  .plan-preview button { font-size: 13px; }
}
@media (min-width: 441px) and (max-width: 760px) {
  .tracker-cards article { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .plan-preview { height: auto; align-self: stretch; grid-row: span 2; }
}
@media (max-width: 600px) {
  .chapter-notes { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .plan-preview { height: auto; padding: 16px; }
}
