/* Landing page (Parakeet-style) */
:root{
  --lp-bg: #0ea5e9;
  --lp-bg2: #22c55e;
  --lp-card: #ffffff;
  --lp-text: #0f172a;
  --lp-muted: #6b7280;
  --lp-border: rgba(0,0,0,0.08);
  --lp-shadow: 0 10px 30px rgba(2,6,23,0.08);
  --lp-radius: 16px;
}

.landing{
  display:grid;
  grid-template-columns: 1fr; /* one-column layout */
  gap: 24px;
  min-height: calc(100vh - 100px);
}

.lp-left, .lp-right{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 32px;
}

.signin-card{
  width: 100%;
  max-width: 420px;
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow);
  padding: 28px;
}

.signin-card h1{
  margin: 10px 0 6px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.brand-inline{
  font-weight: 700;
  color: var(--lp-text);
  opacity: .85;
}

.signin-card .muted{
  color: var(--lp-muted);
  margin-bottom: 16px;
}

.btn-dark{
  background: #0f172a;
  color: #fff;
  border: 1px solid #0f172a;
}
.btn-dark:hover{
  filter: brightness(1.08);
}

.google-btn{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:44px;
  border-radius: 10px;
}
.g-logo{
  display:inline-grid;
  place-items:center;
  width:22px;
  height:22px;
  background:#fff;
  color:#0f172a;
  border-radius: 4px;
  font-weight: 800;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
}

.divider{
  display:flex;
  align-items:center;
  gap:10px;
  margin: 16px 0;
  color: var(--lp-muted);
  font-size: 12px;
}
.divider::before,
.divider::after{
  content:"";
  flex:1;
  height:1px;
  background: var(--lp-border);
}

.lp-email{
  display:flex;
  gap:10px;
}
.lp-email input{
  flex:1;
  height:42px;
  border:1px solid var(--lp-border);
  border-radius: 10px;
  padding: 0 12px;
  outline: none;
}
.lp-email input:focus{
  border-color:var(--brand-2);
  box-shadow: 0 0 0 3px rgba(14,165,233,.18);
}
.lp-email .btn.icon{
  width:42px;
  height:42px;
  border-radius: 10px;
}

/* Right gradient + testimonials */
.lp-right{
  overflow:hidden;
  isolation:isolate;
}
.lp-gradient{
  position:absolute;
  inset:0;
  background: radial-gradient(1200px 600px at 70% 20%, rgba(14,165,233,.35), transparent 60%),
              radial-gradient(1000px 600px at 60% 80%, rgba(34,197,94,.35), transparent 60%),
              linear-gradient(120deg, rgba(14,165,233,.08), rgba(34,197,94,.08));
  filter: blur(2px);
  z-index:0;
}

.testimonials{
  position:relative;
  z-index:1;
  width:100%;
  display:grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap:14px;
  padding: 8px;
  transform: translateY(0);
}

.t-card{
  background: rgba(255,255,255,0.9);
  border:1px solid var(--lp-border);
  border-radius: 14px;
  box-shadow: var(--lp-shadow);
  padding: 14px;
  backdrop-filter: blur(4px);
}
.t-name{
  font-weight: 700;
  margin-bottom: 6px;
}
.t-text{
  color: var(--lp-text);
  line-height: 1.35;
  margin-bottom: 10px;
}
.t-meta{
  display:flex;
  align-items:center;
  gap:8px;
}
.t-meta .badge{
  background:#eef2ff;
  color:#4338ca;
  border:1px solid #e0e7ff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

/* Make landing full-bleed on small screens; stack */
@media (max-width: 1024px){
  .landing{
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .lp-right{
    padding-top: 0;
  }
  .testimonials{
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }
}
@media (max-width: 640px){
  .signin-card{
    padding: 20px;
    border-radius: 12px;
  }
  .signin-card h1{
    font-size: 24px;
  }
  .testimonials{
    grid-template-columns: 1fr;
  }
}

/* Minor utilities that complement base styles */
.xs{ font-size: 12px; }

/* Reimagined hero */
.landing.hero{
  grid-template-columns: 1fr; /* force one column even on desktop */
  align-items: stretch;
}

/* Grammarly-style hero */
.gram-left{
  width:100%;
  max-width:760px;
}
.gram-headline{
  font-size: clamp(40px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 8px 0 16px;
  color: var(--lp-text);
}
.gram-sub{
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--lp-text);
  opacity: .9;
  max-width: 58ch;
}
.gram-cta{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap: wrap;
  margin: 22px 0 10px;
}
.gram-btn{
  height:54px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  font-size: 16px;
}
.gram-google{
  background:#fff;
  border:1px solid var(--lp-border);
  height:54px;
  border-radius:999px;
  padding:0 18px;
  display:flex;
  align-items:center;
  gap:10px;
}
.gram-google .g{
  display:inline-grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:4px;
  background:#fff;
  color:#0f172a;
  font-weight:800;
  border:1px solid #e5e7eb;
}
.gram-terms a{ color: var(--brand-2); }

.gram-right{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.gram-mock{
  width: min(560px, 92%);
  border:1px solid var(--lp-border);
  border-radius: 14px;
  background:#fff;
  box-shadow: var(--lp-shadow);
}
.gm-top{
  padding:8px 10px;
  border-bottom:1px solid var(--lp-border);
  display:flex;
  align-items:center;
}
.gm-logo{
  width:18px;
  height:18px;
  border-radius:4px;
  background: linear-gradient(135deg, #0ea5e9, #14b8a6);
  color:#fff;
  font-weight:800;
  display:grid;
  place-items:center;
  font-size:12px;
}
.gm-body{
  position:relative;
  min-height:140px;
  padding:18px;
}
.gm-body p{
  font-size:22px;
  line-height:1.3;
  color:#64748b;
  margin:0;
}
.gm-badge{
  position:absolute;
  right:16px;
  bottom:16px;
  width:40px;
  height:40px;
  border-radius:12px;
  background: linear-gradient(135deg, #0ea5e9, #14b8a6);
  color:#fff;
  font-weight:800;
  display:grid;
  place-items:center;
}
.gm-toolbar{
  border-top:1px solid var(--lp-border);
  padding:10px 12px;
  color:#94a3b8;
  display:flex;
  gap:12px;
  font-size:14px;
}
.hero-copy{
  width:100%;
  max-width:720px;
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow);
  padding: 28px;
}
.hero-copy h1{
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
}
.hero-copy .lead{
  color: var(--lp-text);
  opacity: .9;
  line-height: 1.5;
  margin-top: 6px;
}

/* CTA row + email */
.cta-row{
  display:flex;
  flex-wrap: wrap;
  gap:12px;
  align-items:center;
  margin-top: 16px;
}
.hero-email{
  display:flex;
  gap:10px;
  width:100%;
  max-width: 640px;
}
.hero-email input{
  flex:1;
  height:56px;
  border:1px solid var(--lp-border);
  border-radius: 999px;
  padding:0 18px;
  outline:none;
  font-size: 16px;
}
.hero-email input:focus{
  border-color:var(--brand-2);
  box-shadow: 0 0 0 4px rgba(14,165,233,.18);
}
.hero-email .btn{
  height:56px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(14,165,233,.25);
}

/* Ticker */
.ticker{
  display:flex;
  gap:8px;
  align-items:center;
  margin: 14px 0 6px;
}
.ticker .muted{
  color: var(--lp-muted);
}
.ticker-text{
  font-weight: 700;
  color: #111827;
  min-height: 1.6em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.ticker-text.show{
  opacity: 1;
  transform: translateY(0);
}

/* Right preview card */
.live-card{
  position:relative;
  z-index:1;
  width:100%;
  max-width: 440px;
  background: rgba(255,255,255,0.95);
  border:1px solid var(--lp-border);
  border-radius: 16px;
  box-shadow: var(--lp-shadow);
  padding: 18px 18px 12px;
  backdrop-filter: blur(4px);
}
.dot.live{
  width:10px;
  height:10px;
  background:#22c55e;
  border-radius:999px;
  display:inline-block;
  box-shadow: 0 0 0 0 rgba(34,197,94,.6);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot{
  0%{ box-shadow: 0 0 0 0 rgba(34,197,94,.6) }
  70%{ box-shadow: 0 0 0 12px rgba(34,197,94,0) }
  100%{ box-shadow: 0 0 0 0 rgba(34,197,94,0) }
}
.wave{
  display:flex;
  gap:6px;
  height:40px;
  align-items:flex-end;
  margin: 10px 0 8px;
}
.wave span{
  display:block;
  width:8px;
  background: linear-gradient(180deg,#14b8a6,#0ea5e9); /* turquoise → azure */
  border-radius: 6px;
  height: 12px;
  animation: waveUp 1.2s ease-in-out infinite;
}
.wave span:nth-child(2){ animation-delay:.1s }
.wave span:nth-child(3){ animation-delay:.2s }
.wave span:nth-child(4){ animation-delay:.3s }
.wave span:nth-child(5){ animation-delay:.4s }
@keyframes waveUp{
  0%,100%{ height:12px }
  50%{ height:36px }
}

/* Hero illustration (AI-styled SVG card) */
.hero-illustration{
  position: relative;
  width: 100%;
  max-width: 640px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow);
  background: #0b2e4f;
  margin: 8px 0 12px;
}
.hero-illustration svg{
  display: block;
  width: 100%;
  height: auto;
}

/* Feature grid */
.features{
  margin-top: 22px;
}

/* Dashboard step flow (Parakeet-inspired) */
.steps{
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
  margin: 10px 0 14px;
}
.step-card{
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  box-shadow: var(--lp-shadow);
  padding: 16px;
  display: grid;
  gap: 8px;
}
.step-card .subheading strong{ color: var(--lp-text); }
.step-arrow{
  display: grid;
  place-items: center;
  color: var(--lp-muted);
  font-size: 22px;
}
@media (max-width: 1024px){
  .steps{ grid-template-columns: 1fr; }
  .step-arrow{ display: none; }
}

/* Trust strip (marquee logos) */
.trust-strip{
  margin: 10px 0 4px;
  padding: 10px 0 4px;
}
.trust-title{
  text-align:center;
  color: var(--lp-muted);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  margin: 0 0 10px;
}
.logo-marquee{
  position: relative;
  overflow: hidden;
}
.logo-marquee::before,
.logo-marquee::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 20px;
  z-index: 1;
  pointer-events: none;
}
.logo-marquee::before{
  left:0;
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0) 100%);
}
.logo-marquee::after{
  right:0;
  background: linear-gradient(to left, #fff 0%, rgba(255,255,255,0) 100%);
}
.logos-track{
  display:flex;
  align-items:center;
  gap: clamp(16px, 3vw, 40px);
  padding: 8px 0 16px;
  min-width: 100%;
  flex: 0 0 auto;
  animation: marquee 20s linear infinite;
}
.logo-marquee .logos-track:nth-child(2){
  animation-delay: -10s; /* half of 20s for seamless loop */
}
.logo-item{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color:#6b7280; /* slate-500 */
  opacity:.95;
  font-weight: 600;
  font-size: clamp(14px, 1.6vw, 18px);
  white-space: nowrap;
}
.logo-item .logo-img{
  height: 44px;
  width: auto;
  display: block;
  opacity: .95;
}
.brand-label{
  font-size: clamp(15px, 1.8vw, 20px);
  color:#6b7280;
  font-weight:600;
  letter-spacing: .2px;
}
@media (min-width: 1200px){
  .logo-item .logo-img{ height: 52px; }
}

/* Avoid Safari mask issues by also providing -webkit-mask (optional) */
@supports (-webkit-touch-callout: none){
  .logo-marquee::before{
    -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,0) 100%);
  }
  .logo-marquee::after{
    -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,0) 100%);
  }
}

@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-100%); }
}

/* Alternating feature rows (Grammarly-style) */
.feature-rows{
  display: grid;
  gap: 48px;
  margin-top: 24px;
}
.feature-row{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
}
.feature-copy h2{
  font-size: 28px;
  margin: 0 0 8px;
}
.feature-copy p{
  color: var(--lp-muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 12px;
}
.feature-media{
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  box-shadow: var(--lp-shadow);
  padding: 12px;
}
.feature-media svg{
  width: 100%;
  height: auto;
  display: block;
}

/* Real image media card (Grammarly-style) */
.media-card{
  background: linear-gradient(135deg, rgba(14,165,233,.10), rgba(20,184,166,.10));
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  box-shadow: var(--lp-shadow);
  padding: 0;
  overflow: hidden;
}
.media-card .media-img{
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;      /* keep a pleasant card ratio */
  object-fit: cover;          /* crop gracefully on narrow screens */
  background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%); /* subtle fallback if image missing */
}

/* Grammarly-like type scale for this row */
.feature-gram .feature-copy h2{
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.feature-gram .feature-copy .muted{
  font-size: clamp(16px, 2vw, 18px);
}

.feature-row:nth-child(even) .feature-copy{ order:2 }
.feature-row:nth-child(even) .feature-media{ order:1 }

/* CTA band */
.cta-band{
  margin: 36px 0 8px;
  border-radius: 18px;
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(14,165,233,.12), transparent 60%),
    radial-gradient(900px 400px at 20% 100%, rgba(20,184,166,.12), transparent 60%),
    #ffffff;
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow);
}
.cta-band .cta-inner{
  padding: 28px;
  display: grid;
  gap: 12px;
  justify-items: start;
}
.cta-band h2{
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
}

@media (max-width: 1024px){
  .feature-row{
    grid-template-columns: 1fr;
  }
}

/* Image gallery */
.image-gallery{
  margin-top: 18px;
}
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(220px,1fr));
  gap:12px;
}
.g-card{
  background: var(--lp-card);
  border:1px solid var(--lp-border);
  border-radius: 14px;
  box-shadow: var(--lp-shadow);
  padding: 8px;
}
.g-card svg{
  width:100%;
  height:auto;
  display:block;
  border-radius: 10px;
}
.g-card figcaption{
  margin-top: 6px;
}
.feature-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(180px,1fr));
  gap:14px;
}
.feature{
  background: var(--lp-card);
  border:1px solid var(--lp-border);
  border-radius: 14px;
  box-shadow: var(--lp-shadow);
  padding: 14px;
}
.feature .icon{
  font-size: 18px;
}
.feature h3{
  margin: 6px 0 4px;
  font-size: 16px;
}
.feature p{
  color: var(--lp-muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Trustbar (Grammarly-style) */
.trustbar{
  margin-top: 18px;
}
.trustbar .logos{
  display:flex;
  gap:16px;
  align-items:center;
  list-style:none;
  padding:0;
  margin:8px 0 0;
  opacity:.9;
}
.trustbar .logos li{
  filter: grayscale(1);
  opacity:.8;
  border:1px solid var(--lp-border);
  background:#fff;
  color:#0f172a;
  border-radius: 999px;
  padding:6px 12px;
  font-size:12px;
}

/* Integrations */
.integrations{
  margin-top: 10px;
}
.integrations .logos{
  display:flex;
  gap:12px;
  align-items:center;
  list-style:none;
  padding:0;
  margin:6px 0 0;
}
.integrations .logos li{
  background:#f1f5f9;
  color:#0f172a;
  border:1px solid #e5e7eb;
  padding:4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

/* Pricing teaser */
.pricing-teaser{
  display:grid;
  grid-template-columns: 1fr; /* simplify to single column */
  gap:12px;
  margin-top: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.price-card{
  background: var(--lp-card);
  border:1px solid var(--lp-border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--lp-shadow);
}
.price-card .price{
  font-size: 22px;
  font-weight: 800;
  margin-top: 6px;
}
.price-card.featured{
  border-color:var(--brand-2);
  box-shadow: 0 10px 30px rgba(14,165,233,.18);
}

/* Plans (Grammarly-style pricing cards) */
.plans{
  margin: 36px auto 10px;
  max-width: 1100px;
  text-align: center;
}
.plans-title{
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.plans-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-top: 6px;
}
.plan-card{
  position: relative;
  text-align: left;
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  box-shadow: var(--lp-shadow);
  padding: 18px;
}
.plan-card .plan-tag{ margin-bottom: 6px; }
.plan-card .plan-name{
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}
.plan-card .plan-price{
  font-size: 34px;
  font-weight: 900;
  margin: 2px 0 4px;
}
.plan-card .plan-sub{
  margin-bottom: 10px;
}
.plan-features{
  margin: 10px 0 14px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.plan-features li{
  position: relative;
  padding-left: 22px;
  color: var(--lp-text);
}
.plan-features li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #22c55e;
  font-weight: 800;
}
.plan-cta .btn{
  width: 100%;
  height: 46px;
  border-radius: 12px;
  font-weight: 800;
}
.plan-card.featured{
  border: 2px solid color-mix(in oklab, var(--brand) 48%, var(--lp-border));
  box-shadow: 0 18px 40px rgba(14,165,233,.22);
}
.plan-card .plan-badge{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -14px;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  color: #fff;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  box-shadow: var(--lp-shadow);
}
.paypal-note{ margin-top: 8px; }

/* Stack plans on smaller screens */
@media (max-width: 1024px){
  .plans-grid{ grid-template-columns: 1fr; }
}

/* Desktop: two-column hero (copy left, illustration right).
   Mobile/tablet remains single column from defaults above. */
@media (min-width: 840px){
  .landing.hero{ grid-template-columns: 1.2fr 1fr; }
  .live-card{ display: none; }
}

/* Responsive adjustments */
@media (max-width: 1200px){
  .feature-grid{ grid-template-columns: repeat(3, minmax(180px,1fr)); }
  .gallery-grid{ grid-template-columns: repeat(3, minmax(220px,1fr)); }
}
@media (max-width: 1024px){
  .landing.hero{ grid-template-columns: 1fr; }
  .feature-grid{ grid-template-columns: repeat(2, minmax(160px,1fr)); }
  .pricing-teaser{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2, minmax(200px,1fr)); }
  .hero-copy{ padding: 22px; }
}
@media (max-width: 640px){
  .hero-email input{ height:44px; }
  .hero-email .btn{ height:44px; }
  .feature-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: 1fr; }
}
