/* Zigami — zigami.app
 *
 * The site has to look like the game, so every colour here is sampled from what the game
 * actually renders: the near-black the board sits on, the warm cream of folded paper, Tuck's
 * teal, and the amber the tutorial cards use for a fold that costs you the tile.
 *
 * Committed to ONE dark world rather than offering a light theme. The game is a dark,
 * atmospheric thing and a cream-coloured version of this page would be a different product.
 * That makes `color-scheme` and an explicit background mandatory, not optional — without them
 * a browser in light mode paints its own ground under our type.
 */

:root {
  color-scheme: dark;

  --ink:        #0f1014;   /* the board's ground */
  --ink-2:      #16181f;
  --ink-3:      #1e212a;
  --paper:      #f2eee5;   /* folded paper, the brightest tile state */
  --paper-dim:  #b9b4a9;
  --muted:      #8b909c;
  --teal:       #3ad2c8;   /* Tuck */
  --amber:      #f2a93b;   /* the cost of a wrong hop */
  --line:       #272b36;

  --measure: 34rem;        /* ~65 characters at this body size */
  --pad: clamp(1.25rem, 5vw, 2.5rem);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--paper); }

/* A visible focus ring, on a dark ground, that does not rely on the browser default. */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(68rem, 100%); margin-inline: auto; padding-inline: var(--pad); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 20, "WONK" 1;
}

h1 { font-size: clamp(2.5rem, 1.6rem + 4.4vw, 4.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
.lede { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); color: var(--paper-dim); }

/* ---------------------------------------------------------------- site header */

header.site {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.25rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem;
         color: var(--paper); text-decoration: none; font-weight: 600; letter-spacing: 0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
nav.site { display: flex; gap: 0.5rem; font-size: 0.95rem; }
/* ⚠️ Padded to a real tap target. These were ~20px tall -- fine with a mouse, poor with a thumb,
   and flagged by mobile-usability checks. The gap shrinks to compensate so the row still fits a
   narrow phone without wrapping. */
nav.site a {
  color: var(--muted); text-decoration: none;
  display: inline-flex; align-items: center;
  min-height: 44px; padding-inline: 0.55rem; border-radius: 8px;
}
nav.site a:hover { background: var(--ink-2); }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--paper); }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::after {            /* the art is scenery; the words have to win */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(15,16,20,.62) 0%, rgba(15,16,20,.88) 62%, var(--ink) 100%),
    url("/img/hero.jpg") center / cover no-repeat;
}
.hero-inner { padding-block: clamp(4rem, 10vw, 8.5rem) clamp(3rem, 7vw, 6rem); }

.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 1.2rem; font-weight: 600;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; transition: transform .16s ease, background-color .16s ease;
}
.btn-primary { background: var(--teal); color: #06231f; }
.btn-primary:hover { background: #5ee0d7; color: #06231f; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--paper-dim); }
.btn-ghost:hover { border-color: var(--muted); color: var(--paper); }

/* "Coming soon" is a STATE, not a button: it must not look pressable when it does nothing. */
.pending {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1.35rem; border-radius: 999px;
  border: 1px dashed var(--line); color: var(--paper-dim);
  font-size: 0.95rem;
}
.pending .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

/* ---------------------------------------------------------------- sections */

section { padding-block: clamp(3.5rem, 8vw, 6rem); }
section + section { border-top: 1px solid var(--line); }
.section-lede { color: var(--paper-dim); }

.grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 46rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.5rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--paper-dim); font-size: 0.97rem; max-width: none; }

/* The honest-claims band. This is the product's actual differentiator, so it gets the accent. */
.pledge {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line); border-left: 3px solid var(--teal);
  border-radius: 14px; padding: clamp(1.5rem, 4vw, 2.25rem);
}
.pledge ul { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.pledge li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--paper-dim); }
.pledge li strong { color: var(--paper); font-weight: 600; }
.tick { color: var(--teal); flex: none; font-weight: 700; }

/* Screenshots. Real device frames would be a lie about aspect; these are the real captures. */
.shots { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); }
.shot img { width: 100%; }
.shot figcaption { padding: 0.85rem 1rem; font-size: 0.87rem; color: var(--muted); }

/* Price */
.price { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: stretch; margin-top: 1.75rem; }
.price > div {
  flex: 1 1 15rem; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.4rem;
}
.price .amount { font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--paper); }
.price .note { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0 0; max-width: none; }

/* ---------------------------------------------------------------- footer */

footer.site {
  border-top: 1px solid var(--line); padding-block: 2.5rem 3.5rem;
  color: var(--muted); font-size: 0.9rem;
}
footer.site a {
  color: var(--paper-dim); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
}
footer.site a:hover { color: var(--paper); }
.foot-row { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }
.foot-links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- prose pages */

.prose { padding-block: clamp(2.5rem, 6vw, 4rem); }
.prose h2 { margin-top: 2.25rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
.prose th { color: var(--paper); font-weight: 600; }
.prose td { color: var(--paper-dim); }
.prose .table-scroll { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
