/* ============================================================
   Eloquent — tryeloquent.com
   Palette lifted from the cover of the product deck: a periwinkle
   gradient over near-black ink on a barely-tinted paper white.
   ============================================================ */

:root {
  --violet-900: #3A2E8C;
  --violet-700: #5A48D6;
  --violet-600: #6E5CE8;
  --violet-400: #9E90F7;
  --violet-200: #D9D3FB;
  --violet-050: #F1EEFE;

  --ink:       #1B1930;
  --ink-soft:  #4A4763;
  --ink-mute:  #74718C;

  --paper:     #FFFFFF;
  --paper-alt: #F7F6FC;
  --line:      #E7E4F5;

  --shell:  1120px;
  --radius: 18px;

  --shadow-sm: 0 1px 2px rgba(27, 25, 48, .06), 0 4px 12px rgba(27, 25, 48, .05);
  --shadow-md: 0 2px 6px rgba(27, 25, 48, .07), 0 18px 44px rgba(27, 25, 48, .10);
  --shadow-lg: 0 8px 20px rgba(27, 25, 48, .10), 0 40px 90px rgba(45, 33, 120, .22);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Inter, system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.022em; font-weight: 700; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 8px; translate: -50% -200%;
  background: #fff; color: var(--violet-700); padding: 10px 18px;
  border-radius: 999px; font-weight: 600; text-decoration: none; z-index: 50;
  box-shadow: var(--shadow-md); transition: translate .18s ease;
}
.skip-link:focus-visible { translate: -50% 0; }

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

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: 12px; white-space: nowrap;
  transition: transform .14s ease, background-color .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.btn--solid { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--solid:hover { background: #2A2748; transform: translateY(-1px); }
.btn--solid:active { transform: translateY(0); }
.btn--solid[disabled] { opacity: .6; cursor: progress; transform: none; }

.btn--ghost {
  background: rgba(255, 255, 255, .14); color: #fff; padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .32); backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .24); }

/* ── Nav ───────────────────────────────────────────────────── */

.nav { position: absolute; inset: 0 0 auto; z-index: 20; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand__icon { border-radius: 8px; box-shadow: 0 2px 8px rgba(30, 20, 80, .28); }
.brand__name { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 148px 0 96px;
  background: linear-gradient(155deg, #6E5CE8 0%, #8477F1 46%, #A99CF7 100%);
  color: #fff;
  text-align: center;
}
.hero__glow {
  position: absolute; inset: -30% -10% auto; height: 120%;
  background:
    radial-gradient(46% 40% at 22% 18%, rgba(255,255,255,.34), transparent 70%),
    radial-gradient(40% 38% at 82% 8%,  rgba(255,255,255,.20), transparent 68%);
  z-index: -1;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }

.hero__icon {
  width: 104px; height: 104px; border-radius: 24px;
  box-shadow: 0 10px 30px rgba(38, 24, 100, .34), 0 2px 6px rgba(38, 24, 100, .20);
  margin-bottom: 30px;
}
.hero__title {
  font-size: clamp(2.35rem, 6.2vw, 4.1rem);
  max-width: 15ch; text-wrap: balance;
}
.hero__sub {
  margin-top: 20px; max-width: 56ch; text-wrap: pretty;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, .90);
}
.hero__meta {
  margin-top: 26px; font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255, 255, 255, .74);
}

/* ── Signup form ───────────────────────────────────────────── */

.signup { margin-top: 34px; width: 100%; max-width: 520px; }
.signup__row { display: flex; gap: 10px; }

.signup__input {
  flex: 1 1 auto; min-width: 0;
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 18px; border-radius: 12px;
  border: 1px solid transparent; background: #fff;
  box-shadow: var(--shadow-sm);
}
.signup__input::placeholder { color: #9C99AF; }
.signup__input:focus { outline: none; border-color: var(--violet-400); box-shadow: 0 0 0 4px rgba(158, 144, 247, .35); }
.signup__input[aria-invalid="true"] { border-color: #E4557A; box-shadow: 0 0 0 4px rgba(228, 85, 122, .25); }

.signup__note { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.signup__msg { margin-top: 10px; font-size: 14.5px; font-weight: 600; min-height: 1.2em; }
.signup__msg[data-state="error"] { color: #FFD9E2; }
.signup__msg[data-state="ok"]    { color: #fff; }

.signup.is-done .signup__row,
.signup.is-done .signup__note { display: none; }
.signup.is-done .signup__msg {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .34);
  padding: 13px 20px; border-radius: 12px; font-size: 16px;
}

/* Honeypot: kept in the layout but out of sight and out of the tab order. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Section furniture ─────────────────────────────────────── */

.section-head { max-width: 44ch; margin-bottom: 52px; }
.section-head--tight { margin-bottom: 34px; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); text-wrap: balance; }
.section-head__sub { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; text-wrap: pretty; }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--violet-600); margin-bottom: 14px;
}

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

/* ── Demo stage ────────────────────────────────────────────── */

.demo { padding: 74px 0 78px; background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.demo .section-head { margin-inline: auto; text-align: center; max-width: 52ch; margin-bottom: 34px; }

.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 0;
}

.stage__note {
  margin-top: 30px; text-align: center;
  font-size: 14px; color: var(--ink-mute);
}

/* Mac window ------------------------------------------------ */

.mac {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); overflow: hidden;
  margin-right: -76px;
}
.mac__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(#FBFAFE, #F3F1FB);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--red { background: #FF5F57; } .dot--amber { background: #FEBC2E; } .dot--green { background: #28C840; }
.mac__title { margin-left: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-mute); }

.mac__body { display: grid; grid-template-columns: 152px minmax(0, 1fr); min-height: 430px; }
.mac__side {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 10px;
  background: #FAF9FE; border-right: 1px solid var(--line);
}
.mac__side-item {
  font-size: 13px; font-weight: 500; color: var(--ink-mute);
  padding: 7px 11px; border-radius: 8px;
}
.mac__side-item.is-active { background: var(--violet-050); color: var(--violet-700); font-weight: 600; }

.mac__main { display: flex; flex-direction: column; padding: 18px; }
.mac__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; flex: 1 1 auto; align-content: start; }

.mac__card { display: flex; flex-direction: column; gap: 8px; }
.mac__art {
  aspect-ratio: 3 / 4; border-radius: 8px; border: 1px solid var(--line);
  background: linear-gradient(160deg, #fff, #F4F2FD);
  padding: 12px 10px; display: flex; flex-direction: column; gap: 4.5px;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.mac__card.is-playing .mac__art { border-color: var(--violet-400); box-shadow: 0 0 0 3px rgba(158, 144, 247, .30); }
.mac__art i { display: block; height: 2.6px; border-radius: 2px; background: #E2DEF4; }
.mac__art i:nth-child(3n) { width: 62%; }
.mac__art i:nth-child(4n) { width: 78%; }
.mac__card-title {
  font-size: 11.5px; font-weight: 600; color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.mac__player {
  display: flex; align-items: center; gap: 11px;
  /* Right margin keeps the mini player clear of the phone overlapping in front. */
  margin: 16px 92px 0 0; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 11px; background: #FBFAFE;
}
.mac__player-art {
  width: 30px; height: 30px; border-radius: 7px; flex: none;
  background: linear-gradient(150deg, var(--violet-400), var(--violet-600));
}
.mac__player-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.mac__player-title {
  font-size: 12.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mac__player-sync { font-size: 11px; color: var(--violet-600); font-weight: 500; }
.mac__player-bar {
  flex: 0 0 96px; height: 4px; border-radius: 3px; background: var(--violet-200); overflow: hidden;
}
.mac__player-bar span {
  display: block; height: 100%; width: 0%;
  background: var(--violet-600); border-radius: 3px;
}

/* iPhone ---------------------------------------------------- */

.phone { position: relative; z-index: 2; justify-self: end; }

.phone__frame {
  position: relative; width: 320px; height: 616px;
  background: #16142A; border-radius: 50px; padding: 11px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .10);
}
.phone__island {
  position: absolute; top: 22px; left: 50%; translate: -50% 0;
  width: 92px; height: 26px; background: #000; border-radius: 999px; z-index: 3;
}
.phone__screen {
  position: relative; height: 100%; border-radius: 40px; overflow: hidden;
  background: #fff; display: flex;
}

.view {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 58px 0 0;
  opacity: 0; visibility: hidden; transform: translateX(14px);
  transition: opacity .32s ease, transform .32s ease, visibility .32s;
}
.view.is-active { opacity: 1; visibility: visible; transform: none; }

.view__head { padding: 6px 20px 12px; display: flex; align-items: baseline; justify-content: space-between; }
.view__head h3 { font-size: 27px; letter-spacing: -0.03em; }
.search { font-size: 12.5px; color: var(--ink-mute); background: var(--paper-alt); padding: 5px 11px; border-radius: 999px; }

.doclist { list-style: none; margin: 0; padding: 4px 12px; overflow: hidden; }

.docrow {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: none; border: 0; text-align: left; cursor: pointer;
  padding: 11px 10px; border-radius: 14px;
  transition: background-color .16s ease;
}
.docrow:hover { background: var(--paper-alt); }

.docrow__art {
  flex: none; width: 42px; height: 54px; border-radius: 6px;
  border: 1px solid var(--line); background: linear-gradient(160deg, #fff, #F2EFFC);
  padding: 8px 6px; display: flex; flex-direction: column; gap: 3.5px;
}
.docrow__art i { display: block; height: 2.5px; border-radius: 2px; background: #DDD8F1; }
.docrow__art i:nth-child(3) { width: 60%; }

.docrow__text { min-width: 0; flex: 1 1 auto; }
.docrow__title {
  display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.docrow__meta { display: block; font-size: 12px; color: var(--ink-mute); margin-top: 2px; }

.ring { flex: none; width: 34px; height: 34px; }
.ring circle { fill: none; stroke-width: 3.4; }
.ring .ring__bg { stroke: var(--violet-050); }
.ring .ring__fg { stroke: var(--violet-600); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring text { font-size: 10px; font-weight: 700; fill: var(--ink-soft); }

/* Reader ---------------------------------------------------- */

.reader__head {
  display: flex; align-items: center; gap: 8px;
  padding: 2px 16px 10px; border-bottom: 1px solid var(--line);
}
.reader__back {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 0; background: none; color: var(--violet-600); cursor: pointer; border-radius: 8px;
}
.reader__back:hover { background: var(--violet-050); }
.reader__title {
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.reader__page {
  flex: 1 1 auto; overflow: hidden; position: relative;
  padding: 20px 22px 10px;
  font-size: 14.5px; line-height: 1.72; color: #56536E;
  -webkit-mask-image: linear-gradient(#000 82%, transparent 99%);
          mask-image: linear-gradient(#000 82%, transparent 99%);
}
.reader__page > div {
  position: relative; z-index: 1;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
/* Opaque and above the text, so the page scrolls behind the chapter label
   instead of colliding with it. */
.reader__chapter {
  position: relative; z-index: 2;
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--violet-600);
  background: #fff;
  margin: -20px -22px 0; padding: 20px 22px 11px;
}
.sent {
  transition: color .3s ease, background-color .3s ease;
  border-radius: 5px; padding: 1px 2px; margin: 0 -2px;
}
.sent.is-read { color: #9A97AE; }
.sent.is-now  { color: var(--ink); background: rgba(158, 144, 247, .22); }

/* Player ---------------------------------------------------- */

.player {
  flex: none; padding: 12px 20px 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(#FDFCFF, #F7F5FE);
}

.wave { display: flex; align-items: flex-end; gap: 2.5px; height: 34px; margin-bottom: 12px; }
.wave b {
  flex: 1 1 auto; display: block; height: 12%; border-radius: 2px;
  background: linear-gradient(var(--violet-400), var(--violet-600));
  transition: height .11s linear;
}

.player__scrub { position: relative; height: 4px; border-radius: 3px; background: var(--violet-050); cursor: pointer; }
.player__scrub-fill { display: block; height: 100%; width: 0%; border-radius: 3px; background: var(--violet-600); }
.player__scrub-knob {
  position: absolute; top: 50%; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2px solid var(--violet-600); translate: -50% -50%;
  box-shadow: 0 1px 3px rgba(27, 25, 48, .25);
}
.player__times { display: flex; justify-content: space-between; margin-top: 7px; font-size: 11px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }

.player__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }

.ctl {
  display: grid; place-items: center; border: 0; background: none;
  color: var(--ink); cursor: pointer; width: 40px; height: 40px; border-radius: 50%;
  transition: background-color .15s ease, transform .12s ease;
}
.ctl:hover { background: var(--violet-050); }
.ctl:active { transform: scale(.94); }

.ctl--play {
  width: 52px; height: 52px; color: #fff;
  background: linear-gradient(150deg, var(--violet-400), var(--violet-600));
  box-shadow: 0 6px 16px rgba(110, 92, 232, .38);
}
.ctl--play:hover { background: linear-gradient(150deg, var(--violet-400), var(--violet-700)); }
.ctl--play .ico-pause { display: none; }
.ctl--play.is-playing .ico-play { display: none; }
.ctl--play.is-playing .ico-pause { display: block; }

.chip {
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  padding: 6px 11px; border-radius: 999px; min-width: 48px;
  transition: border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--violet-400); color: var(--violet-700); }

/* ── Benefits ──────────────────────────────────────────────── */

.benefits { padding: 92px 0; }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.card__icon {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 13px; background: var(--violet-050); color: var(--violet-600);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.22rem; margin-bottom: 9px; }
.card p { color: var(--ink-soft); text-wrap: pretty; }

/* ── Audience ──────────────────────────────────────────────── */

.who { padding: 0 0 96px; }
.who__item { border-top: 2px solid var(--violet-200); padding-top: 16px; }
.who__item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.who__item p { font-size: .95rem; color: var(--ink-mute); text-wrap: pretty; }

/* ── Join ──────────────────────────────────────────────────── */

.join {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 96px 0 104px; text-align: center; color: #fff;
  background: linear-gradient(150deg, #5A48D6 0%, #7A6BEF 52%, #A197F6 100%);
}
.join__glow {
  position: absolute; inset: auto -10% -50%; height: 110%;
  background: radial-gradient(44% 46% at 50% 92%, rgba(255,255,255,.26), transparent 70%);
  z-index: -1;
}
.join__inner { display: flex; flex-direction: column; align-items: center; }
.join h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.join > .shell > p { margin-top: 16px; max-width: 52ch; color: rgba(255,255,255,.88); text-wrap: pretty; }

/* ── Footer ────────────────────────────────────────────────── */

.foot { padding: 30px 0; border-top: 1px solid var(--line); background: var(--paper); }
.foot__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot__brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14.5px; }
.foot__brand img { border-radius: 5px; }
.foot__legal { font-size: 13px; color: var(--ink-mute); }

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .stage { grid-template-columns: 1fr; justify-items: center; }
  .mac { display: none; }
  .phone { justify-self: center; }
}

@media (max-width: 760px) {
  .hero { padding: 128px 0 76px; }
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .grid--4 { gap: 26px; }
  .signup__row { flex-direction: column; }
  .btn--solid { width: 100%; padding: 15px 22px; }
  .nav__cta { display: none; }
  .demo, .benefits { padding: 68px 0; }
  .who { padding-bottom: 72px; }
  .section-head { margin-bottom: 38px; }
}

@media (max-width: 380px) {
  .phone__frame { width: 288px; height: 600px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
