/* Sayful Pro checkout hand-off.
 *
 * This page exists for about two seconds: the buyer arrives from the native app
 * having already decided, and the Paddle overlay opens on top of it. So it is
 * built as a confident receipt, not a billboard — quiet, atmospheric, and out of
 * the way.
 *
 * The serif display face is deliberate: the app's own `DisplayText` renders with
 * `design: .serif`, so a sans-only page reads as a different product at exactly
 * the moment trust matters most.
 */

:root {
  --void: #070a09;
  --ink: #f1f4f2;
  --ink-2: #9aa5a0;
  --ink-3: #6b7873;
  --iris: #2fa06f;
  --iris-lift: #46c98f;
  --verdant: #15846e;
  --hairline: rgba(255, 255, 255, 0.09);
  --card: rgba(255, 255, 255, 0.026);

  --sans: 'Geist', ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Newsreader', ui-serif, 'New York', Georgia, serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Atmosphere: a bloom behind the card so the page has depth instead of being a
   flat rectangle, plus grain so the gradient never bands on a wide display. */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(60rem 40rem at 50% -10%, rgba(47, 160, 111, 0.17), transparent 65%),
    radial-gradient(40rem 30rem at 85% 100%, rgba(21, 132, 110, 0.11), transparent 70%);
  z-index: 0;
}

body::after {
  /* Inline SVG turbulence: no extra request, and it survives the strict CSP. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035;
  z-index: 1;
  mix-blend-mode: overlay;
}

.stage {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
}

/* --- entrance -------------------------------------------------------------- */

/* One orchestrated reveal on load. Every direct child of [data-reveal] rises in
   sequence rather than scattering micro-animations through the page. */
[data-reveal] > * {
  animation: rise 0.7s var(--ease) both;
}

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

[data-reveal] > *:nth-child(1) { animation-delay: 0.05s; }
[data-reveal] > *:nth-child(2) { animation-delay: 0.13s; }
[data-reveal] > *:nth-child(3) { animation-delay: 0.21s; }
[data-reveal] > *:nth-child(4) { animation-delay: 0.29s; }
[data-reveal] > *:nth-child(5) { animation-delay: 0.37s; }
[data-reveal] > *:nth-child(6) { animation-delay: 0.45s; }
[data-reveal] > *:nth-child(7) { animation-delay: 0.53s; }

/* --- brand mark ------------------------------------------------------------ */

.mark {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 40px;
  margin-bottom: 26px;
}

/* The logo is an audio waveform, and dictation is what is being bought — so the
   bars settle into place on arrival, then breathe. The one thing to remember. */
.mark span {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--iris-lift), var(--verdant));
  transform-origin: bottom;
  animation:
    settle 0.9s var(--ease) both,
    breathe 3.6s ease-in-out infinite;
}

.mark span:nth-child(1) { height: 12px; animation-delay: 0.00s, 1.0s; }
.mark span:nth-child(2) { height: 26px; animation-delay: 0.06s, 1.1s; }
.mark span:nth-child(3) { height: 40px; animation-delay: 0.12s, 1.2s; }
.mark span:nth-child(4) { height: 30px; animation-delay: 0.18s, 1.3s; }
.mark span:nth-child(5) { height: 18px; animation-delay: 0.24s, 1.4s; }
.mark span:nth-child(6) { height: 9px;  animation-delay: 0.30s, 1.5s; }

@keyframes settle {
  from { transform: scaleY(0.05); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

@keyframes breathe {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.72); }
}

/* --- type ------------------------------------------------------------------ */

.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

h1 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 7vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h1 em {
  font-style: italic;
  color: var(--iris-lift);
}

.lede {
  margin: 0 0 34px;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 16px;
}

/* --- price ---------------------------------------------------------------- */

.price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(47, 160, 111, 0.08), transparent 70%),
    var(--card);
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price i {
  color: var(--ink-2);
  font-style: normal;
  font-size: 15px;
}

.price small {
  max-width: 21ch;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.45;
  text-align: right;
}

/* --- included ------------------------------------------------------------- */

.included {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.included li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14.5px;
}

.included li::before {
  content: '';
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--iris);
  transform: translateY(-3px);
}

.included li span {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

/* --- action --------------------------------------------------------------- */

.action { margin-top: 30px; }

.btn {
  position: relative;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--iris-lift), var(--verdant));
  color: #04120c;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 10px 34px rgba(21, 132, 110, 0.28);
}

.btn:hover:not([disabled]) {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(21, 132, 110, 0.38);
}

.btn:active:not([disabled]) { transform: translateY(0); }

/* A light sweep on hover — the button is the only interactive thing on the page,
   so it earns the one flourish. */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn:hover:not([disabled])::after { transform: translateX(120%); }

.btn[disabled] {
  cursor: progress;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-2);
  box-shadow: none;
}

.status {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--ink-3);
  font-size: 12.5px;
}

.status[data-kind='error'] { color: #ff9d9d; }
.status[data-kind='ok'] { color: var(--iris-lift); }

.fine {
  margin: 8px 0 0;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.65;
}

.fine a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.fine a:hover { color: var(--ink); }

/* --- motion & light preferences ------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  /* Someone who asked for less motion still gets the layout, just instantly. */
  [data-reveal] > *,
  .mark span {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .btn, .btn::after { transition: none; }
}

@media (max-width: 480px) {
  .price { flex-wrap: wrap; }
  .price small { max-width: none; text-align: left; }
}
