/* Hamstock website. Colors and shapes mirror the app's design tokens (design/tokens/tokens.css). */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
}

:root {
  --cream: #FFF8EE;
  --cream-deep: #FBEBD5;
  --surface: #FFFFFF;
  --ink: #3B2F2A;
  --ink-soft: #7A6A61;
  --line: #EEDFCB;

  --apricot: #F4A259;
  --apricot-deep: #D9822B;
  --apricot-text: #B5651D;
  --blush: #F7A6B5;
  --blush-deep: #D9768A;
  --mint: #A8E0D5;
  --mint-deep: #4FA89A;
  --honey: #F2CD8F;
  --honey-deep: #B9814A;
  --frost: #CFE3FF;
  --frost-deep: #5B8FD9;
  --lavender: #C3B5F0;
  --lavender-deep: #7E6BC9;
  --gold: #FFC94A;
  --gold-deep: #D99A13;
  --leaf: #9AD48B;
  --leaf-deep: #5A9E4B;
  --tomato: #F08A78;

  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 40px;
  --shadow-card: 0 6px 0 var(--line), 0 14px 30px rgba(59, 47, 42, 0.06);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 500 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--apricot-text); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--apricot-deep); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-weight: 900; font-size: clamp(42px, 6.4vw, 76px); }
h2 { font-weight: 900; font-size: clamp(32px, 4.4vw, 50px); }
h3 { font-weight: 800; font-size: 22px; }
em { font-style: normal; color: var(--apricot-deep); }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); font-weight: 600; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: var(--r-sm); }
:focus-visible { outline: 3px solid var(--apricot-deep); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 238, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 24px; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 3px 0 var(--line); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 16px; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--cream-deep); color: var(--ink); }
.nav .btn { margin-left: 8px; padding: 10px 18px; font-size: 16px; }
.nav .btn:hover { background: var(--apricot); color: #fff; }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 18px/1 var(--font); color: #fff; text-decoration: none;
  background: var(--apricot); border: 0; border-radius: var(--r-md);
  padding: 15px 24px; cursor: pointer;
  box-shadow: 0 5px 0 var(--apricot-deep);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { color: #fff; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--apricot-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line); }
.btn-ghost:hover { color: var(--ink); }
.btn-ghost:active { box-shadow: 0 1px 0 var(--line); }

.store { display: inline-flex; flex-direction: column; gap: 10px; }
.store-badge { display: inline-block; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 58px; width: auto; }
.store-note { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.center .store { align-items: center; }

/* ---------- Bits ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border-radius: 999px; padding: 7px 14px 7px 10px;
  font-weight: 800; font-size: 15px; box-shadow: 0 3px 0 var(--line);
}
.eyebrow { font-weight: 900; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--apricot-deep); }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 28px; }
.bubble {
  position: absolute; background: var(--surface); border-radius: 50%;
  width: 84px; height: 84px; display: grid; place-items: center; font-size: 40px;
  box-shadow: 0 6px 0 rgba(59, 47, 42, .06), 0 14px 28px rgba(59, 47, 42, .08);
}
.bubble::after {
  content: ""; position: absolute; bottom: -10px; left: 50%; width: 22px; height: 22px;
  background: var(--surface); transform: translateX(-50%) rotate(45deg); border-radius: 4px; z-index: -1;
}
.bubble img { width: 46px; height: 46px; }
.float { animation: bob 5s ease-in-out infinite; }
.float.slow { animation-duration: 7s; }
.float.delay { animation-delay: -2.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.cloud { position: absolute; width: 180px; height: 60px; background: #fff; border-radius: 60px; opacity: .9; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 80px; height: 80px; left: 28px; top: -40px; }
.cloud::after { width: 100px; height: 100px; right: 22px; top: -54px; }
.spark { position: absolute; color: #fff; font-size: 26px; text-shadow: 0 0 12px rgba(255, 255, 255, .9); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #CDEFE7 0%, #E3F5EF 45%, #F5FAF1 100%);
  padding: 72px 0 0;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; z-index: 2; }
.hero-copy { padding-bottom: 150px; }
.hero-copy .chip { margin-bottom: 22px; }
.hero h1 em { display: inline-block; }
.hero .lead { margin: 22px 0 32px; max-width: 30ch; color: #5d5049; }
.hero-art { position: relative; height: 560px; }
.hero-art .mochi { position: absolute; width: 400px; left: 50%; bottom: 40px; transform: translateX(-50%); }
.hero-art .b1 { left: 6%; top: 130px; }
.hero-art .b2 { right: 6%; top: 70px; }
.hero-art .b3 { left: 4%; top: 330px; width: 70px; height: 70px; font-size: 32px; }
.hill { position: absolute; left: -10%; right: -10%; bottom: -1px; height: 150px; z-index: 1; }
.hill::before, .hill::after { content: ""; position: absolute; border-radius: 50% 50% 0 0; }
.hill::before { left: 0; right: 30%; bottom: 0; height: 150px; background: #B6E0A3; }
.hill::after { left: 35%; right: 0; bottom: 0; height: 120px; background: #9AD48B; }
.hero .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: var(--cream); z-index: 2; border-radius: 40px 40px 0 0; }
.hero .cloud.c1 { left: 6%; top: 60px; transform: scale(.8); }
.hero .cloud.c2 { right: 4%; top: 160px; transform: scale(.65); opacity: .8; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { padding-bottom: 0; }
  .hero .lead { margin-inline: auto; }
  .hero .store { align-items: center; }
  .hero-art { height: 420px; }
  .hero-art .mochi { width: 300px; bottom: 50px; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { margin: 10px 0 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 32px 26px 30px; }
.step .ico { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 26px; display: grid; place-items: center; font-size: 44px; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .07); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); }
.step .num { display: inline-block; font-weight: 900; font-size: 13px; color: var(--ink-soft); background: var(--cream-deep); border-radius: 999px; padding: 4px 10px; margin-bottom: 12px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Feature rows */
.feature { padding: 88px 0; background: var(--bg, transparent); }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature.flip .shot-frame { order: -1; }
.feature h2 { margin: 12px 0 18px; }
.feature .lead { margin-bottom: 26px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-weight: 600; }
.ticks li > span:first-child { width: 34px; height: 34px; border-radius: 11px; background: var(--surface); display: grid; place-items: center; font-size: 18px; box-shadow: 0 3px 0 rgba(59, 47, 42, .08); }
.ticks b { font-weight: 800; }
.shot-frame { position: relative; display: flex; justify-content: center; }
.shot-frame img { width: min(380px, 100%); height: auto; border-radius: 36px; box-shadow: 0 10px 0 rgba(59, 47, 42, .06), 0 30px 60px rgba(59, 47, 42, .16); }
.shot-frame .sticker { position: absolute; font-size: 54px; filter: drop-shadow(0 6px 10px rgba(59, 47, 42, .15)); }
@media (max-width: 860px) {
  .feature .wrap { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .shot-frame { order: 0; }
}

/* Values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { padding: 26px 22px; }
.value .emo { font-size: 38px; margin-bottom: 12px; }
.value h3 { font-size: 19px; margin-bottom: 6px; }
.value p { color: var(--ink-soft); font-size: 16px; }
.values.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .values, .values.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values, .values.three { grid-template-columns: 1fr; } }

/* Screenshot marquee: the images appear twice, and the track slides by half its width so the loop is seamless. */
.marquee { overflow: hidden; padding: 16px 0 64px; margin-bottom: -40px; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { flex: 0 0 auto; width: 260px; height: auto; margin-right: 24px; border-radius: 30px; box-shadow: 0 6px 0 rgba(59, 47, 42, .05), 0 16px 32px rgba(59, 47, 42, .10); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .marquee-track img { width: 200px; margin-right: 16px; border-radius: 24px; } .marquee-track { animation-duration: 45s; } }

/* Chef */
.chef { background: linear-gradient(180deg, #F1ECFF, #FBF6FF); border-radius: var(--r-xl); padding: 56px; display: grid; grid-template-columns: 220px 1fr auto; gap: 40px; align-items: center; }
.chef img.m { width: 220px; }
.chef h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 10px 0 14px; }
.chef .price { text-align: center; background: var(--surface); border-radius: var(--r-lg); padding: 24px 28px; box-shadow: 0 6px 0 #E3DAFA; min-width: 200px; }
.chef .price b { display: block; font-size: 30px; font-weight: 900; }
.chef .price span { color: var(--ink-soft); font-weight: 700; font-size: 15px; }
.chef .price hr { border: 0; border-top: 2px dashed var(--line); margin: 14px 0; }
.chef .fine { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }
@media (max-width: 960px) { .chef { grid-template-columns: 1fr; text-align: center; padding: 40px 24px; } .chef img.m { margin: 0 auto; width: 170px; } .chef .price { margin: 0 auto; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--surface); border-radius: var(--r-md); box-shadow: 0 4px 0 var(--line); padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; font-weight: 800; font-size: 18px; padding: 20px 36px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--cream-deep); display: grid; place-items: center; font-size: 20px; font-weight: 900; color: var(--apricot-deep); transition: transform .2s ease; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 22px; color: var(--ink-soft); }
.faq details > div p + p { margin-top: 10px; }

/* Final CTA */
.cta { background: linear-gradient(180deg, #FFE9CF, #FFDDB4); border-radius: var(--r-xl); padding: 64px 32px 0; text-align: center; overflow: hidden; position: relative; }
.cta h2 { margin-bottom: 14px; }
.cta .lead { margin: 0 auto 30px; max-width: 34ch; color: #6d5a4d; }
.cta img.m { width: 220px; margin: 36px auto -24px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; background: var(--cream-deep); padding: 64px 0 36px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--ink-soft); margin: 14px 0 20px; max-width: 30ch; font-weight: 600; }
.footer-brand .store-badge img { height: 46px; }
.site-footer h4 { margin: 6px 0 14px; font-size: 14px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--ink); text-decoration: none; font-weight: 700; }
.site-footer ul a:hover { color: var(--apricot-deep); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.footer-bottom p { max-width: 70ch; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Content pages (about, support, legal) ---------- */
.page-hero { padding: 64px 0 40px; text-align: center; }
.page-hero img.m { width: 140px; margin: 0 auto 14px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 58px); }
.page-hero .lead { margin: 14px auto 0; max-width: 46ch; }
.page-hero .updated { margin-top: 14px; }
.prose { max-width: 780px; margin: 0 auto; padding: 44px clamp(22px, 5vw, 56px); }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; }
.prose p, .prose li { color: #4d403a; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.prose li::marker { color: var(--apricot); }
.prose strong { color: var(--ink); }
.prose .note { background: var(--cream); border-radius: var(--r-md); padding: 18px 22px; margin: 0 0 28px; font-weight: 600; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.toc a { background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15px; padding: 8px 14px; border-radius: 999px; box-shadow: 0 3px 0 var(--line); }
.toc a:hover { color: var(--apricot-deep); }

.contact-card { max-width: 780px; margin: 40px auto 0; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.contact-card img { width: 96px; }
.contact-card p { color: var(--ink-soft); }
@media (max-width: 640px) { .contact-card { grid-template-columns: 1fr; text-align: center; } .contact-card img { margin: 0 auto; } }

.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.about-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 680px; }
@media (max-width: 860px) { .about-grid, .about-grid.two { grid-template-columns: 1fr; } }
.moods { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.moods figure { margin: 0; text-align: center; font-weight: 800; font-size: 14px; color: var(--ink-soft); }
.moods img { width: 120px; }

/* ---------- Legal documents ---------- */
.legal-head { padding: 56px 0 36px; border-bottom: 2px solid var(--line); }
.legal-tabs { display: flex; gap: 6px; margin-bottom: 28px; }
.legal-tabs a { color: var(--ink-soft); text-decoration: none; font-weight: 800; font-size: 15px; padding: 7px 14px; border-radius: 999px; }
.legal-tabs a:hover { color: var(--ink); background: var(--cream-deep); }
.legal-tabs a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: 0 3px 0 var(--line); }
.legal-head h1 { font-size: clamp(36px, 4.6vw, 54px); font-weight: 900; }
.legal-head .meta { margin-top: 12px; color: var(--ink-soft); font-weight: 700; font-size: 15px; }
.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; padding: 44px 0 0; align-items: start; }
.legal-toc { position: sticky; top: 96px; font-size: 14px; }
.legal-toc h2 { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: grid; grid-template-columns: 26px 1fr; padding: 6px 10px; border-radius: 10px; color: var(--ink-soft); text-decoration: none; font-weight: 700; line-height: 1.35; }
.legal-toc a::before { content: counter(toc) "."; color: var(--ink-soft); opacity: .7; }
.legal-toc a:hover { background: var(--cream-deep); color: var(--ink); }
.legal-body { max-width: 720px; font-size: 16.5px; line-height: 1.75; color: #45392f; counter-reset: sec; }
.legal-body > p:first-child { font-size: 18px; color: var(--ink); }
.legal-body h2 { counter-increment: sec; font-size: 22px; font-weight: 800; color: var(--ink); margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 96px; letter-spacing: -0.01em; }
.legal-body h2::before { content: counter(sec) ". "; }
.legal-body h3 { font-size: 17px; font-weight: 800; color: var(--ink); margin: 26px 0 8px; letter-spacing: 0; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.legal-body li::marker { color: var(--ink-soft); }
.legal-body strong { color: var(--ink); font-weight: 800; }
.legal-body .caps { text-transform: uppercase; font-size: 15px; letter-spacing: .01em; }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; gap: 28px; }
  .legal-toc { position: static; background: var(--surface); border-radius: var(--r-md); padding: 18px; box-shadow: 0 4px 0 var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .marquee-track img[aria-hidden] { display: none; }
  .btn, .store-badge { transition: none; }
}
@media (max-width: 900px) { .hero-art .b3 { display: none; } }
