/* ---------- Reset & tokens ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Roboto Slab", serif;
  color: #0b0b0b;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
textarea { font-family: inherit; }

:root {
  --red: #d4403a;
  --red-2: #ce177b;
  --grad: linear-gradient(264deg, var(--red) 0%, var(--red-2) 100%);
  --pink-wash: #fdf5f5;
  --muted: #6b6d7c;
  --border: #e7e5e4;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --wrap: 1180px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--muted); }

h1, h2, h3, h4, h5 { font-family: "Roboto Slab", serif; font-weight: 700; margin: 0 0 12px; color: #0b0b0b; }
h1 { font-size: 40px; }
h2 { font-size: 26px; margin-top: 40px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p { margin: 0 0 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; text-align: center; white-space: nowrap;
}
.btn-gradient {
  background: var(--grad); color: #fff; font-weight: 600;
  border-radius: var(--radius-pill); padding: 12px 26px;
  box-shadow: 0 10px 24px rgba(212, 64, 58, .28);
}
.btn-gradient img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.btn-dark { background: #0b0b0b; color: #fff; border-radius: var(--radius-pill); padding: 10px 22px; font-weight: 500; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); background: #fff; position: relative; z-index: 40; }
.header-inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; flex-shrink: 0; }

.main-nav { display: flex; align-items: center; gap: 22px; flex: 1; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.main-nav > a:hover { color: var(--red); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #d8d8d8;
  border-radius: var(--radius-pill); padding: 9px 16px; font-size: 15px; font-weight: 500; color: #0b0b0b;
  font-family: inherit;
}
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 10px); left: 0; background: #fff;
  border: 1px solid var(--border); border-radius: 14px; padding: 8px; min-width: 230px;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14px; }
.nav-dropdown-menu a:hover { background: #f7f2f2; }
.nav-dropdown-menu img { width: 18px; height: 18px; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-chat { background: var(--red); color: #fff; border-radius: var(--radius-pill); padding: 9px 18px; font-size: 15px; font-weight: 500; }
.btn-chat img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.btn-upgrade { padding: 9px 18px; font-size: 15px; }
.header-actions .btn-dark { padding: 9px 20px; font-size: 15px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; margin-left: auto; }
.nav-toggle span { width: 22px; height: 2px; background: var(--red); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 60px;
  text-align: center;
  background:
    radial-gradient(600px 320px at 8% -10%, #fbe3e0 0%, rgba(251,227,224,0) 65%),
    radial-gradient(500px 300px at 100% 20%, #fdf0ef 0%, rgba(253,240,239,0) 60%);
}
.hero h1 { margin-bottom: 10px; }
.hero-sub { color: #3d3d3d; max-width: 640px; margin: 0 auto 32px; font-size: 15px; }

.tool-card {
  max-width: 850px; margin: 0 auto; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: 0 20px 45px rgba(20,20,30,.06); text-align: left; overflow: hidden;
}
.tool-card-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.tool-tabs { display: flex; gap: 10px; }
.tool-tab { border-radius: var(--radius-pill); padding: 9px 20px; font-weight: 600; font-size: 14px; background: #f2f2f2; color: #8a8a8a; border: 1px solid transparent; font-family: inherit; }
.tool-tab.active { background: #fdeceb; color: var(--red); border-color: var(--red); }
.pill-outline { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d8d8d8; border-radius: var(--radius-pill); padding: 8px 16px; font-size: 14px; font-weight: 500; background: #fff; }
.pill-outline img { width: 14px; height: 14px; }

.tool-card-body { position: relative; padding: 8px 20px 70px; }
.tool-card-body textarea { width: 100%; border: none; outline: none; resize: none; font-size: 15px; padding-top: 16px; color: #222; }
.tool-card-body textarea::placeholder { color: #9a9a9a; }
.paste-btn {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #d8d8d8;
  border-radius: var(--radius-pill); padding: 10px 22px; font-size: 14px; font-weight: 500; color: #444;
}
.paste-btn img { width: 15px; height: 19px; }

.tool-card-foot { display: flex; justify-content: flex-end; gap: 26px; padding: 14px 20px; border-top: 1px solid var(--border); font-size: 14px; }
.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--red); }

.btn-check { margin-top: 30px; padding: 15px 46px; font-size: 16px; }

/* ---------- Content section ---------- */
.content-section { padding: 50px 0 20px; }
.content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 50px; align-items: start; }
.content-main p { color: #262626; font-size: 15.5px; }
.content-main h2:first-child { margin-top: 0; }

.steps { display: flex; flex-direction: column; gap: 36px; margin: 26px 0 10px; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.step-text { font-size: 15.5px; color: #262626; }
.step-image { border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px rgba(20,20,30,.06); }

.feature-list { margin: 18px 0; }
.feature-list li { position: relative; padding-left: 22px; margin-bottom: 20px; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.feature-list h3 { display: inline; font-size: 17px; }
.feature-list p { margin-top: 4px; color: #262626; font-size: 15.5px; }

.side-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; background: #fff;
  box-shadow: 0 10px 30px rgba(20,20,30,.05); position: sticky; top: 20px;
}
.side-card h4 { font-size: 16px; margin-bottom: 16px; }
.pill-list { display: flex; flex-direction: column; gap: 12px; }
.pill-list .pill {
  border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 11px 18px;
  font-size: 14px; font-weight: 500; text-align: center;
}
.pill-list .pill:hover { border-color: var(--red); color: var(--red); }

/* ---------- Pricing ---------- */
.pricing-section { padding: 60px 0 10px; }
.pricing-section > .wrap > p { margin-bottom: 30px; }
.pricing-card { max-width: 900px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 30px; box-shadow: 0 16px 40px rgba(20,20,30,.05); }
.pricing-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-weight: 600; }
.plan-toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 400; }
.switch { width: 38px; height: 20px; border-radius: 20px; background: #e2e2e2; border: none; position: relative; padding: 0; }
.switch-dot { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }

.plan-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.plan-option { display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; cursor: pointer; }
.plan-option.selected, .plan-option:has(input:checked) { border-color: var(--red); background: #fdf1f0; }
.plan-option input { display: none; }
.plan-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cfcfcf; flex-shrink: 0; position: relative; }
.plan-option.selected .plan-radio, .plan-option:has(input:checked) .plan-radio { border-color: var(--red); }
.plan-option.selected .plan-radio::after, .plan-option:has(input:checked) .plan-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--red);
}
.plan-info { display: flex; flex-direction: column; flex: 1; }
.plan-info small { color: var(--muted); font-size: 12.5px; }
.plan-price { text-align: right; font-weight: 700; font-size: 18px; }
.plan-price small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

.pricing-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.premium-perks strong { display: block; margin-bottom: 10px; font-size: 15px; }
.perks { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: #333; }
.perks span { display: flex; align-items: center; gap: 6px; }
.perks img { width: 12px; height: 10px; }

/* ---------- FAQ ---------- */
.faq-section { padding: 60px 0 10px; }
.accordion-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.accordion-item { border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; }
.accordion-item.active { border-color: var(--red); }
.accordion-head { width: 100%; background: none; border: none; display: flex; align-items: center; justify-content: space-between; font-family: inherit; font-weight: 600; font-size: 15px; padding: 0; color: #0b0b0b; }
.accordion-arrow { flex-shrink: 0; transition: transform .2s ease; color: #0b0b0b; }
.accordion-item.active .accordion-arrow { transform: rotate(180deg); }
.accordion-body { display: none; margin-top: 14px; font-size: 14.5px; color: #333; }
.accordion-item.active .accordion-body { display: block; }
.accordion-body a { color: var(--red); text-decoration: underline; }

/* ---------- Blog ---------- */
.blog-section { padding: 60px 0 10px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 12px 30px rgba(20,20,30,.05); display: flex; flex-direction: column; }
.blog-card img { width: 100%; height: 160px; object-fit: cover; }
.blog-card h3 { padding: 18px 18px 0; font-size: 16px; line-height: 1.4; flex: 1; }
.blog-card-foot { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; }
.blog-card-foot time { color: var(--muted); font-size: 13px; }
.pill-outline.small { padding: 7px 14px; font-size: 13px; }
.pill-outline.small img { width: 12px; height: 10px; }

/* ---------- App banner ---------- */
.app-banner {
  margin-top: 70px; background: var(--red);
  background-image: url("../images/bg/bg-apps-banner.svg");
  background-repeat: no-repeat; background-position: right center; background-size: cover;
}
.app-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 38px 24px; }
.app-banner-text { color: #fff; max-width: 560px; }
.app-banner-text h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.app-banner-text p { color: #fdeceb; margin: 0; font-size: 14.5px; }
.app-banner-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.app-banner-badges img { width: 150px; height: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(#fdf5f5 0%, rgba(255,255,255,0) 100%);
  padding: 50px 0 40px;
}
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-about .brand { margin-bottom: 14px; font-size: 17px; }
.footer-about p { color: #262626; font-size: 14px; max-width: 260px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #d8d8d8; display: flex; align-items: center; justify-content: center; }
.footer-social img { width: 15px; height: 15px; }
.footer-links h5 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: #262626; }
.footer-links a:hover { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .step { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .main-nav, .header-actions { display: none; }
  .main-nav.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 18px 24px; border-bottom: 1px solid var(--border); gap: 16px; }
  .nav-toggle { display: flex; }
  h1 { font-size: 30px; }
  .plan-options { grid-template-columns: 1fr; }
  .pricing-card-foot { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Simple hero (no tool card) ---------- */
.hero-simple { padding: 50px 0 10px; text-align: center; }
.hero-simple h1 { margin-bottom: 14px; }
.hero-simple p { max-width: 680px; margin: 0 auto; color: #333; font-size: 15.5px; }

/* ---------- Tool button variants ---------- */
.btn-solid-red { background: var(--red); color: #fff; font-weight: 600; border-radius: var(--radius-pill); padding: 12px 26px; box-shadow: 0 10px 24px rgba(212,64,58,.22); }

/* ---------- Ordered steps list ---------- */
.ol-steps { counter-reset: step; margin: 20px 0; display: flex; flex-direction: column; gap: 14px; }
.ol-steps li { list-style: none; position: relative; padding-left: 36px; color: #262626; font-size: 15.5px; }
.ol-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---------- Key/value table ---------- */
.kv-table { width: 100%; border-collapse: collapse; margin: 20px 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.kv-table tr:nth-child(even) { background: #fafafa; }
.kv-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: 14.5px; color: #262626; }
.kv-table td:first-child { font-weight: 600; width: 40%; }
.kv-table tr:last-child td { border-bottom: none; }

/* ---------- Plain content bullet lists ---------- */
.content-main ul:not(.feature-list), .article-body ul, .faq-plain ul { list-style: disc; }
.content-main ol:not(.ol-steps), .article-body ol { list-style: decimal; padding-left: 22px; }
.content-main ol:not(.ol-steps) li, .article-body ol li { margin-bottom: 8px; }

/* ---------- Plain FAQ (no accordion) ---------- */
.faq-plain { display: flex; flex-direction: column; gap: 22px; margin: 18px 0; }
.faq-plain h3 { margin-bottom: 6px; }
.faq-plain p { color: #262626; font-size: 15.5px; }

/* ---------- Content sidebar variant (simple list) ---------- */
.side-card .simple-list { display: flex; flex-direction: column; }
.side-card .simple-list a { padding: 12px 4px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.side-card .simple-list a:last-child { border-bottom: none; }
.side-card .simple-list a:hover { color: var(--red); }

/* ---------- Content image ---------- */
.content-image { margin: 22px 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px rgba(20,20,30,.06); }

/* ---------- Blog listing grid (4 cols) ---------- */
.blog-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .blog-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid.cols-4 { grid-template-columns: 1fr; } }

/* ---------- Article (blog post) ---------- */
.article-section { padding: 40px 0 10px; }
.article-header { max-width: 900px; margin: 0 auto 24px; }
.article-header h1 { font-size: 30px; margin-bottom: 8px; }
.article-header time { color: #1f8274; font-size: 14px; font-weight: 500; }
.article-hero { max-width: 900px; margin: 0 auto 30px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.article-body { max-width: 900px; margin: 0 auto; color: #262626; font-size: 15.5px; }
.article-body h2 { font-size: 22px; }
.article-body h3 { font-size: 18px; }
.article-body p { line-height: 1.9; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body a { color: var(--red); text-decoration: underline; }

/* ---------- About page ---------- */
.about-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 60px 0; }
.about-columns img.about-illustration { width: 100%; margin-top: 30px; }
.vision-cards { display: flex; flex-direction: column; gap: 20px; }
.vision-card { display: flex; gap: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 12px 30px rgba(20,20,30,.05); }
.vision-card img { width: 40px; height: 40px; flex-shrink: 0; }
.vision-card h3 { margin-bottom: 8px; }
.vision-card p { margin: 0; color: #333; font-size: 15px; }

.stats-section { padding: 20px 0 60px; text-align: center; }
.stats-section p.description { max-width: 620px; margin: 10px auto 30px; color: #333; }
.stats-row { max-width: 980px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgba(20,20,30,.05); display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-item { display: flex; align-items: center; gap: 16px; justify-content: center; padding: 34px 20px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-item .stat-icon { width: 46px; height: 46px; border-radius: 50%; background: #fdf1f0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-item .stat-icon img { width: 22px; height: 22px; }
.stat-item h3 { margin: 0; font-size: 22px; text-align: left; }
.stat-item p { margin: 0; color: var(--muted); font-size: 13.5px; text-align: left; }

@media (max-width: 800px) {
  .about-columns { grid-template-columns: 1fr; padding: 40px 0; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); justify-content: flex-start; }
  .stat-item:last-child { border-bottom: none; }
}

/* ---------- Contact page ---------- */
.contact-section { padding: 50px 0 70px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 45px rgba(20,20,30,.06); }
.contact-info { background: radial-gradient(500px 260px at 0% 0%, #fbe3e0 0%, rgba(251,227,224,0) 65%), #fff8f7; padding: 46px 40px; }
.contact-info h1 { margin-bottom: 14px; }
.contact-info > p { color: #333; margin-bottom: 34px; font-size: 15px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-item img { width: 34px; height: 34px; flex-shrink: 0; }
.contact-item strong { display: block; margin-bottom: 4px; font-size: 15px; }
.contact-item span, .contact-item a { color: #333; font-size: 14.5px; }
.contact-form { padding: 46px 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.form-field label sup { color: var(--red); }
.input-wrap { display: flex; align-items: center; gap: 10px; border: 1px solid #d8d8d8; border-radius: 10px; padding: 12px 14px; }
.input-wrap img { width: 16px; height: 16px; flex-shrink: 0; opacity: .7; }
.input-wrap input, .input-wrap select, .input-wrap textarea { border: none; outline: none; width: 100%; font-family: inherit; font-size: 14.5px; background: transparent; }
.input-wrap textarea { resize: vertical; min-height: 110px; }
.contact-form .btn-solid-red { width: 100%; padding: 14px; font-size: 15px; margin-top: 4px; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
