/* Sindri — getsindri.app. One stylesheet, system fonts, no dependencies.
   The palette comes from the app icon: charcoal, and the orange of the forge. */

:root {
  --bg: #0b0b0d;
  --bg-raised: #131316;
  --bg-sunken: #08080a;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.14);
  --text: #f1f0ee;
  --text-soft: #b4b2ae;
  --text-faint: #8b8985;
  --ember: #ff8a3d;
  --ember-deep: #e8590c;
  --ember-ink: #1c0d03;
  --spark: #ffe3a3;
  --green: #5bd08a;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-soft);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2, h3, h4 {
  color: var(--text);
  font-family: var(--display);
  font-weight: 650;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.5rem); line-height: 1.03; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -0.035em; }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -0.028em; }
h4 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
p { text-wrap: pretty; }

code {
  font: 0.9em var(--mono);
  color: var(--text);
  background: rgb(255 255 255 / 0.07);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.eyebrow {
  color: var(--ember);
  font: 600 0.8125rem/1.2 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--text-soft); }
.note { font-size: 0.875rem; color: var(--text-faint); }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.button:active { transform: scale(0.98); }
.button-primary {
  background: linear-gradient(180deg, #ff9a55, var(--ember-deep));
  color: var(--ember-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 8px 28px -10px rgb(232 89 12 / 0.7);
}
.button-primary:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 12px 36px -10px rgb(232 89 12 / 0.9); transform: translateY(-1px); }
.button-quiet { color: var(--text); border-color: var(--line-strong); background: rgb(255 255 255 / 0.03); }
.button-quiet:hover { background: rgb(255 255 255 / 0.07); border-color: rgb(255 255 255 / 0.22); }
.button-small { min-height: 36px; padding: 0 14px; border-radius: 9px; font-size: 0.875rem; }
.button-small svg { width: 14px; height: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.nav.is-stuck {
  background: rgb(11 11 13 / 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font: 650 1.0625rem/1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img { border-radius: 23%; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgb(255 255 255 / 0.06); }
@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-inner > .button { margin-left: auto; }
}

/* Captures: the app's own pictures, never stretched. Their corners are already transparent, so the frame only adds
   the shadow and the hairline that the dark page would otherwise swallow. */

.shot {
  display: block;
  position: relative;
  border-radius: 1.05% / 1.69%;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgb(0 0 0 / 0.9), 0 12px 30px -12px rgb(0 0 0 / 0.6);
  background: var(--bg-raised);
}
.shot img { width: 100%; border-radius: inherit; }
a.shot { cursor: zoom-in; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
a.shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--line-strong), 0 50px 90px -30px rgb(0 0 0 / 0.95), 0 16px 40px -12px rgb(0 0 0 / 0.7);
}

/* Hero */

.hero { position: relative; padding: clamp(48px, 9vw, 104px) 0 clamp(40px, 7vw, 88px); }
.hero-inner { position: relative; display: grid; justify-items: center; gap: 22px; text-align: center; }
.hero-inner h1 { max-width: 14ch; }
.hero-inner .lead { max-width: 60ch; }
.hero-inner .actions { justify-content: center; margin-top: 8px; }
.hero-shot { position: relative; margin-top: clamp(40px, 6vw, 72px); }

/* The forge behind the window: two soft lights that drift a little. */
.hero-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-glow i {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.hero-glow i:first-child {
  left: 50%;
  top: 38%;
  width: min(900px, 90vw);
  aspect-ratio: 2 / 1;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgb(232 89 12 / 0.42), transparent);
  animation: drift 16s ease-in-out infinite alternate;
}
.hero-glow i:last-child {
  left: 62%;
  top: 30%;
  width: min(420px, 50vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(255 227 163 / 0.16), transparent);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(-4%, -3%, 0) scale(1); }
  to { transform: translate3d(5%, 4%, 0) scale(1.08); }
}

/* Sections */

.section { padding: clamp(72px, 11vw, 136px) 0 0; }
.section-head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { max-width: 40rem; }

/* Demo */

.video {
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: var(--bg-sunken);
  overflow: hidden;
  box-shadow: 0 50px 100px -40px rgb(0 0 0 / 0.9), 0 0 120px -50px rgb(232 89 12 / 0.45);
}
.video video { width: 100%; aspect-ratio: 16 / 9; background: var(--bg-sunken); }

/* Features */

.tier {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  font: 600 0.6875rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}
.tier-free { color: var(--green); border-color: rgb(91 208 138 / 0.35); }
.tier-pro { color: var(--ember); border-color: rgb(255 138 61 / 0.35); }

.question { color: var(--text); font: 500 1.1875rem/1.4 var(--display); letter-spacing: -0.015em; }

.spot {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(28px, 4vw, 56px);
}
.spot-flip { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.spot-flip .spot-copy { order: 2; }
.spot-copy { display: grid; gap: 14px; justify-items: start; }
.ticks { display: grid; gap: 8px; margin-top: 6px; font-size: 0.9375rem; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--ember);
  border-bottom: 2px solid var(--ember);
  rotate: -45deg;
}
@media (max-width: 880px) {
  .spot, .spot-flip { grid-template-columns: minmax(0, 1fr); }
  .spot-flip .spot-copy { order: 0; }
}

.centre {
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.centre-copy { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 44rem; margin: 0 auto clamp(32px, 4vw, 52px); }
.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(32px, 4vw, 52px);
}
.columns div { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.columns p { font-size: 0.9375rem; }
@media (max-width: 760px) { .columns { grid-template-columns: minmax(0, 1fr); } }

.pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 48px);
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.pair { display: grid; gap: 24px; align-content: start; }
.pair-copy { display: grid; gap: 10px; }
.pair-copy h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 12px; }
.pair-copy > p:last-child { font-size: 0.9375rem; }
/* The second row sits lower on wide screens, so the four tools don't read as a grid of cards. */
@media (min-width: 821px) { .pair:nth-child(even) { margin-top: 56px; } }
@media (max-width: 820px) { .pairs { grid-template-columns: minmax(0, 1fr); } }

/* Gallery */

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.gallery figure { display: grid; gap: 12px; }
.gallery figcaption { font-size: 0.875rem; color: var(--text-faint); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

/* Why */

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 72px); }
.principles > div { padding: 26px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.principles dt { color: var(--text); font: 600 1.25rem/1.3 var(--display); letter-spacing: -0.02em; }
@media (max-width: 720px) { .principles { grid-template-columns: minmax(0, 1fr); } }

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px clamp(28px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgb(232 89 12 / 0.1), transparent 55%), var(--bg-raised);
}
.pricing h3 { grid-row: span 2; max-width: 16ch; }
.pricing-tiers { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; }
.pricing-label { margin-bottom: 10px; color: var(--green); font: 600 0.8125rem/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.pricing-pro { color: var(--ember); }
.pricing-tiers li { color: var(--text); padding: 3px 0; }
.pricing-note { padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
@media (max-width: 820px) {
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .pricing h3 { grid-row: auto; }
}

/* FAQ */

.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: 96px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 2px;
  color: var(--text);
  font: 550 1.0625rem/1.4 var(--display);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  rotate: 45deg;
  translate: 0 -2px;
  transition: rotate 0.25s var(--ease), translate 0.25s var(--ease);
}
.faq details[open] summary::after { rotate: -135deg; translate: 0 3px; }
.faq summary:hover { color: var(--ember); }
.faq details p { padding: 0 2px 22px; max-width: 62ch; }
@media (max-width: 820px) {
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap .section-head { position: static; }
}

/* Final call to action: the anvil, lit from below. */

.cta { position: relative; margin-top: clamp(88px, 12vw, 160px); padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -55%;
  width: min(1100px, 130vw);
  aspect-ratio: 2 / 1;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgb(232 89 12 / 0.4), rgb(232 89 12 / 0.08) 60%, transparent);
  pointer-events: none;
}
.cta-inner { position: relative; display: grid; justify-items: center; gap: 18px; text-align: center; }
.cta-icon { border-radius: 23%; filter: drop-shadow(0 18px 40px rgb(232 89 12 / 0.45)); margin-bottom: 8px; }
.cta .lead { max-width: 44ch; }
.cta .actions { margin-top: 10px; }

/* Footer */

.footer { border-top: 1px solid var(--line); background: var(--bg-sunken); padding: 44px 0 36px; font-size: 0.9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.footer-brand { display: grid; gap: 10px; }
.footer-brand p { color: var(--text-faint); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.footer-links a { color: var(--text-soft); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 0.8125rem; }

/* Text pages */

.prose { max-width: 44rem; padding-block: clamp(56px, 9vw, 104px) clamp(72px, 10vw, 120px); }
.prose h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin: 14px 0 20px; }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 44px 0 12px; }
.prose p + p { margin-top: 14px; }
.prose a { color: var(--ember); text-underline-offset: 3px; }

/* Lightbox */

.lightbox {
  width: min(96vw, 1500px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgb(4 4 5 / 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  right: 0;
  top: -44px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--text);
  font: 600 0.875rem/1 var(--sans);
  cursor: pointer;
}
.lightbox[open] { animation: zoom 0.25s var(--ease); }
@keyframes zoom { from { opacity: 0; transform: scale(0.97); } }

/* Motion. The hero rises once on load; sections are revealed as they are reached, only when the script that
   reveals them has loaded (html.js), so nothing stays hidden without it. */

.rise { animation: rise 0.9s var(--ease) both; }
.hero-inner .rise:nth-child(2) { animation-delay: 0.06s; }
.hero-inner .rise:nth-child(3) { animation-delay: 0.12s; }
.hero-inner .rise:nth-child(4) { animation-delay: 0.18s; }
.hero-inner .rise:nth-child(5) { animation-delay: 0.24s; }
.hero-shot.rise { animation-delay: 0.3s; animation-duration: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .hero-glow, .video, .cta::before { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
