/*
 * A shop's website, in the look of the "Website preview" in the TokoGen app: a green and white page, a cover with the name over it,
 * round buttons, a strip of words that slides along, reasons to choose the shop, what it sells as a bento, the week, and a call to order.
 * Under 900px wide it is the phone page; from 900px up it is the laptop page.
 */
:root {
  --green: #137a3e;
  --deep: #0d5c2e;
  --mint: #eaf4ec;
  --mint-line: #d3e7d9;
  --soft: #f4f9f5;
  --ink: #0b1b2b;
  --ink-soft: #4a566a;
  --ink-mute: #7b8798;
  --warm: #e7c56e;
  --line: #e3e9e5;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
.noscript { padding: 24px; text-align: center; }

.loading { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 8px; }
.loading span { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: dot 1s infinite ease-in-out; }
.loading span:nth-child(2) { animation-delay: 0.15s; } .loading span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }

.state { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 32px; gap: 12px; }
.state h1 { font-size: 28px; font-weight: 800; }
.state p { color: var(--ink-soft); max-width: 26em; margin: 0 auto; }
.state .pill-btn { margin: 14px auto 0; }

/* ------------------------------------------------------------------------------------------------------------------ shared pieces */
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #5be08f); flex: 0 0 auto; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c, #5be08f); animation: ring 1.6s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: 0.6; } to { transform: scale(2.6); opacity: 0; } }

.glass { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 14px; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; font-weight: 700; font-size: 12.5px; backdrop-filter: blur(8px); }
.glass svg { width: 12px; height: 12px; }

.ticker { overflow: hidden; background: var(--deep); color: #fff; display: flex; align-items: center; }
.ticker .track { display: flex; white-space: nowrap; animation: slide 26s linear infinite; will-change: transform; }
.ticker .track span { font-weight: 800; text-transform: uppercase; }
@keyframes slide { to { transform: translateX(-50%); } }

.heading { display: flex; align-items: center; gap: 8px; }
.heading::before { content: ""; width: 5px; height: 18px; border-radius: 3px; background: var(--green); }
.heading h2 { font-size: 17px; font-weight: 800; letter-spacing: -0.2px; }

.hours-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 13px 15px 10px; }
.hours-today { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--deep); font-size: 13.5px; margin-bottom: 10px; }
.hours-today svg { width: 16px; height: 16px; color: var(--green); }
.hours-row { display: flex; justify-content: space-between; padding: 6px 10px; margin: 2px 0; border-radius: 10px; font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.hours-row.today { background: #e6f3ea; color: var(--deep); font-weight: 800; }

.tile { position: relative; overflow: hidden; border-radius: 16px; background: linear-gradient(160deg, #d3e7d9, #eaf4ec); display: block; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.7)); }
.tile .caption { position: absolute; left: 9px; right: 9px; bottom: 8px; color: #fff; }
.tile .caption b { display: block; font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .caption span { display: inline-block; margin-top: 3px; padding: 2px 8px; border-radius: 9px; background: #fff; color: var(--deep); font-weight: 800; font-size: 11.5px; }
.tile .initial { position: absolute; inset: 0; display: grid; place-items: center; font-size: 48px; font-weight: 800; color: rgba(13, 92, 46, 0.25); }

.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 32px; background: var(--deep); color: #fff; font-weight: 800; font-size: 16px; border: 0; box-shadow: 0 8px 18px rgba(19, 122, 62, 0.3); }
.pill-btn.ghost { background: #fff; color: var(--ink); border: 1.8px solid #c9d2cc; box-shadow: none; }
.pill-btn svg { width: 20px; height: 20px; }
.pill-btn.white { background: #fff; color: var(--deep); box-shadow: none; }

.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

.m-page { display: block; }
.d-page { display: none; }

/* ------------------------------------------------------------------------------------------------------------------ phone page */
.m-page { max-width: 560px; margin: 0 auto; background: #fff; min-height: 100vh; padding-bottom: 92px; position: relative; }
.m-cover { position: relative; height: 300px; overflow: hidden; background: linear-gradient(160deg, #0d5c2e, #137a3e); }
.m-cover .bg { position: absolute; left: 0; right: 0; top: 0; height: 360px; background-size: cover; background-position: center; will-change: transform; }
.m-cover .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0) 40%, rgba(10, 26, 18, 0.85)); }
.m-top { position: absolute; left: 18px; right: 18px; top: 16px; display: flex; align-items: center; gap: 7px; color: #fff; z-index: 2; }
.m-top svg { width: 18px; height: 18px; }
.m-top b { flex: 1; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-menu { background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 14px; width: 38px; height: 30px; color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); }
.m-menu svg { width: 16px; height: 16px; }
.m-title { position: absolute; left: 18px; right: 18px; bottom: 42px; color: #fff; z-index: 2; }
.m-title .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.m-title h1 { font-size: 31px; font-weight: 800; line-height: 1.05; letter-spacing: -0.8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-title p { font-size: 13.5px; color: rgba(255, 255, 255, 0.9); margin-top: 6px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.m-sheet { position: relative; margin-top: -28px; background: #fff; border-radius: 30px 30px 0 0; padding: 20px 18px 0; z-index: 3; }
.rounds { display: flex; }
.round { flex: 1; display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-soft); background: none; border: 0; padding: 0; }
.round i { width: 52px; height: 52px; border-radius: 50%; background: #f1f6f3; display: grid; place-items: center; color: var(--deep); font-style: normal; }
.round.fill i { background: linear-gradient(135deg, var(--green), var(--deep)); color: #fff; box-shadow: 0 6px 14px rgba(19, 122, 62, 0.35); }
.round svg { width: 22px; height: 22px; }

.m-ticker { margin-top: 18px; height: 34px; border-radius: 17px; }
.m-ticker .track span { font-size: 12.5px; letter-spacing: 1.4px; }
.reasons { margin-top: 16px; display: grid; gap: 8px; }
.reason { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 15px; padding: 11px 14px; }
.reason svg { width: 21px; height: 21px; color: var(--green); flex: 0 0 auto; }
.reason b { flex: 1; font-size: 14px; font-weight: 800; }
.reason span { font-size: 12px; color: var(--ink-soft); text-align: right; }
.about-m { margin-top: 16px; padding: 12px 14px 14px; border-left: 4px solid rgba(19, 122, 62, 0.7); font-size: 14px; line-height: 1.6; color: var(--ink-soft); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.m-block { margin-top: 24px; scroll-margin-top: 16px; }
.m-block .heading { margin-bottom: 11px; }
.bento { display: grid; gap: 8px; }
.bento .row1 { display: grid; grid-template-columns: 3fr 2fr; gap: 8px; height: 230px; }
.bento .col { display: grid; gap: 8px; grid-auto-rows: 1fr; }
.bento .wide { height: 96px; }
.bento .single { height: 200px; }
.order-m { margin-top: 24px; padding: 18px; border-radius: 22px; background: linear-gradient(135deg, var(--deep), var(--green)); color: #fff; }
.order-m h3 { font-size: 18px; font-weight: 800; }
.order-m p { font-size: 13px; margin-top: 4px; color: rgba(255, 255, 255, 0.86); line-height: 1.4; }
.order-m .pill-btn { width: 100%; margin-top: 14px; padding: 12px; font-size: 14.5px; }
.free { text-align: center; margin-top: 24px; font-size: 12px; color: var(--ink-mute); font-weight: 600; }
.free a { color: var(--green); }

.dock { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(540px, 100% - 28px); height: 54px; padding: 5px; border-radius: 28px; background: rgba(16, 26, 43, 0.94); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); display: flex; gap: 5px; z-index: 20; backdrop-filter: blur(10px); }
.dock a { display: grid; place-items: center; border-radius: 23px; color: #fff; }
.dock .call { flex: 1; background: linear-gradient(90deg, var(--green), #2fa866); font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.dock .call svg { width: 16px; height: 16px; }
.dock .sm { width: 46px; background: rgba(255, 255, 255, 0.12); }
.dock .sm svg { width: 19px; height: 19px; }

.sheet-menu { position: fixed; inset: 0; background: rgba(11, 27, 43, 0.5); z-index: 50; display: none; }
.sheet-menu.open { display: block; }
.sheet-menu nav { position: absolute; right: 14px; top: 14px; background: #fff; border-radius: 20px; padding: 8px; min-width: 190px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); }
.sheet-menu a { display: block; padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.sheet-menu a:hover { background: var(--soft); }

/* ------------------------------------------------------------------------------------------------------------------ laptop page */
@media (min-width: 900px) {
    .d-page { display: block; background: #fff; }
  .d-wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: 72px; }
  .d-nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); }
  .d-nav .d-wrap { display: flex; align-items: center; height: 84px; }
  .d-nav .logo { width: 34px; height: 34px; color: var(--green); }
  .d-nav .name { flex: 1; margin-left: 12px; font-size: 26px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .d-nav a.l { margin-left: 36px; font-size: 17px; font-weight: 600; color: var(--ink-soft); }
  .d-nav a.l:hover { color: var(--ink); }
  .d-nav .call { margin-left: 36px; padding: 13px 26px; border-radius: 28px; background: var(--green); color: #fff; font-weight: 800; font-size: 17px; }

  .d-hero .d-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; min-height: 560px; padding-top: 8px; padding-bottom: 24px; }
  .d-open { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 24px; background: #e6f3ea; color: var(--deep); font-weight: 700; font-size: 16px; }
  .d-open .pulse { --c: var(--green); }
  .d-hero h1 { font-size: clamp(44px, 5.6vw, 68px); font-weight: 800; line-height: 1.02; letter-spacing: -2.4px; margin-top: 24px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .d-hero .sub { font-size: 22px; color: var(--ink-soft); line-height: 1.45; margin-top: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .d-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
  .d-btns .pill-btn { padding: 17px 30px; font-size: 18px; }
  .d-rate { display: flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 17px; font-weight: 700; }
  .d-rate svg { width: 22px; height: 22px; color: var(--warm); }
  .d-photo { position: relative; height: 500px; }
  .d-photo .img { position: absolute; inset: 0; border-radius: 40px; background: linear-gradient(160deg, #0d5c2e, #137a3e) center / cover; }
  .d-today { position: absolute; left: -28px; bottom: 44px; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 22px; background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); }
  .d-today svg { width: 28px; height: 28px; color: var(--green); }
  .d-today small { display: block; font-size: 13px; color: var(--ink-soft); }
  .d-today b { font-size: 18px; font-weight: 800; }

  .d-ticker { height: 52px; }
  .d-ticker .track span { font-size: 15px; letter-spacing: 2px; }
  .d-reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 64px; }
  .d-reason { background: var(--soft); border-radius: 28px; padding: 28px; }
  .d-reason i { width: 56px; height: 56px; border-radius: 18px; background: var(--deep); color: #fff; display: grid; place-items: center; }
  .d-reason i svg { width: 28px; height: 28px; }
  .d-reason h3 { font-size: 24px; font-weight: 800; margin-top: 18px; }
  .d-reason p { font-size: 17px; color: var(--ink-soft); margin-top: 6px; }
  .d-section { padding-top: 72px; scroll-margin-top: 90px; }
  .d-section h2 { font-size: 44px; font-weight: 800; letter-spacing: -1.2px; }
  .d-section .lead { font-size: 19px; color: var(--ink-soft); margin-top: 8px; }
  .d-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 28px; }
  .d-picks .tile { aspect-ratio: 0.85; border-radius: 28px; }
  .d-picks .tile .caption { left: 20px; right: 20px; bottom: 18px; }
  .d-picks .tile .caption b { font-size: 20px; }
  .d-picks .tile .caption span { font-size: 16px; padding: 6px 14px; border-radius: 16px; margin-top: 8px; }
  .d-picks.n1 { grid-template-columns: minmax(0, 360px); }
  .d-picks.n2 { grid-template-columns: repeat(2, minmax(0, 360px)); }
  .d-picks.n3 { grid-template-columns: repeat(3, 1fr); }
  .d-about { display: grid; grid-template-columns: 6fr 5fr; gap: 56px; align-items: start; }
  .d-about p { font-size: 20px; line-height: 1.6; color: var(--ink-soft); margin-top: 16px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
  .d-about .hours-card { border-radius: 27px; padding: 20px 20px 14px; }
  .d-about .hours-today { font-size: 17px; margin-bottom: 14px; }
  .d-about .hours-today svg { width: 20px; height: 20px; }
  .d-about .hours-row { font-size: 17px; padding: 7px 14px; }
  .d-cta { margin-top: 72px; padding: 48px 56px; border-radius: 36px; background: linear-gradient(135deg, var(--deep), var(--green)); color: #fff; display: flex; align-items: center; gap: 32px; }
  .d-cta > div { flex: 1; }
  .d-cta h2 { font-size: 44px; font-weight: 800; letter-spacing: -1.2px; }
  .d-cta p { font-size: 20px; margin-top: 10px; color: rgba(255, 255, 255, 0.88); }
  .d-cta .pill-btn { padding: 18px 34px; font-size: 19px; }
  .d-free { text-align: center; padding: 40px 0; font-size: 15px; color: var(--ink-mute); font-weight: 600; }
  .d-free a { color: var(--green); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker .track, .pulse::after, .reveal { animation: none; opacity: 1; transform: none; }
}
