/* ─── Textora Theme ───────────────────────────────────────────────────────── */
/* Aesthetic: editorial-minimal. Syne for identity, Instrument Sans for body. */
/* Palette: off-white canvas, near-black ink, single amber accent.            */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Instrument+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ── Reset + Tokens ─────────────────────────────────────────────────────── */

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

:root {
  /* palette */
  --tx-ink:       #141413;
  --tx-ink-2:     #5a5a56;
  --tx-ink-3:     #9a9a94;
  --tx-canvas:    #f5f5f3;
  --tx-white:     #ffffff;
  --tx-border:    #e4e4e0;
  --tx-amber:     #d4852a;
  --tx-amber-bg:  #fdf4e7;
  --tx-tg:        #229ed9;

  /* type */
  --tx-display:   'Syne', system-ui, sans-serif;
  --tx-body:      'Instrument Sans', system-ui, sans-serif;

  /* spacing */
  --tx-header-h:  64px;
  --tx-radius:    10px;
  --tx-radius-sm: 6px;

  /* transitions */
  --tx-ease:      200ms cubic-bezier(.4,0,.2,1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--tx-body);
  background: var(--tx-canvas);
  color: var(--tx-ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tx-main { flex: 1; }

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

/* ── Container ──────────────────────────────────────────────────────────── */

.tx-container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 40px;
}

/* ── Logo ───────────────────────────────────────────────────────────────── */

.tx-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  text-decoration: none;
}

.tx-logo__mark {
  font-family: var(--tx-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--tx-amber);
  letter-spacing: -1px;
}

.tx-logo__name {
  font-family: var(--tx-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--tx-ink);
  letter-spacing: -.5px;
}

.tx-logo--footer .tx-logo__mark,
.tx-logo--footer .tx-logo__name { font-size: 18px; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.tx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--tx-header-h);
  background: rgba(245,245,243,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tx-border);
  transition: box-shadow var(--tx-ease);
}

.tx-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.tx-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Nav */
.tx-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.tx-nav__link {
  font-family: var(--tx-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--tx-ink-2);
  padding: 6px 12px;
  border-radius: var(--tx-radius-sm);
  transition: color var(--tx-ease), background var(--tx-ease);
  white-space: nowrap;
}

.tx-nav__link:hover {
  color: var(--tx-ink);
  background: var(--tx-border);
}

.tx-nav__link--active {
  color: var(--tx-ink);
  background: var(--tx-white);
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}

/* Right side */
.tx-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

/* Language switcher */
.tx-lang-switch { display: flex; gap: 2px; }

.tx-lang-switch a,
.tx-lang-switch span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--tx-ink-3);
  transition: color var(--tx-ease), background var(--tx-ease);
}

.tx-lang-switch a:hover { color: var(--tx-ink); background: var(--tx-border); }
.tx-lang-switch .current-lang,
.tx-lang-switch [aria-current] { color: var(--tx-ink); background: var(--tx-border); }

/* Polylang li wrapper */
.tx-lang-switch li { list-style: none; }

/* Burger */
.tx-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--tx-radius-sm);
}

.tx-burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--tx-ink);
  transition: transform var(--tx-ease), opacity var(--tx-ease);
  transform-origin: center;
}

.tx-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.tx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tx-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.tx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--tx-radius-sm);
  font-family: var(--tx-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.1px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--tx-ease);
  white-space: nowrap;
}

.tx-btn--primary {
  background: var(--tx-ink);
  color: var(--tx-white);
}
.tx-btn--primary:hover { background: #2d2d2a; }

.tx-btn--ghost {
  background: transparent;
  color: var(--tx-ink-2);
  border: 1px solid var(--tx-border);
}
.tx-btn--ghost:hover { border-color: var(--tx-ink-2); color: var(--tx-ink); }

.tx-btn--outline {
  background: transparent;
  color: var(--tx-ink);
  border: 1px solid var(--tx-ink);
}
.tx-btn--outline:hover { background: var(--tx-ink); color: var(--tx-white); }

.tx-btn-tg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--tx-tg);
  color: var(--tx-white);
  border-radius: var(--tx-radius-sm);
  font-family: var(--tx-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity var(--tx-ease);
  white-space: nowrap;
}
.tx-btn-tg:hover { opacity: .85; }

/* ── Section labels ──────────────────────────────────────────────────────── */

.tx-section-title {
  font-family: var(--tx-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--tx-ink-3);
  margin-bottom: 40px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.tx-hero {
  padding: 80px 0 100px;
  overflow: hidden;
}

.tx-hero .tx-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tx-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--tx-amber);
  background: var(--tx-amber-bg);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.tx-hero__title {
  font-family: var(--tx-display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--tx-ink);
  margin-bottom: 20px;
}

.tx-hero__sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--tx-ink-2);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 36px;
}

.tx-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero visual */
.tx-hero__visual {
  position: relative;
  height: 320px;
}

.tx-hero__card {
  position: absolute;
  background: var(--tx-white);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  padding: 20px 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
}

.tx-hero__card--1 {
  width: 240px;
  top: 20px;
  left: 0;
  animation: tx-float 6s ease-in-out infinite;
}
.tx-hero__card--2 {
  width: 200px;
  top: 100px;
  right: 0;
  animation: tx-float 6s ease-in-out infinite 1.5s;
}
.tx-hero__card--3 {
  width: 130px;
  bottom: 30px;
  left: 60px;
  animation: tx-float 6s ease-in-out infinite 3s;
}

@keyframes tx-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.tx-hero__card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tx-ink-3);
  margin-bottom: 14px;
}

.tx-hero__card-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tx-hero__card-lines span {
  height: 8px;
  background: var(--tx-border);
  border-radius: 4px;
  display: block;
}

.tx-hero__card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tx-hero__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  background: var(--tx-canvas);
  border: 1px solid var(--tx-border);
  border-radius: 20px;
  color: var(--tx-ink-2);
}
.tx-hero__badge--ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #16a34a;
}

.tx-hero__card-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f0fdf4;
  border-radius: 50%;
  color: #16a34a;
  margin: 4px auto 0;
}

/* ── How it works ────────────────────────────────────────────────────────── */

.tx-how {
  padding: 80px 0;
  background: var(--tx-white);
  border-top: 1px solid var(--tx-border);
  border-bottom: 1px solid var(--tx-border);
}

.tx-how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.tx-how__num {
  font-family: var(--tx-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--tx-border);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.tx-how__step-title {
  font-family: var(--tx-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -.3px;
}

.tx-how__step-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--tx-ink-2);
  line-height: 1.7;
}

/* ── Tools Grid ──────────────────────────────────────────────────────────── */

.tx-tools {
  padding: 80px 0;
}

.tx-tools__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tx-tool-card {
  display: flex;
  flex-direction: column;
  background: var(--tx-white);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  padding: 28px 28px 24px;
  text-decoration: none;
  transition: border-color var(--tx-ease), box-shadow var(--tx-ease), transform var(--tx-ease);
  position: relative;
  overflow: hidden;
}

.tx-tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--tx-amber-bg) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--tx-ease);
}

.tx-tool-card:hover {
  border-color: rgba(212, 133, 42, .4);
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  transform: translateY(-2px);
}
.tx-tool-card:hover::before { opacity: 1; }

.tx-tool-card__icon {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tx-canvas);
  border-radius: 10px;
  color: var(--tx-ink-2);
  margin-bottom: 18px;
  transition: background var(--tx-ease), color var(--tx-ease);
}
.tx-tool-card:hover .tx-tool-card__icon {
  background: var(--tx-amber-bg);
  color: var(--tx-amber);
}

.tx-tool-card__title {
  position: relative;
  font-family: var(--tx-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.3px;
  margin-bottom: 10px;
  color: var(--tx-ink);
}

.tx-tool-card__desc {
  position: relative;
  font-size: 13px;
  font-weight: 300;
  color: var(--tx-ink-2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.tx-tool-card__arrow {
  position: relative;
  color: var(--tx-ink-3);
  transition: color var(--tx-ease), transform var(--tx-ease);
  align-self: flex-end;
}
.tx-tool-card:hover .tx-tool-card__arrow {
  color: var(--tx-amber);
  transform: translateX(3px);
}

/* ── Pricing ─────────────────────────────────────────────────────────────── */

.tx-pricing {
  padding: 80px 0;
  background: var(--tx-white);
  border-top: 1px solid var(--tx-border);
  border-bottom: 1px solid var(--tx-border);
}

.tx-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.tx-pricing__card {
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tx-pricing__card--featured {
  border-color: var(--tx-amber);
  background: var(--tx-amber-bg);
  transform: scale(1.02);
}

.tx-pricing__tier {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--tx-ink-3);
}

.tx-pricing__card--featured .tx-pricing__tier {
  color: var(--tx-amber);
}

.tx-pricing__price {
  font-family: var(--tx-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--tx-ink);
}

.tx-pricing__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tx-pricing__list li {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--tx-ink-2);
  padding-left: 16px;
  position: relative;
}

.tx-pricing__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tx-border);
}

.tx-pricing__card--featured .tx-pricing__list li::before {
  background: var(--tx-amber);
}

/* ── Page template (tool pages) ──────────────────────────────────────────── */

.tx-page {
  padding: 56px 0 72px;
}

.tx-page__inner {
  max-width: 860px;
}

.tx-page__content h1 {
  font-family: var(--tx-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.tx-page__content .wp-block-shortcode,
.tx-page__content p:empty { display: none; }

/* ── SEO text block (below tool) ─────────────────────────────────────────── */

.tx-seo-text {
  padding: 60px 0 80px;
  border-top: 1px solid var(--tx-border);
}

.tx-seo-text__body {
  max-width: 740px;
  font-size: 14.5px;
  font-weight: 300;
  color: var(--tx-ink-2);
  line-height: 1.8;
}

.tx-seo-text__body h2 {
  font-family: var(--tx-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--tx-ink);
  margin: 36px 0 12px;
  letter-spacing: -.3px;
}

.tx-seo-text__body p { margin-bottom: 16px; }
.tx-seo-text__body p:last-child { margin-bottom: 0; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.tx-footer__tg-band {
  background: var(--tx-ink);
  padding: 28px 0;
}

.tx-footer__tg-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tx-footer__tg-text {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,.7);
  max-width: 480px;
}

.tx-footer__main {
  background: var(--tx-canvas);
  border-top: 1px solid var(--tx-border);
  padding: 56px 0 32px;
}

.tx-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.tx-footer__tagline {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 300;
  color: var(--tx-ink-3);
}

.tx-footer__nav-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--tx-ink-3);
  margin-bottom: 16px;
}

.tx-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tx-footer__link {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--tx-ink-2);
  padding: 5px 0;
  transition: color var(--tx-ease);
}
.tx-footer__link:hover { color: var(--tx-ink); }

/* Polylang footer lang */
.tx-footer__lang-list { display: flex; flex-direction: column; gap: 2px; }
.tx-footer__lang-list li { list-style: none; }
.tx-footer__lang-list a,
.tx-footer__lang-list span {
  font-size: 13.5px;
  color: var(--tx-ink-2);
  padding: 5px 0;
  display: block;
  transition: color var(--tx-ease);
}
.tx-footer__lang-list a:hover { color: var(--tx-ink); }
.tx-footer__lang-list .current-lang { color: var(--tx-ink); font-weight: 500; }

.tx-footer__bottom {
  border-top: 1px solid var(--tx-border);
  padding-top: 24px;
}

.tx-footer__copy {
  font-size: 12px;
  color: var(--tx-ink-3);
}

/* ── 404 ─────────────────────────────────────────────────────────────────── */

.tx-404 { padding: 120px 0; text-align: center; }
.tx-404__code {
  font-family: var(--tx-display);
  font-size: 120px;
  font-weight: 800;
  letter-spacing: -6px;
  color: var(--tx-border);
  line-height: 1;
  margin-bottom: 16px;
}
.tx-404__title {
  font-family: var(--tx-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -.5px;
}
.tx-404__sub {
  font-size: 15px;
  color: var(--tx-ink-2);
  margin-bottom: 36px;
}

/* ── Yoast breadcrumbs (if used) ─────────────────────────────────────────── */

.tx-breadcrumbs {
  padding: 16px 0 0;
  font-size: 12px;
  color: var(--tx-ink-3);
}
.tx-breadcrumbs a { color: var(--tx-ink-3); }
.tx-breadcrumbs a:hover { color: var(--tx-ink); }

/* ── Polylang language switcher in nav ───────────────────────────────────── */

.tx-lang-switch ul {
  display: flex;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .tx-container { padding-inline: 24px; }

  .tx-nav { display: none; }
  .tx-burger { display: flex; }

  .tx-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--tx-header-h) 0 0 0;
    background: var(--tx-white);
    padding: 24px;
    gap: 4px;
    z-index: 99;
    border-top: 1px solid var(--tx-border);
    overflow-y: auto;
  }

  .tx-nav.is-open .tx-nav__link {
    font-size: 16px;
    padding: 14px 16px;
  }

  .tx-hero .tx-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .tx-hero__visual { height: 240px; }

  .tx-tools__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tx-how__steps { grid-template-columns: 1fr; gap: 36px; }

  .tx-pricing__grid { grid-template-columns: 1fr; }
  .tx-pricing__card--featured { transform: none; }

  .tx-footer__grid { grid-template-columns: 1fr 1fr; }
  .tx-footer__brand { grid-column: 1 / -1; }

  .tx-footer__tg-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .tx-container { padding-inline: 16px; }

  .tx-hero { padding: 48px 0 64px; }
  .tx-hero__title { letter-spacing: -1.5px; }
  .tx-hero__visual { display: none; }

  .tx-how { padding: 56px 0; }
  .tx-tools { padding: 56px 0; }
  .tx-tools__grid { grid-template-columns: 1fr; }
  .tx-pricing { padding: 56px 0; }
  .tx-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Animations ──────────────────────────────────────────────────────────── */

.tx-hero__inner,
.tx-hero__visual,
.tx-how__step,
.tx-tool-card,
.tx-pricing__card {
  animation: tx-rise .6s ease both;
}

.tx-how__step:nth-child(2)  { animation-delay: .1s; }
.tx-how__step:nth-child(3)  { animation-delay: .2s; }
.tx-tool-card:nth-child(2)  { animation-delay: .07s; }
.tx-tool-card:nth-child(3)  { animation-delay: .14s; }
.tx-tool-card:nth-child(4)  { animation-delay: .21s; }
.tx-tool-card:nth-child(5)  { animation-delay: .28s; }
.tx-pricing__card:nth-child(2) { animation-delay: .1s; }
.tx-pricing__card:nth-child(3) { animation-delay: .2s; }

@keyframes tx-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── WP alignment helpers ────────────────────────────────────────────────── */

.aligncenter { margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
