/* Promptra — promptra-ai.netlify.app

   Palette derives from the app's own PromptraTheme, warmed up for the web.
   The app can afford stark near-black because it's a full-screen tool you
   point at your face; a website read at arm's length needs more warmth or it
   reads clinical. So the base carries a plum tint rather than being neutral,
   text is a warm off-white rather than pure #fff, and the icon's pink appears
   as a second accent to stop everything being cold cyan.

   No JavaScript anywhere on this site. Motion is CSS-only, the FAQ is native
   <details>, and the CSP can stay at script-src 'none'. */

:root {
  --accent: #22e8e8;
  --accent-soft: #7fd8dd;
  --accent-warm: #ff7fb0;

  --bg: #0d0b12;
  --surface: #171420;
  --surface-raised: #201c2c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f4f1f4;
  --text-soft: #d5d0da;
  --text-muted: #a49eb0;

  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 13px;
  --measure: 66ch;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets clear the sticky header instead of hiding under it. */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
  background: var(--bg);
  /* Three soft blooms: cyan top, pink upper-right, a faint warm base. Large
     and low-opacity on purpose — they should register as warmth, not as
     visible gradients.

     Deliberately NOT background-attachment: fixed. Combined with the sticky
     header's backdrop-filter it forces a full-page repaint on every scroll
     frame — mobile Safari either ignores it outright or janks badly. */
  background-image: radial-gradient(
      ellipse 80% 46% at 20% -6%,
      rgba(34, 232, 232, 0.13),
      transparent 66%
    ),
    radial-gradient(
      ellipse 62% 40% at 92% 14%,
      rgba(255, 127, 176, 0.08),
      transparent 64%
    ),
    radial-gradient(
      ellipse 90% 36% at 50% 104%,
      rgba(255, 127, 176, 0.05),
      transparent 70%
    );
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 26px;
}

.prose {
  max-width: var(--measure);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface-raised);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  z-index: 100;
}

.skip:focus {
  left: 0;
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Above-the-fold entrance, staggered with an inline --d delay. */
.anim {
  animation: rise 0.72s var(--ease) backwards;
  animation-delay: var(--d, 0ms);
}

/* Scroll-linked reveal, gated behind @supports so browsers without
   scroll-driven animations simply render the content — nothing is ever hidden
   behind a feature query, which would cost real users and crawlers content. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 22%;
    }
  }
}

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

header.site {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 11, 18, 0.74);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  flex: none;
}

.logo .mark {
  width: 30px;
  height: 30px;
  flex: none;
  display: block;
}

nav.site {
  display: flex;
  flex-wrap: wrap;
  margin-left: auto;
}

nav.site a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  padding: 7px 13px;
  border-radius: 99px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

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

nav.site a[aria-current="page"] {
  color: var(--accent);
  background: rgba(34, 232, 232, 0.09);
}

.header-cta {
  flex: none;
}

/* ---------- Pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 22px;
  padding: 7px 16px;
  border-radius: 99px;
  background: rgba(34, 232, 232, 0.07);
  border: 1px solid rgba(34, 232, 232, 0.18);
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 1px rgba(34, 232, 232, 0.8);
  flex: none;
}

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

.hero {
  padding: 84px 0 64px;
  text-align: center;
}

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

h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  font-weight: 700;
  color: var(--text);
  max-width: 15ch;
}

.grad {
  background: linear-gradient(100deg, var(--accent), #74c8ff 45%, var(--accent-warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.06rem, 1.7vw, 1.24rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 0 34px;
}

.lede.center {
  margin-left: auto;
  margin-right: auto;
}

.hero-note {
  margin: 26px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  opacity: 0.85;
}

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

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.center-actions {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 99px;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s ease, background-color 0.2s ease;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14.5px;
}

.btn .ico {
  width: 19px;
  height: 19px;
  fill: currentColor;
  flex: none;
}

.btn-sm .ico {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5ec8ff 68%, #a89bff);
  color: #06171c;
  box-shadow: 0 10px 30px -12px rgba(34, 232, 232, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -13px rgba(34, 232, 232, 0.68);
}

.btn-secondary {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
  background: var(--surface-raised);
}

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

.section {
  padding: 84px 0;
}

.section-head {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  letter-spacing: -0.032em;
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}

h3 {
  font-size: 1.12rem;
  letter-spacing: -0.014em;
  margin: 0 0 11px;
  font-weight: 650;
  color: var(--text);
}

p,
li {
  color: var(--text-soft);
}

a {
  color: var(--accent);
  text-decoration-color: rgba(34, 232, 232, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.18s ease;
}

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

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

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.87em;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--accent-soft);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 56px 0;
}

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

/* ---------- Screenshots ---------- */

.shots {
  padding-bottom: 24px;
}

.shot-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px max(26px, calc(50vw - 560px)) 26px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-raised) transparent;
  -webkit-overflow-scrolling: touch;
  /* Without this, `scroll-snap-align: start` snaps the first panel flush to the
     scrollport and eats the left padding, leaving the strip misaligned with the
     content above it by exactly the padding width. */
  scroll-padding-inline: max(26px, calc(50vw - 560px));
}

.shot-strip img {
  flex: none;
  width: min(298px, 68vw);
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  scroll-snap-align: start;
  box-shadow: 0 22px 48px -22px rgba(0, 0, 0, 0.95),
    0 4px 34px -14px rgba(34, 232, 232, 0.12);
}

.shot-strip::-webkit-scrollbar {
  height: 8px;
}

.shot-strip::-webkit-scrollbar-thumb {
  background: var(--surface-raised);
  border-radius: 99px;
}

.shot-strip::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  margin: 0;
  transition: border-color 0.22s ease, transform 0.22s var(--ease),
    background-color 0.22s ease;
}

.step:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
  transform: translateY(-3px);
}

.step-n {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ---------- Feature cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.22s ease, transform 0.22s var(--ease),
    background-color 0.22s ease;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
  transform: translateY(-3px);
}

.card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 18px;
  background: linear-gradient(
    140deg,
    rgba(34, 232, 232, 0.16),
    rgba(255, 127, 176, 0.1)
  );
  border: 1px solid rgba(34, 232, 232, 0.2);
}

.card-ico svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Trust ---------- */

.trust-card {
  background: linear-gradient(
    150deg,
    rgba(34, 232, 232, 0.06),
    rgba(255, 127, 176, 0.045) 58%,
    transparent
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 46px clamp(24px, 4vw, 50px);
}

.trust-card h2 {
  margin-bottom: 12px;
}

.trust-card .lede {
  margin-bottom: 30px;
  max-width: 60ch;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 14px 30px;
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}

.trust-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 0;
  font-size: 15.5px;
  color: var(--text-muted);
}

.trust-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex: none;
  line-height: 1.55;
}

.trust-more {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.faq details + details {
  border-top: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 650;
  color: var(--text);
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  transition: background-color 0.18s ease;
}

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

.faq summary:hover {
  background: var(--surface-raised);
}

/* Drawn with a pseudo-element rather than an icon so it can rotate into an
   × on open without a second asset. */
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  flex: none;
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0;
  padding: 0 26px 24px;
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 62ch;
}

.faq-more {
  text-align: center;
  margin: 26px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* ---------- Closing CTA ---------- */

.cta-section {
  padding-bottom: 96px;
}

.cta-card {
  text-align: center;
  background: linear-gradient(
    160deg,
    rgba(34, 232, 232, 0.09),
    rgba(255, 127, 176, 0.06) 60%,
    transparent
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 72px) clamp(24px, 4vw, 50px);
}

.cta-card .lede {
  margin-bottom: 32px;
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 68px 0 48px;
}

.legal h1 {
  font-size: clamp(2rem, 4.6vw, 2.75rem);
  max-width: none;
  margin-bottom: 12px;
}

.legal h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  margin: 62px 0 18px;
}

.legal h3 {
  font-size: 1.1rem;
  margin: 38px 0 12px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
}

.legal li {
  margin: 9px 0;
}

.meta {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0 0 42px;
}

.callout {
  background: linear-gradient(
    140deg,
    rgba(34, 232, 232, 0.07),
    rgba(255, 127, 176, 0.035) 70%,
    transparent
  );
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin: 30px 0;
}

.callout p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.68;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-top: 14px;
}

.contact-card p {
  margin: 0 0 6px;
  font-size: 15.5px;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card .who {
  color: var(--text);
  font-weight: 650;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}

th,
td {
  text-align: left;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--text);
  font-weight: 650;
  white-space: nowrap;
}

td {
  color: var(--text-muted);
}

/* ---------- Handoff / 404 ---------- */

.handoff {
  min-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 52px 26px;
}

.handoff .inner {
  max-width: 46ch;
}

.handoff h1 {
  max-width: none;
  font-size: clamp(1.8rem, 4.6vw, 2.5rem);
}

.handoff .lede {
  margin-left: auto;
  margin-right: auto;
}

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

footer.site {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  color: var(--text-muted);
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 42ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col h4 {
  margin: 0 0 4px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 650;
}

.footer-col a,
footer.site a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-col a:hover,
footer.site a:hover {
  color: var(--accent);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  header.site .wrap {
    flex-wrap: wrap;
    gap: 10px;
  }
  nav.site {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    gap: 2px;
  }
  nav.site a {
    padding: 6px 11px;
    font-size: 14.5px;
  }
  .header-cta {
    margin-left: auto;
  }
  html {
    scroll-padding-top: 132px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .hero {
    padding: 56px 0 44px;
  }
  .section {
    padding: 60px 0;
  }
  h1 {
    max-width: 18ch;
  }
  .faq summary {
    padding: 18px 20px;
    font-size: 16px;
  }
  .faq details p {
    padding: 0 20px 20px;
  }
  .trust-card,
  .cta-card {
    padding: 32px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:hover,
  .card:hover,
  .step:hover {
    transform: none;
  }
}
