/* =============================================================
 * Let's Play Shop — landing page styles
 * Palette echoes the coffee-shop theme baked into the app:
 * cream backgrounds, warm brown ink, terra-cotta chip accents.
 * ============================================================= */

:root {
  --bg: #f9ebd9;
  --bg-2: #f2dcc0;
  --card: #ffffff;
  --ink: #2b1a10;
  --ink-2: #5b3c25;
  --ink-3: #8a6a52;
  --accent: #8b4a1d;
  --accent-2: #b26630;
  --accent-3: #d98c4d;
  --line: rgba(139, 74, 29, 0.16);
  --shadow-sm: 0 2px 6px rgba(46, 20, 5, 0.08);
  --shadow-md: 0 10px 24px rgba(46, 20, 5, 0.10);
  --shadow-lg: 0 24px 48px rgba(46, 20, 5, 0.14);
  --radius: 18px;
  --radius-sm: 10px;
  --max-w: 1120px;
  --font-rounded:
    ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:
    ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-rounded);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%) no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
a:hover {
  color: var(--accent-2);
  border-bottom-color: currentColor;
}

/* -------------------------------------------------------------
 * Header
 * ------------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  gap: 24px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: none;
}
.wordmark img {
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.wordmark:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
  font-weight: 600;
}
.site-nav a {
  color: var(--ink-2);
}
.site-nav a:hover {
  color: var(--accent);
}

/* -------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  max-width: var(--max-w);
  margin: 24px auto 72px;
  padding: 40px 24px 24px;
}

.hero-copy .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: rgba(139, 74, 29, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 900;
  margin: 0 0 20px;
  color: var(--ink);
}

.hero-copy .lede {
  font-size: 19px;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 620px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 16px;
  border-radius: 14px;
  border-bottom: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
}
.btn.primary {
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #fff8ee;
  box-shadow: var(--shadow-md);
}
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn.primary.disabled {
  background: linear-gradient(180deg, #b8987a 0%, #8f7259 100%);
  cursor: not-allowed;
  opacity: 0.9;
}
.btn.primary.disabled:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}
.btn.ghost {
  color: var(--accent);
  background: transparent;
}
.btn.ghost:hover {
  color: var(--accent-2);
}

.hero-copy .micro {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
}
.hero-copy .micro a {
  color: var(--ink-2);
  border-bottom: 1px dashed var(--ink-3);
}

.hero-art {
  display: flex;
  justify-content: center;
}
.hero-art img {
  width: 320px;
  height: 320px;
  border-radius: 60px;
  box-shadow: var(--shadow-lg);
}

/* -------------------------------------------------------------
 * Sections
 * ------------------------------------------------------------- */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}

.section-subtitle {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0 0 40px;
  max-width: 680px;
}

/* -------------------------------------------------------------
 * Features grid
 * ------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 10px;
  line-height: 1;
}

.feature h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink);
}

.feature p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}

/* -------------------------------------------------------------
 * Shops grid
 * ------------------------------------------------------------- */
.shops-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.shops-grid li {
  background: var(--card);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.shop-emoji {
  font-size: 22px;
  line-height: 1;
  filter: saturate(1.05);
}

/* -------------------------------------------------------------
 * Screenshots (paired device layout)
 * ------------------------------------------------------------- */
.devices-row {
  display: flex;
  gap: 32px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
}

.device {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.device img {
  display: block;
  height: auto;
  border-radius: 28px;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.device-ipad img {
  width: 100%;
  max-width: 520px;
  border-radius: 32px;
}

.device-iphone img {
  width: 100%;
  max-width: 260px;
  border-radius: 40px;
}

.device figcaption {
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.01em;
}

/* -------------------------------------------------------------
 * Legal (privacy + support share layout)
 * ------------------------------------------------------------- */
.legal {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  border: 1px solid var(--line);
  max-width: 800px;
}
.legal .legal-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  margin: -12px 0 24px;
}
.legal h3 {
  font-size: 19px;
  margin: 28px 0 8px;
  color: var(--ink);
}
.legal p,
.legal li {
  color: var(--ink-2);
  font-size: 16px;
}
.legal ul {
  padding-left: 20px;
}
.legal ul li {
  margin: 6px 0;
}

/* -------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------- */
.site-footer {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding: 32px 24px 48px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.site-footer p {
  margin: 4px 0;
}
.site-footer a {
  color: var(--ink-2);
}

/* -------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------- */
@media (max-width: 780px) {
  .site-nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
    margin-bottom: 40px;
    padding-top: 24px;
  }
  .hero-art {
    order: -1;
  }
  .hero-art img {
    width: 200px;
    height: 200px;
    border-radius: 40px;
  }
  .section {
    padding: 56px 20px;
  }
}
