/* PolePole LP — Apple-like minimal, dark only */

html { color-scheme: dark; }

:root {
  --bg: #0a0a0a;
  --bg-elevated: #1c1c1e;
  --text: #f5f5f7;
  --text-muted: #98989d;
  --accent: #2997ff;
  --accent-hover: #5cb4ff;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-small: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
header.site-header {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; color: var(--text); }
.site-nav a {
  margin-left: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* ===== Hero ===== */
section.hero {
  padding: 96px 0 24px;
  text-align: center;
}
.hero .app-icon {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 24px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}
.hero .tagline {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero .cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color 120ms, color 120ms, border-color 120ms;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--accent); border-color: currentColor; }
.btn-secondary:hover { color: var(--accent-hover); text-decoration: none; }

/* ===== Screenshot ===== */
.screenshot {
  margin: 0 auto;
  max-width: 880px;
  padding: 0 24px 80px;
}
.screenshot img,
.screenshot .placeholder {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}
.screenshot .placeholder {
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ===== Sections ===== */
section {
  padding: 80px 0;
}
section.alt {
  background: var(--bg-elevated);
}
section h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-align: center;
}
section .sub {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ===== Features grid ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}
section.alt .feature { background: var(--bg); }
.feature h3 {
  font-size: 17px;
  margin: 0 0 8px;
  font-weight: 600;
}
.feature p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ===== Pricing ===== */
#pricing .sub {
  margin-bottom: 8px;
}
.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 32px;
  text-align: center;
}
section.alt .pricing-card { background: var(--bg); }
.price {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.price small {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}
.price-sub {
  color: var(--text-muted);
  margin: 0 0 24px;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  text-align: left;
  display: inline-block;
}
.pricing-card li {
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: 14px;
}
.pricing-card li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 6px;
}

/* ===== Download ===== */
.download-block {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
pre.code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  padding: 12px 16px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, monospace;
  font-size: 14px;
  text-align: left;
  overflow-x: auto;
  margin: 16px 0;
}
.download-block pre.code {
  display: inline-block;
  margin: 16px auto;
}
section.alt pre.code { background: var(--bg); }

/* ===== FAQ ===== */
.faq {
  max-width: 720px;
  margin: 0 auto;
}
.faq details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 12px 0 0;
  line-height: 1.7;
}

/* ===== Footer ===== */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
footer.site-footer a { color: var(--text-muted); margin: 0 12px; }
footer.site-footer a:hover { color: var(--text); }
footer.site-footer .copy {
  margin-top: 12px;
}

/* ===== Legal pages ===== */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal h1 {
  font-size: 32px;
  margin: 0 0 8px;
}
.legal .updated {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 32px;
}
.legal h2 {
  font-size: 24px;
  margin: 64px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: left;
}
.legal h2:first-of-type {
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
}
.legal h3 {
  font-size: 16px;
  margin: 32px 0 8px;
  font-weight: 600;
  text-align: left;
}
.legal p, .legal li {
  font-size: 15px;
}
.legal ul { padding-left: 24px; }
.legal .draft-notice {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: var(--radius-small);
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 32px;
}

/* ===== Contact form ===== */
.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label {
  font-size: 14px;
  margin-top: 16px;
  font-weight: 500;
}
.contact-form label .optional { color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.contact-form label .required { color: var(--accent); font-weight: 400; margin-left: 4px; }
.contact-form input,
.contact-form textarea {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}
.contact-form button {
  margin-top: 24px;
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-small);
  cursor: pointer;
  font-family: inherit;
}
.contact-form button:hover { background: var(--accent-hover); }
.contact-form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ===== Language switch ===== */
.lang-switch {
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
  display: inline-flex;
  gap: 8px;
  font-size: 13px;
  align-items: center;
}
.lang-switch .lang-current {
  color: var(--text);
  font-weight: 500;
}
.lang-switch .lang-link {
  color: var(--text-muted);
}
.lang-switch .lang-link:hover { color: var(--text); text-decoration: none; }
.lang-switch .lang-disabled {
  color: var(--text-muted);
  opacity: 0.4;
  cursor: not-allowed;
}
.lang-switch .lang-divider {
  color: var(--text-muted);
  opacity: 0.5;
}

footer.site-footer .lang-switch {
  border-left: none;
  padding-left: 0;
  margin-left: 0;
  margin-top: 12px;
  justify-content: center;
  display: flex;
}
footer.site-footer .lang-switch a,
footer.site-footer .lang-switch .lang-current,
footer.site-footer .lang-switch .lang-disabled,
footer.site-footer .lang-switch .lang-divider {
  margin: 0;
}

/* ===== Changelog ===== */
.site-nav a.nav-active {
  color: var(--text);
  font-weight: 500;
}
.changelog-page {
  padding: 64px 0 96px;
}
.changelog-page h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.changelog-page .changelog-intro {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 6px;
}
.changelog-page .changelog-sparkle-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 48px;
}
.cl-timeline {
  display: flex;
  flex-direction: column;
  gap: 48px;
  border-left: 2px solid var(--border);
  padding-left: 32px;
  margin-left: 8px;
}
.cl-release {
  position: relative;
}
.cl-release::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 10px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
}
.cl-release.cl-unreleased::before {
  background: var(--bg);
  border: 2px solid var(--accent);
}
.cl-release-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cl-version {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 2px 12px;
  background: var(--bg-elevated);
  border-radius: 980px;
  color: var(--text);
}
.cl-unreleased .cl-version {
  background: transparent;
  border: 1px dashed var(--text-muted);
  color: var(--text-muted);
}
.cl-date {
  font-size: 14px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.cl-category {
  margin-bottom: 20px;
}
.cl-category:last-child {
  margin-bottom: 0;
}
.cl-cat-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.cl-category ul {
  margin: 0;
  padding-left: 22px;
  list-style: none;
}
.cl-category li {
  position: relative;
  padding: 4px 0;
  font-size: 15px;
  line-height: 1.55;
}
.cl-category li::before {
  content: "›";
  position: absolute;
  left: -16px;
  color: var(--text-muted);
}
.cl-category li code {
  background: var(--bg-elevated);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, monospace;
}
.cl-empty {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin: 8px 0 0;
}

@media (max-width: 640px) {
  .changelog-page { padding: 48px 0 64px; }
  .changelog-page h1 { font-size: 28px; }
  .cl-timeline { gap: 36px; padding-left: 24px; margin-left: 4px; }
  .cl-release::before { left: -33px; }
  .cl-version { font-size: 18px; }
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
  .hero { padding: 64px 0 16px; }
  .screenshot { padding: 0 16px 48px; }
  .hero .app-icon { width: 80px; height: 80px; margin-bottom: 20px; }
  .hero h1 { font-size: 36px; }
  .hero .tagline { font-size: 16px; }
  section { padding: 56px 0; }
  section h2 { font-size: 26px; }
  .site-nav a { margin-left: 12px; font-size: 13px; }
  .lang-switch { margin-left: 12px; padding-left: 12px; }
}
