/* Daftar marketing site. Shares every token and component with the app (styles.css);
   only the roomier layout lives here. Rules: DESIGN.md, design/plan.md. */

.site { font-size: 1rem; line-height: 1.55; }

.site-wide { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.site .topbar-inner { max-width: 1200px; height: 64px; gap: 4px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: var(--radius-full);
  background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }

.site-links { display: flex; gap: 2px; margin-left: 24px; }
.site-links a {
  padding: 6px 10px; border-radius: var(--radius-full);
  color: var(--fg-muted); text-decoration: none; font-size: 0.875rem; font-weight: 500;
}
.site-links a:hover { color: var(--fg); background: var(--surface-hover); }

/* hero */
.hero { padding-top: 88px; }
.hero-copy { max-width: 760px; }
.hero h1 {
  font-size: clamp(2.375rem, 1.4rem + 4vw, 3.75rem);
  line-height: 1.04;
  font-weight: 520;
  letter-spacing: -0.03em;
  max-width: 15ch;
}
.hero-lede { margin-top: 20px; font-size: 1.1875rem; color: var(--fg-muted); max-width: 54ch; line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: 0.875rem; color: var(--fg-subtle); }

.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.shot figcaption { margin-top: 12px; font-size: 0.8125rem; color: var(--fg-subtle); }
.hero-shot { margin-top: 64px; }
.hero-shot img { box-shadow: 0 1px 2px rgb(26 33 30 / 0.04), 0 24px 64px -24px rgb(26 33 30 / 0.22); }
:root[data-theme='dark'] .hero-shot img { box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .hero-shot img { box-shadow: none; } }

/* features */
.features { padding-top: 120px; display: grid; gap: 112px; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
  align-items: center;
}
.feature.is-flipped { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.feature.is-flipped .feature-copy { order: 2; }
.feature h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 540; }
.feature p { margin-top: 14px; color: var(--fg-muted); font-size: 1.0625rem; max-width: 44ch; }
.feature .shot img { border: 0; background: none; border-radius: var(--radius-md); }

/* privacy */
.privacy { padding-top: 144px; }
.privacy-head h2, .pricing-head h2, .faq h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 540;
}
.privacy-head p, .pricing-head p { margin-top: 12px; color: var(--fg-muted); font-size: 1.125rem; max-width: 52ch; }
.facts {
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}
.facts div { padding: 24px 0; border-top: 1px solid var(--border); }
.facts dt { font-weight: 560; font-size: 1.0625rem; }
.facts dd { margin: 6px 0 0; color: var(--fg-muted); max-width: 46ch; }

/* pricing */
.pricing { padding-top: 144px; }
.pricing-head .seg { margin-top: 24px; }
.plans {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 880px;
}
.plan {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plan-pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan h3 { font-size: 1.0625rem; font-weight: 560; }
.plan-price { margin-top: 14px; font-size: 2.5rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.plan-price .per { font-size: 1rem; font-weight: 400; color: var(--fg-muted); letter-spacing: 0; }
.plan-billing { color: var(--fg-muted); font-size: 0.875rem; margin-top: 8px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before {
  content: '';
  position: absolute; left: 2px; top: 0.42em;
  width: 12px; height: 7px;
  border-left: 1.75px solid var(--accent-text);
  border-bottom: 1.75px solid var(--accent-text);
  transform: rotate(-45deg);
}
.plan .btn { align-self: flex-start; }
.pricing-note { margin-top: 20px; color: var(--fg-subtle); font-size: 0.875rem; }

/* faq */
.faq { padding-top: 144px; padding-bottom: 120px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.faq-list { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  font-weight: 500;
  font-size: 1.0625rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px;
  border-right: 1.75px solid var(--fg-muted);
  border-bottom: 1.75px solid var(--fg-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--accent-text); }
.faq details p { padding: 0 36px 22px 0; color: var(--fg-muted); max-width: 62ch; }

/* footer */
.site-footer { border-top: 1px solid var(--divider); background: var(--surface-sunken); }
.footer-inner { padding-top: 40px; padding-bottom: 48px; display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer-brand p { margin-top: 10px; color: var(--fg-muted); font-size: 0.9375rem; max-width: 40ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--fg-muted); text-decoration: none; font-size: 0.9375rem; }
.footer-links a:hover { color: var(--fg); text-decoration: underline; }
.footer-small { grid-column: 1 / -1; color: var(--fg-subtle); font-size: 0.8125rem; }
.footer-small a { color: inherit; }

/* the one orchestrated moment: the hero settles in on load */
.rise { animation: rise 640ms var(--ease) both; }
.hero-copy .rise:nth-child(2) { animation-delay: 60ms; }
.hero-copy .rise:nth-child(3) { animation-delay: 120ms; }
.hero-copy .rise:nth-child(4) { animation-delay: 160ms; }
.hero-shot.rise { animation-delay: 220ms; animation-duration: 820ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* responsive */
@media (max-width: 960px) {
  .feature, .feature.is-flipped { grid-template-columns: 1fr; gap: 28px; }
  .feature.is-flipped .feature-copy { order: 0; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .site-links { display: none; }
  .site-wide { padding-left: 16px; padding-right: 16px; }
  .site .topbar-inner { padding: 0 16px; height: 56px; }
  .site .topbar-inner .btn-quiet { display: none; }
  .hero { padding-top: 48px; }
  .hero-lede { font-size: 1.0625rem; }
  .hero-shot { margin-top: 40px; }
  .hero-shot img { border-radius: var(--radius-md); }
  .features { padding-top: 80px; gap: 72px; }
  .privacy, .pricing, .faq { padding-top: 96px; }
  .facts, .plans { grid-template-columns: 1fr; }
  .facts { gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
}
