/* ORDERPAD shared styles: tokens, shell (header / bottom bar / footer), buttons, chips, cards, forms, modal, toast, states.
   Look: chunky cartoon shopping app. Thick dark-green outlines, mint fills, hard offset shadows (sampled from the logo). One token set, no gradients, no blur. */
:root {
  --ink: #054a2b; --ink2: #2f6a4b; --mint: #24e77c; --mintd: #02bc6f; --mint2: #7df2b4; --mintl: #cdfce3; --mintxl: #edfff7; --bg: #f7fffb; --paper: #fff;
  --sun: #ffd84d; --sunl: #fff4c2; --coral: #d93f3a; --coralxl: #ffe9e7; --focus: #0a8f55;
  --line: 3px solid var(--ink); --r: 22px; --r2: 16px; --sh: 4px 5px 0 var(--ink); --sh2: 6px 8px 0 var(--ink);
  --display: 'Fredoka', ui-rounded, 'Arial Rounded MT Bold', 'Segoe UI', system-ui, sans-serif; --text: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif; --mono: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace;
  --gut: clamp(16px, 4vw, 32px); --max: 1180px; --head: 74px;
}
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto }
html.lenis, html.lenis body { height: auto }
.lenis.lenis-smooth { scroll-behavior: auto !important }
.lenis.lenis-stopped { overflow: hidden }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.5 var(--text); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden }
main { flex: 1 0 auto; width: 100% }
img, svg { max-width: 100%; display: block }
a { color: inherit }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; margin: 0 }
p { margin: 0 }
button, input, select, textarea { font: inherit; color: inherit }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) }
.mut { color: var(--ink2) } .sm { font-size: 14.5px } .mono { font-family: var(--mono); font-size: .92em }
.hide { display: none !important }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--mint); border: var(--line); border-radius: 12px; padding: 10px 16px; font-weight: 800; text-decoration: none }
.skip:focus { top: 10px }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: var(--line); border-radius: var(--r2); background: var(--paper); color: var(--ink); font: 600 18px/1 var(--display);
  letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 0 var(--ink); transition: transform .15s cubic-bezier(.3, 1.6, .5, 1), box-shadow .15s, background .15s; -webkit-tap-highlight-color: transparent; user-select: none }
.btn:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink) }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink) }
.btn.pri { background: var(--mint) }
.btn.pri:hover { background: var(--mint2) }
.btn.sun { background: var(--sun) }
.btn.lg { min-height: 62px; padding: 0 32px; font-size: 21px; border-radius: 20px }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 16px; border-radius: 14px }
.btn.danger { background: var(--coralxl); color: var(--coral); border-color: var(--coral); box-shadow: 0 4px 0 var(--coral) }
.btn[disabled], .btn.off { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 0 2px 0 var(--ink); background: var(--mintxl) }
.btn.spin::after { content: ''; width: 18px; height: 18px; border: 3px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite }
.btn svg { width: 20px; height: 20px; flex: none }
@keyframes spin { to { transform: rotate(360deg) } }
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; cursor: pointer; color: var(--ink); font-weight: 800 }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--mintxl); color: var(--ink); font: 700 14px/1 var(--text); white-space: nowrap; text-decoration: none }
a.chip:hover, button.chip:hover { background: var(--mintl) }
button.chip { cursor: pointer }
.chip.ok { background: var(--mint) } .chip.warn { background: var(--sunl) } .chip.bad { background: var(--coralxl); color: var(--coral); border-color: var(--coral) } .chip.mono { font-family: var(--mono); font-size: 13.5px } .chip.plain { background: var(--paper) }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--mintd); flex: none }
.chip.warn i { background: #d9a400 } .chip.bad i { background: var(--coral) }

/* ---------- cards ---------- */
.card { background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 24px }
.card.mint { background: var(--mintxl) } .card.flat { box-shadow: none }
.card h2, .card h3 { margin-bottom: 8px }
.callout { border: 3px solid var(--ink); border-radius: var(--r2); background: var(--mintxl); padding: 14px 16px; font-weight: 600 }
.callout.warn { background: var(--sunl) } .callout.bad { background: var(--coralxl); border-color: var(--coral); color: #8c1f1b } .callout.ok { background: var(--mintl) }
.callout b { font-family: var(--display); font-weight: 600; font-size: 1.05em }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: var(--line) }
.top .tin { display: flex; align-items: center; gap: 14px; min-height: var(--head) }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 28px/1 var(--display); letter-spacing: -.01em; flex: none }
.brand img { width: 50px; height: 50px; object-fit: contain }
.brand b { color: var(--mintd); font-weight: 700 }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 18px }
.nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 14px; font: 600 18px/1 var(--display); text-decoration: none; border: 3px solid transparent; white-space: nowrap }
.nav a:hover { background: var(--mintxl) }
.nav a[aria-current="page"] { background: var(--mintl); border-color: var(--ink) }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 10px }
.wbtn { position: relative }
.wmenu { position: absolute; right: 0; top: calc(100% + 12px); min-width: 230px; background: var(--paper); border: var(--line); border-radius: var(--r2); box-shadow: var(--sh); padding: 8px; display: none; z-index: 60 }
.wmenu.open { display: block }
.wmenu a, .wmenu button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border: 0; background: none; border-radius: 10px; text-align: left; font: 700 16px/1 var(--text); text-decoration: none; cursor: pointer }
.wmenu a:hover, .wmenu button:hover { background: var(--mintxl) }
.wmenu .who { padding: 8px 12px 10px; font: 600 13.5px/1.3 var(--mono); color: var(--ink2); border-bottom: 2px dashed var(--mintl); margin-bottom: 6px; word-break: break-all }

.tabbar { display: none }
@media (max-width: 1060px) { .top .xchip, .top .cachip { display: none } }
@media (max-width: 860px) {
  :root { --head: 62px }
  .nav { display: none }
  .brand { font-size: 24px } .brand img { width: 42px; height: 42px }
  body { padding-bottom: 78px }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--paper); border-top: var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 4px; justify-content: space-around }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 14px; text-decoration: none; font: 600 12.5px/1 var(--display); border: 3px solid transparent; letter-spacing: .02em }
  .tabbar a svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round }
  .tabbar a[aria-current="page"] { background: var(--mintl); border-color: var(--ink) }
}

/* ---------- footer ---------- */
.foot { margin-top: 90px; position: relative; background: var(--mintl); border-top: var(--line); padding: 0 0 36px }
.foot .wave { position: absolute; left: 0; right: 0; top: -41px; height: 38px; width: 100%; pointer-events: none }
.foot .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-top: 44px }
.foot h4 { font-size: 20px; margin-bottom: 12px }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px }
.foot li a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent }
.foot li a:hover { border-bottom-color: var(--ink) }
.foot .disc { margin-top: 30px; padding-top: 20px; border-top: 3px dashed var(--mint2); font-size: 14.5px; font-weight: 600; color: var(--ink2); max-width: 980px }
.foot .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr } .foot .cols > :first-child { grid-column: 1 / -1 } }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 18px }
.field > label, .lbl { font: 800 15px/1.2 var(--text); letter-spacing: .01em }
.field > label small, .lbl small { font-weight: 600; color: var(--ink2); margin-left: 6px }
.field .hint { font-size: 14px; font-weight: 600; color: var(--ink2) }
.field .err { font-size: 14.5px; font-weight: 800; color: var(--coral); display: none }
.field.bad .err { display: block } .field.bad input, .field.bad textarea, .field.bad select { border-color: var(--coral); background: var(--coralxl) }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=search], textarea, select {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper); font: 600 17px/1.3 var(--text); color: var(--ink); box-shadow: inset 0 3px 0 rgba(5, 74, 43, .07) }
textarea { min-height: 110px; resize: vertical }
input::placeholder, textarea::placeholder { color: #7da590; font-weight: 600 }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--mint); outline-offset: 1px; background: var(--mintxl) }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px } .grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 18px }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr } }
.money { position: relative } .money input { padding-left: 38px } .money::before { content: '$'; position: absolute; left: 16px; top: 13px; font: 700 20px/1.2 var(--display); color: var(--ink2); z-index: 1 }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(5, 74, 43, .55); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto }
.modal .box { width: 100%; max-width: 520px; background: var(--paper); border: var(--line); border-radius: 26px; box-shadow: var(--sh2); padding: 28px; animation: pop .35s cubic-bezier(.3, 1.5, .5, 1); max-height: calc(100vh - 32px); overflow-y: auto }
.modal h3 { font-size: 28px; margin-bottom: 8px }
.modal .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px }
@keyframes pop { from { transform: scale(.9) translateY(14px); opacity: 0 } to { transform: none; opacity: 1 } }
.wopt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; margin-top: 10px; padding: 0 16px; border: var(--line); border-radius: var(--r2); background: var(--paper); font: 600 19px/1 var(--display); cursor: pointer; text-align: left; box-shadow: 0 3px 0 var(--ink) }
.wopt:hover { background: var(--mintxl); transform: translateY(-2px) }
.wopt .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--mint); border: 3px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font: 700 18px/1 var(--display); flex: none }

/* ---------- toast ---------- */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 32px)) }
.toast { background: var(--paper); border: var(--line); border-radius: 14px; box-shadow: var(--sh); padding: 12px 16px; font-weight: 700; transform: translateY(20px); opacity: 0; transition: transform .3s cubic-bezier(.3, 1.5, .5, 1), opacity .25s }
.toast.in { transform: none; opacity: 1 } .toast.err { background: var(--coralxl); border-color: var(--coral); color: #8c1f1b }
@media (max-width: 860px) { #toasts { bottom: 92px } }

/* ---------- states ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 44px 20px; border: 3px dashed var(--mint2); border-radius: var(--r); background: var(--mintxl) }
.empty img { width: 96px; height: 96px; object-fit: contain; animation: bob 3.4s ease-in-out infinite }
.empty h3 { font-size: 26px } .empty p { max-width: 440px; color: var(--ink2); font-weight: 600 }
.sk { border: 3px solid var(--mintl); border-radius: var(--r); background: var(--mintxl); position: relative; overflow: hidden }
.sk::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); transform: translateX(-100%); animation: shine 1.4s infinite }
@keyframes shine { to { transform: translateX(100%) } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg) } 50% { transform: translateY(-9px) rotate(1.5deg) } }
.loadbar { position: fixed; left: 0; top: 0; height: 4px; width: 0; background: var(--mint); z-index: 200; border-bottom: 2px solid var(--ink); transition: width .4s ease, opacity .4s }

/* ---------- motion ---------- */
html.fx .rv { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1.1) }
html.fx .rv.in { opacity: 1; transform: none }
html.fx .rv.d1 { transition-delay: .08s } html.fx .rv.d2 { transition-delay: .16s } html.fx .rv.d3 { transition-delay: .24s } html.fx .rv.d4 { transition-delay: .32s }
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition: none !important }
.cf { position: fixed; z-index: 150; pointer-events: none; border-radius: 3px; border: 2px solid var(--ink); animation: cf 1.3s cubic-bezier(.1, .7, .4, 1) forwards }
@keyframes cf { to { transform: translate(var(--dx), calc(var(--dy) + 220px)) rotate(var(--r)); opacity: 0 } }
.motion { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font: 700 14px/1 var(--text); cursor: pointer }
.motion .sw { width: 30px; height: 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--mint); position: relative }
.motion .sw::after { content: ''; position: absolute; top: 1px; right: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); transition: right .2s }
.motion[aria-pressed="false"] .sw { background: var(--paper) } .motion[aria-pressed="false"] .sw::after { right: 13px }

/* ---------- brand tile (CSS wordmark, no downloaded logos) ---------- */
.btile { display: inline-flex; align-items: center; justify-content: center; position: relative; min-width: 96px; height: 56px; padding: 0 16px; border: 3px solid var(--ink); border-radius: 16px; background: var(--bg-t, #fff); color: var(--ink); box-shadow: 0 4px 0 var(--ink); font: 700 22px/1 var(--display); letter-spacing: -.01em; white-space: nowrap }
.btile.sm { min-width: 0; height: 38px; padding: 0 12px; font-size: 16px; border-radius: 12px; border-width: 2px; box-shadow: 0 2px 0 var(--ink) }
.btile.lg { height: 76px; min-width: 130px; font-size: 30px; border-radius: 20px }
.btile.amz::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 7px; height: 8px; border-bottom: 3px solid var(--ink); border-radius: 0 0 50% 50% }
.btile.sm.amz::after { bottom: 3px; height: 5px; border-bottom-width: 2px }

/* ---------- page head ---------- */
.phead { padding: 44px 0 26px }
.phead h1 { font-size: clamp(38px, 6vw, 64px) }
.phead p { margin-top: 12px; font-size: 19px; color: var(--ink2); font-weight: 600; max-width: 640px }
.crumb { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-weight: 800; text-decoration: none; margin-bottom: 12px }
.crumb:hover { text-decoration: underline }
@media (max-width: 640px) { .phead { padding-top: 28px } .phead p { font-size: 17px } .card { padding: 20px } }

.lg-only { display: inline }
@media (max-width: 860px) { .lg-only { display: none } }
