/*
 * taste10.css -- the app's look, on top of the shared style.css.
 *
 * WHY A SECOND FILE
 *   style.css is shared by hand with perelli.ch, so both sites keep the same
 *   bones. On 27 September 2026 Patrick asked for taste10.com to look like the
 *   app itself: the food picture behind every screen under a cream veil, cards
 *   in see-through "milk glass", the app icon and the orange accent. That look
 *   belongs to the product, not to the company, so it lives here and loads
 *   after style.css on every taste10.com page; perelli.ch is untouched.
 *
 * LIGHT ONLY, ON PURPOSE
 *   The app has one look, cream and orange, and the painted pictures are made
 *   for a light background. style.css switches to dark with the system; these
 *   variables sit on `html body.site-taste10`, which outranks both of its
 *   blocks, so every taste10.com page stays light like the app.
 *
 * NO WEB FONTS
 *   The app uses the phone's own system font, and so does this. Nothing is
 *   downloaded from a font service, which also keeps visitors' addresses away
 *   from a third party (a real issue for Google Fonts under EU data law).
 */

html body.site-taste10 {
  color-scheme: light;
  --ink: #1f1a17;
  --ink-soft: #6b615a;
  --paper: #fffbf5;
  --surface: #ffffff;
  --line: #ede4da;
  --accent: #e8542f;
  --accent-deep: #c9431f;
  --honey: #fff0da;
  --glass: rgba(255, 251, 245, 0.82);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --shadow: 0 1px 2px rgba(31, 26, 23, 0.05), 0 8px 24px rgba(31, 26, 23, 0.06);
  /* Transparent, or the backdrop below (a negative z-index) would sit behind
     the body's own colour. The cream fallback is on <html> instead. */
  background: transparent;
  color: var(--ink);
}

html:has(> body.site-taste10) {
  background: #fffbf5;
}

/* ------------------------------------------------------------ backdrop */

/* The app's Backdrop: the food picture, fixed behind everything, under a
   cream veil strong enough that text on it never has to fight the photo.
   A fixed pseudo-element rather than background-attachment: fixed, which iOS
   Safari ignores. */
body.site-taste10::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--paper) url("/img/taste10-food-background.jpg") center top / cover no-repeat;
  background-image: image-set(url("/img/taste10-food-background.webp") type("image/webp"), url("/img/taste10-food-background.jpg") type("image/jpeg"));
}

body.site-taste10::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(255, 251, 245, 0.84);
}

/* -------------------------------------------------------------- header */

body.site-taste10 header.top {
  background: var(--glass);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body.site-taste10 header.top .wrap {
  align-items: center;
}

body.site-taste10 .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 1.25rem;
}

body.site-taste10 .brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

body.site-taste10 .brand span b {
  color: var(--accent);
  font-weight: 700;
}

/* Legal and support pages: the text sits on a milk-glass sheet, so long
   paragraphs read on cream, not on a photograph. */
body.site-taste10 main.wrap {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 2rem 1.5rem 2.5rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.site-taste10 footer.bottom {
  border-top: 0;
}

/* ----------------------------------------------------------- homepage */

body.home main.wrap {
  /* The homepage is not one sheet: its sections are. */
  background: none;
  border: 0;
  box-shadow: none;
  max-width: 68rem;
  padding: 0 1.25rem;
  margin-top: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.home .shell {
  display: grid;
  gap: 4.5rem;
  padding-block: 3rem 4rem;
}

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.25rem;
  padding-top: 1rem;
}

.hero .icon {
  width: 152px;
  height: 152px;
  border-radius: 34px;
  box-shadow: 0 10px 30px rgba(201, 67, 31, 0.28);
}

.tagline {
  margin: 0.5rem 0 0;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.tagline span {
  display: block;
  color: var(--accent);
}

.hero .lead {
  max-width: 36rem;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Deliberately not Apple's or Google's badges: those may only link to a live
   store page. These are replaced by the official badges on launch day. */
.store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 11.5rem;
  padding: 0.6rem 1.15rem 0.65rem;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  line-height: 1.2;
}

.store small {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.store strong {
  font-size: 1.12rem;
  font-weight: 600;
}

.early {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Section headings on the homepage */
.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.75rem;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Milk glass, as in the app */
.feature {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.5rem;
  padding: 1.25rem 1.35rem 1.4rem;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.feature img {
  width: 100%;
  max-width: 17rem;
  height: auto;
  aspect-ratio: 1;
  justify-self: center;
}

.feature h3 {
  margin: 0.25rem 0 0;
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
}

.feature .caption {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-soft);
}

.feature.wide {
  grid-template-columns: 11rem minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  gap: 1.25rem;
}

.feature.wide img {
  grid-row: span 4;
}

.feature.wide .text {
  display: grid;
  gap: 0.5rem;
}

/* How it works */
.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding: 1.75rem;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.how img {
  width: 100%;
  height: auto;
  max-width: 26rem;
  justify-self: center;
}

.how h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.how ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  gap: 0.75rem;
}

.how li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  font-weight: 600;
  font-size: 1.08rem;
}

.how li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.how .loop {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

/* The score explained, and the FAQ: text, on a sheet */
.sheet {
  max-width: 46rem;
  margin: 0 auto;
  width: 100%;
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.sheet h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0.5rem;
}

.score-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--honey);
  font-size: 0.95rem;
}

.score-chip b {
  color: var(--accent);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.faq h3 {
  margin: 1.4rem 0 0.35rem;
  font-size: 1.08rem;
}

.faq h3:first-of-type {
  margin-top: 0.5rem;
}

.faq p {
  margin: 0;
}

.note {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

body.home footer.bottom .wrap {
  max-width: 68rem;
}

@media (max-width: 760px) {
  body.home .shell {
    gap: 3rem;
    padding-block: 2rem 3rem;
  }

  .hero .icon {
    width: 120px;
    height: 120px;
    border-radius: 27px;
  }

  .cards.two,
  .feature.wide,
  .how {
    grid-template-columns: 1fr;
  }

  .feature.wide img {
    grid-row: auto;
    max-width: 15rem;
  }

  .how {
    padding: 1.25rem;
  }

  .sheet {
    padding: 1.35rem 1.2rem 1.25rem;
  }

  body.site-taste10 main.wrap:not(.home-main) {
    padding: 1.5rem 1.15rem 2rem;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body.site-taste10 header.top,
  body.site-taste10 main.wrap,
  .feature,
  .how,
  .sheet {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
