/* ── PostPolish — Stylesheet ── */

/* ── Tokens ── */
:root {
  --color-bg: #FAFAF7;
  --color-surface: #FFFFFF;
  --color-text: #111111;
  --color-text-secondary: #555555;
  --color-text-tertiary: #888888;
  --color-accent: #5BB88A;
  --color-accent-hover: #4A9E75;
  --color-accent-soft: rgba(91, 184, 138, 0.10);
  --color-border: #E5E5E0;
  --color-border-light: #F0F0EB;

  --font-display: 'Inter Tight', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  --max-width: 1140px;
  --nav-height: 72px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 100px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-xs);
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
}

@media (min-width: 768px) {
  section {
    padding: var(--space-2xl) 0;
  }
}

/* ── Screen reader only ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-text);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.nav-logo .post {
  color: var(--color-text);
}

.nav-logo .polish {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links a:not(.btn) {
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--color-text);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* ── Mobile nav toggle ── */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text);
  transition: all 0.2s;
}

/* ── Mobile menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  padding: var(--space-lg) var(--space-md);
  z-index: 99;
}

.mobile-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: var(--fw-medium);
}

.mobile-menu .btn {
  margin-top: var(--space-sm);
  text-align: center;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ── Hero ── */
.hero {
  padding-top: calc(var(--nav-height) + var(--space-sm));
  padding-bottom: var(--space-xl);
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    padding-top: calc(var(--nav-height) + var(--space-md));
    padding-bottom: var(--space-2xl);
  }
}

.hero-logo {
  width: clamp(360px, 72vw, 720px);
  height: auto;
  margin: 0 auto -40px;
}

.hero h1 {
  margin-bottom: var(--space-xs);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.hero-trust {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  font-weight: var(--fw-medium);
}

/* ── Before / After ── */
.ba-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.ba-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.ba-toggle-wrap {
  display: flex;
  justify-content: center;
}

.ba-toggle {
  display: inline-flex;
  background: var(--color-bg);
  border-radius: var(--radius-full);
  padding: 4px;
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.ba-toggle button {
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  transition: all 0.2s;
}

.ba-toggle button.is-active {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ba-panel {
  display: none;
}

.ba-panel.is-active {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .ba-panel.is-active {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

.ba-card {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.ba-card--before {
  background: var(--color-bg);
}

.ba-card--after {
  background: var(--color-accent-soft);
  border-color: rgba(91, 184, 138, 0.2);
}

.ba-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
  color: var(--color-text-tertiary);
}

.ba-card--after .ba-label {
  color: var(--color-accent-hover);
}

.ba-card p,
.ba-card ul {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.ba-card ul {
  padding-left: 1.2em;
  list-style: disc;
}

.ba-card ul li {
  margin-bottom: 4px;
}

/* ── Cards (What you get) ── */
.cards-section {
  text-align: center;
}

.cards-section h2 {
  text-align: center;
}

.cards-grid {
  display: grid;
  gap: var(--space-md);
  text-align: left;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ── Process ── */
.process-section {
  text-align: center;
}

.steps {
  display: grid;
  gap: var(--space-lg);
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  text-align: left;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    text-align: center;
  }
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 0.9375rem;
  margin-bottom: var(--space-sm);
}

.step p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.delivery {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-lg);
}

/* ── Pricing ── */
.pricing-section {
  text-align: center;
}

.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.pricing-card h2 {
  margin-bottom: var(--space-xs);
}

.pricing-sub {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  font-size: 1.0625rem;
}

.pricing-includes {
  text-align: left;
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.pricing-includes li {
  padding: 8px 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--color-border-light);
  padding-left: 24px;
  position: relative;
}

.pricing-includes li:last-child {
  border-bottom: none;
}

.pricing-includes li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: var(--fw-semibold);
}

.pricing-note {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

/* ── FAQ ── */
.faq-section {
  text-align: center;
}

.faq-section h2 {
  text-align: center;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  padding: var(--space-md) 0;
  font-weight: var(--fw-medium);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-text-tertiary);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-answer {
  padding-bottom: var(--space-md);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ── Final CTA ── */
.final-cta {
  text-align: center;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.final-cta h2 {
  margin-bottom: var(--space-md);
}

.final-cta .btn {
  margin-bottom: var(--space-md);
}

.final-cta-email {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
}

.final-cta-email a {
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.final-cta-email a:hover {
  color: var(--color-text);
}

/* ── Footer ── */
.footer {
  padding: var(--space-lg) 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
}

.footer-links a {
  color: var(--color-text-tertiary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-text);
}

/* ── Mobile sticky CTA ── */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px var(--space-md);
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border-light);
  z-index: 98;
  text-align: center;
}

.mobile-cta.is-visible {
  display: block;
}

.mobile-cta .btn {
  width: 100%;
  max-width: 360px;
}

@media (min-width: 768px) {
  .mobile-cta {
    display: none !important;
  }
}

/* ── Focus states ── */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Selection ── */
::selection {
  background: var(--color-accent-soft);
  color: var(--color-text);
}
