/* Family Album website: one stylesheet, no JavaScript. */

@font-face { font-family: 'Inter'; font-weight: 400 600; font-display: swap; src: url(fonts/inter.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-display: swap; src: url(fonts/poppins-800.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --ink: #10284A;
  --accent: #3A6FD8;
  --muted: #5B6B82;
  --line: #E8ECF2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; line-height: 1.4; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* Header */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.lang { font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; }
.lang:hover { color: var(--ink); }

/* Hero */
.hero { background: linear-gradient(120deg, #DDEBFF 0%, #ECE4FF 50%, #FFE7DA 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 24px; min-height: 640px; }
.hero-text { padding-bottom: 48px; }
.app-icon { width: 96px; height: 96px; border-radius: 22%; box-shadow: 0 10px 30px -8px rgba(224, 96, 44, .45); }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); margin: 28px 0 18px; text-wrap: balance; }
.hero p { font-size: clamp(19px, 2vw, 24px); color: var(--accent); font-weight: 600; margin-bottom: 36px; line-height: 1.35; max-width: 24em; text-wrap: pretty; }
.badge { display: inline-block; }
.badge img { height: 52px; width: auto; }

/* Phones */
.phone { background: #fff; border-radius: 48px; padding: 10px; box-shadow: 0 30px 60px -20px rgba(16, 40, 74, .28), 0 0 0 1px rgba(16, 40, 74, .05); }
.phone img { width: 100%; border-radius: 38px; }

.fan { position: relative; height: 640px; }
.fan .phone { position: absolute; width: 46%; max-width: 270px; }
.fan .p1 { left: 3%; top: 110px; transform: rotate(-8deg); }
.fan .p2 { left: 50%; top: 50px; z-index: 2; transform: translateX(-50%); }
.fan .p3 { right: 3%; top: 110px; transform: rotate(8deg); }

/* Features */
.features { padding: 110px 0 40px; }
.features h2 { font-size: clamp(30px, 4vw, 48px); text-wrap: balance; text-align: center; margin-bottom: 56px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; }
.card { border-radius: 32px; padding: 36px 36px 0; overflow: hidden; height: 440px; display: flex; flex-direction: column; }
.card h3 { font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 8px; }
.card p { text-wrap: pretty; font-size: 17px; font-weight: 600; margin-bottom: 28px; }
.card .phone { width: 78%; max-width: 270px; margin: auto auto 0; border-radius: 40px 40px 0 0; padding-bottom: 0; height: 290px; overflow: hidden; }
.card .phone img { border-radius: 30px 30px 0 0; }
.blue   { background: #DDEBFF; color: #10284A; } .blue p   { color: #3A6FD8; }
.green  { background: #E2F2E4; color: #123A22; } .green p  { color: #2E8A4E; }
.orange { background: #FFE7DA; color: #4A1D0C; } .orange p { color: #C4501F; }

/* Footer */
footer { padding: 48px 0; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

/* Tablet & phone */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; text-align: center; }
  .hero-text { padding: 24px 0 0; }
  .app-icon { margin: 0 auto; width: 80px; height: 80px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .fan { height: 420px; margin-top: 16px; }
  .fan .phone { width: 220px; }
  .fan .p1 { left: calc(50% - 250px); top: 70px; }
  .fan .p3 { right: calc(50% - 250px); top: 70px; }
  .features { padding-top: 72px; }
  .cards { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .card { height: 400px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .nav { padding: 20px 0; }
  .fan { height: 380px; }
  .fan .phone { width: 200px; }
  .fan .p1 { left: -40px; }
  .fan .p3 { right: -40px; }
  .card { padding: 28px 24px 0; }
  footer .wrap { flex-direction: column; align-items: center; text-align: center; }
}
