/* Homepage: clear choices, short summaries, direct next steps. */
body.is-home { background: #fffdf6; color: #282d27; }
.l-header { background: #fffdf6f5; }
.p-header-links { display: flex; gap: 30px; margin-left: auto; margin-right: 48px; font-size: 14px; font-weight: 600; }
.p-header-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.p-header-links a:focus-visible { outline: 3px solid #282d27; outline-offset: 6px; }
.p-hero { padding: 48px 0 62px; }
.p-hero__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; }
.p-hero h1 { font-size: clamp(32px,3.6vw,52px); line-height: 1.5; font-weight: 700; letter-spacing: .025em; }
.p-hero__lead { font-size: 18px; margin: 24px 0; line-height: 1.9; }
.p-store-links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.p-store-links a { display: inline-flex; align-items: center; min-height: 48px; border-radius: 8px; }
.p-store-links img { display: block; width: 160px; height: auto; }
.p-store-links a:hover { opacity: .8; }
.p-hero__note { color: #505650; font-size: 12px; margin: 10px 0 16px; }
.p-hero__visual img { width: 100%; height: auto; max-height: 500px; object-fit: contain; display: block; }
.p-news-compact { padding: 24px 0 30px; background: #fff; }
.p-news-compact .p-news-updated__header { margin-bottom: 12px; }
.p-news-compact h2 { font-size: 20px; font-weight: 700; }
.p-news-compact .p-news-updated__item { padding: 16px 0; }
.p-news-updated__item + .p-news-updated__item { border-top: 0; }
.p-services { padding: 64px 0; }
.p-services__grid { gap: 20px; margin-top: 28px; }
.p-services__more { margin: 24px 0 0; text-align: right; }
.p-purpose-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid #e8e5dc; border-radius: 24px; background: #fff; transition: border-color .15s, transform .15s; }
.p-purpose-card:hover { border-color: #a4a99d; transform: translateY(-3px); }
.p-purpose-card h3 { margin: 20px 0 14px; font-size: 24px; line-height: 1.55; font-weight: 700; }
.p-purpose-card p { font-size: 15px; color: #505650; margin-bottom: 24px; }
.p-purpose-card__link { display: flex; justify-content: space-between; width: 100%; align-items: center; gap: 12px; margin-top: auto; font-size: 14px; font-weight: 700; }
.p-purpose-card__link > span { display: grid; place-items: center; border-radius: 50%; background: #fee500; width: 32px; height: 32px; flex-shrink: 0; }
.p-daily-records { padding: 64px 0; }
.p-rich-card { display: flex; flex-direction: column; align-items: flex-start; }
.p-rich-card > a { margin-top: auto; padding-top: 18px; }
.p-inline-download { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 32px; padding-top: 28px; border-top: 1px solid #dedbd2; }
.p-inline-download h3 { font-size: 20px; font-weight: 700; }
.p-pinote { padding: 72px 0; }
.p-pinote .p-simple-link { display: block; width: fit-content; margin-top: 20px; }
.p-glucose-summary { background: #fff; padding: 64px 0; }
.p-glucose-summary__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.p-glucose-summary__grid > img { width: 100%; height: auto; }
.p-glucose-summary h2 { font-size: clamp(26px,2.5vw,36px); margin: 20px 0; }
.p-summary-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.p-about-summary { padding: 56px 0; }
.p-about-summary > .p-update__inner { max-width: 840px; }
.p-about-summary p { margin: 20px 0; }
.p-video-link { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 18px 22px; border: 1px solid #e8e5dc; border-radius: 14px; background: #fff; color: #282d27; text-decoration: none; }
.p-video-link:hover { border-color: #a4a99d; background: #fffdf6; }
.p-video-link:focus-visible { outline: 3px solid #282d27; outline-offset: 3px; }
.p-video-link__play { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; padding-left: 2px; border-radius: 50%; background: #fee500; font-size: 13px; }
.p-video-link__copy { display: grid; gap: 2px; }
.p-video-link__copy strong { font-size: 16px; line-height: 1.5; }
.p-video-link__copy small { color: #505650; font-size: 12px; }
.p-video-link__arrow { margin-left: auto; font-size: 22px; }
.p-final-download { padding: 64px 0; background: #f5f0e7; text-align: center; }
.p-final-download .p-store-links { justify-content: center; margin-top: 28px; }
@media (max-width:1023px) {
 .p-services__grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
 .p-purpose-card { padding: 20px; }
 .p-purpose-card h3 { font-size: 20px; }
 .p-rich-cards { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
 .p-rich-card { padding: 20px; }
 .p-inline-download { align-items: flex-start; flex-direction: column; }
 .p-header-links { gap: 20px; margin-right: 24px; }
}
@media (max-width:767px) {
 .p-header-links { display: none; }
 .p-hero { padding: 24px 0 32px; }
 .p-hero__grid { grid-template-columns: 1fr; gap: 28px; }
 .p-hero h1 { font-size: clamp(28px,7.8vw,38px); }
 .p-hero__lead { font-size: 15px; margin: 18px 0; }
 .p-hero .p-update__eyebrow { font-size: 11px; margin-bottom: 12px; }
 .p-hero__visual img { max-height: 300px; }
 .p-store-links { gap: 10px; flex-wrap: nowrap; }
 .p-store-links a { flex: 0 1 145px; min-width: 0; }
 .p-store-links img { width: 100%; max-width: 145px; }
 .p-news-compact { padding: 20px 0; }
 .p-news-compact .p-news-updated__item strong { font-size: 15px; }
 .p-services, .p-daily-records, .p-pinote, .p-glucose-summary, .p-final-download { padding: 44px 0; }
 .p-services__grid, .p-rich-cards { grid-template-columns: 1fr; }
 .p-purpose-card { padding: 22px; }
 .p-purpose-card h3 { font-size: 22px; margin: 14px 0 10px; }
 .p-purpose-card h3 br { display: none; }
 .p-purpose-card p { margin-bottom: 14px; }
 .p-rich-card { padding: 24px; }
 .p-glucose-summary__grid { grid-template-columns: 1fr; gap: 28px; }
 .p-glucose-summary__grid > img { max-width: 360px; margin: 0 auto; }
 .p-glucose-summary h2 br { display: none; }
 .p-pinote__grid { gap: 28px; }
 .p-pinote__visual { max-width: 320px; }
 .p-pinote__facts { gap: 8px; }
 .p-pinote__facts span { padding: 8px 12px; }
 .p-about-summary { padding: 40px 0; }
 .p-final-download .p-store-links { margin-left: auto; margin-right: auto; max-width: 300px; }
}
@media (prefers-reduced-motion:reduce) { .p-purpose-card { transition: none; } .p-purpose-card:hover { transform: none; } }

/* All twenty types share a scrollable track with native links. */
.p-pinote__grid > * { min-width: 0; }
.p-pinote-gallery { width: 100%; min-width: 0; margin: 0; }
.p-pinote-gallery__track { display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; padding: 18px 8px 24px; scrollbar-width: thin; scrollbar-color: #b5b8ae transparent; border-radius: 18px; }
.p-pinote-type { display: flex; flex-direction: column; align-items: center; width: clamp(180px,17vw,240px); flex: 0 0 auto; padding: 16px 12px 20px; border: 1px solid #e8e5dc; border-radius: 18px; background: #fff; text-decoration: none; box-shadow: 0 5px 14px #282d270a; }
.p-pinote-type img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.p-pinote-type__number { align-self: flex-start; font-size: 11px; color: #646b63; }
.p-pinote-type__name { font-size: 15px; font-weight: 700; text-align: center; margin-top: 10px; line-height: 1.6; }
.p-pinote-type:hover { border-color: #a4a99d; }
.p-pinote-gallery figcaption { text-align: center; font-size: 14px; color: #505650; margin-top: 20px; }
.p-pinote-gallery__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px; }
.p-pinote-gallery__controls[hidden] { display: none; }
.p-pinote-gallery__controls span { font-size: 12px; color: #505650; }
.p-pinote-gallery__controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #dedbd2; border-radius: 50%; background: #fff; color: #282d27; font-size: 20px; cursor: pointer; }
.p-pinote-gallery__controls button:hover:not(:disabled) { background: #fee500; border-color: #fee500; }
.p-pinote-gallery__controls button:disabled { opacity: .35; cursor: default; }
.p-pinote-gallery__track:focus-visible, .p-pinote-gallery__controls button:focus-visible { outline: 3px solid #282d27; outline-offset: 4px; }
@media (max-width:767px) {
 .p-pinote-type { width: 200px; }
 .p-pinote-gallery__track { gap: 14px; }
}

.p-pinote-gallery__help { margin-top: 12px; text-align: center; color: #505650; font-size: 12px; }
.p-pinote .p-pinote-gallery__all { margin: 16px auto 0; text-align: center; }

/* Consistent header sizes at desktop, tablet and phone widths. */
.l-header { height: 80px; padding: 14px max(24px,calc((100% - 1260px)/2)); background: #fffdf6; }
.l-header__container .l-header__logo { width: 92px; flex-shrink: 0; }
.c-button__menu, .c-button__menu.is-open { width: 116px; height: 48px; padding: 0 18px; border-radius: 999px; flex-shrink: 0; }
.c-button__menu.is-open { position: relative; top: auto; right: auto; }
.c-button__menu--heading { font-size: 12px; }
.c-button__menu--btn { width: 22px; height: 14px; }
.c-button__menu--btn span { width: 22px; height: 2px; }
.c-button__menu.is-open .c-button__menu--btn span:nth-child(1) { width: 22px; transform: translateY(6px) rotate(45deg); }
.c-button__menu.is-open .c-button__menu--btn span:nth-child(3) { width: 22px; transform: translateY(-6px) rotate(-45deg); }
.c-fixedbutton { width: 52px; top: auto; left: auto; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom,0px)); }
.c-fixedbutton.is-hidden { display: none; }
.c-fixedbutton a { width: 52px; height: 52px; margin: 0; padding: 6px; border-radius: 50%; justify-content: center; gap: 0; box-shadow: 0 2px 10px #282d271a; }
.c-fixedbutton a img { width: 40px; height: 40px; margin: 0; }
.c-fixedbutton a p { display: none; }
.c-fixedbutton a:focus-visible { outline: 3px solid #282d27; outline-offset: 4px; }

/* Pinote: introduction, full-width gallery, then the main action. */
.p-pinote__layout { display: flex; flex-direction: column; gap: 28px; }
.p-pinote__intro { text-align: center; }
.p-pinote__intro .p-pinote__name { margin-bottom: 12px; }
.p-pinote__intro .p-update__lead { max-width: 780px; margin: 18px auto 0; }
.p-pinote__mobile-break { display: none; }
.p-pinote-type { width: calc((100% - 54px)/4); min-width: 0; }
.p-pinote-type img { max-width: 220px; }
.p-pinote-type__name { min-height: 48px; display: flex; align-items: center; justify-content: center; }
.p-pinote-gallery__track { padding: 12px 0 20px; border-radius: 0; }
.p-pinote-gallery__controls { margin-top: 12px; }
.p-pinote-gallery figcaption { margin-top: 14px; }
.p-pinote__actions { text-align: center; }
.p-pinote__external-note { margin: 10px auto 0; color: #505650; font-size: 12px; line-height: 1.6; }
.p-pinote__actions .p-simple-link { margin: 16px auto 0; }
.p-pinote__actions .p-pinote__note { max-width: 700px; margin: 20px auto 0; }
@media (min-width:768px) and (max-width:1023px) {
 .p-pinote-type { width: calc((100% - 36px)/3); }
 .p-pinote__intro .p-update__heading { font-size: 30px; }
}
@media (max-width:767px) {
 .l-header { height: 68px; padding: 10px 20px; }
 .l-header__container .l-header__logo { width: 70px; }
 .c-button__menu, .c-button__menu.is-open { width: 104px; }
 .c-fixedbutton { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom,0px)); }
 .p-pinote__layout { gap: 20px; }
 .p-pinote__intro { text-align: left; }
 .p-pinote__intro .p-pinote__name { font-size: 15px; }
 .p-pinote__intro .p-update__lead { font-size: 14px; margin-top: 14px; }
 .p-pinote__intro .p-update__lead br { display: none; }
 .p-pinote__mobile-break { display: inline; }
 .p-pinote-type { width: 78%; max-width: 280px; padding: 12px 12px 16px; }
 .p-pinote-type img { max-width: 210px; }
 .p-pinote-type__name { min-height: 24px; }
 .p-pinote-gallery__track { gap: 14px; }
 .p-pinote-gallery figcaption { font-size: 13px; }
}

/* A welcoming first view, using three official Pinote characters. */
.p-hero--characters { padding: 40px 0 56px; }
.p-hero--characters .p-hero__grid { grid-template-columns: 1fr 1.08fr; grid-template-rows: auto auto; gap: 0 32px; }
.p-hero__intro { grid-column: 1; grid-row: 1; align-self: end; }
.p-hero__actions { grid-column: 1; grid-row: 2; align-self: start; }
.p-hero__friends { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 100%; min-width: 0; margin: 0; }
.p-hero__scene { position: relative; width: 100%; aspect-ratio: 1.23; isolation: isolate; }
.p-hero__halo { position: absolute; inset: 9% 4% 6% 7%; background: #fff1a6; border-radius: 47% 53% 59% 41% / 54% 39% 61% 46%; transform: rotate(-8deg); z-index: -1; }
.p-hero__friend { position: absolute; display: block; height: auto; object-fit: contain; }
.p-hero__friend--volcano { width: 47%; left: -1%; top: 29%; transform: rotate(-9deg); z-index: 2; }
.p-hero__friend--avocado { width: 49%; left: 28%; top: 3%; transform: rotate(6deg); z-index: 1; }
.p-hero__friend--lemon { width: 44%; right: -1%; top: 43%; transform: rotate(8deg); z-index: 3; }
.p-hero__spark { position: absolute; color: #c4ad42; font-size: 34px; }
.p-hero__spark--one { left: 10%; top: 14%; transform: rotate(10deg); }
.p-hero__spark--two { right: 6%; top: 27%; font-size: 23px; }
.p-hero__friends figcaption { text-align: center; margin: 8px 0 0; }
.p-hero__friends figcaption a { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; border: 1px solid #e8e5dc; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.p-hero__friends figcaption a > span:first-child { font-size: 11px; font-weight: 500; color: #616660; }
.p-hero__friends figcaption a:hover { border-color: #b6bcae; background: #fffdf6; }
.p-hero__note a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width:768px) and (max-width:1023px) {
 .p-hero--characters .p-hero__grid { gap: 0 18px; }
 .p-hero--characters h1 { font-size: 34px; }
 .p-hero__friends figcaption a { font-size: 12px; gap: 4px 8px; }
 .p-hero__friends figcaption a > span:first-child { width: 100%; }
}
@media (max-width:767px) {
 .p-hero--characters { padding: 24px 0 32px; }
 .p-hero--characters .p-hero__grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 14px; }
 .p-hero__intro { grid-column: 1; grid-row: 1; }
 .p-hero__intro .p-hero__lead { margin: 12px 0 0; }
 .p-hero__friends { grid-column: 1; grid-row: 2; max-width: 350px; justify-self: center; }
 .p-hero__scene { width: 86%; max-width: 285px; margin: 0 auto; aspect-ratio: 1.45; }
 .p-hero__friend--volcano { top: 21%; }
 .p-hero__friend--avocado { top: 0; }
 .p-hero__friend--lemon { top: 35%; }
 .p-hero__spark { font-size: 22px; }
 .p-hero__spark--two { font-size: 15px; }
 .p-hero__friends figcaption { margin-top: 0; }
 .p-hero__friends figcaption a { font-size: 12px; padding: 8px 12px; gap: 4px 8px; }
 .p-hero__friends figcaption a > span:first-child { font-size: 10px; }
 .p-hero__actions { grid-column: 1; grid-row: 3; }
 .p-hero__actions .p-store-links { justify-content: center; }
 .p-hero__actions .p-hero__note { font-size: 11px; margin: 8px 0 12px; text-align: center; }
 .p-hero__actions > .p-simple-link { display: block; text-align: center; font-size: 13px; }
}

/* Show the glucose screen as the main visual, with Pinote alongside it. */
.p-hero--characters h1 { font-size: clamp(32px,3.35vw,48px); }
.p-hero__scene { aspect-ratio: 1.12; }
.p-hero__app-screen { position: absolute; width: 37%; aspect-ratio: 322 / 718; left: 32%; top: 3%; overflow: hidden; border-radius: 22px; z-index: 2; box-shadow: 0 16px 30px #282d2720; }
.p-hero__app-screen img { position: absolute; display: block; width: 400%; max-width: none; height: auto; left: -133.2%; top: -8.94%; }
.p-hero__friend--volcano { width: 35%; left: -1%; top: 50%; z-index: 3; transform: rotate(-8deg); }
.p-hero__friend--avocado { width: 26%; left: auto; right: 0; top: 13%; z-index: 1; transform: rotate(10deg); }
.p-hero__friend--lemon { width: 32%; right: -1%; top: 63%; z-index: 3; transform: rotate(8deg); }
.p-hero__spark--one { left: 12%; top: 25%; }
.p-hero__spark--two { right: 9%; top: 50%; }
@media (max-width:767px) {
 .p-hero--characters h1 { font-size: clamp(28px,7.7vw,36px); }
 .p-hero__scene { width: 100%; max-width: 330px; aspect-ratio: 1.18; }
 .p-hero__app-screen { width: 36%; left: 32%; border-radius: 12px; }
 .p-hero__friend--volcano { top: 47%; }
 .p-hero__friend--avocado { top: 12%; }
 .p-hero__friend--lemon { top: 61%; }
}

.p-hero__actions > .p-simple-link { margin-top: 20px; }
