/* ============================================================
   Posynt — Landing styles (soft / pastel, tagsendy-inspired)
   ============================================================ */

:root {
  --bg:        #fcfcfb;
  --bg-2:      #f6f7f4;
  --surface:   #ffffff;
  --surface-2: #f3f4f1;
  --border:    #ecedea;
  --border-2:  #e1e3de;
  --text:      #0d0e0c;
  --text-2:    #1e211c;
  --muted:     #9aa0a0;
  --muted-2:   #b6bbba;
  --blue:      #2f7ff9;
  --black:     #0d0e0c;

  /* Pastels */
  --mint-bg:   #dceae2;
  --mint-2:    #e9f3ee;
  --lime-bg:   #e2efce;
  --lime-2:    #eef5da;
  --peach-bg:  #fbe3d7;
  --peach-2:   #fdeee6;
  --dot-mint:  #b9d9c6;
  --dot-peach: #f4c8ad;
  --dot-lime:  #d7e6a8;
  --dot-blue:  #bcd0f5;

  --radius:    22px;
  --radius-sm: 14px;
  --radius-lg: 30px;
  --maxw:      1180px;
  --shadow-sm: 0 1px 2px rgba(20,24,20,.04), 0 2px 8px rgba(20,24,20,.04);
  --shadow:    0 16px 44px -18px rgba(20,24,20,.16);
  --shadow-lg: 0 30px 70px -24px rgba(20,24,20,.22);
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Custom text selection (keep each element's own text colour) */
::selection { background: #cfe6d9; }
::-moz-selection { background: #cfe6d9; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  scrollbar-width: thin;
  scrollbar-color: #cfd4cf transparent;
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d7dbd6; border-radius: 999px; border: 3px solid var(--bg); background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #bcc2bc; background-clip: padding-box; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fdot, .blob { animation: none !important; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 760px; }
.hl { color: var(--blue); font-weight: 600; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; border-radius: 999px; padding: 13px 24px; cursor: pointer;
  transition: transform .16s ease, box-shadow .22s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--black); color: #fff; box-shadow: 0 12px 26px -12px rgba(13,14,12,.55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(13,14,12,.6); }
.btn--ghost { background: #fff; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { background: var(--surface-2); border-color: #d0d3cd; transform: translateY(-2px); }

/* ============ Nav (floating island) ============ */
.nav {
  position: sticky; top: 18px; z-index: 50; margin-top: 18px; padding: 0 20px;
}
.nav__inner {
  max-width: 1120px; margin: 0 auto; padding: 13px 16px 13px 24px;
  display: flex; align-items: center; gap: 24px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.nav.is-scrolled .nav__inner { background: rgba(255,255,255,.94); box-shadow: var(--shadow); border-color: var(--border-2); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 20px; color: var(--black); font-family: var(--font-display); }
.brand__logo { display: inline-flex; color: var(--black); }
.nav__links { display: flex; gap: 28px; margin-left: 24px; flex: 1; }
.nav__links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__docs { color: var(--text) !important; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ============ Hero ============ */
.hero { position: relative; min-height: 82vh; display: flex; align-items: center; padding: 30px 0 70px; overflow: hidden; }
.hero__decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob { position: absolute; filter: blur(2px); opacity: .85; }
.blob--mint {
  top: 60px; right: -70px; width: 320px; height: 260px;
  background: var(--mint-bg); border-radius: 60px 60px 70px 70px; transform: rotate(-14deg);
  opacity: .7;
}
.blob--peach {
  top: 300px; left: -50px; width: 250px; height: 250px; background: var(--peach-bg);
  border-radius: 42% 58% 55% 45% / 52% 44% 56% 48%;
  animation: floatY 9s ease-in-out infinite; opacity: .55;
}
.blob--lime {
  bottom: 20px; left: 120px; width: 240px; height: 170px; background: var(--lime-2);
  border-radius: 50%; animation: floatY 11s ease-in-out infinite reverse; opacity: .6;
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero__title { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -2px; font-size: clamp(40px, 5.6vw, 68px); }
.hero__line { display: block; white-space: nowrap; }
.hero__line--dark { color: var(--black); }
.hero__line--muted { color: var(--muted-2); }
.hero__line--brand { color: var(--black); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.hero__sub { margin-top: 26px; font-size: 18px; color: var(--muted); max-width: 460px; }
.hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* Floating dots + stacked cards */
.hero__demo { position: relative; display: flex; align-items: center; justify-content: center; min-height: 360px; }
.fdot { position: absolute; border-radius: 50%; z-index: 2; }
.fdot--1 { top: 6%;  left: 14%; width: 12px; height: 12px; background: var(--dot-mint);  animation: floatY 6s ease-in-out infinite; }
.fdot--2 { top: 22%; right: 6%; width: 9px;  height: 9px;  background: var(--dot-peach); animation: floatY 7.5s ease-in-out infinite reverse; }
.fdot--3 { bottom: 16%; left: 6%; width: 10px; height: 10px; background: var(--dot-blue); animation: floatY 8s ease-in-out infinite; }
.fdot--4 { bottom: 8%; right: 20%; width: 8px; height: 8px; background: var(--dot-lime); animation: floatY 6.5s ease-in-out infinite reverse; }

.stack { position: relative; width: 100%; max-width: 430px; height: 260px; z-index: 3; }
.scard {
  position: absolute; left: 0; right: 0; top: 16px; background: #fff; border: none;
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px 24px;
  transform-origin: 50% 0%; will-change: transform, opacity;
  transition: transform .8s cubic-bezier(.22,.61,.36,1), opacity .8s cubic-bezier(.22,.61,.36,1), box-shadow .8s ease;
}
.scard[data-depth="0"] { transform: translateY(0) scale(1);       opacity: 1;   z-index: 40; box-shadow: var(--shadow-lg); }
.scard[data-depth="1"] { transform: translateY(18px) scale(.955); opacity: .8;  z-index: 30; }
.scard[data-depth="2"] { transform: translateY(34px) scale(.912); opacity: .45; z-index: 20; }
.scard[data-depth="3"] { transform: translateY(48px) scale(.872); opacity: .18; z-index: 10; }
.scard[data-depth="enter"] { transform: translateY(-24px) scale(1.03); opacity: 0; z-index: 41; }
.scard[data-depth="exit"]  { transform: translateY(-40px) scale(1.02); opacity: 0; z-index: 41; }

.scard__top { display: flex; align-items: center; gap: 12px; }
.scard__av { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; color: var(--black); box-shadow: var(--shadow-sm); }
.scard__id { display: flex; flex-direction: column; line-height: 1.25; }
.scard__handle { font-weight: 700; font-size: 15px; color: var(--text); }
.scard__time { font-size: 13px; color: var(--muted-2); }
.scard__pill { margin-left: auto; font-size: 13px; font-weight: 600; color: #2f7a56; background: var(--mint-2); border: 1px solid #d6e7dd; padding: 7px 14px; border-radius: 999px; }
.scard__msg { margin: 18px 0 2px; font-family: var(--font-display); font-size: 21px; font-weight: 500; letter-spacing: -.4px; color: var(--black); line-height: 1.35; }
.scard__chip { display: inline-block; margin-top: 16px; background: var(--black); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 999px; }

/* ============ Sections ============ */
.section { padding: 92px 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--tight { padding: 40px 0 60px; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow { display: inline-block; color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 12px; }
.section__head h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -1.4px; color: var(--black); }
.section__head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* ============ Action cards (how it works) ============ */
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 940px; margin: 0 auto; }
.action {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.03); transition: transform .2s ease, box-shadow .2s ease;
}
.action:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.action--mint  { background: var(--mint-bg); }
.action--lime  { background: var(--lime-bg); }
.action--peach { background: var(--peach-bg); }
.action__icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--black); box-shadow: var(--shadow-sm); }
.action__text { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.action__text strong { font-size: 17px; font-weight: 700; color: var(--text); font-family: var(--font-display); }
.action__text span { font-size: 14px; color: #5c6360; }
.action__arrow { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.7); display: grid; place-items: center; color: var(--black); transition: transform .2s ease, background .2s ease; }
.action:hover .action__arrow { transform: translateX(3px); background: #fff; }

/* ============ Pricing ============ */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid transparent; border-radius: 28px; padding: 34px 30px; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
/* Pastel tints matching the Track / Deliver / Notify action cards */
.plan--mint  { background: linear-gradient(180deg, var(--mint-bg)  0%, #ffffff 46%); }
.plan--lime  { background: linear-gradient(180deg, var(--lime-bg)  0%, #ffffff 46%); }
.plan--peach { background: linear-gradient(180deg, var(--peach-bg) 0%, #ffffff 46%); }
.plan--featured { box-shadow: var(--shadow-lg); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--lime-bg); color: #4c6a1f; border: 1px solid #d3e3b3; font-size: 12px; font-weight: 700; padding: 6px 15px; border-radius: 999px; white-space: nowrap; }
.plan__head h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); }
.plan__desc { color: var(--muted); font-size: 14px; margin-top: 6px; min-height: 40px; }
.plan__price { margin: 18px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.plan__amount { font-family: var(--font-display); font-size: 46px; font-weight: 700; letter-spacing: -2px; color: var(--black); }
.plan__period { color: var(--muted); font-size: 15px; }
.plan__features { list-style: none; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan__features li { position: relative; padding-left: 28px; color: #5c6360; font-size: 15px; }
.plan__features li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #46c07f; font-weight: 800; }
.plan__features strong { color: var(--text); }
.pricing__note { text-align: center; color: var(--muted-2); font-size: 14px; margin-top: 32px; }

/* ============ FAQ ============ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 22px; box-shadow: var(--shadow-sm); transition: border-color .2s; }
.faq__item[open] { border-color: var(--border-2); }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 16px; color: var(--text); display: flex; align-items: center; justify-content: space-between; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 22px; color: var(--muted); font-weight: 400; transition: transform .3s cubic-bezier(.22,.61,.36,1); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { overflow: hidden; transition: height .34s cubic-bezier(.22,.61,.36,1); }
.faq__item p { margin: 0; padding: 0 0 18px; color: var(--muted); font-size: 15px; }
.faq__item a { color: var(--blue); }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 56px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer__brand { max-width: 280px; }
.footer__brand .brand__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin-left: 8px; color: var(--black); }
.footer__brand p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.footer__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer__cols h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.footer__cols a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer__cols a:hover { color: var(--text); }
.footer__bottom { border-top: 1px solid var(--border); padding: 20px 28px; max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; color: var(--muted-2); font-size: 13px; flex-wrap: wrap; gap: 8px; }

/* ============ Toast ============ */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--black); border: 1px solid var(--black); color: #fff; padding: 14px 20px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg); z-index: 100; transition: transform .35s ease; max-width: 90vw; }
.toast.is-visible { transform: translateX(-50%) translateY(0); }
.toast.is-error { background: #b3261e; border-color: #b3261e; }

/* ============ Responsive ============ */
@media (max-width: 940px) {
  .hero { min-height: 0; padding: 24px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__demo { min-height: 280px; margin-top: 6px; }
  .stack { max-width: 420px; margin: 0 auto; }
  .hero__sub { max-width: 560px; }
  .actions { grid-template-columns: 1fr; max-width: 480px; }
  .pricing { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__burger { display: flex; }
  .nav__links.is-open { display: flex; flex-direction: column; position: absolute; top: calc(100% + 10px); left: 20px; right: 20px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 22px; gap: 18px; }
  .blob--mint { right: -120px; opacity: .5; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .container { padding: 0 20px; }
  .hero { padding: 16px 0 52px; }
  .hero__title { letter-spacing: -1.2px; }
  .hero__line { white-space: normal; }
  .hero__sub { font-size: 16px; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1; min-width: 0; }
  .hero__demo { min-height: 250px; }
  .stack { height: 240px; }
  .scard { padding: 18px 20px; }
  .scard__msg { font-size: 18px; }
  .section__head { margin-bottom: 40px; }
  .section__head p { font-size: 16px; }
  .plan { padding: 28px 24px; }
  .plan__amount { font-size: 40px; }
  .footer__inner { flex-direction: column; gap: 28px; }
  .footer__cols { gap: 40px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 400px) {
  .nav__inner { padding: 11px 12px 11px 18px; gap: 12px; }
  .brand { font-size: 18px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .action { padding: 18px 18px; }
}
