/* PostPolish — "open sky" aesthetic, inspired by Bluesky.
   Display: Bricolage Grotesque · Body: Hanken Grotesk · loaded in <head>. */

:root {
  --sky: #0085ff;
  --sky-deep: #0066d6;
  --sky-soft: #e7f1ff;
  --sky-glow: rgba(0, 133, 255, 0.22);
  --ink: #0b1620;
  --muted: #5b6b7b;
  --faint: #8595a4;
  --line: #e4ecf3;
  --bg: #f5faff;
  --card: #ffffff;
  --ok: #119b57;
  --warn: #e0245e;

  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;

  --r: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 22, 32, 0.04), 0 4px 16px rgba(11, 22, 32, 0.05);
  --shadow-lg: 0 8px 24px rgba(8, 70, 140, 0.08), 0 24px 60px rgba(8, 70, 140, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* atmosphere: layered sky + soft clouds, fixed behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 78% -8%, rgba(0, 133, 255, 0.16), transparent 60%),
    radial-gradient(50% 40% at 12% 4%, rgba(120, 190, 255, 0.18), transparent 55%),
    radial-gradient(70% 50% at 50% 110%, rgba(0, 133, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #e8f3ff 0%, var(--bg) 38%);
}
/* grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.wrap { max-width: 940px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(245, 250, 255, 0.72);
  border-bottom: 1px solid rgba(228, 236, 243, 0.7);
}
header .wrap { display: flex; align-items: center; gap: 8px; height: 66px; }
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.logo span { color: var(--sky); }
nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}
nav a:hover { color: var(--ink); }
nav a.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
}
nav a.nav-cta:hover { background: var(--sky); color: #fff; }
@media (max-width: 640px) { nav a:not(.nav-cta) { display: none; } }

/* ---------- buttons ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sky);
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  padding: 15px 30px;
  border-radius: 999px;
  box-shadow: 0 6px 20px var(--sky-glow);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s, background 0.18s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--sky-glow); background: var(--sky-deep); }
.cta:active { transform: translateY(0); }
.cta-sub { display: block; margin-top: 14px; font-size: 14px; color: var(--faint); }

/* ---------- hero ---------- */
.hero { padding: 88px 0 40px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sky-deep);
  background: var(--sky-soft);
  border: 1px solid rgba(0, 133, 255, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--sky) 10%, #5db4ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ---------- bluesky-style composer cards ---------- */
.demo-stack { max-width: 540px; margin: 56px auto 0; text-align: left; }
.composer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px 14px;
  box-shadow: var(--shadow-lg);
}
.composer + .demo-arrow { /* spacing handled by arrow */ }
.composer-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 999px; flex: none;
  background: linear-gradient(135deg, #5db4ff, var(--sky));
}
.handle { font-weight: 600; font-size: 15px; }
.handle .at { color: var(--faint); font-weight: 500; }
.chip {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0f3f6;
  color: var(--muted);
}
.chip.sky { background: var(--sky-soft); color: var(--sky-deep); }
.composer-text { font-size: 16px; line-height: 1.55; color: var(--ink); }
.composer.draft .composer-text { color: var(--muted); }
.composer-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 13px;
  color: var(--faint);
}
.count.over { color: var(--warn); }
.count.ok { color: var(--ok); }
.polish-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sky);
  color: #fff;
  border: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--sky-glow);
}
.polish-btn .spark { animation: twinkle 2.6s ease-in-out infinite; }
.apply-pill {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--ok);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.demo-arrow {
  text-align: center;
  color: var(--sky);
  font-size: 22px;
  margin: 10px 0;
  animation: nudge 2s ease-in-out infinite;
}

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 40px);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 17px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.step .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: var(--sky);
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  margin-bottom: 14px;
}
.step b { display: block; font-size: 17px; margin-bottom: 6px; font-family: var(--display); letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* examples = post cards */
.examples-grid { display: flex; flex-direction: column; gap: 18px; }
.ex-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ex-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ex-row { padding: 18px 20px; }
.ex-row.before { background: #fbfcfd; }
.ex-row .ex-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 8px;
}
.ex-row.before .ex-label { color: var(--faint); }
.ex-row.after .ex-label { color: var(--sky-deep); }
.ex-row .ex-text { font-size: 15.5px; line-height: 1.55; }
.ex-row.before .ex-text { color: var(--muted); }
.ex-divider {
  display: flex; align-items: center; justify-content: center;
  height: 0; border-top: 1px dashed var(--line); position: relative;
}
.ex-divider span {
  position: absolute; top: -14px; background: var(--card);
  width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center; font-size: 13px;
  border: 1px solid var(--line); color: var(--sky);
}
.ex-note { padding: 0 20px 18px; font-size: 13.5px; color: var(--faint); }

/* pricing */
.price-card {
  max-width: 420px; margin: 0 auto; text-align: center;
  background: var(--card);
  border: 1px solid rgba(0, 133, 255, 0.25);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.price-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(180deg, var(--sky), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.price {
  font-family: var(--display); font-weight: 800;
  font-size: 52px; letter-spacing: -0.04em; line-height: 1;
}
.price small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 26px; text-align: left; }
.price-card li {
  padding: 9px 0 9px 30px; position: relative; color: var(--ink); font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: '✓'; position: absolute; left: 4px; color: var(--sky); font-weight: 800;
}

/* faq */
#faq .wrap { max-width: 720px; }
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 20px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}
details[open] { box-shadow: var(--shadow-sm); }
details summary {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  padding: 16px 0;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+'; color: var(--sky); font-size: 22px; font-weight: 400;
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 0 0 18px; font-size: 16px; }
details a { color: var(--sky-deep); }

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 56px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.4);
}
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
footer .brand { font-family: var(--display); font-weight: 700; color: var(--ink); }
footer a { color: var(--faint); text-decoration: none; }
footer a:hover { color: var(--sky); }
footer .spacer { margin-left: auto; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.27s; }
.d4 { animation-delay: 0.4s; }
.d5 { animation-delay: 0.55s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.9); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .polish-btn .spark, .demo-arrow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- policy sub-pages ---------- */
.policy {
  width: min(760px, calc(100% - 36px));
  margin: 48px auto 72px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.policy h1 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 5vw, 36px); letter-spacing: -0.03em; margin: 0 0 4px; }
.policy h2 { font-family: var(--display); font-weight: 700; font-size: 20px; margin-top: 36px; letter-spacing: -0.01em; }
.policy p, .policy li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.policy ul { padding-left: 22px; }
.policy li { margin-bottom: 8px; }
.policy a { color: var(--sky-deep); }
.policy .updated { font-size: 14px; color: var(--faint); margin-bottom: 28px; }
