/* ReelMachi marketing site.
   Design tokens mirror mobile/src/lib/theme.ts so the site and the app read as
   one product. Structure follows a single centred column with no navigation:
   icon -> wordmark -> tagline -> store buttons -> device panel -> legal footer. */

:root {
  --bg: #09090b;
  --surface: #141416;
  --surface-raised: #1c1c1f;
  --border: #26262b;
  --text: #fafafa;
  --text-dim: #9b9ba3;
  --text-faint: #5d5d66;
  --accent: #d7ff3e;
  --accent-text: #0a0a0a;
  --radius: 20px;
  --radius-sm: 12px;
  --measure: 62ch;

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A single soft lime glow behind the hero. Sits behind everything and never
   intercepts pointer events. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60rem 34rem at 50% -8rem, rgba(215, 255, 62, 0.09), transparent 70%),
    radial-gradient(40rem 28rem at 82% 12%, rgba(32, 138, 239, 0.07), transparent 72%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) 1.25rem 3rem;
}

a {
  color: var(--text);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.appicon {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  display: block;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 18px 40px -18px rgba(215, 255, 62, 0.45),
    0 8px 24px -12px rgba(0, 0, 0, 0.8);
}

.wordmark {
  margin: 1.1rem 0 0;
  font-size: clamp(2.6rem, 8vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.tagline {
  margin: 0.35rem 0 0;
  color: var(--accent);
  font-size: clamp(1.05rem, 3.4vw, 1.4rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.lede {
  margin: 1.1rem auto 0;
  max-width: 34rem;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.4vw, 1.08rem);
  text-wrap: balance;
}

/* ---------- store buttons ---------- */

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

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 56px;
  padding: 0 1.3rem;
  border-radius: 999px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.store:hover {
  color: var(--text);
  background: #232327;
  border-color: #3a3a42;
}

.store:active {
  transform: translateY(1px);
}

.store svg {
  flex: none;
}

.store .lines {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store .small {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.store .big {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.store[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.store[aria-disabled="true"]:hover {
  background: var(--surface-raised);
  border-color: var(--border);
}

.soon {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- device panel ---------- */

.panel {
  position: relative;
  /* Hug the devices rather than stretching to the full column, so the mockups
     stay the focal point instead of floating in dead space. */
  max-width: 46rem;
  margin: clamp(2.5rem, 7vw, 4.5rem) auto 0;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(215, 255, 62, 0.1), transparent 65%),
    linear-gradient(180deg, #121216 0%, #0c0c0f 100%);
  padding: clamp(1.75rem, 5vw, 3.25rem) 1rem;
  overflow: hidden;
}

.phones {
  display: flex;
  gap: clamp(1rem, 4vw, 2.5rem);
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.phone {
  width: 248px;
  flex: none;
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(160deg, #2c2c33, #17171a);
  box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.95);
}

.screen {
  position: relative;
  border-radius: 26px;
  background: var(--bg);
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
  padding: 12px 11px 0;
  font-size: 10px;
}

.notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 15px;
  border-radius: 999px;
  background: #000;
}

.srow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.stitle {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
}

.ssub {
  color: var(--text-faint);
  font-size: 9.5px;
  margin-top: 3px;
}

.label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 13px 0 7px;
  font-size: 10.5px;
  font-weight: 700;
}

.num {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text-dim);
  font-size: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.thumbs {
  display: flex;
  gap: 6px;
}

.thumb {
  flex: 1;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: linear-gradient(150deg, #1d1d21, #141417);
  position: relative;
}

.thumb.sel {
  border-color: var(--accent);
  border-width: 2px;
}

.thumb.sel::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.cta {
  margin: auto 0 14px;
  height: 32px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  font-size: 10.5px;
  display: grid;
  place-items: center;
}

.result {
  flex: 1;
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(215, 255, 62, 0.14), transparent 60%),
    linear-gradient(170deg, #1b1b20, #101013);
}

.banner {
  margin: 10px 0 14px;
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 9px;
  text-align: center;
}

.panel-note {
  margin: 1.5rem auto 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.78rem;
}

/* ---------- feature strip ---------- */

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.point {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #101013, #0c0c0f);
  padding: 1.25rem 1.35rem;
}

.point h3 {
  margin: 0.7rem 0 0.3rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.point p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.point .ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(215, 255, 62, 0.12);
  border: 1px solid rgba(215, 255, 62, 0.25);
}

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

.rule {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: clamp(2.75rem, 7vw, 4.5rem) auto 0;
  max-width: 34rem;
}

footer {
  text-align: center;
  padding-top: 1.75rem;
}

.flinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  justify-content: center;
  font-size: 0.92rem;
}

.flinks a {
  color: var(--text-dim);
  text-decoration: none;
}

.flinks a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.fnote {
  margin-top: 0.9rem;
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ---------- legal documents ---------- */

.doc {
  max-width: var(--measure);
  margin: 0 auto;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.back:hover {
  color: var(--accent);
}

.doc h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.35rem;
}

.updated {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.78rem;
  margin: 0 0 2.5rem;
}

.doc h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 2.4rem 0 0.6rem;
  padding-top: 0.4rem;
  scroll-margin-top: 2rem;
}

.doc h3 {
  font-size: 1rem;
  margin: 1.6rem 0 0.4rem;
}

.doc p,
.doc li {
  color: #cfcfd6;
}

.doc li {
  margin-bottom: 0.45rem;
}

.doc strong {
  color: var(--text);
}

.doc a {
  color: var(--accent);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 0;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.doc thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.9rem 0.5rem 0;
}

.doc tbody td {
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0.9rem 0.65rem 0;
  vertical-align: top;
  color: #cfcfd6;
}

@media (min-width: 40rem) {
  .doc table {
    display: table;
    white-space: normal;
  }
}

/* A clearly-marked placeholder the operator must replace before launch. */
.todo {
  border: 1px dashed #7a6a2e;
  background: rgba(215, 255, 62, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0;
  color: #e4e4b8;
  font-size: 0.88rem;
}

.todo strong {
  color: var(--accent);
}

.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}
