/* Prelto landing page styles. Standalone: index.html only.
   Sub-pages (privacy, terms, support, request-access) keep styles.css. */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* ---------- Tokens ---------- */

:root {
  --ink: #0a0a0a;
  --ink-70: rgb(10 10 10 / 0.6);
  --ink-55: rgb(10 10 10 / 0.55);
  --ink-40: rgb(10 10 10 / 0.4);
  --hairline: rgb(10 10 10 / 0.1);
  --hairline-soft: rgb(10 10 10 / 0.06);
  --paper: #ffffff;
  --panel: #f2f2f2;
  --blue: #2079f4;
  --blue-ink: #0b5ac4;
  --blue-tint: rgb(255 255 255 / 0.64);
  --good: #128a3e;
  --bad: #d43c2e;

  --display: "Instrument Sans", -apple-system, "Helvetica Neue", sans-serif;
  --sans: "Inter", -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;

  --radius-card: 16px;
  --radius-stage: 24px;
  --shadow-card: 0 1px 2px rgb(10 10 10 / 0.04), 0 8px 24px rgb(10 10 10 / 0.05);

  --space: 8px;
  --content: 1064px;

  /* Motion */
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out-strong: cubic-bezier(0.77, 0, 0.175, 1);
  --step-ms: 620ms;
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

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

.container {
  width: min(var(--content), 100% - 48px);
  margin-inline: auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

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

.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn-blue:hover {
  background: #146ada;
}

.btn-light {
  background: #fff;
  color: var(--blue-ink);
  box-shadow: 0 1px 2px rgb(10 10 10 / 0.12);
}

.btn-light:hover {
  box-shadow: 0 2px 8px rgb(10 10 10 / 0.18);
}

.fine-print {
  font-size: 13px;
  color: var(--ink-70);
  letter-spacing: -0.01em;
}

/* ---------- Nav ---------- */

.nav {
  padding-block: 20px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 22px;
  width: auto;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--ink-70);
}

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

.hero {
  padding-block: clamp(56px, 9vw, 112px) clamp(40px, 6vw, 72px);
  text-align: center;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.875rem, 4.2vw, 3.125rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-sub {
  margin: 24px auto 0;
  max-width: 58ch;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.55;
  color: var(--ink-70);
  text-wrap: balance;
  letter-spacing: -0.025em;
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ---------- Prompt card marquee ---------- */

.marquee {
  overflow: hidden;
  padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 88px);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  transition: transform var(--step-ms) var(--ease-in-out-strong);
  will-change: transform;
}

.marquee-track.no-transition {
  transition: none;
}

.prompt-card {
  width: 320px;
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px var(--hairline-soft), var(--shadow-card);
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0.55;
  transform: scale(0.95);
  transition: opacity var(--step-ms) var(--ease-in-out-strong),
    transform var(--step-ms) var(--ease-in-out-strong);
}

.prompt-card.active {
  opacity: 1;
  transform: scale(1);
}

.no-transition .prompt-card {
  transition: none;
}

.prompt-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-55);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--panel);
}

.prompt-utterance {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.prompt-stage {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 14px;
  min-height: 104px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-70);
  letter-spacing: -0.005em;
}

.prompt-stage .word {
  animation: word-in 240ms var(--ease-out-strong) both;
}

@keyframes word-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.prompt-stage .caret {
  display: inline-block;
  width: 1px;
  height: 1em;
  background: var(--ink);
  vertical-align: -0.15em;
  margin-left: 1px;
  animation: caret-blink 1.1s steps(1) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.prompt-stage .err {
  text-decoration: underline wavy var(--bad) 1px;
  text-underline-offset: 3px;
}

.prompt-stage .fixed {
  color: var(--ink);
  text-decoration: underline solid var(--good) 1px;
  text-underline-offset: 3px;
  animation: word-in 240ms var(--ease-out-strong) both;
}

/* ---------- Blue demo section ---------- */

.demo {
  background: var(--blue);
  padding-block: clamp(64px, 9vw, 120px);
  color: #fff;
}

.demo h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.demo h2 .tint {
  display: block;
  color: var(--blue-tint);
}

.demo-stage {
  margin-top: clamp(32px, 5vw, 56px);
  aspect-ratio: 2294 / 1440; /* matches prelto-demo.mp4 exactly */
  background: #0b0b0e;
  border-radius: var(--radius-stage);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 24px 64px rgb(0 0 0 / 0.28);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.demo-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Copy-paste section ---------- */

.context {
  padding-block: clamp(64px, 9vw, 120px) clamp(48px, 7vw, 80px);
}

.section-heading {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.context-copy {
  margin-top: 20px;
  max-width: 54ch;
  color: var(--ink-70);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.context-visual {
    margin: 0;
  margin-top: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-stage);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgb(10 10 10 / 0.06);
}

.context-visual img {
  width: 100%;
  height: auto;
}

/* ---------- Bento ---------- */

.bento {
  background: var(--panel);
  padding-block: clamp(64px, 9vw, 104px);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bento-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px var(--hairline-soft), var(--shadow-card);
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bento-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.bento-card p {
  color: var(--ink-70);
  font-size: 15px;
  line-height: 1.55;
  max-width: 46ch;
  text-wrap: pretty;
}

.bento-tall {
  grid-row: span 2;
}

.bento-wide {
  grid-column: 1 / -1;
}

.bento-visual {
  margin-top: auto;
  padding-top: 20px;
}

/* dictation waveform */
.viz-wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  width: 100%;
}

.viz-wave i {
  flex: 0 0 2px;
  border-radius: 2px;
  background: var(--blue);
}

/* review card mock, modeled on the real product surface */
.viz-review {
  border-radius: 14px;
  background: #202022;
  color: rgb(255 255 255 / 0.88);
  padding: 12px;
  font-size: 13px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 12px 32px rgb(10 10 10 / 0.18);
}

.viz-review-utterance {
  background: rgb(255 255 255 / 0.08);
  border-radius: 9px;
  padding: 9px 12px;
  color: rgb(255 255 255 / 0.92);
}

.viz-review-body {
  padding-inline: 12px;
}

/* Beat the generic .bento-card p color, which is dark-on-white */
.bento-card .viz-review-body p {
  margin: 0 0 12px;
  color: rgb(255 255 255 / 0.86);
  max-width: none;
}

.viz-review-body p:last-child {
  margin-bottom: 0;
}

.viz-review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 2px 12px;
}

.viz-review-hint {
  color: rgb(255 255 255 / 0.55);
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.viz-review-hint kbd {
  font-family: var(--sans);
  font-size: 11px;
  color: rgb(255 255 255 / 0.6);
  background: rgb(255 255 255 / 0.08);
  border-radius: 5px;
  padding: 2px 6px;
}

.viz-review-confirm {
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 999px;
  padding: 7px 16px;
  white-space: nowrap;
}

/* snippet chips */
.viz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.viz-chips span {
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--hairline);
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-70);
}

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

.faq {
  padding-block: clamp(64px, 9vw, 112px);
}

.faq-list {
  margin-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--hairline-soft);
}

.faq-item {
  border-bottom: 1px solid var(--hairline-soft);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

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

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--ink-55), var(--ink-55)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink-55), var(--ink-55)) center / 1.5px 12px no-repeat;
  transition: transform 0.2s ease;
}

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

.faq-answer {
  padding-bottom: 22px;
  max-width: 62ch;
  color: var(--ink-70);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- CTA band ---------- */

.cta-band {
  padding-bottom: clamp(64px, 9vw, 112px);
}

.cta-card {
  background: var(--blue);
  border-radius: var(--radius-stage);
  padding: clamp(48px, 7vw, 80px) 32px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-card h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cta-card .fine-print {
  color: var(--blue-tint);
}

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

.footer {
  background: var(--panel);
  padding-block: 48px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  color: var(--ink-55);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
}

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

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

@media (max-width: 720px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-tall {
    grid-row: auto;
  }

  .prompt-card {
    width: 272px;
  }

  .demo-stage {
    border-radius: 16px;
  }

  .context-visual {
    border-radius: 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee-track {
    transition: none;
  }

  .prompt-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .prompt-stage .word,
  .prompt-stage .fixed {
    animation: none;
  }

  .prompt-stage .caret {
    animation: none;
  }
}
