/* Famcrest website. Colors and type follow docs/DESIGN_SYSTEM.md. */

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --ink: #172536;
  --muted: #6B6762;
  --line: #EEE8E0;
  --soft: #EFEAF7;
  --button: #172536;
  --on-button: #FFFFFF;
  --gradient: linear-gradient(135deg, #FF9B43 0%, #F05278 50%, #7548CE 100%);
  --radius: 22px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141D29;
    --surface: #202B38;
    --ink: #F5F2ED;
    --muted: #ABA69F;
    --line: #2F3B49;
    --soft: #2C2A45;
    --button: #F5F2ED;
    --on-button: #172536;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid #7548CE; outline-offset: 3px; border-radius: 6px; }

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

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 16px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .button { color: var(--on-button); }
@media (max-width: 760px) { .nav .text-link { display: none; } }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--button); color: var(--on-button);
  font-weight: 600; font-size: 17px; text-decoration: none;
}
.button.small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--muted); margin: 0 0 18px; }
.eyebrow img { width: 22px; height: 22px; }
h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 700; }
.lede { font-size: 21px; color: var(--muted); margin: 0 0 32px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: 15px; color: var(--muted); margin: 16px 0 0; }

/* Phones */
.phone {
  position: relative; width: 100%; max-width: 330px; margin: 0 auto;
  border-radius: 48px; padding: 12px; background: #0E141C;
  box-shadow: 0 30px 80px -30px rgba(23, 37, 54, 0.45);
}
.phone img { border-radius: 38px; width: 100%; height: auto; }
.hero .phone { transform: rotate(2deg); }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 680px; margin: 0 0 48px; }
h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 700; }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 8px; font-weight: 600; }
.section-head p, .muted { color: var(--muted); }

.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.showcase figure { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.showcase figcaption h3 { margin-bottom: 6px; }
.showcase figcaption p { margin: 0; color: var(--muted); font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { margin: 0; color: var(--muted); font-size: 17px; }
.icon { width: 44px; height: 44px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.trust > div { display: flex; gap: 16px; }
.trust .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gradient); margin-top: 11px; }
.trust p { margin: 0; color: var(--muted); font-size: 17px; }

.pilot { text-align: center; }
.pilot .panel { background: var(--soft); border-radius: 32px; padding: 64px 32px; }
.pilot .panel img { width: 56px; height: 56px; margin: 0 auto 22px; }
.pilot p { color: var(--muted); max-width: 34em; margin: 0 auto 28px; }

/* Footer */
footer { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Plain pages */
.page { padding: 72px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); }
.page h2 { font-size: 26px; margin-top: 44px; }
.page p, .page li { color: var(--muted); }
.page li { margin-bottom: 8px; }
.page strong { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .phone { max-width: 300px; transform: none; }
  .showcase, .features { grid-template-columns: 1fr; }
  .showcase .phone { max-width: 300px; }
  .trust { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 40px; }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .lede { font-size: 19px; }
  .card { padding: 22px; }
  .pilot .panel { padding: 44px 20px; }
}
