/* Silhette landing page. System fonts only, no external requests. */

:root {
  --bg: #000;
  --surface-1: #1a1a1a;
  --surface-2: #222324;
  --surface-3: #2b2d2e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #fff;
  --text-2: #e8eaed;
  --muted: #9aa0a6;
  --accent: #8ab4f8;
  --brand-blue: 129, 196, 252;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 20px;
  --pad: clamp(1rem, 5vw, 2.5rem);
  --max: 1200px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

strong {
  color: var(--text);
  font-weight: 600;
}

::selection {
  background: rgba(138, 180, 248, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

.container {
  width: min(var(--max), 100% - 2 * var(--pad));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.75rem clamp(1rem, 4vw, 1.5rem);
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: #fff;
  color: #000;
}

.btn-primary[href]:hover {
  background: #e8eaed;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: var(--surface-3);
}

.btn[href]:active {
  transform: scale(0.98);
}

/* The App Store button has no link yet: it should not look clickable. */
a.btn:not([href]) {
  cursor: default;
}

.btn:focus-visible {
  outline-offset: 4px;
}

.btn-small {
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  border-radius: 12px;
  text-decoration: none;
}

.brand-mark {
  width: auto;
  height: 30px;
}

.brand-word {
  width: auto;
  height: 19px;
}

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-nav a:hover {
  background: var(--surface-1);
  color: var(--text);
}

@media (min-width: 760px) {
  .site-nav {
    display: block;
  }
}

/* ---------- Phone frame ---------- */

.phone {
  --pw: 260px;
  position: relative;
  flex: none;
  width: var(--pw);
  padding: calc(var(--pw) * 0.028);
  border-radius: calc(var(--pw) * 0.165);
  background: #0b0b0c;
  box-shadow:
    0 0 0 1px #3c4043,
    0 0 0 3px #111213,
    0 0 0 4px #2b2d2e,
    0 40px 90px -30px rgba(0, 0, 0, 0.95);
}

/* Dynamic Island */
.phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: calc(var(--pw) * 0.054);
  left: 50%;
  width: calc(var(--pw) * 0.3);
  height: calc(var(--pw) * 0.088);
  margin-left: calc(var(--pw) * -0.15);
  border-radius: 999px;
  background: #000;
}

.phone-screen {
  position: relative;
  aspect-ratio: 1179 / 2556;
  overflow: hidden;
  border-radius: calc(var(--pw) * 0.137);
  background: radial-gradient(120% 70% at 50% 42%, #1e2022 0%, #121314 50%, #08090a 100%);
}

.phone-shot {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  color: transparent; /* hides the alt text of a missing file; screen readers still read it */
}

/* The placeholder panel: the mark and the screen's name, like a launch screen.
   Shown while a screenshot loads and while the file is not there yet. The same
   rule draws it from the DOM (.phone-placeholder) and, without JS in Chrome and
   Firefox, over a broken image (img::after), so the two always match. */
.phone-placeholder,
.phone-shot::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--pw) * 0.33);
  background:
    url("img/mark.png") center calc(50% - var(--pw) * 0.06) / calc(var(--pw) * 0.17) auto no-repeat,
    radial-gradient(120% 70% at 50% 42%, #1e2022 0%, #121314 50%, #08090a 100%);
  color: var(--muted);
  font-family: var(--font);
  font-size: calc(var(--pw) * 0.056);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.phone-shot::after {
  content: attr(data-label);
  z-index: 1; /* above the browser's broken-image icon */
}

/* Set by main.js when a screenshot file is missing. */
.phone-screen.is-missing .phone-shot {
  opacity: 0;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(4rem, 9vw, 6.5rem);
}

.hero-inner {
  display: grid;
  gap: clamp(3.5rem, 9vw, 4.5rem);
  text-align: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 32px;
  margin-bottom: 1.5rem;
  padding: 0 0.875rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px #3c4043;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.75rem, 1rem + 8vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.5;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 22rem;
  margin-top: 2.25rem;
}

.hero-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hero-visual {
  --pw: clamp(232px, 66vw, 290px);
  position: relative;
  display: grid;
  place-items: center;
}

.hero-visual .phone {
  --pw: inherit;
  z-index: 1;
}

/* The signature: a slow brand-blue halo behind the phone. */
.hero-glow {
  position: absolute;
  z-index: 0;
  top: calc(50% - var(--pw) * 1.2);
  left: calc(50% - var(--pw) * 1.2);
  width: calc(var(--pw) * 2.4);
  height: calc(var(--pw) * 2.4);
  /* Every layer fades to zero inside the box, so the edge never shows while it turns. */
  background:
    radial-gradient(closest-side at 42% 44%, rgba(var(--brand-blue), 0.62), rgba(var(--brand-blue), 0.28) 45%, rgba(var(--brand-blue), 0.07) 78%, rgba(var(--brand-blue), 0)),
    radial-gradient(closest-side at 60% 58%, rgba(232, 240, 254, 0.2), rgba(232, 240, 254, 0.06) 55%, rgba(232, 240, 254, 0)),
    radial-gradient(closest-side, rgba(138, 180, 248, 0.18), rgba(138, 180, 248, 0.05) 70%, rgba(138, 180, 248, 0));
  pointer-events: none;
  animation:
    halo-turn 60s linear infinite,
    halo-breathe 9s ease-in-out infinite alternate;
}

@keyframes halo-turn {
  to {
    rotate: 360deg;
  }
}

@keyframes halo-breathe {
  from {
    opacity: 0.7;
    scale: 0.92;
  }
  to {
    opacity: 1;
    scale: 1.06;
  }
}

.hero.is-offscreen .hero-glow {
  animation-play-state: paused;
}

@media (min-width: 640px) {
  .cta-row {
    flex-direction: row;
    justify-content: center;
    width: auto;
    max-width: none;
  }
}

@media (min-width: 960px) {
  .hero {
    padding-top: clamp(3.5rem, 6vw, 5.5rem);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
    justify-items: stretch;
    gap: clamp(2rem, 5vw, 5rem);
    text-align: left;
  }

  .hero-copy {
    align-items: flex-start;
    max-width: none;
  }

  /* Always the two-line stack "Star in any / viral video." on wide screens. */
  .hero h1 {
    max-width: 8em;
    font-size: clamp(4.5rem, 8.2vw, 8rem);
  }

  .cta-row {
    justify-content: flex-start;
  }

  .hero-visual {
    --pw: clamp(260px, 24vw, 320px);
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(4.5rem, 11vw, 8.5rem);
}

.section--tight-top {
  padding-top: 0;
}

.section-head {
  max-width: 46rem;
}

.section-title {
  font-size: clamp(2.125rem, 1.35rem + 3.3vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-lede {
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}

.card {
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* How it works */

.steps {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.step {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: clamp(2rem, 6vw, 3.5rem);
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--accent);
  font-size: 1.125rem;
  font-weight: 600;
}

.step h3,
.mini h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.step p,
.mini p {
  margin-top: 0.5rem;
  color: var(--muted);
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Features */

.feature {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 5vw, 3rem);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.feature-copy h3 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.feature-copy p {
  max-width: 30rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.feature-media {
  display: grid;
  place-items: center;
  padding: clamp(2.25rem, 6vw, 3.5rem) 1rem;
  border-radius: var(--radius-xl);
  background: radial-gradient(90% 70% at 50% 28%, #222426 0%, #151617 55%, #0d0d0e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.feature-media .phone {
  --pw: clamp(210px, 58vw, 264px);
}

/* A picture of the app's edit box (decorative). */
.composer {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 24rem;
  margin-top: 1.75rem;
  padding: 1.125rem 0.75rem 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.composer-text {
  color: var(--text-2);
  font-weight: 500;
}

.composer-send {
  display: grid;
  place-items: center;
  align-self: flex-end;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #000;
}

.composer-send svg {
  width: 20px;
  height: 20px;
}

.mini-grid {
  display: grid;
  gap: 1rem;
  margin-top: clamp(3rem, 8vw, 5.5rem);
}

.mini {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.mini-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 14px;
  background: var(--surface-3);
  color: var(--accent);
}

.mini-icon svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 760px) {
  .mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .feature {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(3rem, 6vw, 6rem);
  }

  .feature--flip .feature-copy {
    order: 2;
  }
}

/* Credits */

.pricing {
  display: grid;
  align-items: center;
  gap: clamp(3rem, 7vw, 4rem);
}

.packs {
  max-width: 34rem;
  margin-top: 2rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
}

.pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.875rem 1.5rem;
}

.pack + .pack {
  border-top: 1px solid var(--line);
}

.pack-amount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  color: var(--text);
  font-size: 1.1875rem;
  font-weight: 600;
}

.pack-price {
  color: var(--text);
  font-size: 1.1875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 0.625rem;
  border-radius: 999px;
  background: rgba(138, 180, 248, 0.14);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge--popular {
  background: #fff;
  color: #000;
}

.notes {
  display: grid;
  gap: 0.875rem;
  max-width: 34rem;
  margin-top: 1.75rem;
}

.notes li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
}

.notes svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  color: var(--accent);
}

@media (min-width: 960px) {
  .pricing {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}

/* FAQ */

.faq {
  display: grid;
  gap: 2.5rem;
}

.faq-head .btn {
  margin-top: 1.5rem;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--surface-1);
}

.faq-item + .faq-item {
  margin-top: 0.75rem;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.875rem 1rem 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline-offset: 2px;
}

.faq-icon {
  flex: none;
  box-sizing: content-box;
  width: 18px;
  height: 18px;
  padding: 7px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-2);
  transition: transform 0.25s var(--ease);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.375rem;
  color: var(--muted);
}

@media (min-width: 960px) {
  .faq {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(3rem, 6vw, 6rem);
  }

  .faq-head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

/* Closing */

.closing {
  padding-block: clamp(4rem, 10vw, 7.5rem) clamp(4.5rem, 11vw, 8.5rem);
  text-align: center;
}

.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing-mark {
  width: auto;
  height: 76px;
  margin-bottom: 2rem;
}

.closing .btn {
  margin-top: 2rem;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.brand--small .brand-mark {
  height: 26px;
}

.brand--small .brand-word {
  height: 17px;
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: rgba(232, 234, 237, 0.35);
  text-underline-offset: 3px;
}

.footer-mail:hover {
  text-decoration-color: currentColor;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-left: -1rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}

.footer-nav a:hover {
  background: var(--surface-1);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 760px) {
  .footer-top {
    align-items: center;
  }

  .footer-nav ul {
    margin-left: 0;
    margin-right: -1rem;
  }
}

/* ---------- Scroll reveal (added by main.js, never without it) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.steps > :nth-child(2),
.mini-grid > :nth-child(2),
.feature > :nth-child(2),
.pricing > :nth-child(2),
.faq > :nth-child(2) {
  transition-delay: 0.08s;
}

.steps > :nth-child(3),
.mini-grid > :nth-child(3) {
  transition-delay: 0.16s;
}

/* ---------- Reduced motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header {
    position: static;
  }

  .hero-glow {
    display: none;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
