/*
 * ShopFrix landing page — Claymorphism.
 *
 * The palette is lifted from the app (src/constants/theme.ts and global.css) so
 * the landing page and app.shopfrix.com read as one product.
 *
 * Claymorphism here is one recipe applied consistently: a soft outer drop
 * shadow lifts the element off the page, and two inset shadows — a light one
 * from the top-left, a darker one from the bottom-right — round its edges into
 * a puffy, extruded shape. Large radii finish the effect. Everything else is
 * ordinary CSS; there is no framework on this page, which is what keeps it at a
 * few kilobytes and instantly readable by a crawler.
 *
 * The page is deliberately light-only. Clay depends on a light surface catching
 * a highlight from one side and a shadow from the other; the dark rendering was
 * a different look rather than the same one after dark, so the brand cream is
 * what every visitor gets.
 */

:root {
  /* Brand — same values the app uses */
  --canvas: #fff5ec;
  --canvas-deep: #ffeade;
  --surface: #fffaf5;
  --ink: #3a2516;
  --muted: #7c6557;
  --primary: #f28a2e;
  --primary-dark: #c86416;
  --accent: #ffb26b;
  --accent-soft: #ffe8d3;
  --success: #2c6e44;
  --success-soft: #dbeedc;

  /* Claymorphism: one shadow recipe, three sizes */
  --clay-sm:
    4px 4px 12px rgba(184, 93, 21, 0.14),
    inset -3px -3px 7px rgba(200, 100, 22, 0.10),
    inset 3px 3px 7px rgba(255, 255, 255, 0.90);
  --clay:
    10px 10px 28px rgba(184, 93, 21, 0.16),
    inset -6px -6px 14px rgba(200, 100, 22, 0.10),
    inset 6px 6px 14px rgba(255, 255, 255, 0.92);
  --clay-lg:
    18px 18px 44px rgba(184, 93, 21, 0.18),
    inset -8px -8px 20px rgba(200, 100, 22, 0.10),
    inset 8px 8px 20px rgba(255, 255, 255, 0.94);
  /* Pressed: the insets swap sides so the element reads as pushed in */
  --clay-pressed:
    2px 2px 6px rgba(184, 93, 21, 0.12),
    inset 6px 6px 14px rgba(200, 100, 22, 0.16),
    inset -6px -6px 14px rgba(255, 255, 255, 0.80);

  --radius-xs: 8px;
  --radius-sm: 18px;
  --radius: 28px;
  --radius-lg: 40px;

  /* The page is light in every environment: the brand is a warm cream and the
     claymorphism shadows are tuned for it. Declaring the scheme stops the
     browser darkening form controls, scrollbars and the like around it. */
  color-scheme: light;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
  --shell: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 12% -8%, var(--accent-soft) 0%, transparent 62%),
    radial-gradient(900px 520px at 92% 4%, rgba(255, 178, 107, 0.30) 0%, transparent 58%),
    var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-dark);
}

:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 3px;
  border-radius: 12px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

/* ---------------------------------------------------------------- clay bits */

.clay {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--clay);
}

.clay-lg {
  border-radius: var(--radius-lg);
  box-shadow: var(--clay-lg);
}

.clay-sm {
  border-radius: var(--radius-sm);
  box-shadow: var(--clay-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1rem 1.9rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent), var(--primary));
  color: #fff;
  box-shadow:
    10px 10px 24px rgba(184, 93, 21, 0.30),
    inset -5px -5px 12px rgba(160, 78, 12, 0.35),
    inset 5px 5px 12px rgba(255, 255, 255, 0.45);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: var(--clay-sm);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: var(--clay-pressed);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow: var(--clay-sm);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

/* ------------------------------------------------------------------ layout */

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.9rem 0;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.55rem 0.9rem 0.55rem 1.4rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--clay-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 32px;
  filter: grayscale(0.2) brightness(1.4) contrast(0.9);
  height: 32px;
  object-fit: contain;
}

.brand em {
  font-style: normal;
  color: var(--primary);
}

.nav-links {
  display: none;
  gap: 1.4rem;
  margin-inline-start: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.lang-dropdown {
  position: relative;
  margin-inline-start: auto;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-xs);
  transition: all 150ms ease;
}

.lang-btn:hover,
.lang-dropdown.open .lang-btn {
  color: var(--primary-dark);
  background: var(--canvas);
}

.lang-chevron {
  transition: transform 150ms ease;
  opacity: 0.7;
}

.lang-dropdown.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--clay);
  list-style: none;
  padding: 0.4rem;
  margin: 0;
  min-width: 130px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
  border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  transition: background 100ms ease;
}

.lang-option:hover {
  background: var(--canvas);
}

.lang-option.selected {
  color: var(--primary-dark);
  background: color-mix(in srgb, var(--primary) 15%, transparent);
}

.nav .btn {
  /* margin-inline-start: auto; */
  padding: 0.68rem 1.3rem;
  font-size: 0.92rem;
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
  margin-inline-start: auto;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
    align-items: center;
  }

  .lang-dropdown {
    margin-inline-start: 0;
  }

  .nav .btn {
    margin-inline-start: 0;
  }
}

@media (max-width: 859px) {
  .hamburger {
    display: block;
  }

  .nav {
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 1.5rem;
    box-shadow: var(--clay);
    border-radius: var(--radius-sm);
    flex-direction: column;
    gap: 1.5rem;
    z-index: 50;
    border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  }

  .nav-links.open {
    display: flex;
  }
}

section {
  padding: 4.5rem 0;
}

section>.shell>h2 {
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 0.7rem;
}

.section-intro {
  max-width: var(--measure);
  color: var(--muted);
  margin: 0 0 2.4rem;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 1.9rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--clay);
}

.card h3 {
  margin: 0.9rem 0 0.55rem;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .micro-cta {
  display: inline-block;
  margin-top: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.card .micro-cta::after {
  content: " →";
}

.icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--accent-soft);
  box-shadow: var(--clay-sm);
  font-size: 1.55rem;
}

/* -------------------------------------------------------------------- hero */

.hero {
  padding: 3rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.033em;
  margin: 1.1rem 0 1.1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary-dark);
}

.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 1.1rem;
}

.hero-body {
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.hero-note {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* A mock of the app's compare screen, drawn in CSS — no image to download. */
.mock {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--clay-lg);
}

.mock-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  margin-top: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--canvas);
  box-shadow: var(--clay-sm);
}

.mock-row strong {
  display: block;
  font-size: 0.98rem;
}

.mock-row small {
  color: var(--muted);
}

.mock-row .price {
  margin-inline-start: auto;
  text-align: right;
  font-weight: 800;
  color: var(--primary-dark);
  white-space: nowrap;
}

.mock-row .price small {
  display: block;
  font-weight: 600;
  color: var(--muted);
}

.mock-row.best {
  background: var(--success-soft);
}

.mock-badge {
  display: inline-block;
  margin-bottom: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(145deg, var(--success), var(--success));
  color: #fff;
  box-shadow: var(--clay-sm);
}

/* Chain logos vary wildly in shape — Carrefour is a wide wordmark, Tigros a
   square mark — so they sit in a fixed box and are scaled to fit rather than
   cropped or stretched. */
.mock-logo {
  flex: none;
  width: 46px;
  height: 46px;
  padding: 5px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  box-shadow: var(--clay-sm);
}


.mock figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.mock {
  margin: 0;
}

/* ------------------------------------------------------------- chain row */

.chains {
  padding: 0 0 3.5rem;
}

.chains-label {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.chain-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--clay);
}

.chain-logos img {
  height: 34px;
  width: auto;
  object-fit: contain;
  /* The logos are other companies' brands and are here to say "covered", not to
     compete with the page — a light desaturation keeps them from shouting. */
  filter: grayscale(0.15);
}

.chains-more {
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
}

/* --------------------------------------------------------------- stats -- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 1rem;
}

.stats div {
  display: flex;
  flex-direction: column;
}

.stats strong {
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--ink);
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------- steps */

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  position: relative;
  padding: 2.4rem 1.6rem 1.7rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--clay);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 1.6rem;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--primary));
  box-shadow: 6px 6px 16px rgba(184, 93, 21, 0.3), inset 3px 3px 8px rgba(255, 255, 255, 0.4);
}

.step h3 {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* -------------------------------------------------------------- comparison */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--clay);
  background: var(--surface);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
}

caption {
  padding: 1.4rem 1.6rem 0;
  text-align: left;
  color: var(--muted);
  font-size: 0.95rem;
}

th,
td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 18%, transparent);
}

thead th {
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

tbody th {
  font-weight: 600;
}

td.yes {
  color: var(--success);
  font-weight: 700;
}

td.no {
  color: var(--muted);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------------------------------------------------------------- benefits */

.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 760px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

.benefits li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.05rem 1.3rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--clay-sm);
}

.benefits li::before {
  content: "✓";
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--success-soft);
  color: var(--success);
  font-weight: 800;
  font-size: 0.85rem;
}

.benefits strong {
  display: block;
}

.benefits span {
  color: var(--muted);
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------- faq */

details.faq {
  padding: 1.35rem 1.6rem;
  margin-bottom: 0.9rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--clay-sm);
}

details.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.03rem;
  list-style: none;
  display: flex;
  gap: 1rem;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::after {
  content: "+";
  margin-inline-start: auto;
  color: var(--primary-dark);
  font-size: 1.4rem;
  line-height: 1;
}

details.faq[open] summary::after {
  content: "–";
}

details.faq p {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

/* -------------------------------------------------------------------- ctas */

.cta-band {
  padding: 3rem 2rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--clay-lg);
}

.cta-band h2 {
  margin: 0.7rem 0 0.8rem;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  letter-spacing: -0.02em;
}

.cta-band p {
  max-width: 56ch;
  margin: 0 auto 1.9rem;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.risk-reversal {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------ footer */

footer.site {
  padding: 3rem 0 4rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

footer.site h3 {
  color: var(--ink);
  font-size: 0.95rem;
  margin: 0 0 0.8rem;
}

footer.site ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

footer.site a {
  color: var(--muted);
  text-decoration: none;
}

footer.site a:hover {
  color: var(--primary-dark);
}

.footer-legal {
  margin-top: 2.6rem;
  font-size: 0.85rem;
}

/* ------------------------------------------------------------- mobile tweaks */

@media (max-width: 600px) {
  .nav {
    padding: 0.4rem 0.5rem 0.4rem 0.6rem;
    gap: 0.5rem;
  }

  .pill {
    margin-bottom: 1.5rem;
  }

  .brand {
    gap: 0.35rem;
    font-size: 1.1rem;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .nav .btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
  }

  .lang-btn {
    padding: 0.3rem 0.4rem;
    font-size: 0.85rem;
  }

  section {
    padding: 3rem 0;
  }

  .hero {
    padding: 2rem 0 3rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .mock {
    padding: 1.2rem;
  }

  .mock-row {
    gap: 0.6rem;
    padding: 0.75rem 0.85rem;
  }

  .mock-row span:not(.price) {
    max-width: calc(100% - 130px);
  }

  .mock-logo {
    width: 40px;
    height: 40px;
    padding: 4px;
  }

  .mock-row strong {
    font-size: 0.9rem;
  }

  .mock-row small {
    font-size: 0.75rem;
  }

  .mock-row .price {
    font-size: 0.9rem;
  }

  .cta-band {
    padding: 2rem 1.2rem;
  }

  .step {
    padding: 2.2rem 1.4rem 1.4rem;
  }
}

@media (max-width: 400px) {
  .brand span {
    display: none;
  }

  .mock-row {
    flex-wrap: nowrap;
    gap: 0.4rem;
    padding: 0.6rem 0.7rem;
  }

  .mock-logo {
    width: 36px;
    height: 36px;
    padding: 4px;
  }

  .mock-row strong {
    font-size: 0.85rem;
  }

  .mock-row small {
    font-size: 0.7rem;
  }

  .mock-row .price {
    font-size: 0.85rem;
    width: auto;
    margin-top: 0;
    text-align: right;
  }

  .mock-row span:not(.price) {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}