/* Shared family product pages. Loaded only when appPage is true. */
@font-face {
  font-family:Newsreader;
  src:url('/assets/apps/fonts/newsreader.ttf') format('truetype');
  font-weight:200 800;
  font-display:swap;
}

@font-face {
  font-family:Hanken;
  src:url('/assets/apps/fonts/hanken.ttf') format('truetype');
  font-weight:100 900;
  font-display:swap;
}

:root {
  --paper:#f5efdf;
  --ink:#192e49;
  --muted:#66635a;
  --surface:#fbf7ed;
  --line:#d9d4c8;
  --site:var(--paper);
  --site-ink:var(--ink);
  --serif:Newsreader,Georgia,serif;
  --sans:Hanken,Arial,sans-serif;
  color-scheme:light dark;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--site);
  color:var(--site-ink);
  font:16px/1.6 'Helvetica Neue',Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}

a {
  color:inherit;
  text-underline-offset:5px;
}

a:hover {
  text-decoration-thickness:2px;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline:3px solid #b66b16;
  outline-offset:5px;
}

button,
select {
  font:inherit;
}

img {
  max-width:100%;
  height:auto;
  display:block;
}

h1,
h2,
h3,
p,
figure {
  margin:0;
}

p+p {
  margin-top:1rem;
}

.skip {
  position:absolute;
  left:20px;
  top:-100px;
  background:var(--site);
  padding:14px;
  z-index:10;
}

.skip:focus {
  top:80px;
}

.product-world {
  background:var(--paper);
  color:var(--ink);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.shell {
  width:min(1120px,calc(100% - 80px));
  margin-inline:auto;
}

.intro {
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:60px;
  align-items:end;
  padding:52px 0 38px;
}

.eyebrow {
  font:700 12px/1.5 var(--sans);
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:14px;
}

.title {
  font:470 clamp(44px,5.2vw,76px)/.99 var(--serif);
  letter-spacing:-.045em;
  text-wrap:balance;
}

.intro p {
  font-size:18px;
  color:var(--muted);
  max-width:42ch;
  padding-bottom:3px;
}

.product-pair {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  padding-bottom:60px;
}

.product {
  border:1px solid var(--line);
}

.art-panel {
  height:270px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--surface);
  overflow:hidden;
}

.art-panel.dark {
  background:#172b47;
  color:#fff2d7;
}

.art-panel .index {
  position:absolute;
  left:22px;
  top:18px;
  font:600 12px var(--sans);
  letter-spacing:.08em;
}

.art-panel img {
  width:245px;
  height:235px;
  object-fit:contain;
}

.art-panel.dark img {
  width:285px;
}

.product-copy {
  padding:26px 28px 28px;
}

.product-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.product h2 {
  font:500 37px/1.1 var(--serif);
  letter-spacing:-.035em;
}

.product .category {
  font:600 12px var(--sans);
  color:var(--muted);
}

.product-copy>p {
  color:var(--muted);
  margin:13px 0 18px;
  max-width:43ch;
}

.text-link {
  display:inline-flex;
  gap:12px;
  align-items:center;
  min-height:44px;
  font:700 15px var(--sans);
}

.product-meta {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.meta {
  font:13px var(--sans);
  color:var(--muted);
}

.shared {
  border-top:1px solid var(--line);
  padding:56px 0 65px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
}

.section-title {
  font:480 clamp(32px,3.5vw,48px)/1.06 var(--serif);
  letter-spacing:-.035em;
  max-width:20ch;
}

.shared p {
  color:var(--muted);
  margin:20px 0;
  max-width:48ch;
}

.health-map {
  align-self:center;
}

.health-source {
  font:600 16px var(--sans);
  border-bottom:1px solid var(--ink);
  padding-bottom:16px;
  display:flex;
  justify-content:space-between;
}

.health-source span {
  font-size:12px;
  font-weight:400;
  color:var(--muted);
}

.branches {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  padding-top:24px;
}

.branches .arrow {
  font-size:25px;
}

.branches h3 {
  font:600 21px var(--sans);
}

.branches p {
  font-size:14px;
  line-height:1.5;
  margin:6px 0 0;
}

.principles {
  display:flex;
  gap:22px;
  font:600 13px var(--sans);
}

.site-footer {
  width:min(1120px,calc(100% - 80px));
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:30px 0;
  font-size:13px;
  color:#666;
}

.site-footer nav {
  display:flex;
  gap:24px;
}

.site-footer a {
  min-height:44px;
  display:inline-flex;
  align-items:center;
}

.product-nav {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:20px 0;
  border-bottom:1px solid var(--line);
  font:600 14px var(--sans);
}

.product-nav a {
  display:inline-flex;
  min-height:44px;
  align-items:center;
}

.product-nav>div {
  display:flex;
  gap:24px;
}

.product-hero {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:70px;
  align-items:center;
  padding:52px 0 64px;
}

.wordmark {
  width:255px;
  margin-bottom:30px;
}

.wordmark.breakfast {
  width:265px;
}

.cream-mark {
  display:none;
}

.product-hero .title {
  font-size:clamp(48px,5.2vw,76px);
}

.lead {
  font-size:19px;
  line-height:1.6;
  color:var(--muted);
  max-width:42ch;
  margin-top:24px;
}

.actions {
  display:flex;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
  margin:26px 0 14px;
}

.button {
  display:inline-flex;
  min-height:48px;
  align-items:center;
  justify-content:center;
  padding:12px 22px;
  border:1px solid var(--ink);
  background:var(--ink);
  color:var(--paper);
  font:650 15px var(--sans);
  text-decoration:none;
}

.availability {
  font:13px/1.5 var(--sans);
  color:var(--muted);
}

.hero-stage {
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:500px;
}

.hero-stage .phone {
  width:236px;
  position:relative;
  z-index:1;
  margin-left:60px;
}

.hero-stage .egg {
  width:125px;
  position:absolute;
  bottom:0;
  left:-5px;
  z-index:2;
}

.hero-stage .stage-caption {
  position:absolute;
  right:0;
  top:40%;
  writing-mode:vertical-rl;
  font:11px var(--sans);
  letter-spacing:.1em;
  color:var(--muted);
}

.breakfast-art {
  width:100%;
  max-width:460px;
}

.how {
  padding:55px 0;
  border-top:1px solid var(--line);
}

.steps {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
  margin-top:32px;
}

.steps article {
  border-top:1px solid var(--line);
  padding-top:16px;
}

.steps .number {
  font:14px var(--sans);
  color:var(--muted);
}

.steps h3 {
  font:500 28px var(--serif);
  margin:13px 0 8px;
}

.steps p {
  font-size:15px;
  color:var(--muted);
}

.feature-spread {
  display:grid;
  grid-template-columns:1fr 1.1fr;
  align-items:center;
  gap:65px;
  padding:55px 0;
  border-top:1px solid var(--line);
}

.feature-spread p {
  margin:20px 0;
  color:var(--muted);
}

.file-tree {
  padding:30px;
  background:var(--surface);
  border:1px solid var(--line);
  min-width:0;
}

.file-tree .eyebrow {
  margin-bottom:20px;
}

.file-tree pre {
  font:13px/1.9 ui-monospace,SFMono-Regular,monospace;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  margin:0;
}

.file-tree figcaption {
  font-size:12px;
  color:var(--muted);
  border-top:1px solid var(--line);
  padding-top:15px;
  margin-top:22px;
}

.screen {
  background:var(--surface);
  padding:26px;
  border:1px solid var(--line);
}

.screen figcaption {
  font-size:12px;
  color:var(--muted);
  text-align:center;
  margin-top:16px;
}

.related {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:35px;
  padding:32px 0;
  border-top:1px solid var(--line);
}

.related>div {
  display:flex;
  align-items:center;
  gap:24px;
}

.related img {
  width:95px;
  height:85px;
  object-fit:contain;
}

.related h3 {
  font:500 28px var(--serif);
}

.related p {
  font-size:14px;
  color:var(--muted);
  margin-top:6px;
}

.faq {
  max-width:760px;
  padding:55px 0 65px;
}

.faq .section-title {
  margin-bottom:24px;
}

details {
  border-top:1px solid var(--line);
  padding:16px 0;
}

summary {
  font:650 17px var(--sans);
  cursor:pointer;
  min-height:30px;
}

details p {
  color:var(--muted);
  margin-top:14px;
}

.reading {
  max-width:720px;
  padding:55px 0 70px;
}

.reading h1 {
  margin-bottom:24px;
}

.reading h2 {
  font:500 29px var(--serif);
  margin:28px 0 10px;
}

.reading p {
  margin-top:16px;
}

.note-banner {
  padding:12px 18px;
  background:var(--surface);
  border:1px solid var(--line);
  font-size:13px;
  margin-bottom:26px;
}

.reading ul {
  padding-left:20px;
}

@media(max-width:1000px) {
  .hero-stage .egg {
    left:-25px;
    width:125px;
  }

  .hero-stage .stage-caption {
    right:-15px;
  }

  .product-hero {
    gap:35px;
  }

  .product-heading {
    display:block;
  }

  .product .category {
    display:block;
    margin-top:6px;
  }

  .product-meta {
    align-items:start;
    flex-direction:column;
    gap:0;
  }

  .shared {
    gap:40px;
  }

  .intro {
    gap:35px;
  }

}

@media(max-width:650px) {
  .shell,
.site-footer {
    width:calc(100% - 40px);
  }

  .intro {
    display:block;
    padding:35px 0 28px;
  }

  .intro p {
    margin-top:22px;
    font-size:16px;
  }

  .title {
    font-size:47px;
  }

  .product-pair {
    grid-template-columns:1fr;
    gap:24px;
    padding-bottom:35px;
  }

  .art-panel {
    height:240px;
  }

  .art-panel img {
    height:205px;
    width:215px;
  }

  .art-panel.dark img {
    width:250px;
  }

  .product-copy {
    padding:22px;
  }

  .product-heading {
    display:flex;
  }

  .product .category {
    font-size:11px;
  }

  .product-meta {
    flex-direction:row;
    align-items:center;
    gap:10px;
  }

  .shared {
    display:block;
    padding:35px 0;
  }

  .health-map {
    margin-top:35px;
  }

  .principles {
    flex-wrap:wrap;
    gap:12px 22px;
  }

  .site-footer {
    padding:22px 0;
    display:block;
  }

  .site-footer nav {
    gap:20px;
    margin-top:10px;
  }

  .product-nav {
    padding:10px 0;
    font-size:12px;
    gap:10px;
  }

  .product-nav>div {
    gap:16px;
  }

  .product-hero {
    display:flex;
    flex-direction:column;
    gap:30px;
    padding:35px 0;
  }

  .product-hero .title {
    font-size:50px;
  }

  .wordmark {
    width:225px;
    margin-bottom:22px;
  }

  .lead {
    font-size:17px;
  }

  .hero-stage {
    min-height:425px;
    width:100%;
  }

  .hero-stage .phone {
    width:200px;
  }

  .hero-stage .egg {
    width:105px;
    left:0;
  }

  .hero-stage .stage-caption {
    right:0;
  }

  .breakfast-art {
    max-width:300px;
  }

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

  .how {
    padding:35px 0;
  }

  .steps h3 {
    margin-top:8px;
  }

  .feature-spread {
    grid-template-columns:1fr;
    gap:25px;
    padding:35px 0;
  }

  .related {
    align-items:start;
    flex-direction:column;
    gap:15px;
  }

  .related>div {
    gap:16px;
  }

  .related img {
    width:70px;
  }

  .related .text-link {
    margin-left:86px;
  }

  .faq {
    padding:35px 0;
  }

  .reading {
    padding:35px 0;
  }

  .file-tree {
    padding:22px;
  }

  .branches {
    gap:15px;
  }

  .health-source span {
    font-size:11px;
  }
}

@media(prefers-reduced-motion:no-preference) {
  a,
button {
    transition:opacity .15s;
  }

  a:hover {
    opacity:.8;
  }
}

.product-copy {
  display:flex;
  flex-direction:column;
}

.product-copy>p {
  flex:1;
}

.product {
  display:flex;
  flex-direction:column;
}

.product-copy {
  flex:1;
}

html {
  scroll-padding-top:90px;
}

html {
  --site:var(--paper);
  --site-ink:var(--ink);
  background:var(--paper);
}

html .site-footer {
  color:var(--muted);
}

html .product-world {
  border:0;
}

html .site-footer {
  border-top:1px solid var(--line);
}

.text-link {
  text-decoration:none;
}

.text-link .link-label {
  text-decoration:underline;
  text-underline-offset:5px;
}

.text-link:hover .link-label {
  text-decoration-thickness:2px;
}

/* Native system appearance; product pages need no client-side script. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #172b47;
    --ink: #fff2d7;
    --muted: #a6ada5;
    --surface: #203550;
    --line: #344b64;
  }
  .navy-mark { display: none; }
  .cream-mark { display: block; }
}
.product-nav a[aria-current="page"] { text-decoration-thickness: 2px; }
.summary { scroll-margin-top: 1rem; }
@media (max-width: 380px) {
  .product-heading, .product-meta { flex-wrap: wrap; }
  .hero-stage .phone { margin-left: 40px; }
  .hero-stage .egg { width: 85px; }
}
