/* Colours copied from Assets/_Cuarenta/UI/Theme.uss, which stays their source of truth: the
   site is served apart from the Unity app and cannot read its stylesheets. */
:root {
  --paper: #FCFBF8;
  --surface: #FFFFFF;
  --line: #E8EAEE;
  --line-soft: #F0F2F4;
  --tint: #E6F7EE;
  --ink: #1C2A3A;
  --muted: #5F6B79;
  /* The app's green fill (#2BA36A) is 3.1:1 on the paper and holds white at 3.2:1, so the site
     uses its text green for every green it draws. */
  --action-ink: #157A4A;
  --on-action: #FFFFFF;
  /* Marigold is a fill only; text in its family takes brass-ink. */
  --brass: #FFAA1F;
  --brass-ink: #95600A;
  --brass-wash: rgba(255, 170, 31, 0.08);
  --brass-edge: rgba(255, 170, 31, 0.45);
  --shadow: rgba(28, 42, 58, 0.16);

  --gutter: 16px;
  --measure: 40rem;
  --wide: 68rem;
  --radius: 14px;

  color-scheme: light;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a { color: var(--action-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--action-ink); outline-offset: 3px; border-radius: 4px; }

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

/* Header: the wordmark as the app sets it, and the language switch. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--action-ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
}
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 6px var(--shadow); }

.langs { font-size: 0.875rem; color: var(--muted); white-space: nowrap; }
.langs a { color: var(--muted); }
.langs [aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 75% 35%, var(--tint) 0%, transparent 70%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brass-ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 7vw, 3.25rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 32rem;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.95rem;
}
.soon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass);
}

.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.stores a {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  border-radius: 12px;
  background: var(--action-ink);
  color: var(--on-action);
  border-bottom: 3px solid var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.phone {
  justify-self: center;
  width: min(78vw, 300px);
  border-radius: 34px;
  padding: 8px;
  background: var(--ink);
  box-shadow: 0 24px 48px -20px rgba(28, 42, 58, 0.55);
}
.phone img { border-radius: 27px; width: 100%; aspect-ratio: 660 / 1434; object-fit: cover; }

/* Sections */
section { padding: 3.5rem 0; }

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.2;
  font-weight: 600;
  text-wrap: balance;
}

.modes { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.modes li {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.35rem;
}
.modes h3 { margin: 0 0 0.35rem; font-size: 1.05rem; font-weight: 600; color: var(--action-ink); letter-spacing: 0.02em; }
.modes p { margin: 0; color: var(--muted); }

.rules ol { max-width: var(--measure); }
.rules ol { margin: 0; padding: 0; list-style: none; counter-reset: rule; }
.rules li {
  counter-increment: rule;
  position: relative;
  padding: 0 0 1.1rem 2.75rem;
}
.rules li::before {
  content: counter(rule);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brass-wash);
  border: 1px solid var(--brass-edge);
  color: var(--brass-ink);
  font-size: 0.85rem;
  font-weight: 600;
}
.rules b { font-weight: 600; }
.rules em { font-style: italic; color: var(--action-ink); }

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(62vw, 220px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem var(--gutter) 1rem;
  margin: 0 calc(-1 * var(--gutter));
  list-style: none;
}
.shots li { scroll-snap-align: center; }
.shots img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px -14px var(--shadow);
  aspect-ratio: 660 / 1434;
  object-fit: cover;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line-soft);
  padding: 2rem 0 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 0.75rem; }
.foot a { color: var(--muted); }
.foot p { margin: 0; }

/* The privacy policy, the terms and the 404 page: one reading column, header included. */
.narrow { --wide: 44rem; }
.doc { padding-top: 0.5rem; padding-bottom: 4rem; }
.doc h1 { font-size: clamp(1.6rem, 5vw, 2rem); margin-bottom: 0.25rem; }
.doc h2 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }
.doc .effective { color: var(--muted); margin: 0 0 1.5rem; font-size: 0.9rem; }
.doc li { margin: 0.3rem 0; }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; padding-top: 3rem; padding-bottom: 4.5rem; }
  .modes { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0.25rem 0 0; }
}
