:root {
  color-scheme: light;
  --ink: #262015;
  --muted: #65594b;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --sun: #ffdc26;
  --line: #e8dfcb;
  --focus: #775800;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 12px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.wrap { width: min(1180px, calc(100% - 2 * clamp(20px, 5vw, 64px))); margin-inline: auto; }
.site-header, .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site-header { min-height: 86px; border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 34px); }
.brand { display: block; text-decoration: none; flex-shrink: 0; width: 155px; margin-left: -4px; }
.header-link { text-decoration-thickness: 1px; text-underline-offset: .2em; font-size: .9rem; font-weight: 650; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 13px; border: 1px solid var(--ink); border-radius: 14px; background: var(--ink); color: var(--paper); min-height: 52px; padding: 12px 19px; font-weight: 750; line-height: 1.18; text-decoration: none; text-align: center; cursor: pointer; }
.button span { font-size: 1.1em; }
.button:hover { filter: brightness(.93); }
.button.primary { background: var(--sun); color: var(--ink); }
.button.quiet { background: var(--paper); color: var(--ink); border-color: var(--line); }
.button.compact { min-height: 44px; padding: 9px 13px; font-size: .82rem; gap: 8px; }
.button:disabled { cursor: default; background: #eee9db; color: #5c5442; border-color: #eee9db; filter: none; }
.hero { display: grid; align-items: center; grid-template-columns: 1fr 1.04fr; gap: clamp(26px, 5vw, 74px); padding-block: clamp(40px, 7vw, 100px); }
.eyebrow { margin: 0; color: #674408; font-size: .73rem; letter-spacing: .12em; font-weight: 800; }
.hero h1 { font-size: clamp(3.4rem, 6.7vw, 6.35rem); line-height: .97; letter-spacing: -.062em; margin: 15px 0 22px; max-width: 8.7ch; }
.hero h1 span { display: inline-block; background: linear-gradient(transparent 68%, #ffdc26 68%, #ffdc26 94%, transparent 94%); padding-inline: .02em .07em; }
.lede { max-width: 39ch; margin: 0 0 24px; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.19rem); line-height: 1.55; }
.small { font-size: .82rem; color: var(--muted); margin: 11px 0 0; }
.hero-art { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.09; border: 1px solid #cdc091; border-radius: 30px; background: radial-gradient(ellipse at 44% 44%, #fff292, #ffdb45 65%, #f7ca26); }
.arc { position: absolute; inset: 12%; border: 1px solid #fff6aa; border-radius: 50%; transform: rotate(-30deg) scaleX(1.15); z-index: -1; }
.fridge, .cart { position: absolute; filter: drop-shadow(0 12px 13px #52330926); }
.fridge { width: 78%; left: -12%; top: 0; transform: rotate(-10deg); }
.cart { width: 76%; right: -8%; bottom: -5%; transform: rotate(9deg); }
.art-chip { position: absolute; display: flex; align-items: center; gap: 9px; background: var(--paper); border: 1px solid #bca871; border-radius: 15px; padding: 8px 11px; box-shadow: 0 5px #87631322; }
.art-chip strong, .art-chip small { display: block; line-height: 1.25; }
.art-chip strong { font-size: clamp(.78rem, 1.2vw, 1.02rem); }
.art-chip small { font-size: clamp(.61rem, 1vw, .76rem); color: var(--muted); }
.chip-icon { display: grid; place-items: center; background: #ffec9f; width: 32px; height: 32px; border-radius: 9px; font-weight: 800; }
.chip-stock { top: 8%; left: 7%; }
.chip-shop { right: 5%; bottom: 7%; }
.how-section { border-block: 1px solid var(--line); background: #f4ecda; padding-block: clamp(35px, 6vw, 76px); }
.how-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 6vw, 80px); align-items: center; }
.how-copy h2 { font-size: clamp(2rem, 4vw, 3.45rem); letter-spacing: -.065em; line-height: 1.02; margin: 0 0 24px; max-width: 15ch; }
.steps { margin: 0 0 25px; padding: 0; list-style: none; }
.steps li { display: flex; align-items: start; gap: 15px; padding: 14px 0; border-top: 1px solid #ded2b7; }
.steps li > span { color: #674408; font-size: .76rem; font-weight: 800; padding-top: 5px; }
.steps h3 { margin: 0 0 3px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); line-height: 1.5; }
.screen-visual { width: min(290px, 100%); justify-self: center; border: 7px solid var(--ink); border-radius: 28px; overflow: hidden; box-shadow: 12px 12px #dbceaf; }
.site-footer { min-height: 75px; }
.site-footer .brand { width: 116px; }

.demo { background: #fbf7ec; }
.demo-wrap { width: min(740px, calc(100% - 36px)); margin-inline: auto; }
.demo-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.demo-header .demo-wrap { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 70px; }
.demo-header .brand { width: 139px; }
.demo-main { padding: 24px 0 calc(109px + env(safe-area-inset-bottom)); }
.demo-label { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; font-size: .79rem; font-weight: 750; color: #634711; }
.demo-label span { width: 9px; height: 9px; border-radius: 100%; background: var(--sun); border: 1px solid #947003; }
.demo h1 { font-size: clamp(2.65rem, 9vw, 4rem); line-height: 1; letter-spacing: -.075em; margin: 0 0 8px; }
.demo h1[tabindex="-1"]:focus { outline: none; }
.demo .subtitle { color: var(--muted); line-height: 1.5; margin: 0 0 20px; }
.demo h2 { font-size: 1.19rem; letter-spacing: -.025em; margin: 0 0 10px; }
.demo-hero { display: grid; grid-template-columns: 1fr 117px; align-items: center; background: #ffec85; border-radius: 23px; padding: 19px; gap: 6px; margin-bottom: 22px; }
.demo-hero h2 { font-size: 1.4rem; line-height: 1.1; }
.demo-hero p { margin: 0 0 11px; font-size: .91rem; color: #59440e; }
.demo-hero .button { min-height: 44px; font-size: .83rem; padding-inline: 12px; }
.demo-hero img { width: 100%; max-height: 128px; object-fit: contain; }
.card-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 17px; }
.item img { width: 54px; height: 54px; object-fit: contain; background: #f5edda; border-radius: 11px; }
.item strong { display: block; margin-bottom: 4px; font-size: .97rem; }
.item small { display: block; color: var(--muted); font-size: .77rem; line-height: 1.45; }
.pill { font-size: .7rem; font-weight: 760; background: #fff1b5; color: #633c06; border-radius: 99px; padding: 6px 8px; text-align: center; }
.pill.done { background: #e5efdb; color: #284222; }
.section-foot { margin: 17px 0 0; }
.empty-state { padding: 16px; border: 1px dashed #baaa89; border-radius: 16px; margin: 0; color: var(--muted); }
.demo-nav { position: fixed; inset: auto 0 0; background: var(--paper); border-top: 1px solid var(--line); padding: 7px 12px max(7px, env(safe-area-inset-bottom)); }
.demo-nav > div { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; max-width: 500px; margin: auto; }
.demo-nav a { display: grid; justify-items: center; gap: 3px; text-decoration: none; border-radius: 12px; padding: 5px 2px; color: #51473a; font-size: .79rem; font-weight: 700; }
.demo-nav a span { font-size: 1.2rem; line-height: 1.1; }
.demo-nav a[aria-current="page"] { background: #ffec85; color: var(--ink); }
.feedback { position: fixed; right: 14px; bottom: calc(68px + env(safe-area-inset-bottom)); margin: 0; max-width: calc(100% - 28px); z-index: 2; }
.feedback:not(:empty) { padding: 10px 14px; border-radius: 12px; background: var(--ink); color: white; font-size: .87rem; }
dialog { width: min(410px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 21px; padding: 22px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #261c0b80; }
dialog p { color: var(--muted); line-height: 1.45; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: end; }
@media (max-width: 740px) {
  .hero, .how-layout { grid-template-columns: 1fr; }
  .hero { gap: 26px; padding-block: 31px 34px; }
  .hero-art { aspect-ratio: 1.26; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4.9rem); margin: 11px 0 15px; }
  .lede { margin-bottom: 17px; }
  .site-header { min-height: 67px; }
  .site-header .brand { width: 125px; }
  .site-header .header-link { display: none; }
  .screen-visual { width: min(245px, 82%); }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 28px); }
  .demo-wrap { width: calc(100% - 24px); }
  .demo-hero { grid-template-columns: 1fr 81px; padding: 14px; }
  .item { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 6px; padding: 8px; }
  .item img { width: 44px; height: 44px; }
  .item .button { padding-inline: 7px; font-size: .76rem; }
}
