/* Postbeat website: the same visual system as the app and web app.
   Warm grey page, white borderless cards, one violet hero, black pills, pastel format tags. */

:root {
  --bg: #eeece8;
  --card: #ffffff;
  --inset: #f4f2ee;
  --fg: #111111;
  --muted: #6f6a63;
  --line: #d9d5ce;
  --pill: #111111;
  --on-pill: #ffffff;
  --accent: #8e7cff;
  --accent-text: #5b45e0;
  --accent-soft: rgba(142, 124, 255, 0.16);
  --ink: #111111;
  --f-reel: #8e7cff;
  --f-carousel: #ffc83d;
  --f-image: #c9def2;
  --f-story: #f6b3c8;
  --f-video: #bfe6cf;
  --f-text: #e2ded6;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 10px 32px rgba(17, 17, 17, 0.07);
  --phone-ring: #d9d5ce;
  --r: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c; --card: #17171a; --inset: #0f0f11; --fg: #f4f2ee; --muted: #a8a39b; --line: #2c2c31;
    --pill: #f4f2ee; --on-pill: #111111; --accent-text: #b3a8ff; --accent-soft: rgba(142, 124, 255, 0.2);
    --shadow: none; --phone-ring: #2c2c31; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0c; --card: #17171a; --inset: #0f0f11; --fg: #f4f2ee; --muted: #a8a39b; --line: #2c2c31;
  --pill: #f4f2ee; --on-pill: #111111; --accent-text: #b3a8ff; --accent-soft: rgba(142, 124, 255, 0.2);
  --shadow: none; --phone-ring: #2c2c31; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -0.03em; margin: 0; font-weight: 800; }
p { margin: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--pill); color: var(--on-pill); font-weight: 600; }
.skip:focus { top: 12px; text-decoration: none; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.muted { color: var(--muted); }
.violet { color: var(--accent-text); }

/* Navigation */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 800; font-size: 20px; letter-spacing: -0.5px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav-links a.btn { color: var(--on-pill); }

.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; background: var(--pill); color: var(--on-pill); border: 0; }
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn.violet { background: var(--accent); color: var(--ink); }
.btn.ghost { background: var(--card); color: var(--fg); box-shadow: var(--shadow); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn.soon { cursor: default; }
.btn.soon:hover { filter: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: 36px; padding-bottom: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--accent-text); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(46px, 7.2vw, 82px); padding-top: 18px; }
.hero .lead { max-width: 540px; margin-top: 20px; color: var(--muted); font-size: clamp(17px, 2.1vw, 20px); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 28px; }
.hero .note { color: var(--muted); font-size: 14px; padding-top: 14px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .phone { width: min(320px, 78vw); transform: rotate(2.5deg); }
.hero-art .mascot { position: absolute; width: 150px; left: max(0px, calc(50% - 250px)); bottom: -10px; transform: rotate(-6deg); filter: drop-shadow(0 12px 24px rgba(17, 17, 17, 0.18)); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; }
.tag { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; color: var(--ink); }

/* iPhone frame */
.phone { padding: 8px; border-radius: 46px; background: var(--card); box-shadow: 0 0 0 1.5px var(--phone-ring), 0 30px 80px rgba(17, 17, 17, 0.18); }
.phone img { width: 100%; border-radius: 38px; aspect-ratio: 660 / 1431; object-fit: cover; object-position: top; }

section { padding-top: 88px; }
.section-head { max-width: 660px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 18px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.steps b { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-size: 15px; margin-bottom: 14px; }
.steps strong { display: block; font-size: 19px; letter-spacing: -0.3px; margin-bottom: 6px; }
.steps span { color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 32px; }
.feature { background: var(--card); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.feature .icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 16px; }
.feature .icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 20px; letter-spacing: -0.4px; }
.feature p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.feature .pro { display: inline-block; margin-left: 6px; vertical-align: 3px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 999px; background: var(--pill); color: var(--on-pill); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 36px; }
.gallery figure { margin: 0; }
.gallery figcaption { text-align: center; color: var(--muted); font-size: 15px; font-weight: 600; padding-top: 14px; }

/* Everywhere */
.everywhere { display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px; align-items: center; background: var(--card); border-radius: 32px; padding: 36px; box-shadow: var(--shadow); margin-top: 32px; }
.everywhere h3 { font-size: clamp(26px, 3.4vw, 36px); }
.everywhere p { color: var(--muted); margin-top: 12px; }
.everywhere ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.everywhere ul li { display: flex; gap: 10px; align-items: baseline; }
.everywhere ul li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.mac-shot { border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(17, 17, 17, 0.16); }
.ai-chat { margin-top: 22px; display: grid; gap: 8px; }
.bubble { max-width: 92%; padding: 11px 15px; border-radius: 18px; font-size: 15px; }
.bubble.me { justify-self: end; background: var(--pill); color: var(--on-pill); border-bottom-right-radius: 6px; }
.bubble.ai { background: var(--inset); border-bottom-left-radius: 6px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1.5fr; gap: 16px; padding-top: 36px; align-items: stretch; }
.plan { background: var(--card); border-radius: 32px; padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan h3 { font-size: 26px; text-align: center; }
.plan .sub { text-align: center; color: var(--muted); margin-top: 6px; }
.plan .big { text-align: center; font-size: 72px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; padding-top: 28px; }
.plan .big + .sub { margin-bottom: 8px; }
.plan.pro { background: var(--accent); color: var(--ink); box-shadow: none; }
.plan.pro .sub { color: rgba(17, 17, 17, 0.7); }
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 24px; }
.term { position: relative; background: rgba(255, 255, 255, 0.55); border-radius: 20px; padding: 22px 10px 16px; text-align: center; }
.term.best { background: #ffffff; box-shadow: 0 10px 30px rgba(17, 17, 17, 0.14); }
.term .len { font-weight: 700; font-size: 15px; }
.term .price { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; padding-top: 6px; }
.term .per { font-size: 13px; color: rgba(17, 17, 17, 0.66); padding-top: 4px; }
.term .badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 999px; background: var(--pill-on-violet, #111111); color: #ffffff; }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; flex: 1; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%235b45e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.plan.pro .checks li::before { background-color: rgba(255, 255, 255, 0.6); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan .btn { margin-top: 28px; width: 100%; }
.plan.pro .btn { background: #111111; color: #ffffff; }
.fine { color: var(--muted); font-size: 14px; text-align: center; padding-top: 16px; max-width: 720px; margin: 0 auto; }

/* FAQ */
.faq { max-width: 780px; padding-top: 28px; display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 18px; padding: 0 20px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { color: var(--muted); padding-bottom: 18px; }
.faq details ul { margin: 0; padding-left: 20px; }

/* Contact panel */
.panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--card); border-radius: 32px; padding: 32px; box-shadow: var(--shadow); }
.panel img { width: 96px; flex: none; }
.panel .grow { flex: 1; }
.panel h2 { font-size: clamp(24px, 3vw, 32px); }
.panel p { color: var(--muted); margin-top: 8px; }

footer { margin-top: 96px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* Legal and support pages */
.legal { max-width: 760px; padding-top: 24px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); }
.legal h2 { font-size: 22px; letter-spacing: -0.4px; margin-top: 36px; }
.legal h3 { font-size: 18px; letter-spacing: -0.2px; margin-top: 22px; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal .stand { color: var(--muted); margin-top: 10px; }
.legal .short { background: var(--card); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); margin-top: 24px; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0 40px; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-art { margin-top: 16px; }
  .features { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .everywhere { grid-template-columns: 1fr; padding: 24px; }
  .pricing { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .nav-links { gap: 14px; }
  .steps, .features { grid-template-columns: 1fr; }
  .gallery { gap: 12px; }
  .terms { grid-template-columns: 1fr; gap: 16px; }
  .plan { padding: 24px; }
  .panel { flex-direction: column; align-items: flex-start; padding: 24px; }
  .hero-art .mascot { width: 110px; left: 0; }
}

/* Connect AI card, drawn like the app's settings card */
.ai-card { max-width: 440px; width: 100%; justify-self: center; background: var(--bg); border-radius: 28px; padding: 20px; }
.ai-label { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 4px 8px; }
.ai-inner { background: var(--card); border-radius: 20px; padding: 18px; display: grid; gap: 12px; font-size: 15px; }
.ai-inner > p { color: var(--muted); }
.ai-top { display: flex; align-items: center; gap: 12px; font-size: 17px; letter-spacing: -0.2px; }
.spark { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.spark svg { width: 20px; height: 20px; fill: currentColor; }
.ai-inner code { display: block; background: var(--inset); border-radius: 12px; padding: 12px; font: 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.ai-actions { display: flex; align-items: center; gap: 16px; font-weight: 700; }
.ai-inner ol { margin: 0; padding-left: 20px; list-style: decimal; display: grid; gap: 6px; font-size: 14px; }
