/* DishDuck · temporary page for dishduck.app, until the full site replaces it.
   Same look as the store landing: palette v2, Bricolage Grotesque 800 + Instrument Sans, base 17 px, icons 26 px. */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-800-latin.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrainsmono-700-d4u.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #FFF1D6; --ink: #1E1B18; --muted: #5A5148; --card: #FFF8EA; --line: #EAD7B3; --btn-line: #8C7656;
  --accent: #E4572E; --kicker: #B23A1A; --blue: #1652F0;
  --shadow: 0 30px 60px -28px rgba(30, 27, 24, .45);
  /* Font sizes shared by every D4U page (same values as apps/shell/css/shell.css). Each app keeps its own typeface. */
  --sh-fs-display: clamp(40px, 5.6vw, 72px); --sh-fs-h2: clamp(30px, 3.6vw, 44px); --sh-fs-h3: clamp(20px, 1.8vw, 22px);
  --sh-fs-lead: clamp(18px, 1.6vw, 20px); --sh-fs-body: 17px; --sh-fs-button: 16px; --sh-fs-small: 14px; --sh-fs-label: 13px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --bg: #1E1B18; --ink: #FFF1D6; --muted: #CFC3AE; --card: #2A2521; --line: #3A332D; --btn-line: #8A7D6E; --kicker: #F08A65; --blue: #5B84FF; --shadow: 0 30px 60px -28px rgba(0, 0, 0, .8); }
}
:root[data-theme="dark"] { color-scheme: dark; --bg: #1E1B18; --ink: #FFF1D6; --muted: #CFC3AE; --card: #2A2521; --line: #3A332D; --btn-line: #8A7D6E; --kicker: #F08A65; --blue: #5B84FF; --shadow: 0 30px 60px -28px rgba(0, 0, 0, .8); }

/* Logo and mascot with a light and a dark version */
.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-light { display: none; }
  :root:not([data-theme="light"]) .on-dark { display: block; }
}
:root[data-theme="dark"] .on-light { display: none; }
:root[data-theme="dark"] .on-dark { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 var(--sh-fs-body)/1.6 "Instrument Sans", -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); z-index: 10; }
.skip:focus { left: 16px; }

/* Top bar: the app's logo, language and theme */
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.top-logo img { width: 132px; height: auto; }
.tools { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--btn-line); font-weight: 700; font-size: var(--sh-fs-button); text-decoration: none; }
.lang:hover { border-color: var(--ink); }
.theme { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1.5px solid var(--btn-line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.theme:hover { border-color: var(--ink); }
.theme svg { width: 18px; height: 18px; display: block; }
.theme .i-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .i-sun { display: block; } :root:not([data-theme="light"]) .theme .i-moon { display: none; } }
:root[data-theme="dark"] .theme .i-sun { display: block; }
:root[data-theme="dark"] .theme .i-moon { display: none; }

/* The page */
main { flex: 1; }
/* Wider text column so the hero headline stays within 2 lines on desktop (3 on phones) */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-block: 40px 80px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.logo { width: min(320px, 74%); margin-left: -5%; }
/* Headline: on wide screens the phrase after the comma stays on one line */
@media (min-width: 561px) { h1 .nw { white-space: nowrap; } }
.kicker { font: 700 var(--sh-fs-label)/1.3 "Instrument Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--kicker); }
h1 { margin: 0; font: 800 var(--sh-fs-display)/1.04 "Bricolage Grotesque", sans-serif; letter-spacing: -.03em; }
.lead { font-size: var(--sh-fs-lead); line-height: 1.55; color: var(--muted); }

/* Launch message: part of the hero, separated by a hairline; status, «coming soon» and the platforms */
.launch { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: 10px; font: 700 var(--sh-fs-label)/1.3 "Instrument Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #F5B82E; box-shadow: 0 0 0 4px rgba(245, 184, 46, .22); }
.soon-title { font: 800 var(--sh-fs-h3)/1.2 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; color: var(--ink); }
/* «Available on:» label and four equal items; 2×2 on phones */
/* Device composition with the «Available on:» row as its caption, aligned with the tablet */
.art-col { min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.avail { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.avail-label { margin: 0; font-weight: 700; font-size: var(--sh-fs-small); color: var(--ink); }
.platforms { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.platforms li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--sh-fs-small); color: var(--muted); }
.platforms .ico { color: var(--kicker); }
/* Medium screens: the device column is narrow, so the four items go 2×2 instead of leaving one alone */
@media (min-width: 901px) and (max-width: 1240px) { .platforms { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 32px; } }
@media (max-width: 560px) { .avail { flex-direction: column; align-items: flex-start; } .platforms { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 32px; } }
/* Pillars: three short ideas under the hero, across the full width, separated by a hairline */
.pillars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.pillar { display: flex; flex-direction: column; gap: 10px; }
.pillar h2 { margin: 0; font: 800 var(--sh-fs-h3)/1.2 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; color: var(--ink); }
.pillar p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; gap: 24px; } }
.ico { display: block; width: 26px; height: 26px; flex: none; color: var(--kicker); }

/* Devices: D4U frames, copied as they are from apps/shell/css/shell.css */
.sh-phone, .sh-tablet { position: relative; display: block; max-width: 100%; box-sizing: border-box; background: #0E1014; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 30px 60px -24px rgba(0, 0, 0, .55); }
.sh-phone { --sh-phone-w: 240px; width: var(--sh-phone-w); aspect-ratio: 660 / 1434; padding: calc(var(--sh-phone-w) * .03); border-radius: calc(var(--sh-phone-w) * .16); }
.sh-phone > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: calc(var(--sh-phone-w) * .13); }
.sh-phone::after { content: ""; position: absolute; top: calc(var(--sh-phone-w) * .06); left: 50%; width: calc(var(--sh-phone-w) * .045); aspect-ratio: 1; border-radius: 50%; background: #0E1014; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); transform: translateX(-50%); }
.sh-tablet { --sh-tablet-w: 560px; width: var(--sh-tablet-w); aspect-ratio: 2388 / 1668; padding: calc(var(--sh-tablet-w) * .02); border-radius: calc(var(--sh-tablet-w) * .045); }
.sh-tablet > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--sh-tablet-w) * .028); }

/* An iPad on the left with two phones coming out of its right side; only size and position are set here */
.art { position: relative; display: flex; justify-content: flex-start; --phone: clamp(84px, 7.4vw, 112px); padding-bottom: calc(var(--phone) * .55); }
.art .tab { --sh-tablet-w: clamp(300px, 38vw, 530px); margin-top: 6%; }
.phones { position: absolute; right: -12%; bottom: 0; display: flex; align-items: flex-end; }
.art .sh-phone { --sh-phone-w: var(--phone); flex: none; }
.art .p1 { transform: translate(14%, -12%) rotate(-5deg); z-index: 1; }
.art .p2 { --sh-phone-w: calc(var(--phone) * 1.1); transform: rotate(4deg); z-index: 2; }
/* Narrower screens have less side margin: keep the phones inside the page */
@media (max-width: 1340px) { .phones { right: -2%; } }

/* Footer, D4U company data annex (A.4): product, company and legal columns on top;
   the copyright line on the left and the D4U signature on the right below */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: var(--sh-fs-small); line-height: 1.6; }
.foot p { margin: 0; }
.foot .foot-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 24px 40px; padding-block: 32px 24px; }
.foot-logo { display: inline-block; margin-bottom: 10px; }
.foot-logo img { height: 28px; width: auto; }
.foot .foot-label { margin-bottom: 8px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.foot-company strong { color: var(--ink); font-weight: 600; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot-list a:hover, .foot-list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.foot .foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 16px 22px; border-top: 1px solid var(--line); }
@media (max-width: 700px) {
  .foot .foot-top { grid-template-columns: 1fr; }
  .foot .foot-bottom { flex-direction: column; align-items: flex-start; }
}
.powered a { font: 700 var(--sh-fs-small)/1 "JetBrains Mono", ui-monospace, monospace; color: var(--ink); text-decoration: none; }
.powered b { color: var(--blue); font-weight: 700; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 16px 56px; }
  .art { --phone: clamp(84px, 21vw, 140px); }
  .phones { right: 0; }
  .art .tab { --sh-tablet-w: min(80vw, 460px); margin-top: 4%; }
}

/* Third-party credits, as plain text */
.foot .credits { padding-block: 0 22px; }
.foot .credits p { margin: 0; font-size: var(--sh-fs-small); color: var(--muted); }

/* Text pages: privacy, terms, support, 404 */
.doc .prose { max-width: 760px; padding-block: 32px 80px; }
.prose h1 { font-size: var(--sh-fs-h2); margin-bottom: 12px; }
.prose h2 { margin: 44px 0 12px; font: 800 var(--sh-fs-h3)/1.15 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; }
.prose h3 { margin: 28px 0 8px; font: 700 var(--sh-fs-body)/1.3 "Instrument Sans", sans-serif; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--kicker); text-underline-offset: 3px; }
.draft { margin: 8px 0 28px; padding: 14px 18px; border-radius: 16px; border: 1.5px dashed var(--btn-line); background: var(--card); color: var(--muted); font-size: var(--sh-fs-small); }
mark.todo { background: rgba(245, 184, 46, .35); color: var(--ink); padding: 0 4px; border-radius: 4px; }
.nf { padding-block: 72px 120px; }

/* ═════ www: product sections ═════ */
:root { --alt: #F8E3BA; --band: #1E1B18; --band-ink: #FFF1D6; --band-muted: #CFC3AE; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --alt: #282320; --band: #12100E; } }
:root[data-theme="dark"] { --alt: #282320; --band: #12100E; }

/* Header navigation */
.nav { display: flex; gap: 22px; margin-right: 8px; }
.nav a { font-weight: 600; font-size: var(--sh-fs-small); text-decoration: none; color: var(--ink); }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Every section is a full-width band; backgrounds alternate so each one reads as a block */
.section { padding: 96px 0; }
.alt { background: var(--alt); }
.hero.section { padding: 40px 0 96px; }
.hero.section .wrap { padding-block: 0; }
.head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
h2 { margin: 0; font: 800 var(--sh-fs-h2)/1.06 "Bricolage Grotesque", sans-serif; letter-spacing: -.03em; }
h3 { margin: 0; font: 800 var(--sh-fs-h3)/1.15 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card p { color: var(--muted); }

/* Buttons: primary is the logo orange with white text (brand decision, 3.7:1) */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 700 var(--sh-fs-button)/1 "Instrument Sans", sans-serif; text-decoration: none; }
.btn-primary { background: #E4572E; color: #FFFFFF; }
.btn-primary:hover { background: #D44D25; }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--btn-line); }
.btn-ghost:hover { border-color: var(--ink); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #E4572E; }
.step-ico .ico { color: #FFFFFF; }
.step-n { font: 800 var(--sh-fs-h2)/1 "Bricolage Grotesque", sans-serif; color: var(--line); }

/* The apps */
.apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.app { display: flex; flex-direction: column; gap: 8px; }
.app img { width: 100%; height: auto; aspect-ratio: 432 / 560; object-fit: cover; margin-bottom: 14px; border-radius: 24px; box-shadow: 0 14px 26px -18px rgba(30, 27, 24, .45); }
.app h3 { display: flex; align-items: center; gap: 8px; }
.app h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 2.5px var(--line); }
.app p { color: var(--muted); line-height: 1.5; }
.c-customers { --c: #1F5560; } .c-manager { --c: #5A3A2A; } .c-service { --c: #E4572E; } .c-server { --c: #2B3A55; }
.c-delivery { --c: #F5B82E; } .c-register { --c: #2F6B4F; } .c-kitchen { --c: #9E2F1C; } .c-admin { --c: #5B2A4E; }

/* Dark band: the venue's own server */
.band { background: var(--band); color: var(--band-ink); }
.band .kicker { color: #F5B82E; }
.band .lead { color: var(--band-muted); }
.server .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.server .sh-tablet { --sh-tablet-w: min(100%, 560px); }
.server-text { display: flex; flex-direction: column; gap: 18px; }
.points { display: flex; flex-direction: column; gap: 12px; }
.points li { display: flex; gap: 12px; color: var(--band-muted); }
.points li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: #F5B82E; }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.benefits .ico { color: var(--kicker); }

/* Close: on the orange, white */
.close .panel { background: #E4572E; color: #FFFFFF; border-radius: 36px; padding: 56px; display: flex; flex-direction: column; gap: 14px; }
.close .panel p { font-size: var(--sh-fs-lead); }
.close .actions { margin-top: 10px; }
.btn-white { background: #FFFFFF; color: #1E1B18; }
.btn-white:hover { background: #FFF1D6; }
.btn-outline-white { color: #FFFFFF; border: 1.5px solid #FFFFFF; }
.btn-outline-white:hover { background: rgba(255, 255, 255, .14); }


@media (max-width: 900px) {
  .nav { display: none; }
  .section { padding: 72px 0; }
  .hero.section { padding: 16px 0 72px; }
  .steps, .benefits { grid-template-columns: 1fr; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server .wrap { grid-template-columns: 1fr; }
  .close .panel { padding: 36px 26px; }
}
@media (prefers-reduced-motion: no-preference) { .btn { transition: background-color .2s, border-color .2s; } }

/* ═════ Soon page: campaign sections ═════ */
.problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.problems .ico { color: var(--kicker); }
.after { margin-top: 32px; }

/* The journey of an order: one card per app, topped with the app's color */
.journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.stop { border-top: 6px solid var(--c); padding: 24px; }
.stop img { width: 52px; height: 52px; border-radius: 14px; }
.stop p { line-height: 1.5; }

/* The apps */
.app-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.app-card img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 20px -14px rgba(30, 27, 24, .5); margin-bottom: 6px; }

/* The plans: a staircase, each step taller, so the growth reads at a glance */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: end; }
.plan { padding: 32px; gap: 14px; }
.plan .plan-tag { margin-bottom: auto; }
.plan .ico { color: inherit; }
.plan:nth-child(1) { min-height: 260px; }
.plan:nth-child(2) { min-height: 320px; }
.plan:nth-child(3) { min-height: 380px; background: #E4572E; border-color: #E4572E; color: #FFFFFF; }
.plan:nth-child(3) p { color: #FFFFFF; }
.plan .plan-tag { display: inline-flex; align-items: center; gap: 10px; font: 700 var(--sh-fs-label)/1.3 "Instrument Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--kicker); }
.plan:nth-child(3) .plan-tag { color: #FFFFFF; }
.plan h3 { font-size: clamp(40px, 4.6vw, 60px); line-height: 1; letter-spacing: -.035em; }
.plan p:last-child { font-size: var(--sh-fs-lead); line-height: 1.45; }

/* No commission */
.nocom .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.nc-figure { display: flex; flex-direction: column; gap: 6px; }
.nc-figure b { font: 800 clamp(96px, 14vw, 200px)/.9 "Bricolage Grotesque", sans-serif; letter-spacing: -.05em; color: #E4572E; }
.nc-figure span { font: 700 var(--sh-fs-label)/1.3 "Instrument Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nc-text { display: flex; flex-direction: column; gap: 14px; }

@media (max-width: 1180px) { .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .app-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .problems, .plans, .nocom .wrap { grid-template-columns: 1fr; }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan:nth-child(n) { min-height: 0; }
  .nocom .wrap { gap: 20px; }
}
@media (max-width: 560px) {
  .journey, .app-cards { grid-template-columns: 1fr; }
  .app-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: start; padding: 20px; }
  .app-card img { grid-row: 1 / 3; width: 56px; height: 56px; margin: 0; }
  .app-card p { margin: 0; }
}
@media (max-width: 420px) { .close .panel { padding: 32px 20px; } }
