/* Marketing site of emptymyfridge.com. Colours come from src/theme.ts (light and dark palettes);
   the font is the app's Quicksand. Plain CSS, no build step: the worker in ../worker.js serves this folder. */
@font-face {
  font-family: "Quicksand";
  src: url("fonts/Quicksand-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("fonts/Quicksand-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("fonts/Quicksand-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --brand: #ffcb05;
  --primary: #6f5d00;
  --bg: #ffffff;
  --surface: #f7f2e6;
  --pale: #fff4cc;
  --text: #1c1b1b;
  --muted: #5f5e5e;
  --border: #cdc6b4;
  --on-brand: #1c1b1b;
  --badge-bg: #000000;
  --badge-text: #ffffff;
  --hero-bg: var(--brand);
  --hero-muted: #3d3500;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #ffcb05;
    --bg: #16140f;
    --surface: #211e16;
    --pale: #3a3113;
    --text: #f3f0e7;
    --muted: #b9b2a3;
    --border: #3d3830;
    --badge-bg: #000000;
    --badge-text: #ffffff;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.6 "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Microsoft YaHei", sans-serif;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --------------------------------------------------------------------------------- */
.top,
main {
  overflow: clip;
}
.top {
  background: var(--hero-bg);
  color: var(--on-brand);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}
.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.15);
}
.langs {
  display: flex;
  gap: 4px;
  font-weight: 600;
  font-size: 15px;
}
.langs a {
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 999px;
}
.langs a[aria-current="true"] {
  background: rgb(0 0 0 / 0.1);
}

/* --- Hero ----------------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 0;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.01em;
}
.hero p.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--hero-muted);
  margin: 20px 0 28px;
  max-width: 34em;
}
.hero .note {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--hero-muted);
}
.hero-phone {
  align-self: end;
  justify-self: center;
  position: relative;
}
.hero-phone::before {
  content: "";
  position: absolute;
  inset: 12% -30% auto auto;
  width: 120%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.28);
  z-index: 0;
}
.hero-phone .back {
  position: absolute;
  z-index: 1;
  left: -46%;
  bottom: -40px;
  transform: rotate(-8deg) scale(0.88);
  transform-origin: bottom right;
  max-height: 520px;
  overflow: hidden;
}
.hero-phone .front {
  position: relative;
  z-index: 2;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
  max-height: 560px;
  overflow: hidden;
}

/* --- Store badges --------------------------------------------------------------------------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  padding: 9px 18px 9px 14px;
  border-radius: 12px;
  background: var(--badge-bg);
  color: var(--badge-text);
  text-decoration: none;
  border: 1px solid #a6a6a6;
  transition: transform 0.15s ease;
}
.badge:hover {
  transform: translateY(-2px);
}
.badge svg {
  width: 28px;
  height: 28px;
  flex: none;
}
.badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.badge small {
  font-size: 12px;
  font-weight: 600;
}
.badge strong {
  font-size: 21px;
  font-weight: 700;
}

/* --- Phone frame ---------------------------------------------------------------------------- */
.phone {
  width: min(280px, 72vw);
  border: 10px solid #1c1b1b;
  border-radius: 44px;
  background: #1c1b1b;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.18);
}
.phone img {
  border-radius: 34px;
  width: 100%;
  height: auto;
}

/* --- Features ------------------------------------------------------------------------------- */
.features {
  padding: 72px 0 24px;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 28px 0;
}
.feature:nth-child(even) .copy {
  order: 2;
}
.feature .shot {
  justify-self: center;
  position: relative;
}
.feature .shot::before {
  content: "";
  position: absolute;
  width: 115%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.3;
  z-index: 0;
}
.feature .shot .phone {
  position: relative;
  z-index: 1;
}
.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.feature h2 {
  font-size: clamp(30px, 4vw, 44px);
}
.feature h2 mark {
  background: linear-gradient(transparent 58%, var(--brand) 58%);
  color: inherit;
  padding: 0 2px;
}
.feature p {
  font-size: 19px;
  color: var(--muted);
  margin: 18px 0 0;
  max-width: 28em;
}

/* --- Extras grid ---------------------------------------------------------------------------- */
.extras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 0 80px;
}
.card {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
}
.card .ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand);
  color: #1c1b1b;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.card .ico svg {
  width: 26px;
  height: 26px;
}
.card h3 {
  font-size: 22px;
}
.card p {
  color: var(--muted);
  margin: 10px 0 0;
}

/* --- Final call to action ------------------------------------------------------------------- */
.cta {
  background: var(--hero-bg);
  color: var(--on-brand);
  text-align: center;
  padding: 72px 0;
}
.cta img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 24px;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.15);
}
.cta h2 {
  font-size: clamp(30px, 4.5vw, 46px);
}
.cta p {
  color: var(--hero-muted);
  font-size: 19px;
  margin: 14px auto 28px;
  max-width: 30em;
}
.cta .badges {
  justify-content: center;
}

/* --- Footer --------------------------------------------------------------------------------- */
footer {
  padding: 32px 0 40px;
  font-size: 15px;
  color: var(--muted);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* --- Small screens -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero .badges {
    justify-content: center;
  }
  .hero-phone .front {
    max-height: 420px;
  }
  .hero-phone .back {
    left: -38%;
    max-height: 380px;
  }
  .features {
    padding-top: 40px;
  }
  .feature {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
    padding: 32px 0;
  }
  .feature:nth-child(even) .copy {
    order: 0;
  }
  .feature p {
    margin-left: auto;
    margin-right: auto;
  }
  .feature .phone {
    width: min(260px, 70vw);
  }
  .extras {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .badge {
    min-width: 0;
    flex: 1 1 100%;
    justify-content: center;
  }
  .langs a {
    padding: 4px 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .badge {
    transition: none;
  }
}
