/* www.ordarat.fyi: the customer app's "Garden" look (packages/ui theme.dart,
   AppLook.garden): deep green and lime on a soft grey-green page, white cards,
   pill buttons, Readex Pro. Written for phones first, right to left first;
   logical properties (inline-start/end) mirror it for English. */

@font-face { font-family: "Readex Pro"; font-weight: 400; font-display: swap; src: url(assets/fonts/readex-pro-400.woff2) format("woff2"); }
@font-face { font-family: "Readex Pro"; font-weight: 500; font-display: swap; src: url(assets/fonts/readex-pro-500.woff2) format("woff2"); }
@font-face { font-family: "Readex Pro"; font-weight: 700; font-display: swap; src: url(assets/fonts/readex-pro-700.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --green: #0F4D3C;
  --green-deep: #0A3529;
  --green-ink: #06281F;
  --green-soft: #E3EFE7;
  --lime: #C9F27A;
  --canvas: #F3F5EF;
  --card: #FFFFFF;
  --sand: #E9EEE4;
  --line: #DCE2D6;
  --ink: #14201B;
  --ink-soft: #5E6B62;
  --on-green: #FFFFFFDB;
  --radius: 24px;
  --gutter: 16px;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.75 "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  overflow-wrap: break-word;
}
body:lang(en) { line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.3; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--lime); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
[dir="rtl"] .ic--flip { transform: scaleX(-1); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 10;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header ------------------------------------------------------------- */
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 700; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.pill-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 18px;
  border-radius: 999px; background: var(--card); color: var(--green);
  font-size: 16px; font-weight: 500; text-decoration: none;
}
.pill-link:hover { background: var(--green-soft); }

/* Hero --------------------------------------------------------------- */
.hero__panel {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 28px 16px 0;
  border-radius: 32px;
  background: var(--green); color: #fff;
}
/* The soft circle from the app's "Order again" card. */
.hero__panel::before {
  content: ""; position: absolute; z-index: -1;
  inset-inline-end: -45%; bottom: -30%;
  width: 115%; aspect-ratio: 1; border-radius: 50%;
  background: #FFFFFF0F;
}
.where {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; padding-inline-start: 10px;
  border-radius: 999px; background: #FFFFFF14; color: var(--lime);
  font-size: 15px; font-weight: 500;
}
.where .ic { width: 20px; height: 20px; }
.hero h1 { margin: 18px 0 14px; font-size: clamp(36px, 10vw, 64px); line-height: 1.22; }
.hero h1 span { color: var(--lime); }
.hero h1:lang(en) { font-size: clamp(32px, 9vw, 50px); }
.hero .lead { max-width: 33em; color: var(--on-green); font-size: 18px; }

/* The store badges: Apple's and Google's own artwork, same height, App Store
   first, at least a quarter of their height apart and from anything else. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.stores a { display: block; border-radius: 9px; }
.stores img { width: auto; height: clamp(42px, 12vw, 54px); }
.stores-note { margin-top: 14px; color: var(--on-green); font-size: 15px; }

.hero__visual { position: relative; display: flex; justify-content: center; margin-top: 36px; }
.phone {
  width: min(74%, 300px); height: 430px; overflow: hidden;
  border: 10px solid var(--green-ink); border-bottom: 0; border-radius: 42px 42px 0 0;
  background: var(--canvas);
}
.phone img { width: 100%; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding-block: 9px; padding-inline: 14px 16px; border-radius: 999px;
  background: var(--card); color: var(--ink); box-shadow: 0 10px 30px #00000038;
  font-size: 15px; font-weight: 500; line-height: 1.3; white-space: nowrap;
}
.chip .ic { width: 22px; height: 22px; color: var(--green); }
.chip--cash { inset-inline-start: 0; top: 34%; }
.chip--way { inset-inline-end: 0; top: 64%; }
.mini-bar { display: flex; gap: 3px; }
.mini-bar i { width: 12px; height: 5px; border-radius: 3px; background: var(--line); }
.mini-bar i:nth-child(-n+3) { background: var(--green); }

/* Sections ----------------------------------------------------------- */
.section { padding-block: 64px 8px; }
.section h2 { font-size: clamp(28px, 7vw, 42px); }
.section__lead { max-width: 36em; margin-top: 10px; color: var(--ink-soft); font-size: 18px; }

/* Four steps, each with the order-progress bar from the app's tracking page. */
.steps { display: grid; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--card); }
.step__text { padding: 22px 22px 20px; }
.bar { display: flex; gap: 5px; margin-bottom: 18px; }
.bar i { flex: 1; height: 6px; border-radius: 3px; background: var(--sand); }
.step:nth-child(1) .bar i:nth-child(-n+1),
.step:nth-child(2) .bar i:nth-child(-n+2),
.step:nth-child(3) .bar i:nth-child(-n+3),
.step:nth-child(4) .bar i { background: var(--green); }
.step__num { color: var(--green); font-size: 15px; font-weight: 500; }
.step h3 { margin-top: 2px; font-size: 22px; }
.step p { margin-top: 6px; color: var(--ink-soft); }
.step__screen {
  margin-top: auto; display: flex; justify-content: center;
  height: 330px; overflow: hidden; padding-top: 22px;
  background: var(--sand);
}
.step__screen img {
  width: min(76%, 260px); align-self: flex-start;
  border: 6px solid var(--card); border-bottom: 0; border-radius: 28px 28px 0 0;
}

/* Features */
.features { display: grid; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; }
.feature { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--card); }
.bubble {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
}
.feature h3 { font-size: 19px; }
.feature p { margin-top: 4px; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }

/* Coming soon */
.soon { padding: 30px 22px; border-radius: 32px; background: var(--lime); color: var(--green); }
.tag {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: var(--green); color: var(--lime); font-size: 15px; font-weight: 500;
}
.soon h2 { margin-top: 14px; color: var(--green-deep); }
.soon p { max-width: 38em; margin-top: 10px; color: var(--green-deep); font-size: 18px; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.kinds li { padding: 6px 16px; border-radius: 999px; background: #FFFFFFB3; color: var(--green-deep); font-size: 16px; font-weight: 500; }

/* Partners */
.partners { display: grid; gap: 18px; padding: 28px 22px; border-radius: 32px; background: var(--card); }
.partners .bubble { width: 60px; height: 60px; }
.partners h2 { font-size: clamp(26px, 6vw, 34px); }
.partners p { margin-top: 8px; color: var(--ink-soft); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding-inline: 28px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: 17px; font-weight: 500; text-decoration: none;
}
.button:hover { background: var(--green-deep); }
.partners .small { margin-top: 12px; font-size: 16px; }

/* Footer ------------------------------------------------------------- */
.foot { margin-top: 64px; padding-block: 44px 36px; background: var(--green-deep); color: var(--on-green); font-size: 16px; }
.foot .brand { color: #fff; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 22px 0 0; padding: 0; list-style: none; }
.foot__links a { display: inline-block; padding-block: 8px; color: var(--lime); text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
.legal { margin-top: 26px; padding-top: 22px; border-top: 1px solid #FFFFFF26; color: #FFFFFFB8; font-size: 14px; line-height: 1.7; }
.legal p + p { margin-top: 6px; }

/* Wider screens ------------------------------------------------------ */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .hero__panel { padding: 44px 40px 0; }
  .stores { gap: 16px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .soon { padding: 44px 40px; }
  .partners { grid-template-columns: auto 1fr; align-items: start; padding: 36px 40px; }
}

@media (min-width: 960px) {
  .top__row { min-height: 88px; }
  .hero__panel {
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center;
    padding: 0 64px; border-radius: 40px;
  }
  .hero__panel::before { inset-inline-end: -18%; bottom: -55%; width: 70%; }
  .hero__text { padding-block: 80px; }
  .hero .lead { font-size: 20px; }
  .hero__visual { align-self: end; margin-top: 64px; }
  .phone { width: 320px; height: 540px; border-width: 12px; border-radius: 50px 50px 0 0; }
  .chip--cash { inset-inline-start: -4%; }
  .chip--way { inset-inline-end: -4%; }
  .section { padding-top: 96px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step__screen { height: 300px; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .soon { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; padding: 56px 64px; border-radius: 40px; }
  .kinds { justify-content: flex-end; max-width: 360px; }
  .partners { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 40px 48px; }
  .foot__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .foot__links { margin-top: 0; }
}

/* The "page not found" page (404.html), in both languages. */
.missing { gap: 36px; margin-top: 8px; }
.missing h1 { font-size: clamp(26px, 6vw, 34px); }
@media (min-width: 640px) { .missing { grid-template-columns: 1fr 1fr; } }
