/* DishDuck · landing in the D4U Store (capability). Styles only what is inside <main class="dd">.
   Brand: palette v2 (ink, cream, orange) and each app's approved color.
   Type: Bricolage Grotesque 800 (headings) and Instrument Sans (text), base 17 px; icons 26 px (Phosphor Bold). */

@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; }

:root {
  --dd-bg: #FFF1D6; --dd-ink: #1E1B18; --dd-muted: #5A5148; --dd-card: #FFF8EA; --dd-line: #EAD7B3;
  --dd-accent: #E4572E; --dd-on-accent: #FFFFFF; --dd-kicker: #B23A1A; --dd-link: #B23A1A;
  --dd-alt: #F8E3BA; --dd-band: #1E1B18; --dd-band-ink: #FFF1D6; --dd-band-muted: #CFC3AE; --dd-btn-line: #8C7656;
  --dd-shadow: 0 30px 60px -28px rgba(30, 27, 24, .45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --dd-alt: #282320; --dd-btn-line: #8A7D6E; --dd-bg: #1E1B18; --dd-ink: #FFF1D6; --dd-muted: #CFC3AE; --dd-card: #2A2521; --dd-line: #3A332D; --dd-kicker: #F08A65; --dd-link: #F08A65; --dd-band: #12100E; --dd-shadow: 0 30px 60px -28px rgba(0, 0, 0, .8); }
}
:root[data-theme="dark"] { --dd-alt: #282320; --dd-btn-line: #8A7D6E; --dd-bg: #1E1B18; --dd-ink: #FFF1D6; --dd-muted: #CFC3AE; --dd-card: #2A2521; --dd-line: #3A332D; --dd-kicker: #F08A65; --dd-link: #F08A65; --dd-band: #12100E; --dd-shadow: 0 30px 60px -28px rgba(0, 0, 0, .8); }

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

body { margin: 0; background: var(--dd-bg); }
.dd { display: block; background: var(--dd-bg); color: var(--dd-ink); font: 400 var(--sh-fs-body)/1.6 "Instrument Sans", -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden; }
.dd *, .dd *::before, .dd *::after { box-sizing: border-box; }
.dd img { display: block; max-width: 100%; }
.dd :not(.sh-phone, .sh-tablet) > img { height: auto; }
.dd a { color: var(--dd-link); }
.dd a:focus-visible { outline: 2px solid var(--dd-accent); outline-offset: 3px; border-radius: 6px; }
.dd ul, .dd ol { list-style: none; margin: 0; padding: 0; }
.dd-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.dd h1, .dd h2, .dd h3 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; letter-spacing: -.03em; line-height: 1.04; margin: 0; }
.dd h2 { font-size: var(--sh-fs-h2); }
.dd h3 { font-size: var(--sh-fs-h3); letter-spacing: -.02em; }
.dd p { margin: 0; }
.dd-kicker { font: 700 var(--sh-fs-label)/1.3 "Instrument Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--dd-kicker); }
.dd-lead { font-size: var(--sh-fs-lead); line-height: 1.55; color: var(--dd-muted); }
.dd-section { padding: 96px 0; }
/* Every section is its own full-width band; backgrounds alternate so each one reads as a block */
.dd-alt { background: var(--dd-alt); }
.dd-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.dd-ico { display: block; width: 26px; height: 26px; flex: none; }

/* Buttons and status */
.dd-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dd-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; }
/* Brand decision: logo orange with white text at 16 px, 3.7:1 */
.dd .dd-btn--primary { background: #E4572E; color: #FFFFFF; }
.dd .dd-btn--primary:hover { background: #D44D25; }
.dd .dd-btn--ghost { color: var(--dd-ink); border: 1.5px solid var(--dd-btn-line); }
.dd .dd-btn--ghost:hover { border-color: var(--dd-ink); }
/* Launch message: part of the hero, separated by a hairline; status, «coming soon» and the platforms */
.dd-launch { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--dd-line); }
.dd .dd-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(--dd-muted); }
.dd-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #F5B82E; box-shadow: 0 0 0 4px rgba(245, 184, 46, .22); }
.dd .dd-soon-title { font: 800 var(--sh-fs-h3)/1.2 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; color: var(--dd-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 */
.dd-art-col { min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.dd .dd-avail { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.dd .dd-avail-label { margin: 0; font-weight: 700; font-size: var(--sh-fs-small); color: var(--dd-ink); }
.dd .dd-plats { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.dd .dd-plats li { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: var(--sh-fs-small); color: var(--dd-muted); }
.dd-plats .dd-ico { color: var(--dd-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) { .dd .dd-plats { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 32px; } }
@media (max-width: 560px) { .dd .dd-avail { flex-direction: column; align-items: flex-start; } .dd .dd-plats { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 32px; } }

/* Hero */
.dd-hero { padding: 72px 0 96px; }
/* Headline: on wide screens the phrase after the comma stays on one line */
@media (min-width: 561px) { .dd h1 .dd-nw { white-space: nowrap; } }
/* Wider text column so the hero headline stays within 2 lines on desktop (3 on phones) */
.dd-hero .dd-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.dd-hero-text { display: flex; flex-direction: column; gap: 22px; }
.dd-logo { width: min(300px, 70%); margin-left: -5%; }
.dd-hero h1 { font-size: var(--sh-fs-display); }
/* An iPad (.sh-tablet) on the left with two phones (.sh-phone) coming out of its right side; only size and position are set here */
.dd-hero-art { position: relative; display: flex; justify-content: flex-start; --dd-phone: clamp(84px, 7.4vw, 112px); padding-bottom: calc(var(--dd-phone) * .55); }
.dd-hero-art .dd-tab { --sh-tablet-w: clamp(300px, 38vw, 530px); margin-top: 6%; }
.dd-phones { position: absolute; right: -12%; bottom: 0; display: flex; align-items: flex-end; }
.dd-hero-art .sh-phone { --sh-phone-w: var(--dd-phone); flex: none; }
.dd-hero-art .dd-p1 { transform: translate(14%, -12%) rotate(-5deg); z-index: 1; }
.dd-hero-art .dd-p2 { --sh-phone-w: calc(var(--dd-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) { .dd-phones { right: -2%; } }

/* The challenge: same block as every section, heading on top and text below */
.dd-body { display: flex; flex-direction: column; gap: 18px; }
.dd-challenge .dd-lead:first-child { color: var(--dd-ink); }

/* What we built */
.dd .dd-pieces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 48px; }
.dd-piece { background: var(--dd-card); border: 1px solid var(--dd-line); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.dd-piece-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--dd-accent); color: var(--dd-on-accent); }
.dd-piece p { color: var(--dd-muted); }
.dd .dd-piece .dd-platforms { font-size: var(--sh-fs-small); font-weight: 700; color: var(--dd-ink); margin-top: auto; }
.dd-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.dd-app { display: flex; flex-direction: column; gap: 8px; }
.dd-app img { margin-bottom: 14px; border-radius: 24px; box-shadow: 0 14px 26px -18px rgba(30, 27, 24, .45); aspect-ratio: 432 / 560; object-fit: cover; width: 100%; }
.dd .dd-app h3 { font-size: var(--sh-fs-h3); display: flex; align-items: center; gap: 8px; }
.dd-app h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--dd-bg), 0 0 0 2.5px var(--dd-line); }
.dd-app p { color: var(--dd-muted); line-height: 1.5; }

/* Band: highlights on ink */
.dd-band { background: var(--dd-band); color: var(--dd-band-ink); }
.dd-band .dd-kicker { color: #F5B82E; }
.dd-band .dd-lead { color: var(--dd-band-muted); }

/* What we did */
.dd-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.dd-tag { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--dd-ink); font-weight: 700; font-size: var(--sh-fs-label); }

/* Highlights */
.dd-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dd-highlight { border: 1px solid rgba(255, 241, 214, .14); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; background: rgba(255, 241, 214, .04); }
.dd-highlight p { color: var(--dd-band-muted); }
.dd-highlight-top { display: flex; justify-content: space-between; align-items: center; color: #F5B82E; }
.dd-highlight-top span { font: 800 var(--sh-fs-label)/1 "Bricolage Grotesque", sans-serif; letter-spacing: .04em; }

/* In numbers */
.dd-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.dd-number { border-top: 2px solid var(--dd-ink); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.dd-number b { font: 800 var(--sh-fs-display)/1 "Bricolage Grotesque", sans-serif; letter-spacing: -.04em; color: var(--dd-accent); }
.dd-number span { font-weight: 700; }
.dd-number small { color: var(--dd-muted); font-size: var(--sh-fs-small); line-height: 1.45; }

/* Close */
.dd-close .dd-wrap { background: var(--dd-accent); color: var(--dd-on-accent); border-radius: 36px; padding: 56px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.dd-close p { margin-top: 12px; font-size: var(--sh-fs-lead); }
/* On the orange, white: a white button and a white outline */
.dd .dd-close .dd-btn--dark { background: #FFFFFF; color: #1E1B18; }
.dd .dd-close .dd-btn--dark:hover { background: #FFF1D6; }
.dd .dd-close .dd-btn--line { color: #FFFFFF; border: 1.5px solid #FFFFFF; }
.dd .dd-close .dd-btn--line:hover { background: rgba(255, 255, 255, .14); }

/* Credits */
.dd-credits { padding: 32px 0 40px; font-size: var(--sh-fs-small); color: var(--dd-muted); }
.dd-credits .dd-wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Narrow screens */
@media (max-width: 900px) {
  .dd-hero .dd-wrap { grid-template-columns: 1fr; }
  .dd-hero-art { --dd-phone: clamp(84px, 21vw, 140px); }
  .dd-phones { right: 0; }
  .dd-hero-art .dd-tab { --sh-tablet-w: min(80vw, 460px); margin-top: 4%; }
  .dd .dd-pieces, .dd-highlights { grid-template-columns: 1fr; }
  .dd-apps, .dd-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dd-section { padding: 72px 0; }
  .dd-hero { padding: 40px 0 72px; }
  .dd-close .dd-wrap { padding: 36px 26px; }
}
@media (prefers-reduced-motion: no-preference) {
  .dd-btn { transition: background-color .2s, border-color .2s; }
}

/* The challenge: three problems, then the answer */
.dd .dd-problems { margin-bottom: 32px; }
.dd-problems .dd-piece-ico { background: var(--dd-ink); color: var(--dd-bg); }
.dd .dd-after { color: var(--dd-ink); }

/* The journey of an order: one card per app, with its icon and color */
.dd-journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.dd-stop { background: var(--dd-card); border: 1px solid var(--dd-line); border-top: 6px solid var(--c); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.dd-stop-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.dd .dd-stop-top img { width: 52px; height: 52px; border-radius: 14px; }
.dd-stop-top span { font: 800 var(--sh-fs-h3)/1 "Bricolage Grotesque", sans-serif; color: var(--dd-muted); }
.dd-stop p { color: var(--dd-muted); line-height: 1.5; }
@media (max-width: 1180px) { .dd-journey { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .dd-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dd-journey { grid-template-columns: 1fr; } }
