/* The creation page has its own palette; restaurant themes start on the next screen. */
html[data-work-entry] #landing-shell { display:none; }
html:has(> body[data-view="landing"]),
body[data-view="landing"], #landing-shell { background-color:#fff; }
body[data-view="landing"] { padding-bottom:0; }
#landing-shell, .start-account {
  --start-ink:#12382d; --start-accent:#326a45; --start-muted:#526459; --start-rule:#d9e3dc; --focus:var(--start-accent);
}
#landing-shell {
  overflow:clip; color:var(--start-ink);
  padding-block-start:env(safe-area-inset-top,0px);
}
.start-wrap { width:min(1280px,calc(100% - clamp(40px,10vw,160px))); margin-inline:auto; }
.start-nav { min-height:82px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:clamp(14px,2vw,28px); border-bottom:1px solid var(--start-rule); }
.start-brand { display:inline-flex; align-items:center; width:clamp(120px,14vw,160px); max-width:100%; min-height:44px; padding-block:4px; }
.start-brand img { display:block; width:100%; height:auto; }
.start-nav-actions, .start-destinations { display:flex; align-items:center; }
.start-nav-actions { gap:24px; }
.start-destinations { justify-self:end; gap:clamp(14px,2vw,28px); }
.start-destinations a { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; font-size:.93rem; font-weight:600; line-height:1.3; }
.start-plaza { padding:7px 15px; border:1px solid #adc5b3; border-radius:999px; background:#f2f7f2; color:var(--start-ink); }
.start-plaza:hover { background:#e4efe6; border-color:var(--start-accent); }
.start-destinations a:focus-visible { outline:2px solid var(--start-accent); outline-offset:2px; }
.start-travelers:hover, .start-links a:hover b { text-decoration:underline; text-underline-offset:4px; }
#landing-shell .start-locale { color:var(--start-ink); }
#landing-shell .start-locale select { min-height:44px; border-color:var(--start-rule); color:inherit; background:transparent; }
.start-account { position:relative; flex:none; }
.start-account > .auth-button, .start-account-toggle {
  display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px;
  border-radius:999px; font:650 .88rem/1.2 var(--sans); white-space:nowrap; cursor:pointer;
}
.start-account > .auth-button { padding:0 17px; border:0; color:#fff; background:var(--start-ink); }
.start-account > .auth-button:hover { background:var(--start-accent); text-decoration:none; }
.start-account-toggle { list-style:none; border:1px solid var(--start-rule); background:#f2f6f2; }
.start-account-toggle::-webkit-details-marker { display:none; }
.start-account-toggle:focus-visible { outline:2px solid var(--start-accent); outline-offset:2px; }
.start-account-menu[open] .start-account-toggle { border-color:var(--start-accent); }
.start-account-avatar { display:grid; place-items:center; overflow:hidden; width:32px; height:32px; border-radius:50%; background:#e8f0e9; color:var(--start-ink); font-weight:700; }
.start-account-avatar .auth-avatar { display:block; width:100%; height:100%; object-fit:cover; }
.start-account-panel {
  position:absolute; z-index:5; inset-block-start:calc(100% + 8px); inset-inline-end:0;
  width:min(296px,calc(100vw - 32px)); max-height:calc(100dvh - 84px); overflow:auto;
  padding:8px; border:1px solid var(--start-rule); border-radius:16px; color:var(--start-ink); background:#fff;
  box-shadow:0 12px 32px #12382d1a; text-align:start; white-space:normal;
}
.start-account-identity { display:flex; align-items:center; gap:12px; padding:12px 10px 16px; border-bottom:1px solid var(--start-rule); }
.start-account-identity .start-account-avatar { flex:none; width:40px; height:40px; font-size:1rem; }
.start-account-contact, .start-account-link-copy { display:grid; min-width:0; gap:3px; line-height:1.35; overflow-wrap:anywhere; }
.start-account-contact strong { font-size:1rem; }
.start-account-email, .start-account-link-copy small { font-size:.8rem; font-weight:400; color:var(--start-muted); }
.start-account-links { display:grid; padding-block:5px; border-bottom:1px solid var(--start-rule); }
.start-account-link { display:flex; align-items:center; gap:11px; min-height:52px; padding:8px; border-radius:9px; }
.start-account-link-icon { flex:none; display:grid; place-items:center; width:32px; height:32px; border-radius:9px; background:#edf3ee; color:var(--start-accent); }
.start-account-link-copy strong { font-size:.91rem; font-weight:650; }
.start-account-link::after { content:""; flex:none; width:6px; height:6px; margin-inline-start:auto; margin-inline-end:4px; border-block-start:1.5px solid; border-inline-end:1.5px solid; transform:rotate(45deg); color:var(--start-muted); }
.start-account-signout { display:block; width:100%; min-height:44px; margin-top:4px; padding:8px 10px; border:0; border-radius:9px; background:transparent; color:var(--start-muted); font:600 .86rem/1.4 var(--sans); text-align:start; cursor:pointer; }
.start-account-panel :is(a,button):is(:hover,:focus-visible) { background:#f0f5f0; color:var(--start-ink); }
.start-account-panel :is(a,button):focus-visible { outline:2px solid var(--start-accent); outline-offset:-2px; }
.start-locale [data-locale-code] { display:none; }
.start-main:focus { outline:none; }
.start-main { padding-block:clamp(35px,5.4vw,88px) clamp(24px,3.8vw,58px); }
.start-hero { position:relative; display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); grid-template-rows:auto auto; align-items:center; gap:clamp(19px,2vw,32px) clamp(12px,3.8vw,64px); }
.start-intro { grid-area:1 / 1; align-self:end; z-index:1; }
.start-mascot { --mascot-size:80px; margin-bottom:10px; }
.start-kicker { margin-bottom:clamp(16px,1.5vw,22px); color:var(--start-accent); font:650 .78rem/1.4 var(--sans); letter-spacing:.09em; text-transform:uppercase; }
.start-intro h1 { margin:0; color:var(--start-ink); font:580 clamp(54px,5.45vw,86px)/1.04 var(--sans); letter-spacing:-.06em; }
.start-intro h1 > * { display:block; }
.start-intro h1 em { color:var(--start-accent); font:italic 500 1.04em/1.03 var(--serif); }
.start-intro h1:lang(zh) { font-weight:650; line-height:1.13; letter-spacing:-.055em; }
.start-intro h1 em:lang(zh) { font:inherit; }
.start-lead { max-width:38em; margin-top:clamp(17px,2vw,26px); color:var(--start-muted); font-size:clamp(15px,1.15vw,18px); line-height:1.65; text-wrap:pretty; }
.start-art { grid-area:1 / 2 / 3 / 3; align-self:center; position:relative; aspect-ratio:1; width:100%; pointer-events:none; user-select:none; }
.start-tomato { position:relative; height:100%; aspect-ratio:1; max-width:100%; margin-inline:auto; }
.start-tomato::before {
  content:""; position:absolute; inset:89% 23% auto; height:5%;
  background:radial-gradient(ellipse closest-side,#31563d60,transparent);
}
.start-tomato-fruit { position:relative; width:100%; height:100%; }
.start-tomato-fruit::before {
  content:""; position:absolute; inset:0;
  background:var(--start-ink);
  /* Follow the inside edge of the wireframe. The photograph supplies the mesh and fruit texture above it. */
  clip-path:polygon(
    35.18% 25.71%, 38.93% 25.71%, 41.25% 26.43%, 44.29% 31.43%, 53.75% 32.32%,
    58.21% 36.43%, 58.21% 86.43%, 56.61% 86.96%, 52.5% 87.23%, 50.54% 87.61%,
    48.39% 87.96%, 45.18% 87.96%, 43.21% 87.75%, 41.25% 87.32%, 39.11% 86.66%,
    37.68% 86.27%, 35.18% 85.96%, 33.93% 85.71%, 30.71% 84.64%, 28.57% 83.75%,
    26.07% 81.96%, 23.93% 80.18%, 21.43% 77.5%, 19.64% 74.82%, 16.96% 72.14%,
    14.82% 69.46%, 12.86% 66.79%, 11.25% 64.11%, 9.73% 60.71%, 9.02% 58.04%,
    8.66% 55.54%, 8.75% 53.57%, 9.02% 51.96%, 9.55% 50%, 10.27% 47.32%,
    10.27% 44.64%, 10.63% 42.86%, 11.43% 40.18%, 12.77% 37.5%, 14.02% 35.71%,
    15.3% 33.93%, 17.14% 32.14%, 19.46% 30.36%, 22.77% 28.57%, 25.36% 27.68%,
    27.32% 27.14%, 30.71% 27.14%, 32.77% 26.43%
  );
}
.start-tomato-fruit[data-fill="waiting"]::before { visibility:hidden; }
.start-art img { position:relative; width:100%; height:100%; display:block; object-fit:contain; }
.start-art-spark { display:none; position:absolute; right:7%; top:13%; width:clamp(30px,4vw,62px); color:var(--start-accent); }
.start-art-spark svg { display:block; width:100%; height:auto; }
.start-hero:has(.start-composer[aria-busy="true"]) .start-art-spark { display:block; }
.start-composer {
  grid-area:2 / 1; position:relative; z-index:1; align-self:start; min-width:0;
  display:grid; gap:9px; padding:clamp(16px,1.4vw,22px);
  color:#172c22; background:#fff; border:1px solid #a8bbae; border-radius:17px;
  box-shadow:0 8px 26px #163c240b;
}
.start-composer:focus-within { border-color:var(--start-accent); outline:2px solid #548660; outline-offset:2px; }
.start-prompt-head { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; }
#landing-match { color:#436346; font-size:.78rem; font-weight:600; text-align:end; overflow-wrap:anywhere; }
#landing-match:empty { display:none; }
#landing-size {
  grid-column:3; display:grid; place-items:center; width:44px; height:44px; margin:-6px -6px -6px 0;
  border-radius:8px; color:var(--start-accent); cursor:pointer;
}
#landing-size:is(:hover,:focus-visible,[aria-expanded="true"]) { background:#edf4ed; }
#landing-size [data-nav-icon] { display:flex; }
#landing-size[aria-expanded="false"] [data-nav-icon="collapse"], #landing-size[aria-expanded="true"] [data-nav-icon="expand"] { display:none; }
.start-label { display:flex; align-items:center; gap:8px; color:#35533c; font:650 .84rem/1.3 var(--sans); }
.start-label [data-nav-icon], .start-form-actions [data-nav-icon], .start-destinations [data-nav-icon], .start-links [data-nav-icon] { display:inline-flex; flex:none; }
.start-writing {
  --min-rows:4; --max-rows:8; --brief-line:1.55em;
  --brief-room:max(calc(2 * var(--brief-line) + 4px),calc(var(--brief-viewport,100vh) - 9rem));
  position:relative; min-width:0; overflow:hidden; resize:vertical; font:450 clamp(16px,1.25vw,20px)/1.55 var(--sans);
  min-height:min(calc(var(--min-rows) * var(--brief-line) + 4px),var(--brief-room));
  max-height:min(calc(var(--max-rows) * var(--brief-line) + 4px),var(--brief-room));
}
.start-composer:has(#landing-size[aria-expanded="true"]) .start-writing { --min-rows:12; --max-rows:18; }
/* Measure the same wrapped lines without moving the live caret while the user types. */
.start-writing::before, .start-writing textarea { padding:2px 0; white-space:pre-wrap; overflow-wrap:break-word; }
.start-writing::before { content:attr(data-brief) "\200b"; visibility:hidden; display:block; }
.start-writing textarea {
  position:absolute; inset:0; display:block; width:100%; height:100%; margin:0; resize:none; border:0; border-radius:0; outline:0;
  color:#172c22; background:transparent; font:inherit; caret-color:#1f633b;
}
.start-composer textarea::placeholder { color:#637266; opacity:1; }
#landing-error { color:#8b321a; font-size:.88rem; }
#landing-error:empty { display:none; }
.start-form-actions { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:5px 12px; padding-top:9px; border-top:1px solid #253f2e26; }
.start-form-actions button { display:inline-flex; gap:8px; align-items:center; justify-content:center; min-height:44px; font-weight:650; line-height:1.2; }
#landing-examples { color:#31563d; padding:4px 3px 4px 0; font-size:.86rem; }
#landing-examples [data-nav-icon] { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#edf4ed; }
#landing-examples:hover span:last-child { text-decoration:underline; text-underline-offset:3px; }
#landing-generate { padding:8px 16px; border-radius:8px; color:#143523; background:#c8e987; font-size:.93rem; }
#landing-generate:hover:not(:disabled) { background:#b8e369; }
#landing-generate:disabled { opacity:1; background:#e1e5d1; color:#64725f; cursor:default; }
#landing-generate [data-nav-icon="sparkle"], .start-composer[aria-busy="true"] #landing-generate [data-nav-icon="arrow"] { display:none; }
.start-composer[aria-busy="true"] #landing-generate { background:var(--start-ink); color:white; cursor:progress; }
.start-composer[aria-busy="true"] #landing-generate [data-nav-icon="sparkle"] { display:inline-flex; color:#d6f39d; }
@media (prefers-reduced-motion:no-preference) {
  .start-tomato-fruit { animation:tomato-float 5.2s ease-in-out infinite; }
  .start-tomato::before { animation:tomato-shadow 5.2s ease-in-out infinite; }
  .start-tomato-fruit::before {
    mask-image:linear-gradient(to bottom,transparent 46%,#0002 48%,#000d 52%,#000 54%);
    mask-size:100% 200%; mask-repeat:no-repeat;
    animation:tomato-green-fill 8s ease-in-out infinite alternate paused;
  }
  .start-tomato-fruit[data-fill="running"]::before { animation-play-state:running; }
  .start-hero:has(.start-composer[aria-busy="true"]) .start-art-spark,
  .start-composer[aria-busy="true"] #landing-generate [data-nav-icon="sparkle"] {
    animation:generation-spark 650ms ease-in-out 3;
  }
}
@keyframes tomato-float {
  0%,100% { transform:translateY(0) rotate(-1deg); }
  50% { transform:translateY(-2.4%) rotate(1.5deg); }
}
@keyframes tomato-shadow {
  0%,100% { transform:scaleX(1); opacity:.85; }
  50% { transform:scaleX(.82); opacity:.5; }
}
@keyframes tomato-green-fill {
  0%,4% { mask-position:50% 3%; }
  96%,100% { mask-position:50% 86%; }
}
@keyframes generation-spark {
  0%,100% { transform:scale(.88) rotate(-8deg); opacity:.72; }
  50% { transform:scale(1.16) rotate(8deg); opacity:1; }
}
.start-links { display:flex; align-items:center; flex-wrap:wrap; gap:12px clamp(20px,5vw,80px); border-top:1px solid var(--start-rule); margin-top:clamp(32px,4.2vw,66px); padding-top:clamp(14px,1.8vw,26px); }
.start-links a { min-height:48px; display:inline-flex; align-items:center; gap:13px; color:var(--start-ink); min-width:0; }
.start-links small { display:block; color:var(--start-muted); font:500 .76rem/1.5 var(--sans); }
.start-links b { display:block; font-weight:550; line-height:1.3; overflow-wrap:anywhere; }
.start-links .start-demo b { font:500 1.35rem/1.25 var(--serif); letter-spacing:-.035em; }
.start-links .chef-credit { margin-top:5px; }
.start-links [data-nav-icon] { color:var(--start-accent); }
#landing-shell noscript p { padding-block:1rem; }
@media (min-width:1500px) { .start-main { padding-top:clamp(80px,10vh,140px); } }
@media (min-width:681px) and (max-width:920px) {
  .start-wrap { width:calc(100% - 54px); }
  .start-intro h1 { font-size:clamp(46px,5.55vw,55px); }
  .start-hero { grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr); gap:22px 15px; }
}
@media (max-width:780px) {
  .start-nav { grid-template-columns:minmax(0,1fr) auto; gap:0 12px; padding-block:5px 8px; }
  .start-brand { grid-area:1 / 1; justify-self:start; }
  .start-nav-actions { grid-area:1 / 2; justify-self:end; gap:clamp(5px,2.5vw,14px); }
  .start-destinations { grid-area:2 / 1 / 3 / -1; justify-self:stretch; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding-top:4px; }
  .start-destinations a { min-width:0; gap:6px; padding:5px 8px; font-size:.88rem; text-align:center; overflow-wrap:anywhere; }
}
@media (max-width:680px) {
  .start-wrap { width:calc(100% - 36px); }
  #landing-shell .start-locale { justify-content:center; min-width:46px; min-height:44px; padding:0 17px 0 3px; }
  #landing-shell .start-locale::after { right:4px; }
  #landing-shell .start-locale:focus-within { outline:2px solid var(--start-accent); }
  #landing-shell .start-locale select { position:absolute; inset:0; width:100%; height:100%; opacity:0; }
  .start-locale [data-locale-code] { display:inline; font-size:13px; font-weight:650; }
  .start-main { padding-block:clamp(16px,4vw,24px) max(24px,env(safe-area-inset-bottom)); }
  .start-hero { grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto auto; gap:18px; }
  .start-intro { grid-area:1 / 1; }
  .start-mascot { --mascot-size:60px; margin-bottom:6px; }
  .start-kicker { margin:0 0 12px; font-size:11px; }
  .start-intro h1 { font-size:clamp(36px,9.2vw,56px); }
  .start-intro h1:lang(zh) { font-size:clamp(33px,9.2vw,54px); }
  .start-art { grid-area:3 / 1; width:100%; height:clamp(174px,27svh,275px); margin-top:2px; }
  .start-art img { width:auto; max-width:100%; margin:auto; }
  .start-lead { margin-top:18px; font-size:14px; line-height:1.55; max-width:38em; }
  .start-composer { grid-area:2 / 1; padding:14px 15px; gap:7px; border-radius:13px; }
  .start-writing { resize:none; }
  .start-form-actions { padding-top:7px; }
  .start-links { margin-top:12px; padding-top:12px; justify-content:space-between; }
  .start-links a { gap:9px; }
  .start-links .start-demo b { font-size:1.15rem; }
}
@media (max-width:389px) {
  .start-nav-actions { gap:4px; }
  .start-account > .auth-button { padding-inline:10px; }
}
@media (max-width:359px) {
  .start-wrap { width:calc(100% - 28px); }
  .start-main { padding-top:12px; }
  .start-mascot { --mascot-size:52px; }
  .start-kicker { margin-bottom:8px; }
  .start-intro h1 { font-size:35px; }
  .start-intro h1:lang(zh) { font-size:33px; }
}
@media (max-width:339px) {
  .start-nav { width:calc(100% - 16px); }
  .start-nav-actions { gap:2px; }
  .start-account > .auth-button { padding-inline:8px; }
}
@media (forced-colors:active) { .start-composer, .start-nav, .start-form-actions button { border:1px solid CanvasText; } }
/* Market's notice badges in the account menu (a count, or a red dot), as Market's NoticeBadge. */
.start-account-toggle { position:relative; }
.start-notice { display:inline-block; min-width:18px; margin-left:6px; padding:0 5px; border-radius:999px; background:#c0392b; color:#fff; font:700 11px/18px system-ui,sans-serif; font-style:normal; text-align:center; vertical-align:.1em; }
.start-notice-dot { min-width:0; width:8px; height:8px; padding:0; vertical-align:.2em; }
.start-account-toggle > .start-notice { position:absolute; top:-2px; right:-2px; margin:0; box-shadow:0 0 0 2px #fff; }
