/* ============================================================================
   Packtly marketing — same brand as the app: cool neutral, teal, Bricolage.
   ========================================================================== */
:root {
  --paper:    #f4f4f5;
  --paper-2:  #ffffff;
  --ink:      #15181e;
  --ink-2:    #565d6b;
  --ink-3:    #878e9c;
  --line:     #e3e6ea;
  --accent:   #0d9488;
  --accent-2: #0f766e;
  --accent-soft: rgba(13, 148, 136, 0.10);
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,24,31,.05), 0 18px 40px -22px rgba(20,24,31,.30);
  --shadow-lg: 0 40px 90px -40px rgba(20,24,31,.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(110% 70% at 100% -5%, rgba(13,148,136,.07), transparent 55%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: #fff; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 15px;
  padding: 11px 18px; border-radius: 10px; border: 0; cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background .14s;
  box-shadow: 0 8px 22px -12px rgba(13,148,136,.8);
}
.btn:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(13,148,136,.85); }
.btn-lg { padding: 15px 26px; font-size: 17px; border-radius: 12px; }
.btn-invert { background: #fff; color: var(--accent-2); }
.btn-invert:hover { background: #f0fdfa; }
.btn .arr, .arr { transition: transform .14s; }
.btn:hover .arr { transform: translateX(3px); }
.ghost {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 15px; color: var(--ink);
  padding: 10px 14px; border-radius: 10px; transition: color .14s, background .14s;
}
.ghost:hover { color: var(--accent-2); background: var(--accent-soft); }
.ghost-lg { font-size: 16px; }

/* ============================ Nav ============================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(244,244,245,.78); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 16px; font-weight: 800;
}
.nav-links { display: flex; gap: 26px; margin-left: 10px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; transition: color .14s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ============================ Hero ============================ */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 64px) clamp(40px, 6vw, 80px);
  max-width: 1280px; margin: 0 auto;
}
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.03em;
  margin: 18px 0 0;
}
.lede { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 46ch; margin-top: 22px; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.hero-note strong { color: var(--accent-2); }

/* product panel */
.hero-panel {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
  transform: rotate(.4deg);
}
.panel-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfbfc;
}
.panel-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #d8dce2; }
.panel-bar .dot:nth-child(1) { background: #f3a59a; }
.panel-bar .dot:nth-child(2) { background: #f2cf87; }
.panel-bar .dot:nth-child(3) { background: #9fd9b0; }
.panel-title { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kv .k { font-size: 13px; color: var(--ink-3); }
.kv .v { font-family: var(--mono); font-size: 14px; font-weight: 500; }
.kv .v.hot { color: var(--accent-2); }
.tag { font-family: var(--sans); font-size: 11px; font-weight: 600; color: #b45309; background: rgba(180,83,9,.12); padding: 2px 7px; border-radius: 999px; margin-left: 6px; }
.meter { display: flex; align-items: center; gap: 10px; }
.meter-k { font-size: 13px; color: var(--ink-3); width: 44px; }
.bar { flex: 1; height: 7px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.fill { display: block; height: 100%; width: 62%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.meter-v { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chip {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 6px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
}
.chip.done { color: var(--accent-2); border-color: var(--accent-soft); background: var(--accent-soft); }
.chip.run { color: var(--ink); }
.spin { width: 11px; height: 11px; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.finding { background: var(--paper); border-radius: 10px; padding: 11px 13px; display: flex; flex-direction: column; gap: 3px; }
.finding-k { font-size: 12px; color: var(--ink-3); }
.finding-v { font-family: var(--mono); font-size: 13px; }

/* ============================ Trust band ============================ */
.band {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1100px; margin: 0 auto; padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.band-item { display: flex; flex-direction: column; gap: 3px; }
.band-item strong { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--accent-2); }
.band-item span { font-size: 14px; color: var(--ink-2); }

/* ============================ Shared section ============================ */
section.how, section.features, section.who, section.pricing { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 64px); }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.06; letter-spacing: -.025em; margin-top: 12px; }
.section-head .sub { color: var(--ink-2); margin-top: 16px; font-size: 17px; }

/* ============================ How ============================ */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.step-n { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.step h3 { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; margin: 14px 0 10px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* ============================ Features ============================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper-2); transition: transform .16s, box-shadow .16s, border-color .16s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.f-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font-size: 20px; font-weight: 700; }
.feature h3 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 16px 0 8px; }
.feature p { color: var(--ink-2); font-size: 14.5px; }

/* ============================ Who ============================ */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.who-copy h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.025em; line-height: 1.06; margin: 12px 0 16px; }
.who-copy p { color: var(--ink-2); font-size: 16px; max-width: 44ch; margin-bottom: 24px; }
.who-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.who-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; padding: 16px 18px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; }
.tick { color: var(--accent); font-family: var(--mono); font-weight: 700; }

/* ============================ Pricing ============================ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper-2); }
.plan-featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.plan-flag { position: absolute; top: -12px; left: 26px; font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); padding: 4px 12px; border-radius: 999px; }
.plan-name { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.plan-price { font-family: var(--display); font-weight: 800; font-size: 36px; letter-spacing: -.03em; margin: 8px 0 18px; }
.plan-price span { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; flex: 1; }
.plan li { font-size: 14.5px; color: var(--ink-2); padding-left: 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan-cta { width: 100%; justify-content: center; }

/* ============================ Final CTA ============================ */
.cta {
  text-align: center; margin: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px) clamp(60px, 8vw, 100px);
  padding: clamp(48px, 7vw, 88px) 24px; border-radius: 28px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 120% at 90% -10%, rgba(255,255,255,.18), transparent 60%); pointer-events: none; }
.cta h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.025em; line-height: 1.04; position: relative; }
.cta p { margin: 14px 0 28px; font-size: 18px; opacity: .92; position: relative; }
.cta .btn { position: relative; }

/* ============================ Footer ============================ */
.foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 32px clamp(20px, 5vw, 64px); border-top: 1px solid var(--line); max-width: 1280px; margin: 0 auto; }
.foot-brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 18px; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--ink-2); font-size: 14px; transition: color .14s; }
.foot-links a:hover { color: var(--accent-2); }
.foot-legal { margin-left: auto; font-size: 13px; color: var(--ink-3); }

/* ============================ Motion ============================ */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .6s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.section-head, .step, .feature, .plan, .band-item, .who-copy, .who-list, .cta { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.section-head.in, .step.in, .feature.in, .plan.in, .band-item.in, .who-copy.in, .who-list.in, .cta.in { opacity: 1; transform: none; }
.step:nth-child(2) { transition-delay: .08s; } .step:nth-child(3) { transition-delay: .16s; }
.feature:nth-child(2), .plan:nth-child(2) { transition-delay: .07s; }
.feature:nth-child(3), .plan:nth-child(3) { transition-delay: .14s; }
.feature:nth-child(4) { transition-delay: .07s; } .feature:nth-child(5) { transition-delay: .14s; } .feature:nth-child(6) { transition-delay: .21s; }
.band-item:nth-child(2) { transition-delay: .08s; } .band-item:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .section-head, .step, .feature, .plan, .band-item, .who-copy, .who-list, .cta { opacity: 1; transform: none; animation: none; transition: none; }
}

/* ============================ Responsive ============================ */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-panel { order: 2; transform: none; }
  .band, .steps, .feature-grid, .plans { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .nav-cta .ghost { display: none; }
  .foot-legal { margin-left: 0; width: 100%; }
}
