/* ============================================================
   pages.css — styles that belong to one page only.
   Grouped by page so it stays easy to find things.
   ============================================================ */

/* ---------------- Landing (index.html) ---------------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.site-nav.is-scrolled { background: rgba(255, 255, 255, .92); border-color: var(--rule); box-shadow: 0 8px 24px -20px rgba(20, 20, 40, .3); }
.site-nav__inner { display: flex; align-items: center; gap: 16px; padding: 16px 28px; max-width: var(--page-max); margin: 0 auto; }
.site-nav__brand { flex-shrink: 0; }
.site-nav img { height: 26px; width: auto; }
.site-nav__links { display: flex; align-items: center; gap: 2px; }
.site-nav__link { font-size: 13.5px; font-weight: 600; color: var(--body); padding: 8px 10px; border-radius: 8px; }
.site-nav__link:hover { color: #6D34E8; }

.site-nav__burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); flex-shrink: 0; }
.site-nav__burger span { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.site-nav__burger.is-on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-nav__burger.is-on span:nth-child(2) { opacity: 0; }
.site-nav__burger.is-on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Mobile nav drawer ---------- */
.nav-drawer { position: fixed; inset: 0; z-index: 110; visibility: hidden; }
.nav-drawer.is-open { visibility: visible; }
.nav-drawer__scrim {
  position: absolute; inset: 0; background: rgba(20, 20, 40, .38); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .22s;
}
.nav-drawer.is-open .nav-drawer__scrim { opacity: 1; }
.nav-drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(300px, 84vw);
  background: var(--card); box-shadow: -24px 0 60px -20px rgba(20, 20, 40, .35);
  padding: 18px 20px 26px; display: flex; flex-direction: column; gap: 2px;
  transform: translateX(100%); transition: transform .26s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}
.nav-drawer.is-open .nav-drawer__panel { transform: translateX(0); }
.nav-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.nav-drawer__head img { height: 22px; }
.nav-drawer__close { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; color: var(--mut); flex-shrink: 0; }
.nav-drawer .site-nav__link { display: block; padding: 13px 8px; font-size: 15px; border-bottom: 1px solid var(--rule); border-radius: 0; }
.nav-drawer .btn { margin-top: 16px; }

.hero { position: relative; }
.hero__glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero__glow i { position: absolute; display: block; border-radius: 50%; filter: blur(90px); font-style: normal; }
.hero__glow i:nth-child(1) { width: 440px; height: 440px; left: -140px; top: -160px; background: radial-gradient(circle, rgba(139, 92, 255, .45), transparent 70%); }
.hero__glow i:nth-child(2) { width: 420px; height: 420px; right: -160px; top: -60px; background: radial-gradient(circle, rgba(20, 184, 196, .35), transparent 70%); animation: heroFloat 14s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hero__glow i:nth-child(2) { animation: none; } }
@keyframes heroFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-24px, 26px); } }

.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--page-max); margin: 0 auto; padding: 36px 28px 64px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 44px; align-items: center;
}
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -.045em; margin-bottom: 18px; }
.hero p { font-size: 16.5px; color: var(--mut); max-width: 450px; line-height: 1.6; margin-bottom: 28px; }
.hero__tag { display: inline-flex; align-items: center; gap: 9px; border: 1px solid #E7E3F8; border-radius: 99px; padding: 7px 14px; margin-bottom: 22px; background: #F9F6FF; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--purple-deep); }
.hero__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); animation: pulse 2s infinite; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; font-weight: 600; color: var(--faint); }

.hero__platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 22px; font-size: 11.5px; color: var(--faint); font-weight: 600; }
.hero__platforms b { font-weight: 700; color: var(--body); background: var(--sunken); border: 1px solid var(--rule); padding: 5px 11px; border-radius: 99px; }

.hero__stage { position: relative; display: flex; justify-content: center; padding-bottom: 34px; }
.hero__badge {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-56%);
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--hair);
  border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-pop); max-width: 250px;
  animation: badgeFloat 5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .hero__badge { animation: none; } }
@keyframes badgeFloat { 0%, 100% { transform: translateX(-56%) translateY(0); } 50% { transform: translateX(-56%) translateY(-6px); } }
.hero__badge-dot { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); flex-shrink: 0; display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 800; }
.hero__badge b { display: block; font-size: 12.5px; font-weight: 800; }
.hero__badge span { display: block; font-size: 11px; color: var(--mut); line-height: 1.3; }
@media (max-width: 640px) { .hero__badge { display: none; } }

/* Phone mock with rotating caption slogans */
.phone {
  width: min(300px, 80vw); aspect-ratio: 9/16; border-radius: 28px; border: 8px solid var(--ink);
  background: var(--stage); position: relative; overflow: hidden;
  box-shadow: 0 40px 80px -34px rgba(91, 33, 182, .5); margin: 0 auto;
  container-type: inline-size;   /* caption sizes below are relative to this */
}
.phone__label { position: absolute; top: 16px; left: 16px; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: rgba(255, 255, 255, .35); }
.phone__caps { position: absolute; left: 0; right: 0; bottom: 24%; height: 40cqw; padding: 0 5cqw; display: grid; place-items: center; text-align: center; isolation: isolate; overflow: hidden; }

/* Rotating slogans. Sized in cqw so they shrink with the phone instead of
   spilling out of it on a narrow screen. */
.pc { font-weight: 800; letter-spacing: -.02em; }
.pc b { font-weight: inherit; color: #5EEAD4; }
.pc--punch { font-size: 14cqw; letter-spacing: -.045em; color: #A78BFA; }
.pc--word { font-size: 7.7cqw; color: rgba(255, 255, 255, .45); }
.pc--chip { font-size: 7cqw; color: #fff; }
.pc--chip span { background: #8B5CFF; animation: none; }
.pc--neon { font-size: 9cqw; font-weight: 700; color: #fff; text-shadow: 0 0 .12em #8B5CFF, 0 0 .6em rgba(139, 92, 255, .9); }
.pc--serif { font-size: 9.3cqw; font-weight: 400; color: #fff; }
.phone__caps > * {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  max-width: 100%;
  line-height: 1.15;
  animation: rotateIn 15s infinite;
  animation-fill-mode: both;
}
.phone__caps > *:nth-child(1) { animation-delay: 0s; }
.phone__caps > *:nth-child(2) { animation-delay: 3s; }
.phone__caps > *:nth-child(3) { animation-delay: 6s; }
.phone__caps > *:nth-child(4) { animation-delay: 9s; }
.phone__caps > *:nth-child(5) { animation-delay: 12s; }
.phone__bar { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; }
.phone__play { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 9px; }
.phone__track { flex: 1; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .16); position: relative; overflow: hidden; }
.phone__track i { position: absolute; inset: 0 40% 0 0; background: linear-gradient(90deg, #8B5CFF, #14B8C4); }
.phone__time { font-family: var(--mono); font-size: 9.5px; color: rgba(255, 255, 255, .55); }

/* 5 slogans share a 15s loop, so each owns 20% of it. The hand-off has to
   land inside that 20% or the phone goes blank between lines: fade in by 3%
   (0.45s) and be gone by 20% (3.0s), exactly when the next one starts. */
@keyframes rotateIn {
  0% { opacity: 0; visibility: hidden; transform: translateY(10px) scale(.92); }
  1% { visibility: visible; }
  3%, 17% { opacity: 1; visibility: visible; transform: none; }
  20% { opacity: 0; transform: translateY(-8px) scale(.96); }
  20.01%, 100% { opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.96); }
}
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.marquee { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); overflow: hidden; padding: 18px 0; background: #FAFAFE; }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: marquee 26s linear infinite; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #D6D9E6; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.feature { padding: 24px; }
.feature__icon { width: 42px; height: 42px; border-radius: var(--r-md); background: var(--purple-tint); color: var(--purple-deep); display: grid; place-items: center; font-size: 16px; margin-bottom: 15px; }
.feature__icon--teal { background: var(--teal-tint); color: var(--teal-text); }
.feature h3 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.feature p { font-size: 13.5px; color: var(--mut); line-height: 1.6; }

.cta-band {
  border-radius: 24px; padding: clamp(28px, 4vw, 46px); color: #fff;
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between;
  background: var(--grad-hero); background-size: 200% 200%; animation: ctaShift 9s ease infinite;
}
@keyframes ctaShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .cta-band { animation: none; } }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.035em; margin-bottom: 10px; }
.site-foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 26px; font-size: 12px; font-weight: 600; color: var(--faint); }

.land-section { padding: clamp(48px, 6vw, 80px) 28px; scroll-margin-top: 88px; }
.land-section--tint { background: #FAFAFE; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.land-section__inner { max-width: var(--page-max); margin: 0 auto; }
.land-section__inner--narrow { max-width: 720px; }
.land-section h2 { font-size: clamp(26px, 3.8vw, 40px); letter-spacing: -.035em; margin-bottom: 14px; }
.land-lead { font-size: 15px; color: var(--mut); line-height: 1.65; max-width: 640px; margin-bottom: 14px; }

.land-steps { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.land-step { padding: 22px; border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-card); transition: transform .18s, box-shadow .18s, border-color .18s; }
.land-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: #E7E3F8; }
.land-step__icon { width: 38px; height: 38px; border-radius: 11px; background: var(--purple-tint); color: var(--purple-deep); display: grid; place-items: center; font-size: 16px; margin-bottom: 14px; }
.land-step__num { display: block; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--purple); letter-spacing: .08em; margin-bottom: 12px; }
.land-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.land-step p { font-size: 13px; color: var(--mut); line-height: 1.55; margin: 0; }

.land-style { display: block; border: 1px solid var(--hair); border-radius: 20px; overflow: hidden; background: var(--card); text-decoration: none; color: inherit; box-shadow: var(--shadow-card); transition: border-color .18s, transform .18s, box-shadow .18s; }
.land-style:hover { border-color: #C9B8FF; transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.land-style__name { display: block; padding: 12px 14px 2px; font-size: 14px; font-weight: 700; }
.land-style__kind { display: block; padding: 0 14px 14px; font-size: 11.5px; color: var(--mut); }

.land-stats { gap: 14px; }
.land-stat { padding: 22px; border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--card); transition: transform .18s, box-shadow .18s; }
.land-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.land-stat b { display: block; font-size: 36px; font-weight: 800; letter-spacing: -.04em; color: var(--purple-deep); margin-bottom: 8px; }
.land-stat span { font-size: 13px; color: var(--mut); line-height: 1.45; }

/* Side-by-side "before / after" caption comparison */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; margin-top: 8px; }
.compare__card { border: 1px solid var(--hair); border-radius: 20px; background: var(--card); box-shadow: var(--shadow-card); padding: 18px; transition: transform .2s, box-shadow .2s; }
.compare__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.compare__tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); background: var(--sunken); border: 1px solid var(--rule); padding: 5px 10px; border-radius: 99px; margin-bottom: 14px; }
.compare__tag--grad { background: var(--grad); color: #fff; border-color: transparent; }
.compare__cap--flat { color: rgba(255, 255, 255, .8); font-size: 15px; font-weight: 500; line-height: 1.5; padding: 0 6px; }
.compare__note { font-size: 13px; color: var(--mut); line-height: 1.55; margin: 14px 0 0; }

/* Progressive-enhancement scroll reveal — .reveal-pending is only ever
   added by JS, so content stays fully visible if JS never runs. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.reveal-pending { opacity: 0; transform: translateY(18px); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal.reveal-pending { opacity: 1; transform: none; transition: none; } }

/* The FAQ is a <details>/<summary> list so the answers sit in the HTML and
   open with no JavaScript at all — they used to be injected by landing.js,
   which kept them out of reach of crawlers. The +/- glyph is drawn here
   rather than written into the markup so [open] alone drives it. */
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 18px 0; font-size: 14.5px; font-weight: 700; text-align: left; color: var(--ink); cursor: pointer; list-style: none; }
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { content: ''; }
.faq-item__q:hover { color: var(--purple-deep); }
.faq-item__q:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
.faq-item__icon { font-size: 18px; color: var(--faint); flex-shrink: 0; }
.faq-item__icon::before { content: '+'; }
.faq-item[open] .faq-item__icon { color: var(--purple-deep); }
.faq-item[open] .faq-item__icon::before { content: '−'; }
.faq-item__a { font-size: 13.5px; color: var(--mut); line-height: 1.65; }
.faq-item__a-inner { padding-bottom: 18px; }

.land-foot { align-items: flex-start; padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--rule); }
.land-foot__links { display: flex; gap: 48px; flex-wrap: wrap; }
.land-foot__links b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.land-foot__links a { display: block; font-size: 13px; font-weight: 600; color: var(--body); padding: 4px 0; }
.land-foot__links a:hover { color: var(--purple-deep); }

/* ---------------- Landing: small screens ---------------- */
@media (max-width: 860px) {
  .site-nav__inner { gap: 10px; padding: 14px 16px; flex-wrap: nowrap; }
  .site-nav img { height: 22px; }
  /* Section anchors + Sign in move into the drawer; the burger takes over. */
  .site-nav__links, .site-nav__signin { display: none; }
  .site-nav__burger { display: flex; }
  .site-nav .btn { white-space: nowrap; padding: 10px 14px; font-size: 13px; }

  .hero__inner { padding: 22px 16px 44px; gap: 32px; }
  .hero p { font-size: 15px; margin-bottom: 22px; }
  .hero .btn--lg { width: 100%; justify-content: center; }
  .hero__facts { gap: 12px 18px; }

  .land-section { padding: clamp(38px, 9vw, 56px) 16px; }
  .land-lead { font-size: 14.5px; }
  .marquee__track { font-size: 15px; gap: 22px; }
  .land-foot__links { gap: 28px; }
  .cta-band { border-radius: 20px; text-align: left; }
  .cta-band .btn { width: 100%; justify-content: center; }
}

@media (max-width: 440px) {
  .site-nav__inner { gap: 8px; padding: 12px 14px; }
  .site-nav img { height: 19px; }
  .site-nav .btn { padding: 9px 12px; font-size: 12.5px; }
}

/* ---------------- Auth (login.html) ---------------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); background: var(--card); }
.auth__aside { padding: clamp(28px, 5vw, 54px); display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #F9F6FF, #EEF6FA); min-height: 340px; }
.auth__aside img { height: 26px; width: auto; }
.auth__pitch { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; margin-bottom: 16px; }
.auth__form { padding: clamp(28px, 5vw, 54px); display: flex; align-items: center; justify-content: center; }
.auth__form > div { width: 100%; max-width: 390px; }

/* ---------------- Dashboard ---------------- */
.dropzone {
  border: 1.5px dashed #D9C9FF; border-radius: var(--r-xl); padding: clamp(24px, 3vw, 34px);
  background: linear-gradient(180deg, #FBFAFF, #FFFFFF); cursor: pointer; text-align: center; transition: all .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--purple); background: var(--purple-tint); }
.dropzone__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--purple-tint); display: grid; place-items: center; font-size: 22px; color: var(--purple); margin: 0 auto 14px; }

.tile { border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--card); overflow: hidden; text-align: left; box-shadow: var(--shadow-card); }
.tile:hover { border-color: #C9B8FF; }
.tile__cap { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; font-size: 13px; font-weight: 700; }
.tile__kind { font-size: 11px; font-weight: 600; color: var(--mut); background: var(--sunken); border: 1px solid var(--rule); border-radius: 99px; padding: 3px 8px; white-space: nowrap; }
.tile--more {
  border: 1.5px dashed #D9C9FF; border-radius: var(--r-lg); background: linear-gradient(180deg, #FBFAFF, #FFFFFF);
  min-height: 148px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; padding: 18px; text-align: center; color: var(--ink);
}

/* ---------------- Editor ---------------- */
.stage-wrap { display: flex; justify-content: center; background: var(--card); border: 1px solid var(--hair); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-card); }
.transport { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.transport__play {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  font-size: 12px; line-height: 1; box-shadow: 0 8px 18px -10px rgba(91, 33, 182, .8);
}
.transport__play:hover { filter: brightness(1.06); }
.font-grid { max-height: 118px; overflow: auto; padding-right: 2px; }
.emoji-grid { max-height: 148px; overflow: auto; padding-right: 2px; }
.chip--emoji { min-width: 38px; justify-content: center; font-size: 16px; padding: 7px 9px; }
.transport__time { font-family: var(--mono); font-size: 11.5px; color: var(--mut); flex-shrink: 0; }
.scrub { flex: 1; height: 26px; display: flex; align-items: center; cursor: pointer; }
.scrub__rail { width: 100%; height: 6px; border-radius: 4px; background: var(--rule); position: relative; }
.scrub__fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--grad); border-radius: 4px; }
.scrub__head { position: absolute; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--purple); box-shadow: 0 2px 6px rgba(20, 20, 40, .2); }

.voice-strip { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.voice-strip__rail { position: relative; flex: 1; height: 16px; border-radius: 5px; background: #F3F4FA; overflow: hidden; }
.voice-strip__seg { position: absolute; top: 0; bottom: 0; background: linear-gradient(180deg, #A78BFA, #7C4DFF); border-radius: 2px; }

.word-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 104px; overflow: auto; }
.word-chip { padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--sunken); color: var(--mut); border: 1px solid var(--rule); }
.word-chip.is-on { background: var(--purple-tint); color: var(--purple-deep); border-color: var(--purple-line); }

.line-row { display: flex; gap: 11px; align-items: baseline; padding: 10px 12px; border-radius: 11px; background: var(--sunken); border: 1px solid var(--rule); font-size: 12.5px; text-align: left; width: 100%; }
.line-row.is-on { background: #F9F6FF; border-color: #E7E3F8; }
.line-row time { font-family: var(--mono); font-size: 10.5px; color: var(--faint); flex-shrink: 0; }

.panel { border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--card); padding: 18px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow-card); }
.panel__group > .eyebrow { margin-bottom: 10px; display: block; }
.dl-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; width: 100%; }
.dl-row:hover { border-color: #C9B8FF; background: #FAFAFE; }
.render-box { border: 1px solid var(--line); border-radius: 14px; padding: 15px; background: var(--sunken); }
.render-box__bar { height: 6px; border-radius: 4px; background: #E7E9F2; overflow: hidden; margin-bottom: 13px; }
.render-box__fill { height: 100%; background: var(--grad); transition: width .2s; }

/* ---------------- Templates library ---------------- */
.tpl-card { border: 1px solid var(--hair); border-radius: 20px; background: var(--card); overflow: hidden; box-shadow: var(--shadow-card); }
.tpl-card__body { padding: 15px 16px; }
.tpl-card__name { font-size: 14.5px; font-weight: 700; }
.tpl-card__desc { font-size: 12.5px; color: var(--mut); margin: 6px 0 13px; }

/* ---------------- Pricing ---------------- */
.plan { position: relative; border: 1px solid var(--hair); border-radius: 20px; padding: 24px 20px 20px; background: var(--card); box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.plan--hot { border-color: #D9C9FF; background: linear-gradient(180deg, #F9F6FF, #FFFFFF); box-shadow: 0 20px 40px -26px rgba(91, 33, 182, .35); }
.plan__badge { position: absolute; top: -10px; left: 18px; font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 4px 9px; border-radius: 7px; background: var(--rule); color: var(--mut); }
.plan__badge--hot { background: var(--grad); color: #fff; }
.plan__badge--own { background: var(--teal-tint); color: var(--teal-text); border: 1px solid var(--teal-line); }
.plan__name { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.plan__blurb { font-size: 12.5px; color: var(--mut); margin-bottom: 16px; min-height: 36px; line-height: 1.45; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 5px; }
.plan__price b { font-size: 31px; font-weight: 800; letter-spacing: -.04em; }
.plan__rate { font-size: 11.5px; font-weight: 700; color: #6D34E8; margin-bottom: 14px; }
.plan__mins { border: 1px solid var(--hair); border-radius: 12px; padding: 12px 13px; font-size: 13px; font-weight: 700; margin-bottom: 16px; background: var(--sunken); }
.plan__feats { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.plan__feat { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.45; color: var(--body); }
.plan__feat i { color: var(--brand-teal); font-style: normal; font-weight: 700; flex-shrink: 0; }

/* ---------------- Refer / plugins / settings ---------------- */
.metric { border: 1px solid var(--hair); border-radius: 16px; padding: 17px; background: var(--card); box-shadow: var(--shadow-card); }
.metric__label { font-size: 12px; color: var(--mut); margin-bottom: 9px; }
.metric__value { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.metric--tint { border-color: #E7E3F8; background: linear-gradient(180deg, #F7F3FF, #FFFFFF); box-shadow: none; }
.metric--tint .metric__value { color: var(--purple-deep); }

.step-num { width: 22px; height: 22px; border-radius: 7px; background: var(--purple-tint); color: var(--purple-deep); font-size: 11px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }

.integration { display: flex; align-items: center; gap: 13px; border: 1px solid var(--hair); border-radius: 16px; padding: 15px; background: var(--card); box-shadow: var(--shadow-card); }
.integration__logo { width: 40px; height: 40px; border-radius: 12px; background: var(--purple-tint); color: var(--purple-deep); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }

.setting { display: flex; align-items: center; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--rule); }
.setting:last-child { border-bottom: none; }
.setting__name { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.setting__desc { font-size: 12px; color: var(--mut); line-height: 1.45; }

/* ---------------- App pages: small screens ---------------- */
@media (max-width: 620px) {
  /* Sign-in: the pitch panel is decoration, so let the form lead. */
  .auth__aside { min-height: 0; padding: 22px 18px; }
  .auth__aside > div { padding: 20px 0 !important; }
  .auth__form { padding: 22px 18px 40px; }

  .dropzone { padding: 22px 16px; }
  .dropzone__icon { width: 46px; height: 46px; font-size: 19px; margin-bottom: 11px; }

  .stage-wrap { padding: 10px; border-radius: 16px; }
  .panel { padding: 15px; gap: 17px; }

  /* Play + clock + scrub + Safe area cannot share one 390px row: give the
     scrub a line of its own so it stays draggable. */
  .transport { flex-wrap: wrap; gap: 10px; }
  .transport .scrub { order: 3; flex: 1 0 100%; height: 32px; }
  .transport__time { margin-right: auto; }

  .word-chips { max-height: 88px; }
  .font-grid { max-height: 104px; }
  .emoji-grid { max-height: 128px; }

  .plan { padding: 22px 17px 18px; }
  .plan__blurb { min-height: 0; }
  .land-stat b { font-size: 30px; }
  .metric__value { font-size: 21px; }
  .integration { padding: 13px; gap: 11px; }
}

/* ---------------- Blog ---------------- */
.blog-hero { padding: 56px 28px 16px; max-width: 760px; margin: 0 auto; text-align: center; }
.blog-hero h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.035em; margin-bottom: 14px; }
.blog-hero p { font-size: 15.5px; color: var(--mut); line-height: 1.6; max-width: 560px; margin: 0 auto; }

.blog-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); max-width: var(--page-max); margin: 0 auto; padding: 28px 28px 90px; }
.blog-card {
  display: flex; flex-direction: column; border: 1px solid var(--hair); border-radius: 20px;
  background: var(--card); box-shadow: var(--shadow-card); padding: 26px;
  text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: #E7E3F8; }
.blog-card__tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-deep); margin-bottom: 12px; }
.blog-card h2 { font-size: 19px; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 10px; }
.blog-card p { font-size: 13.5px; color: var(--mut); line-height: 1.6; margin-bottom: 18px; flex: 1; }
.blog-card__meta { font-size: 11.5px; color: var(--faint); font-weight: 600; }

/* Article page */
.article { max-width: 720px; margin: 0 auto; padding: 48px 28px 90px; }
.article__eyebrow { margin-bottom: 16px; }
.article h1 { font-size: clamp(28px, 4.2vw, 44px); letter-spacing: -.035em; line-height: 1.1; margin-bottom: 18px; }
.article__dek { font-size: 16.5px; color: var(--mut); line-height: 1.6; margin-bottom: 22px; }
.article__meta { font-size: 12.5px; color: var(--faint); font-weight: 600; margin-bottom: 38px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }

.article__body { font-size: 16.5px; line-height: 1.78; color: var(--body); }
.article__body h2 { font-size: 25px; letter-spacing: -.02em; color: var(--ink); font-weight: 800; margin: 42px 0 16px; }
.article__body h3 { font-size: 18.5px; letter-spacing: -.01em; color: var(--ink); font-weight: 700; margin: 30px 0 12px; }
.article__body p { margin: 0 0 18px; }
.article__body ul, .article__body ol { margin: 0 0 18px; padding-left: 24px; }
.article__body li { margin-bottom: 9px; }
.article__body strong { color: var(--ink); font-weight: 700; }
.article__body a { color: #6D34E8; text-decoration: underline; text-underline-offset: 3px; }
.article__body a:hover { color: var(--brand-teal); }

.article__cta { margin-top: 46px; padding: 30px; border-radius: 20px; background: var(--grad-hero); color: #fff; text-align: center; }
.article__cta h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 8px; color: #fff; }
.article__cta p { color: rgba(255, 255, 255, .85); font-size: 13.5px; margin-bottom: 20px; }

.article__related { margin-top: 50px; padding-top: 32px; border-top: 1px solid var(--rule); }
.article__related h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 16px; font-weight: 700; }
.article__related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.article__related a { display: block; padding: 10px 0; font-size: 14.5px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--rule); }
.article__related a:hover { color: var(--purple-deep); }

@media (max-width: 620px) {
  .blog-hero { padding: 40px 18px 12px; }
  .blog-grid { padding: 22px 16px 70px; gap: 16px; }
  .article { padding: 36px 18px 70px; }
  .article__body { font-size: 15.5px; }
  .article__body h2 { font-size: 21px; margin: 34px 0 14px; }
}

/* Closed drawer is moved off-screen, not removed, so its links stayed in the
   tab order and in the accessibility tree — tabbing out of the header walked
   into an invisible menu. visibility:hidden takes it out of both, and the
   transition keeps the slide-in intact. */
.nav-drawer:not(.is-open) { visibility: hidden; }
.nav-drawer { transition: visibility 0s linear .28s; }
.nav-drawer.is-open { visibility: visible; transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- Small Android phones ------------------------------------------------
   360px is the reported CSS width of a very large share of budget Android
   handsets, and the smallest breakpoint here was 440px — so the most common
   phone on this site was being served near-tablet spacing. */
@media (max-width: 380px) {
  .land-section__inner { padding-left: 16px; padding-right: 16px; }
  .hero__inner { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: clamp(30px, 9vw, 38px); letter-spacing: -.035em; }
  .hero p { font-size: 15.5px; }
  .site-nav__inner { padding: 10px 12px; }
  .site-nav .btn { padding: 9px 11px; font-size: 12px; }
  .land-foot__links { gap: 26px; }
  .plan { padding: 18px 16px; }
  .land-stat b { font-size: 30px; }
  h2 { font-size: 22px; }
  .page { padding-left: 14px; padding-right: 14px; }
}

/* ---- Touch targets, fourth pass — the editor -----------------------------
   The studio packs a lot of controls into a narrow column and several were
   under the 44px floor on a phone: the play button at 38px, colour swatches
   at 32, word chips at 30. This lives in pages.css rather than
   components.css because pages.css loads last and owns .transport__play's
   size — the same rules in components.css were being overridden.
   The swatch keeps its 32px visual size and gains the hit area from padding,
   so the palette still reads as a palette. */
@media (pointer: coarse) {
  .transport__play { width: var(--tap-min); height: var(--tap-min); }
  .word-chip, .chip--emoji, .swatch { min-width: var(--tap-min); min-height: var(--tap-min); }
  .word-chip, .chip--emoji { display: inline-flex; align-items: center; justify-content: center; }
  .swatch { padding: 6px; background-clip: content-box; }
  .topbar a, .topbar button { min-height: var(--tap-min); display: inline-flex; align-items: center; }
  /* these scroll boxes are unusable on a phone at 104-118px tall */
  .font-grid, .word-chips { max-height: none; }
  .panel button, .panel a.btn { min-height: var(--tap-min); }
}
