/* ============================================================
   EasyShot — styles.css
   Dark, minimal, Apple-adjacent. Format colors as accents.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---------- Design tokens ---------- */
:root {
  /* Surface */
  --bg:          #0A0A0F;
  --bg-elev:    #111118;
  --bg-card:    #14141C;
  --border:     rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text:       #F5F5F7;
  --text-muted: #A1A1AA;
  --text-dim:   #71717A;

  /* Format accents (from PRD v8) */
  --pink:  #EC4899;  /* 9:16 Portrait */
  --amber: #F59E0B;  /* 1:1 Square */
  --cyan:  #06B6D4;  /* 16:9 Landscape */
  --lime:  #84CC16;  /* 4:5 Instagram */

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-icon: 22.5%; /* iOS squircle approximation */

  /* Spacing (fluid, 8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --space-8: 112px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Subtle atmospheric gradient in background */
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(236, 72, 153, 0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 30%, rgba(6, 182, 212, 0.05), transparent 60%),
    radial-gradient(700px 400px at 0% 60%, rgba(132, 204, 22, 0.04), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}

::selection {
  background: var(--pink);
  color: #0A0A0F;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.035em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

p { margin: 0; }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 640px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

section {
  padding: var(--space-8) 0;
}

.section-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(10, 10, 15, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-icon);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover { border-color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-8) 0 var(--space-7);
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  text-align: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 1fr;
    text-align: left;
    gap: var(--space-7);
  }
}

.hero-copy > * + * { margin-top: var(--space-4); }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-title {
  /* gradient text headline */
  background: linear-gradient(180deg, #FFFFFF 0%, #C7C7CC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 900px) {
  .hero-actions { justify-content: flex-start; }
}

/* Coming soon badge styled like an App Store badge */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  line-height: 1.2;
}

.coming-soon-badge .badge-small {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.coming-soon-badge .badge-large {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Hero icon composition */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
  max-width: 440px;
  margin: 0 auto;
}

.hero-icon {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: var(--r-icon);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 2;
}

/* Ambient color glow behind icon */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 15%;
  background:
    radial-gradient(circle at 30% 30%, var(--pink), transparent 60%),
    radial-gradient(circle at 70% 40%, var(--amber), transparent 60%),
    radial-gradient(circle at 30% 70%, var(--cyan), transparent 60%),
    radial-gradient(circle at 70% 70%, var(--lime), transparent 60%);
  filter: blur(70px);
  opacity: 0.35;
  z-index: 1;
}

/* ---------- Format showcase ---------- */
.formats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}

@media (min-width: 720px) {
  .formats { grid-template-columns: repeat(4, 1fr); }
}

.format-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.format-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.format-swatch {
  height: 6px;
  border-radius: 999px;
  width: 60%;
}

.format-card[data-fmt="169"]  .format-swatch { background: var(--cyan);  }
.format-card[data-fmt="11"]   .format-swatch { background: var(--amber); }
.format-card[data-fmt="45"]   .format-swatch { background: var(--lime);  }
.format-card[data-fmt="916"]  .format-swatch { background: var(--pink);  }

.format-ratio {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

.format-name {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.format-meta {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ---------- Feature grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

@media (min-width: 720px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
}

.feature-icon svg { width: 20px; height: 20px; }

.feature-title { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.feature-body { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }

/* ---------- Section header ---------- */
.section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  max-width: 720px;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  counter-reset: step;
  margin-top: var(--space-6);
}

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

.step {
  background: var(--bg-card);
  border: 1px solid var(--lime);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.step-title { font-size: 1.15rem; font-weight: 600; margin-bottom: var(--space-2); }
.step-body  { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Teleprompter callout ---------- */
.callout {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(132, 204, 22, 0.04));
  border: 1px solid var(--pink);
  border-radius: var(--r-xl);
  padding: clamp(var(--space-5), 5vw, var(--space-7));
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 820px) {
  .callout { grid-template-columns: 1.3fr 1fr; gap: var(--space-7); }
}

.callout-visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ---------- Screenshots placeholder ---------- */
.screenshots {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

@media (min-width: 720px)  { .screenshots { grid-template-columns: repeat(3, 1fr); } }

.shot-placeholder {
  aspect-ratio: 9 / 19.5;
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ---------- Pricing ---------- */
.pricing {
  background: var(--bg-card);
  border: 1px solid var(--cyan);
  border-radius: var(--r-xl);
  padding: clamp(var(--space-5), 5vw, var(--space-7));
  display: grid;
  gap: var(--space-4);
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.price-amount {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-amount .currency {
  font-size: 0.6em;
  font-weight: 600;
  color: var(--text-muted);
  vertical-align: super;
  margin-right: 2px;
}

.price-label {
  color: var(--text-muted);
  font-size: 1rem;
}

.price-bars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-3);
}

.price-bars span {
  height: 4px;
  width: 36px;
  border-radius: 999px;
}
.price-bars span:nth-child(1) { background: var(--pink); }
.price-bars span:nth-child(2) { background: var(--amber); }
.price-bars span:nth-child(3) { background: var(--cyan); }
.price-bars span:nth-child(4) { background: var(--lime); }

/* ---------- Requirements strip ---------- */
.requirements {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-5);
}

.req-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-6) 0 var(--space-5);
  margin-top: var(--space-7);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: var(--r-icon);
}

.footer-links {
  display: flex;
  gap: var(--space-4);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.dim   { color: var(--text-dim); }

/* ---------- Legal page styles ---------- */
.legal {
  padding: var(--space-7) 0 var(--space-8);
}

.legal h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: var(--space-3);
}

.legal .updated {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: var(--space-6);
}

.legal h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal p, .legal li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.legal p + p { margin-top: var(--space-3); }

.legal ul { padding-left: 1.2em; margin: var(--space-3) 0; }
.legal li + li { margin-top: var(--space-2); }

.legal a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.legal a:hover { text-decoration-color: var(--text); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Support page ---------- */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: clamp(var(--space-4), 4vw, var(--space-5));
  margin: var(--space-5) 0 var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-card .eyebrow {
  margin-bottom: var(--space-1);
}

.contact-email {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  word-break: break-all;
}

.contact-email:hover {
  color: var(--pink);
}

.contact-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* FAQ questions (h3 inside .legal) */
.legal h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.faq-category {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: var(--space-7);
  margin-bottom: var(--space-1);
  display: block;
}

.faq-category:first-of-type {
  margin-top: var(--space-4);
}

/* "Still stuck?" block */
.still-stuck {
  border-top: 1px solid var(--border);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  text-align: center;
}

.still-stuck p {
  color: var(--text-muted);
  font-size: 1rem;
}

.still-stuck a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.still-stuck a:hover {
  text-decoration-color: var(--text);
}
