/* FairyFace — shared styles
   Pastel/kawaii aesthetic matching the iOS app (Direction A). */

:root {
  --brand: #FF9FBA;
  --brand-2: #C9A8F0;
  --bg: #FFF8F3;
  --card: #FFFFFF;
  --ink: #5A4A55;
  --ink-soft: #A693A0;
  --line: #F2E6EC;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(255, 159, 186, 0.18);
  --max: 1080px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255, 248, 243, 0.78);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 20px; color: var(--ink);
}
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; font-size: 18px;
}
.nav a { color: var(--ink-soft); font-weight: 600; margin-left: 22px; font-size: 15px; }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 88px 0 64px; }
.hero .pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(201, 168, 240, 0.18); color: var(--brand-2);
  font-weight: 700; font-size: 13px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px); line-height: 1.1; margin: 0 0 18px;
  letter-spacing: -0.02em; color: var(--ink);
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: clamp(16px, 2.4vw, 20px); color: var(--ink-soft); max-width: 620px; margin: 0 auto 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: var(--shadow); border: none; cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }

/* ---------- Watch face showcase ----------
   Mirrors the iOS WatchFacePreviewView: Apple Watch screen is a 396×484
   squircle (continuous rounded rect, corner radius = 27% of the width) with
   the preview image scaled to fill and clipped to that shape. */
.showcase { padding: 8px 0 56px; }
.faces {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  max-width: 820px; margin: 0 auto;
}
.face { text-align: center; }
.watch-screen {
  /* 396 : 484 watch screen. 27% of width as px → vertical % = 27% × 396/484. */
  aspect-ratio: 396 / 484;
  width: 100%;
  border-radius: 27% / 22.1%;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 159, 186, 0.25);
}
.watch-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face .name { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); }

@media (max-width: 760px) {
  .faces { grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 380px; }
}

/* ---------- Features ---------- */
.section { padding: 56px 0; }
.section h2 { text-align: center; font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; color: var(--ink); }
.section .lede { text-align: center; color: var(--ink-soft); max-width: 560px; margin: 0 auto 44px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--line); box-shadow: 0 8px 26px rgba(90, 74, 85, 0.05);
}
.card .ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(255,159,186,0.18), rgba(201,168,240,0.18));
}
.card h3 { margin: 0 0 8px; font-size: 19px; color: var(--ink); }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { text-align: center; padding: 20px; }
.step .num {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta {
  margin: 24px auto; text-align: center; padding: 56px 24px;
  background: linear-gradient(135deg, rgba(255,159,186,0.14), rgba(201,168,240,0.14));
  border-radius: 28px; border: 1px solid var(--line);
}
.cta h2 { margin: 0 0 14px; }
.cta p { color: var(--ink-soft); margin: 0 0 26px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.site-footer .links a { color: var(--ink-soft); margin-right: 18px; font-size: 14px; font-weight: 600; }
.site-footer .links a:hover { color: var(--ink); text-decoration: none; }
.socials a { font-size: 14px; color: var(--ink-soft); margin-left: 16px; font-weight: 600; }
.copyright { color: var(--ink-soft); font-size: 13px; width: 100%; }

/* ---------- Legal pages ---------- */
.legal { padding: 48px 0 24px; max-width: 760px; }
.legal h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 6px; color: var(--ink); }
.legal .updated { color: var(--ink-soft); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; color: var(--ink); }
.legal h3 { font-size: 17px; margin: 22px 0 8px; color: var(--ink); }
.legal p, .legal li { color: #6b5963; font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal a { font-weight: 600; }

@media (max-width: 760px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .nav { display: none; }
}
