/* ============================================================
   CodingPepper — shared styles
   Warm, calm, minimal. Mobile-first.
   ============================================================ */

:root {
  --bg:            #f7f3ea;  /* warm cream page background   */
  --bg-soft:       #fbf8f1;  /* lighter cream for cards      */
  --card:          #ffffff;
  --ink:           #34302a;  /* warm near-black text         */
  --muted:         #7c7266;  /* muted warm grey-brown        */
  --accent:        #c17a4e;  /* terracotta (app accent)      */
  --accent-strong: #a8623a;
  --dark-btn:      #2c2823;  /* store buttons                */
  --border:        #ece4d6;  /* warm hairline                */
  --radius:        18px;
  --radius-sm:     12px;
  --shadow:        0 8px 30px rgba(60, 48, 36, .09);
  --shadow-sm:     0 3px 12px rgba(60, 48, 36, .07);
  --maxw:          720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Site header ---------- */
.site-header {
  padding: 20px 0 4px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.brand .pepper { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 48px 0 14px;
}
.hero .app-icon {
  width: 116px;
  height: 116px;
  margin: 0 auto 22px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero h1 {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.hero h1 .sub {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 6px;
}
.tagline {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 30ch;
  margin: 12px auto 0;
}

/* ---------- Store buttons ---------- */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 26px 0 6px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--dark-btn);
  color: #fff;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 14px;
  min-width: 176px;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-sm);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-btn--soon {
  background: #6f675d;
  opacity: .6;
  cursor: default;
  pointer-events: none;
}
.store-btn--soon:hover { transform: none; box-shadow: var(--shadow-sm); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn .label { text-align: left; line-height: 1.15; }
.store-btn .label small {
  display: block;
  font-size: .68rem;
  opacity: .8;
  font-weight: 400;
  letter-spacing: .02em;
}
.store-btn .label strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Sections ---------- */
section { padding: 30px 0; }
.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.lead {
  font-size: 1.12rem;
  color: var(--ink);
  margin: 0 auto;
}
.section-note {
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Feature list ---------- */
.features {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.features li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.features .tri {
  color: var(--accent);
  font-size: .8rem;
  line-height: 1.7;
  flex: none;
}
.features b { font-weight: 600; }
.features span.txt { color: var(--muted); }
.features span.txt b { color: var(--ink); }

/* ---------- How it works ---------- */
.howto {
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 620px) {
  .howto { grid-template-columns: 1fr 1fr; }
}
.howto .shot {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  max-width: 300px;
  margin: 0 auto;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}
@media (min-width: 620px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: var(--card);
}
.gallery img { aspect-ratio: 9 / 16; object-fit: cover; width: 100%; }

/* ---------- Shorts ---------- */
.shorts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  justify-items: center;
  max-width: var(--maxw);
  margin: 20px auto 0;
  padding: 4px 20px 10px;
}
.short {
  position: relative;
  width: 100%;
  max-width: 300px;
  /* padding keeps the 9:16 box on browsers without aspect-ratio support */
  height: 0;
  padding-top: 177.78%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #16130f;
}
.short iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* swallows taps so the clip can't be paused or seeked (scrolling still works) */
.short::after {
  content: "";
  position: absolute;
  inset: 0;
}
@media (min-width: 620px) {
  .shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .short:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- Contact card ---------- */
.contact {
  text-align: center;
}
.contact a.email {
  display: inline-block;
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
  word-break: break-word;
}
.contact a.email:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  margin-bottom: 14px;
}
.site-footer nav a {
  color: var(--ink);
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--accent-strong); text-decoration: underline; }
.site-footer .copy { font-size: .85rem; opacity: .8; }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal {
  padding: 30px 0 10px;
}
.legal h1 {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.legal .updated {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 26px;
}
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal p { color: var(--ink); }
.back-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

/* ---------- App hub (root index) ---------- */
.hub-hero { text-align: center; padding: 46px 0 10px; }
.hub-hero h1 { font-size: 2.1rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.hub-hero p { color: var(--muted); font-size: 1.12rem; margin: 0; }
.app-cards {
  display: grid;
  gap: 16px;
  margin: 30px 0;
}
.app-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.app-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.app-card img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.app-card h3 { margin: 0 0 2px; font-size: 1.15rem; letter-spacing: -0.01em; }
.app-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.app-card .chev { margin-left: auto; color: var(--accent); font-size: 1.4rem; }
