/* Gulu landing pages: shared look. Each page (index.html, gout.html, …) is a small shell; see landing.js. */
:root {
  --paper: #FFF6E9; --paper-deep: #FFE9CF; --ink: #4A2F23; --ink-soft: #7A5A48;
  --card: #FFFFFF; --tomato: #F0643C; --yolk: #FFC94A; --note: #FFE58A; --tongue: #E8506A;
  --dashed: #C4A68F; --shadow: #4A2F23; --on-tomato: #FFFFFF;
  --protein: #FFD84D; --protein-tint: #FFF8DA; --sugar: #FF9BB3; --sugar-tint: #FFEAF0;
  --energy: #F7B267; --energy-tint: #FFF1E0; --fiber: #8CC468; --fiber-tint: #EEF7E4;
  --purine: #9DB8FF; --purine-tint: #EAF0FF; --fruit: #FFD3DE;
  --carbs: #D9A066; --carbs-tint: #FBF1E3; --fat: #F2D14B; --fat-tint: #FFFBE0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #2A1E18; --paper-deep: #36271F; --ink: #FFF1E0; --ink-soft: #D9BFA8; --card: #3B2B22;
    --note: #6B5520; --dashed: #7A5A48; --shadow: #120C09;
    --protein-tint: #4A3F1C; --sugar-tint: #4A2632; --energy-tint: #4A341E; --fiber-tint: #2E3E22; --purine-tint: #25304A; --carbs-tint: #45341F; --fat-tint: #474018;
  }
}
:root[data-theme="dark"] {
  --paper: #2A1E18; --paper-deep: #36271F; --ink: #FFF1E0; --ink-soft: #D9BFA8; --card: #3B2B22;
  --note: #6B5520; --dashed: #7A5A48; --shadow: #120C09;
  --protein-tint: #4A3F1C; --sugar-tint: #4A2632; --energy-tint: #4A341E; --fiber-tint: #2E3E22; --purine-tint: #25304A; --carbs-tint: #45341F; --fat-tint: #474018;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 -apple-system, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
.fun { font-family: "Baloo 2", "ZCOOL KuaiLe", "PingFang SC", sans-serif; font-weight: 800; letter-spacing: -0.01em; }
:lang(zh) .fun { font-family: "ZCOOL KuaiLe", "Baloo 2", "PingFang SC", sans-serif; font-weight: 400; letter-spacing: 0.02em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
section { padding: 56px 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 640px; margin: 0 0 28px; }
.card { background: var(--card); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--shadow); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
  padding: 10px 22px; border: 3px solid var(--ink); border-radius: 999px; background: var(--yolk); color: #4A2F23;
  font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 var(--shadow);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 2.5px solid var(--ink);
  border-radius: 999px; background: var(--card); cursor: pointer; box-shadow: 2px 2px 0 var(--shadow); font-size: 15px;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip:disabled { opacity: .45; cursor: not-allowed; }
.seg { display: inline-flex; border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--card); }
.seg button { border: 0; background: transparent; padding: 6px 12px; min-height: 36px; cursor: pointer; font-size: 14px; font-weight: 700; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 2px; }

/* nav */
nav.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 28px; text-decoration: none; }
.logo-icon { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--shadow); flex: none; }
.gout-band { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.gout-pt { padding: 20px; background: var(--purine-tint); }
.gout-pt .ico { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.gout-pt h3 { font-size: 21px; margin-bottom: 6px; }
.gout-pt p { margin: 0; font-size: 16px; }
.careful { margin-top: 18px; font-size: 14px; color: var(--ink-soft); border-left: 4px solid var(--purine); padding: 4px 0 4px 12px; }
.top-right { display: flex; align-items: center; gap: 10px; }
.top-right .btn { min-height: 42px; padding: 6px 16px; font-size: 15px; }
@media (max-width: 520px) { .top-right .btn { display: none; } }

/* hero */
.hero { display: grid; gap: 36px; align-items: center; padding: 20px 0 56px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { font-size: clamp(40px, 6.4vw, 70px); white-space: pre-line; }
.hero h1 em { font-style: normal; color: var(--tomato); }
.hero p { font-size: 19px; margin: 18px 0 24px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.soon { font-size: 14px; color: var(--ink-soft); }
.bob { animation: bob 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .bob { animation: none; } html { scroll-behavior: auto; } }

/* demo */
.demo { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.demo-head { display: flex; align-items: center; gap: 12px; }
.demo-head .who { flex: 1; min-width: 0; }
.demo-head .who b { display: block; font-size: 18px; }
.demo-head .who span { font-size: 13px; color: var(--ink-soft); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper-deep); }
.meals { display: flex; flex-wrap: wrap; gap: 8px; }
.meals .chip { font-size: 14px; }
.meals .chip .plus { font-weight: 800; }
.jars { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.jar { border: 2.5px solid var(--ink); border-radius: 16px; padding: 10px 12px; }
.jar.over { box-shadow: inset 0 0 0 3px var(--tomato); }
.jar-title { display: flex; justify-content: space-between; gap: 6px; font-weight: 800; font-size: 15px; }
.jar-sub { font-size: 12px; color: var(--ink-soft); }
.units { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; min-height: 16px; }
.u { width: 13px; height: 13px; border: 2px solid var(--ink); border-radius: 50%; background: transparent; transition: background .35s; }
.u.half { background: linear-gradient(90deg, var(--c) 50%, transparent 50%); }
.u.full { background: var(--c); }
.u.fruit { background: var(--fruit); border-style: dashed; }
.u.spill { background: var(--tomato); border-color: var(--tomato); animation: pop .4s; }
.u.sugar-cube { border-radius: 3px; }
@keyframes pop { 0% { transform: scale(.2); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }
.jar-amt { font-size: 12px; margin-top: 4px; color: var(--ink-soft); }
.note {
  background: var(--note); border: 3px solid var(--ink); border-radius: 6px; padding: 14px 16px; transform: rotate(-1deg);
  box-shadow: 4px 4px 0 var(--shadow); min-height: 92px;
}
.note b { display: block; font-size: 15px; margin-bottom: 4px; }
.note p { margin: 0; font-size: 16px; }
.demo-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.linkish { background: none; border: 0; padding: 4px 0; text-decoration: underline; cursor: pointer; color: var(--ink-soft); font-size: 13px; }
.row-label { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; }

/* jar picker */
.picker { display: grid; gap: 24px; }
@media (min-width: 900px) { .picker { grid-template-columns: 1fr 1fr; align-items: start; } }
.pick-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 16px; }
.pick-list .chip .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; background: var(--c); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.switch input { appearance: none; width: 52px; height: 30px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--card); position: relative; cursor: pointer; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--ink); transition: left .2s; }
.switch input:checked { background: var(--purine); }
.switch input:checked::after { left: 26px; }
.hint { font-size: 14px; color: var(--ink-soft); }

/* features */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feat { padding: 20px; }
.feat .ico { width: 54px; height: 54px; border: 3px solid var(--ink); border-radius: 16px; display: grid; place-items: center; font-size: 28px; margin-bottom: 10px; }
.feat h3 { font-size: 21px; margin-bottom: 6px; }
.feat p { margin: 0; font-size: 16px; }
.feat:nth-child(odd) { transform: rotate(-0.6deg); }
.feat:nth-child(even) { transform: rotate(0.6deg); }

/* personalities */
.tones { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.bubble { position: relative; padding: 18px 18px 16px; }
.bubble h3 { font-size: 22px; display: flex; align-items: center; gap: 8px; }
.bubble .q { margin: 10px 0 0; font-size: 16px; }
.bubble.star { background: var(--paper-deep); }
.badge { font-family: inherit; font-size: 12px; font-weight: 800; background: var(--tomato); color: var(--on-tomato); border-radius: 999px; padding: 2px 10px; }

/* compare */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 2px dashed var(--dashed); vertical-align: top; font-size: 16px; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 15px; background: var(--paper-deep); border-bottom: 3px solid var(--ink); }
.compare td:first-child { color: var(--ink-soft); width: 42%; }
.compare td:last-child { font-weight: 700; }
@media (max-width: 600px) {
  .compare thead { display: none; }
  .compare tr { display: block; padding: 10px 14px; border-bottom: 2px dashed var(--dashed); }
  .compare tr:last-child { border-bottom: 0; }
  .compare td { display: block; border: 0; padding: 2px 0; width: auto !important; }
  .compare td:first-child::before { content: attr(data-l) " "; font-weight: 700; }
  .compare td:last-child::before { content: attr(data-l) " "; color: var(--tomato); }
}

/* pricing */
.prices { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.price { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.price.plus { background: var(--paper-deep); }
.price h3 { font-size: 28px; }
.amount { font-size: 40px; line-height: 1; }
.amount small { font-size: 16px; font-weight: 600; color: var(--ink-soft); }
.price ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.price li { padding-left: 28px; position: relative; font-size: 16px; }
.price li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--fiber); }
.price.plus li::before { background: var(--yolk); }
.price-note { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }
.reward-strip { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; padding: 16px 20px; background: var(--protein-tint); color: inherit; text-decoration: none; }
.reward-strip .ico { font-size: 30px; line-height: 1; }
.reward-strip b { display: block; font-size: 20px; margin-bottom: 4px; }
.reward-strip .reward-body { display: block; font-size: 15px; color: var(--ink-soft); }
.reward-strip .reward-link { display: inline-block; margin-top: 6px; font-weight: 700; text-decoration: underline; }

/* waitlist */
.cta { background: var(--tomato); color: var(--on-tomato); padding: 32px 22px; display: grid; gap: 22px; align-items: center; }
@media (min-width: 860px) { .cta { grid-template-columns: 1.2fr 1fr; padding: 40px 36px; } }
.cta h2 { color: var(--on-tomato); }
.cta p { margin: 0; }
.cta form { display: flex; flex-direction: column; gap: 10px; }
.cta label { font-weight: 700; font-size: 15px; }
.cta input[type="email"] { width: 100%; min-height: 52px; border: 3px solid #4A2F23; border-radius: 16px; padding: 10px 14px; font: inherit; color: #4A2F23; background: #FFFFFF; }
.cta .btn { background: #FFFFFF; color: #4A2F23; border-color: #4A2F23; box-shadow: 4px 4px 0 #4A2F23; }
.cta .small { font-size: 13px; opacity: .92; }
.cta .beta { display: grid; gap: 8px; justify-items: start; margin-top: 16px; }
.cta .beta[hidden], .btn[hidden], .store-badge[hidden] { display: none; }
/* Apple's badge, unchanged and at least 40 px tall as Apple asks. */
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 48px; width: auto; }
.thanks { background: #FFFFFF; color: #4A2F23; border: 3px solid #4A2F23; border-radius: 16px; padding: 14px 16px; }

/* faq */
details { border-bottom: 2px dashed var(--dashed); padding: 14px 0; }
summary { cursor: pointer; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 8px 0 0; color: var(--ink-soft); }

footer { padding: 32px 0 48px; font-size: 14px; color: var(--ink-soft); text-align: center; }
footer a { font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* demo: one-tap purine switch */
.demo-gout { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--purine-tint); border: 2px dashed var(--ink); border-radius: 14px; padding: 8px 12px; font-size: 14px; }
.demo-gout .switch { font-size: 14px; }
.demo-gout .switch input { width: 44px; height: 26px; }
.demo-gout .switch input::after { width: 15px; height: 15px; }
.demo-gout .switch input:checked::after { left: 22px; }

/* "made for you" entries that lead to the audience pages */
.entries { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.entry { display: flex; gap: 16px; align-items: center; padding: 20px; text-decoration: none; transition: transform .12s; }
.entry:hover { transform: translate(-1px, -1px) rotate(-0.4deg); }
.entry .ico { width: 58px; height: 58px; border: 3px solid var(--ink); border-radius: 16px; display: grid; place-items: center; font-size: 30px; flex: none; }
.entry h3 { font-size: 21px; margin-bottom: 4px; }
.entry p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.entry .go { margin-left: auto; font-size: 26px; font-weight: 800; }
.back-link { font-weight: 700; font-size: 15px; }

/* how Gulu estimates: numbered steps, each with what most apps do crossed out beside it */
.how-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.how-step { counter-increment: step; position: relative; padding: 22px 20px 20px; }
.how-step::before {
  content: counter(step); position: absolute; top: -14px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--tomato); color: var(--on-tomato); border: 3px solid var(--ink); display: grid; place-items: center;
  font: 800 17px/1 "Baloo 2", sans-serif;
}
.how-step .ico { width: 54px; height: 54px; border: 3px solid var(--ink); border-radius: 16px; display: grid; place-items: center; font-size: 28px; margin-bottom: 10px; background: var(--purine-tint); }
.how-step h3 { font-size: 21px; margin-bottom: 8px; }
.how-step p { margin: 0 0 8px; font-size: 16px; }
.how-step p:last-child { margin-bottom: 0; }
.how-step .them { font-size: 14px; color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; }
.how-step .them b { text-decoration: none; display: inline-block; }

/* a friend at the table */
.friends { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.friend { padding: 20px; background: var(--card); }
.friend .ico { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.friend h3 { font-size: 21px; margin-bottom: 6px; }
.friend p { margin: 0 0 12px; font-size: 16px; }
.friend .q { margin: 0; padding: 10px 14px; background: var(--note); border: 2.5px solid var(--ink); border-radius: 16px 16px 16px 4px; font-size: 15px; transform: rotate(-0.8deg); }
.friend:nth-child(even) .q { transform: rotate(0.8deg); }
.hero > * { min-width: 0; }
.hero-lookup { margin-top: 26px; max-width: 520px; display: grid; gap: 10px; }
.hero-lookup label { font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.lookup-row { display: flex; gap: 10px; }
.lookup-row input { flex: 1; width: 100%; min-width: 0; min-height: 48px; padding: 8px 16px; border: 3px solid var(--ink); border-radius: 999px; font: inherit; background: var(--card); color: var(--ink); }
.lookup-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lookup-links .chip { text-decoration: none; color: inherit; font-weight: 700; font-size: 14px; }
/* The Plus list opens with "Everything in Free, and:", a lead-in rather than a perk. */
#plusList li:first-child { padding-left: 0; font-weight: 700; }
#plusList li:first-child::before { content: none; }
