/* ───────────────────────────────────────────────
   builtbyjoao.com - styles
   Minimalista, claro e friendly.
─────────────────────────────────────────────── */

:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --ink: #1c1a17;
  --ink-soft: #6b675f;
  --ink-faint: #9a958b;
  --line: #ece8df;
  --accent: #1c1a17;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(28, 26, 23, 0.04), 0 8px 24px rgba(28, 26, 23, 0.06);
  --shadow-hover: 0 2px 4px rgba(28, 26, 23, 0.06), 0 16px 40px rgba(28, 26, 23, 0.10);
  --maxw: 980px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

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

/* ── Header ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand .dot { color: var(--ink-faint); font-weight: 400; }
.header-link {
  font-size: 15px;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.header-link:hover { color: var(--ink); }

/* ── Sections ───────────────────────────── */
main { min-height: 70vh; }
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }

/* ── Hero / About ───────────────────────── */
.hero { padding: 44px 0 24px; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 12px;
  max-width: 720px;
}
.hero p {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0;
}

/* ── Section heading ────────────────────── */
.section-head { margin-bottom: 32px; }
.section-head h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 6px;
}
.section-head p { color: var(--ink-soft); margin: 0; }

/* ── Product grid ───────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #e0dbcf;
}
.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.card-top { display: flex; align-items: center; justify-content: space-between; }

.logo {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 30px;
  flex-shrink: 0;
  line-height: 1;
  overflow: hidden;
}
.logo.logo-img { background: transparent !important; }
.logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag.free { background: #eaf5ea; color: #2f7d32; }
.tag.paid { background: #f1eee6; color: #6b675f; }

.card h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; font-weight: 700; }
.card .tagline { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card-cta {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .15s ease, color .15s ease;
}
.card:hover .card-cta { gap: 10px; color: var(--ink); }

/* ── Detail page ────────────────────────── */
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  transition: color .15s ease;
}
.back:hover { color: var(--ink); }

.detail-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.detail-title {
  display: flex;
  align-items: center;
  gap: 18px;
}
.detail-hero .logo { width: 72px; height: 72px; border-radius: 20px; font-size: 40px; }
.detail-name { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.detail-hero h1 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0;
  line-height: 1.05;
}
.detail-hero .tagline {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 680px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: transform .15s ease, opacity .15s ease;
}
.cta:hover { transform: translateY(-2px); opacity: .92; }

.problem-statement {
  margin: 36px 0 0;
  padding: 22px 26px;
  background: var(--accent-soft, #f1eee6);
  border-radius: var(--radius-sm);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--ink);
  max-width: 760px;
}

.detail-body { margin-top: 40px; display: grid; gap: 48px; }
.block h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 0 0 12px;
  font-weight: 700;
}
.block p { margin: 0; font-size: 17px; color: #2e2b26; max-width: 680px; }
.block p + p { margin-top: 14px; }
.features {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  max-width: 680px;
  display: grid;
  gap: 10px;
}
.features li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  color: #2e2b26;
  line-height: 1.5;
}
.features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ink-faint);
}

/* Screenshots */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.shot {
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot span {
  position: absolute;
  bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255,255,255,.75);
  padding: 4px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.shot .glyph { font-size: 42px; opacity: .35; }

/* Real screenshots: keep the full phone frame, no cropping */
.shot-img {
  aspect-ratio: 1170 / 2532;
  background: #f6f4ee;
}
.shot-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Video */
.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.video-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #2a2723, #16140f);
  color: #fff;
  text-align: center;
  gap: 8px;
}
.video-placeholder .play {
  width: 64px; height: 64px; border-radius: 999px;
  background: rgba(255,255,255,.14);
  display: grid; place-items: center;
  font-size: 24px;
  margin: 0 auto 12px;
  border: 1px solid rgba(255,255,255,.25);
}
.video-placeholder small { color: rgba(255,255,255,.6); display:block; margin-top: 4px; }

/* ── Contact ────────────────────────────── */
.contact {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.contact-inner { text-align: center; padding: 72px 0; }
.contact h2 {
  font-size: 28px; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 10px;
}
.contact p { color: var(--ink-soft); margin: 0 0 28px; }
.contact-links {
  display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}
.pill {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.pill:hover { transform: translateY(-2px); border-color: #d8d3c7; background: #fff; }

/* ── Footer ─────────────────────────────── */
footer.foot {
  text-align: center;
  padding: 32px 0;
  color: var(--ink-faint);
  font-size: 14px;
}

/* ── View transitions ───────────────────── */
.view { animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .hero { padding: 32px 0 20px; }
  .section { padding: 48px 0; }
  .detail-hero .logo { width: 64px; height: 64px; font-size: 36px; }
}
