/* Foldersmith website, design A: "Forge".
   The page is the app icon's black, and the only light on it is heat. */

:root {
  --soot: #060707;      /* page, sampled from the icon's background */
  --iron: #120e0c;      /* raised surfaces */
  --scale: #2b1d16;     /* hairlines and borders */
  --ash: #b9ada3;       /* body text */
  --smoke: #857870;     /* secondary text */
  --white-hot: #fff3e4; /* headings */
  --flame: #ffb45c;
  --ember: #ff6b1a;
  --cinder: #9c2c08;

  --gutter: clamp(1rem, 4vw, 3rem);
  --wide: 76rem;
  --measure: 36rem;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--soot);
  color: var(--ash);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  color: var(--white-hot);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
h3 { font-size: 1.3125rem; font-stretch: 105%; letter-spacing: -0.005em; }

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  background: var(--white-hot);
  color: var(--soot);
  border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.button-hot {
  color: #2a0c00;
  background: linear-gradient(180deg, var(--flame), var(--ember));
  box-shadow: 0 0 0 1px rgb(255 200 140 / 0.35) inset, 0 12px 40px -8px rgb(255 107 26 / 0.6);
}
.button-hot:hover { box-shadow: 0 0 0 1px rgb(255 220 170 / 0.6) inset, 0 16px 56px -6px rgb(255 107 26 / 0.85); }

.button-small {
  min-height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.9375rem;
  color: var(--white-hot);
  border: 1px solid var(--scale);
  background: rgb(18 14 12 / 0.6);
}
.button-small:hover { border-color: var(--ember); }

.button-quiet {
  color: var(--white-hot);
  border: 1px solid var(--scale);
}
.button-quiet:hover { border-color: var(--flame); }

.fine { font-size: 0.875rem; color: var(--smoke); }

/* Navigation */

.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--white-hot);
  font-weight: 800;
  font-stretch: 112%;
  text-decoration: none;
}
.nav-brand img { border-radius: 7px; }

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.9375rem;
}
.nav-links a { text-decoration: none; color: var(--ash); }
.nav-links a:hover { color: var(--white-hot); }

@media (max-width: 40rem) {
  .nav-links { display: none; }
  .nav .button-small { margin-left: auto; }
}

/* Hero: the icon heats up, then the words appear. */

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 5rem var(--gutter) 4rem;
  text-align: center;
  overflow: hidden;
}

/* In front of the icon, so the sparks fly over the folder they come off */
.embers {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-icon {
  position: relative;
  width: min(63vw, 27rem);
  margin-bottom: -3.375rem;
  /* Pressing the icon strikes it (embers.js); don't start an image drag or a callout. */
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  /* The icon's black is the page's black; feather its square edges away. */
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 8%, #000 92%, transparent),
    linear-gradient(to bottom, transparent, #000 8%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 8%, #000 92%, transparent),
    linear-gradient(to bottom, transparent, #000 8%, #000 88%, transparent);
  mask-composite: intersect;
  animation: heat 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.wordmark {
  position: relative;
  font-size: clamp(3rem, 10vw, 8.5rem);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.92;
  letter-spacing: -0.03em;
  /* Room for the descender, which background-clip would otherwise cut off */
  padding-bottom: 0.14em;
  /* The lower edge of the letters is still hot. */
  background: linear-gradient(180deg, var(--white-hot) 0 50%, var(--flame) 80%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: appear 0.8s ease-out 1.1s both;
}

.lede {
  position: relative;
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  color: var(--ash);
  animation: appear 0.8s ease-out 1.3s both;
}

.hero-actions {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.875rem;
  margin-top: 2.25rem;
  animation: appear 0.8s ease-out 1.45s both;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-icon { cursor: pointer; }
}

@keyframes heat {
  from { filter: brightness(0.25) saturate(0.4); }
  55% { filter: brightness(1.12) saturate(1.15); }
  to { filter: none; }
}

@keyframes appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* The editor, lit from below */

.anvil {
  max-width: var(--wide);
  margin: 1rem auto 0;
  padding: 0 var(--gutter);
}
.anvil img {
  filter:
    drop-shadow(0 -1px 0 rgb(255 180 110 / 0.25))
    drop-shadow(0 40px 90px rgb(255 90 20 / 0.28));
}
.anvil figcaption {
  max-width: var(--measure);
  margin: 1.5rem auto 0;
  font-size: 0.9375rem;
  color: var(--smoke);
  text-align: center;
}

/* Layers */

.split {
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin: clamp(6rem, 12vw, 10rem) 0 0;
  padding-left: calc(max(0px, (100vw - var(--wide)) / 2) + var(--gutter));
  overflow: clip;
}
.split-copy > p { margin-top: 1.25rem; }

.split-shot { margin: 0; }
.split-shot img {
  /* Runs off the right edge of the page on wide screens */
  width: 118%;
  max-width: none;
  filter: drop-shadow(0 30px 70px rgb(0 0 0 / 0.7));
}

.layer-list { margin: 2rem 0 0; }
.layer-list div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 0.875rem 0;
  border-top: 1px solid var(--scale);
}
.layer-list div:last-child { border-bottom: 1px solid var(--scale); }
.layer-list dt { color: var(--white-hot); font-weight: 650; }
.layer-list dd { margin: 0; font-size: 1rem; }

@media (max-width: 60rem) {
  .split {
    grid-template-columns: 1fr;
    padding-right: var(--gutter);
  }
  .split-shot img { width: 100%; }
}

@media (max-width: 30rem) {
  .layer-list div { grid-template-columns: 1fr; gap: 0.125rem; }
}

/* Photos: the same split, mirrored, so the shot runs off the left edge */

.split-flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  padding-left: 0;
  padding-right: calc(max(0px, (100vw - var(--wide)) / 2) + var(--gutter));
}
.split-flip .split-shot { order: -1; }
.split-flip .split-shot img { margin-left: -18%; }

@media (max-width: 60rem) {
  .split-flip {
    grid-template-columns: 1fr;
    padding-left: var(--gutter);
  }
  .split-flip .split-shot { order: 0; }
  .split-flip .split-shot img { margin-left: 0; }
}

/* Effects: the names of the in-app effects, stamped into a hot plate */

.effects {
  max-width: var(--wide);
  margin: clamp(6rem, 12vw, 10rem) auto 0;
  padding: 0 var(--gutter);
}

.effects-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

@media (max-width: 50rem) {
  .effects-head { grid-template-columns: 1fr; }
}

.plate {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35em 0.75em;
  margin: 0;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3.5rem) clamp(9rem, 20vw, 16rem);
  list-style: none;
  border-radius: 28px;
  font-size: clamp(1.75rem, 4.6vw, 4rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #2a0c00;
  background:
    radial-gradient(90% 70% at 50% 115%, #ffd27f 0%, rgb(255 180 92 / 0) 60%),
    radial-gradient(70% 80% at 0% 0%, #b8340a 0%, rgb(184 52 10 / 0) 65%),
    radial-gradient(60% 70% at 100% 10%, #c9420c 0%, rgb(201 66 12 / 0) 60%),
    linear-gradient(180deg, #e2560f, #f47a22 55%, #ff9a3c);
  box-shadow:
    0 1px 0 rgb(255 230 190 / 0.5) inset,
    0 -30px 80px -40px rgb(90 20 0 / 0.6) inset,
    0 50px 140px -40px rgb(255 107 26 / 0.45);
  isolation: isolate;
}

/* Grain, so the plate reads as metal rather than a gradient */
.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .08 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.plate li { white-space: nowrap; }

/* The effects screenshot sits on the plate's lower edge */

.on-plate {
  position: relative;
  max-width: 56rem;
  margin: clamp(-13rem, -17vw, -7rem) auto 0;
  padding: 0 clamp(0rem, 3vw, 2rem);
}
.on-plate img { filter: drop-shadow(0 30px 60px rgb(40 8 0 / 0.65)); }
.on-plate figcaption {
  max-width: var(--measure);
  margin: 1.5rem auto 0;
  font-size: 0.9375rem;
  color: var(--smoke);
  text-align: center;
}

/* AI */

.ai {
  max-width: var(--wide);
  margin: clamp(6rem, 12vw, 10rem) auto 0;
  padding: 0 var(--gutter);
}
.ai h2 { max-width: 20ch; }
.ai-lede { max-width: var(--measure); margin-top: 1.25rem; }

.engines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3rem;
  border-top: 1px solid var(--scale);
}
.engine { padding: 2rem 2.5rem 0 0; }
.engine + .engine { padding: 2rem 0 0 2.5rem; border-left: 1px solid var(--scale); }
.engine ul { margin: 1rem 0 1.25rem; padding: 0; list-style: none; }
.engine li { padding: 0.375rem 0; }
.engine strong { color: var(--white-hot); font-weight: 650; }
.engine > p { font-size: 1rem; color: var(--smoke); max-width: 30rem; }

.engine-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.engine-names li {
  padding: 0.25rem 0.875rem;
  border: 1px solid var(--scale);
  border-radius: 999px;
  color: var(--white-hot);
  font-size: 1rem;
}

@media (max-width: 44rem) {
  .engines { grid-template-columns: 1fr; }
  .engine { padding-right: 0; }
  .engine + .engine {
    margin-top: 2rem;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--scale);
  }
}

/* Steps: a real sequence, so it is numbered */

.steps {
  max-width: var(--wide);
  margin: clamp(6rem, 12vw, 10rem) auto 0;
  padding: 0 var(--gutter);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  font-size: 4.5rem;
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ember);
  margin-bottom: 1rem;
}
.step p { margin-top: 0.625rem; font-size: 1rem; }
.step-shot,
.crop { margin-top: auto; padding-top: 1.75rem; }
.step-shot { filter: drop-shadow(0 20px 40px rgb(0 0 0 / 0.6)); }

/* Crop of the editor's preview strip, taken from the first screenshot */
.crop-preview {
  position: relative;
  padding-top: 0;
  margin-top: auto;
  aspect-ratio: 510 / 200;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--scale);
}
.crop-preview img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  width: calc(2000 / 510 * 100%);
  translate: calc(-680 / 2000 * 100%) calc(-1095 / 1331 * 100%);
}

@media (max-width: 56rem) {
  .step-list { grid-template-columns: minmax(0, 1fr); gap: 4rem; }
  .step-shot,
  .crop-preview { max-width: min(100%, 34rem); }
}

/* Pricing */

.pricing {
  max-width: var(--wide);
  margin: clamp(6rem, 12vw, 10rem) auto 0;
  padding: 0 var(--gutter);
}

.tiers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}

.tier { padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: 22px; }
/* No prices on the cards: the tier name is the card's headline. */
.tier h3 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  font-stretch: 112%;
  color: var(--white-hot);
}

.tier-free {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  border: 1px solid var(--scale);
}
.tier-free .button { margin-top: 2rem; }

.tier-pro {
  position: relative;
  background:
    radial-gradient(80% 90% at 100% 110%, rgb(255 107 26 / 0.35), transparent 70%),
    var(--iron);
  box-shadow: 0 0 0 1px rgb(255 140 60 / 0.45) inset, 0 40px 120px -50px rgb(255 107 26 / 0.7);
}
.tier-pro h3 { color: var(--flame); }
.tier-pro ul { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.tier-pro li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.75rem;
  color: var(--white-hot);
}
.tier-pro li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3c4, var(--ember) 70%);
  box-shadow: 0 0 10px var(--ember);
}

@media (max-width: 48rem) {
  .tiers { grid-template-columns: 1fr; }
}

/* FAQ */

.faq {
  max-width: 50rem;
  margin: clamp(6rem, 12vw, 10rem) auto 0;
  padding: 0 var(--gutter);
}
.faq h2 { margin-bottom: 2rem; }

.faq details { border-top: 1px solid var(--scale); }
.faq details:last-of-type { border-bottom: 1px solid var(--scale); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  color: var(--white-hot);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  background:
    linear-gradient(var(--flame), var(--flame)) center / 100% 2px no-repeat,
    linear-gradient(var(--flame), var(--flame)) center / 2px 100% no-repeat;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.5rem; max-width: var(--measure); }

/* Footer */

.footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 2rem;
  align-items: center;
  max-width: var(--wide);
  margin: clamp(6rem, 12vw, 10rem) auto 0;
  padding: 2.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--scale);
  font-size: 0.9375rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--white-hot);
  font-weight: 800;
  font-stretch: 112%;
}
.footer-brand img { border-radius: 6px; }
.footer-links { display: flex; gap: 1.5rem; justify-self: end; }
.footer-links a { color: var(--ash); text-decoration: none; }
.footer-links a:hover { color: var(--white-hot); }
.legal { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--smoke); max-width: 48rem; }

@media (max-width: 36rem) {
  .footer { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; }
}

/* Text pages: privacy and support */

.nav-page { position: relative; }

.doc {
  max-width: 44rem;
  margin: clamp(2.5rem, 7vw, 5rem) auto 0;
  padding: 0 var(--gutter);
}
.doc h1 { font-size: clamp(2.75rem, 7vw, 4.75rem); font-stretch: 118%; }
.doc .updated { margin-top: 1rem; }
.doc-lede {
  margin-top: 2rem;
  font-size: clamp(1.1875rem, 1.8vw, 1.375rem);
  color: var(--white-hot);
}
.doc h2 {
  margin-top: 3.5rem;
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
}
.doc h2 + p,
.doc p + p,
.doc p + ul,
.doc ul + p { margin-top: 1rem; }
.doc ul { margin-bottom: 0; padding-left: 1.25rem; }
.doc li + li { margin-top: 0.5rem; }
.doc li::marker { color: var(--ember); }
.doc strong { color: var(--white-hot); font-weight: 650; }
.doc a:not(.button) { color: var(--flame); text-underline-offset: 0.2em; }
.doc a:not(.button):hover { color: var(--white-hot); }

.contact {
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 22px;
  background:
    radial-gradient(80% 90% at 100% 110%, rgb(255 107 26 / 0.3), transparent 70%),
    var(--iron);
  box-shadow: 0 0 0 1px rgb(255 140 60 / 0.45) inset;
}
.contact .button { margin-top: 1.25rem; }
.contact .doc-lede { margin-top: 0; }
.contact .fine { margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-icon,
  .wordmark,
  .lede,
  .hero-actions { animation: none; }
  .faq summary::after { transition: none; }
}
