/* Fabra Studios. Product-led and centred (after Sana on Mobbin): a short headline, then
   BrickPal's real screens from its design canvas, then quiet supporting sections. */
:root {
  --bg: #ffffff;
  --ink: #0d0d0f;
  --muted: #6e6e73;
  --line: #0d0d0f14;
  --tint: #f5f5f7;
  --accent: #0a84ff;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --ink: #f4f4f5;
    --muted: #9a9aa0;
    --line: #ffffff17;
    --tint: #161618;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-inline: 20px;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  margin-inline: auto;
  padding-block: 22px;
  font-size: 15px;
}
.brand { color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { color: var(--muted); }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }

/* Hero */
.hero {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(56px, 10vw, 112px) 24px;
  text-align: center;
}
.eyebrow { margin-bottom: 14px; color: var(--accent); font-size: 15px; font-weight: 500; }
.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.sub {
  max-width: 34em;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
  text-wrap: pretty;
}

/* BrickPal showcase */
.showcase {
  max-width: 1080px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding: clamp(40px, 6vw, 72px) 20px clamp(48px, 6vw, 80px);
  border-radius: 32px;
  background: var(--tint);
  text-align: center;
}
.showcase h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.05; }
.showcase-tight { padding-top: clamp(32px, 5vw, 56px); }

.phones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2vw, 28px);
  margin-block: clamp(32px, 5vw, 56px);
}
.phone {
  width: clamp(110px, 24vw, 260px);
  filter: drop-shadow(0 30px 40px #0000002e);
}
.phone-main { width: clamp(132px, 28vw, 300px); z-index: 1; }
.phone-side:first-child { transform: perspective(1200px) rotateY(16deg) translateX(6%); }
.phone-side:last-child { transform: perspective(1200px) rotateY(-16deg) translateX(-6%); }

.lede { max-width: 36em; margin-inline: auto; color: var(--muted); text-wrap: pretty; }
.lede strong { color: var(--ink); font-weight: 500; }

.button {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
}
.button:hover { text-decoration: none; opacity: .85; }

/* Sections */
.section {
  max-width: 1080px;
  margin-inline: auto;
  padding-block: clamp(64px, 9vw, 112px) 0;
}
.section h2 {
  margin-bottom: 36px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-align: center;
}
.cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.cols h3 { font-size: 17px; font-weight: 600; }
.cols p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }

.narrow { max-width: 680px; }
.narrow h2 { text-align: left; margin-bottom: 14px; font-size: 26px; }
.prose { display: grid; gap: 12px; color: var(--muted); }

.contact { text-align: center; }
.contact h2 { margin-bottom: 0; }
.note { max-width: 34em; margin: 20px auto 0; color: var(--muted); font-size: 15px; }

/* Legal documents */
.doc { color: var(--muted); padding-top: 24px; }
.doc h2 { margin: 36px 0 10px; color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; text-align: left; }
.doc p + p { margin-top: 12px; }

/* Footer */
.footer {
  max-width: 1080px;
  margin: clamp(80px, 10vw, 128px) auto 0;
  padding-block: 28px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 14px; font-size: 14px; }
.footer nav a { color: var(--ink); }
.footer p + p { margin-top: 4px; }

@media (max-width: 760px) {
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase { border-radius: 24px; margin-inline: -8px; }
}
@media (max-width: 440px) {
  .cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
