/* FORMATION site. One stylesheet for every page: a dark arena, cyan light and chrome type, after the landing-page mockup. */
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-700.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }

:root {
  --bg: #040914;
  --bg-2: #071328;
  --panel: rgba(10, 22, 44, 0.72);
  --line: rgba(80, 160, 255, 0.18);
  --ink: #eef5ff;
  --muted: #9fb0c8;
  --cyan: #1ee3f0;
  --blue: #2b7bff;
  --glow: rgba(30, 227, 240, 0.35);
  --radius: 16px;
  --wrap: 1180px;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, #0b2a5a 0%, transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--cyan); }
a:hover { color: #8ff4fb; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header: logo left, links in the middle, App Store right ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(4, 9, 20, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 24px rgba(30, 140, 255, 0.12);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 92px; }
.brand { flex: none; display: block; }
/* The logo is on black: "screen" lets the dark header show through it. */
.brand img { height: 74px; width: auto; mix-blend-mode: screen; }
.nav { flex: 1; display: flex; justify-content: center; gap: 34px; }
.nav a { position: relative; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; padding: 8px 0; white-space: nowrap; }
.nav a:hover { color: var(--cyan); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px;
  background: var(--cyan); box-shadow: 0 0 12px var(--glow);
}
.store-link { flex: none; display: block; }
.store-link img { height: 64px; width: auto; transition: transform 0.15s, filter 0.15s; }
.store-link:hover img { transform: translateY(-1px); filter: brightness(1.12); }
.store-link.soon { cursor: default; }
.menu-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font: 600 15px var(--font); padding: 8px 14px; cursor: pointer;
}

@media (max-width: 980px) {
  .site-header .wrap { flex-wrap: wrap; gap: 10px 16px; min-height: 64px; padding-block: 6px; }
  .brand img { height: 40px; }
  .site-header .store-link { display: none; }
  .menu-toggle { display: block; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding-bottom: 10px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-top: 1px solid var(--line); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--cyan); }
}

/* ---------- Home hero: the mockup art ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); }
.hero-art { position: relative; max-width: 1672px; margin: 0 auto; }
.hero-art img { width: 100%; height: auto; }
/* The App Store button drawn into the art, made clickable. */
.hero-art .art-store { position: absolute; left: 4.3%; top: 79.2%; width: 23%; height: 12.5%; border-radius: 999px; }
.hero-text { display: none; }
.hero-mobile-art { display: none; }

@media (max-width: 760px) {
  .hero-art { display: none; }
  .hero-text { display: block; padding: 34px 0 10px; }
  .hero-mobile-art { display: block; width: 100%; height: auto; }
}

.headline {
  font-weight: 900; font-style: italic; letter-spacing: -0.01em; line-height: 1.05;
  font-size: clamp(38px, 9vw, 64px); margin: 0 0 10px;
  background: linear-gradient(180deg, #ffffff 0%, #c8d3e2 55%, #8e9bb0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.headline em { font-style: italic; background: linear-gradient(180deg, #8ff8ff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subhead { font-size: 18px; color: var(--ink); margin: 0 0 18px; font-style: italic; }

.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { position: relative; padding-left: 36px; margin-bottom: 10px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #04121a;
  background: radial-gradient(circle at 35% 30%, #9ffbff, var(--cyan)); box-shadow: 0 0 10px var(--glow);
}
.checks small { display: block; color: var(--muted); font-size: 14px; }

.store-big img { width: 260px; height: auto; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.eyebrow { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cyan); margin: 0 0 10px; }
h2 { font-size: clamp(28px, 3.8vw, 40px); font-weight: 800; line-height: 1.2; text-align: center; margin: 0 0 18px; }
.section-lede { text-align: center; color: var(--muted); max-width: 700px; margin: 0 auto 40px; }
.page-head { padding: 64px 0 24px; text-align: center; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 900; font-style: italic; margin: 0 0 10px; }
.page-head p { color: var(--muted); max-width: 680px; margin: 0 auto; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card a { color: inherit; text-decoration: none; }
.feature-card .more { display: inline-block; margin-top: 12px; color: var(--cyan); font-weight: 600; font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(30, 227, 240, 0.12); color: var(--cyan); font-size: 20px; box-shadow: inset 0 0 0 1px rgba(30, 227, 240, 0.25); }

.cta { text-align: center; }
.cta .store-big { display: inline-block; margin-top: 8px; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  color: #04121a; background: var(--cyan); box-shadow: 0 0 20px var(--glow);
}
.button:hover { color: #04121a; filter: brightness(1.08); }
.button.ghost { color: var(--ink); background: transparent; border: 1px solid var(--line); box-shadow: none; }

/* ---------- Features page: text beside an iPad ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature-row:nth-of-type(even) .feature-copy { order: 2; }
.feature-copy h2 { text-align: left; margin-bottom: 12px; }
.feature-copy p { color: var(--muted); }
.feature-copy .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(30, 227, 240, 0.35); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.feature-copy ul { padding-left: 20px; color: var(--muted); margin: 12px 0 0; }
.feature-copy li { margin-bottom: 6px; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 26px; padding: 44px 0; }
  .feature-row:nth-of-type(even) .feature-copy { order: 0; }
}

/* An iPad drawn in CSS, landscape. The screen holds a video, GIF or image, or a placeholder until there is one. */
.ipad {
  position: relative; aspect-ratio: 1194 / 834; padding: 3.2%;
  border-radius: 6% / 8.6%;
  background: linear-gradient(145deg, #2a3242, #0d1119 40%, #1b2230);
  box-shadow: 0 0 0 2px #3a4456, 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 60px rgba(30, 140, 255, 0.25);
}
.ipad::before { content: ""; position: absolute; left: 1.6%; top: 50%; width: 0.7%; aspect-ratio: 1; border-radius: 50%; background: #1d2533; transform: translateY(-50%); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 2.6% / 3.7%; overflow: hidden; background: #050a14; }
.screen img, .screen video { width: 100%; height: 100%; object-fit: cover; }
.screen .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  color: var(--muted); font-size: 15px;
  background: radial-gradient(circle at 50% 40%, rgba(30, 227, 240, 0.10), transparent 60%),
              repeating-linear-gradient(90deg, transparent 0 39px, rgba(80, 160, 255, 0.06) 39px 40px),
              repeating-linear-gradient(0deg, transparent 0 39px, rgba(80, 160, 255, 0.06) 39px 40px);
}
.screen .placeholder strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 30px; font-weight: 800; margin: 4px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 18px; margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.plan li { margin-bottom: 4px; }
.plan.featured { border-color: rgba(30, 227, 240, 0.6); box-shadow: 0 0 30px var(--glow); }
.plans-note { color: var(--muted); text-align: center; font-size: 14px; margin-top: 24px; }

/* ---------- Tutorials ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.video { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame.empty { display: grid; place-items: center; color: var(--muted); font-size: 15px; text-align: center; padding: 16px; }
.video figcaption { margin-top: 10px; font-weight: 600; }
.video figcaption span { display: block; color: var(--muted); font-weight: 400; font-size: 15px; }

/* ---------- Text pages (privacy, terms, support) ---------- */
.doc { max-width: 800px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 900; font-style: italic; margin: 0 0 6px; }
.doc h2 { text-align: left; font-size: 22px; margin: 34px 0 8px; }
.doc .date { color: var(--muted); margin-bottom: 26px; }
.doc p, .doc li { color: #d5e0ee; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; }
.contact-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 24px 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Plans page: comparison table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 17px; font-weight: 800; vertical-align: bottom; }
.compare thead th span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.compare tbody th { text-align: left; font-weight: 600; color: var(--ink); }
.compare td { color: var(--muted); }
.compare td.yes { color: var(--cyan); font-weight: 700; font-size: 18px; }
.compare td.no { color: #4a5a72; }
.compare .featured-col { color: var(--cyan); }
