/* Home page styles extracted from pages/*/index.jsx to avoid inlining large CSS in HTML. */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Avenir Next", "Segoe UI Variable Text", "SF Pro Text", "Noto Sans", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1200px 760px at 50% -10%, rgba(246, 179, 90, 0.22), transparent 60%),
    radial-gradient(980px 740px at 18% 24%, rgba(168, 85, 247, 0.14), transparent 58%),
    radial-gradient(820px 620px at 88% 34%, rgba(59, 130, 246, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 70%, #050505 100%);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

.home-shell {
  --accent: #f6b35a;
  --accent-strong: #f59e0b;
  --accent-deep: #d97706;
  --text-main: rgba(255, 248, 238, 0.94);
  --text-light: rgba(240, 231, 220, 0.76);
  --text-faint: rgba(221, 205, 190, 0.58);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-color-strong: rgba(255, 255, 255, 0.18);
  --max-width: 1100px;
  --radius: 18px;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.35);
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(1200px 760px at 50% -10%, rgba(246, 179, 90, 0.22), transparent 60%),
    radial-gradient(980px 740px at 18% 24%, rgba(95, 55, 135, 0.16), transparent 58%),
    radial-gradient(820px 620px at 88% 34%, rgba(41, 74, 130, 0.12), transparent 60%),
    linear-gradient(180deg, #120d09 0%, #0d0907 54%, #080605 100%);
  position: relative;
  overflow: clip;
}

.home-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 75%);
  pointer-events: none;
}

.home-shell > * {
  position: relative;
  z-index: 1;
}

.home-shell h1,
.home-shell h2,
.home-shell h3,
.home-shell h4,
.home-shell h5,
.home-shell h6 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Songti SC", "STSong", serif;
  line-height: 1.2;
  margin-bottom: 0.8em;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.012em;
}

.home-shell p {
  margin-bottom: 1.2em;
  color: var(--text-light);
}

.home-shell a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.84);
  transition: 0.2s;
}

.home-shell a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section:last-child {
  border-bottom: none;
}

.bg-white {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.text-center {
  text-align: center;
}

/* --- Header --- */
.home-shell header {
  background: rgba(10, 8, 6, 0.60);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.home-shell.is-tool-active header {
  position: relative;
  top: auto;
  z-index: 2;
  background: rgba(10, 8, 6, 0.72);
  box-shadow: none;
}

body.rasterbator-zoom-open .home-shell.is-tool-active header {
  visibility: hidden;
  pointer-events: none;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.logo span {
  color: var(--text-faint);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--accent);
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  font-weight: 700;
}

.mobile-nav-panel {
  display: none;
}

.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.lang-btn:hover {
  border-color: rgba(246, 179, 90, 0.55);
  color: var(--accent);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: rgba(18, 14, 10, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  min-width: 140px;
  z-index: 100;
  overflow: hidden;
}

.lang-dropdown a {
  display: block;
  padding: 0.7rem 1rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  transition: 0.2s;
}

.lang-dropdown a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

.lang-dropdown a.active {
  background: rgba(246, 179, 90, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.btn-cta {
  background: linear-gradient(180deg, rgba(246, 179, 90, 1), rgba(217, 119, 6, 1));
  color: rgba(20, 12, 6, 0.92) !important;
  padding: 0.65rem 1.55rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(246, 179, 90, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  cursor: pointer;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.40);
  filter: brightness(1.02);
}

.btn-cta-btn {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  line-height: 1;
}

/* --- Hero Section --- */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -160px -80px auto -80px;
  height: 520px;
  background: radial-gradient(closest-side at 50% 50%, rgba(246, 179, 90, 0.22), transparent 70%);
  filter: blur(24px);
  opacity: 0.9;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 120px -80px auto -80px;
  height: 520px;
  background:
    radial-gradient(closest-side at 18% 40%, rgba(168, 85, 247, 0.16), transparent 68%),
    radial-gradient(closest-side at 84% 24%, rgba(59, 130, 246, 0.14), transparent 68%);
  filter: blur(24px);
  opacity: 0.85;
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: "Avenir Next", "Segoe UI Variable Text", "SF Pro Display", "Noto Sans", sans-serif;
  font-size: clamp(2.15rem, 4.2vw, 3.45rem);
  line-height: 1.1;
  margin-bottom: 0.8rem;
  letter-spacing: -0.05em;
  font-weight: 780;
  color: #f1c27d;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: 1.12rem;
  max-width: 660px;
  margin: 0 auto 2rem;
  color: rgba(240, 231, 220, 0.82);
}

.hero-note {
  margin: -4px auto 18px;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  color: rgba(223, 203, 181, 0.72);
}

.hero-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px auto 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  line-height: 1;
  white-space: nowrap;
}

.chip.chip-orange {
  background: rgba(246, 179, 90, 0.13);
  border-color: rgba(246, 179, 90, 0.22);
}

.chip.chip-green {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.22);
}

.chip.chip-blue {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.22);
}

.chip.chip-violet {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.22);
}

.chip.chip-secure {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(247, 240, 232, 0.92);
}

/* Tool Box */
.tool-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  padding: 2.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 1250px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tool-box.drag-active {
  border-color: rgba(246, 179, 90, 0.55);
  box-shadow: 0 0 0 4px rgba(246, 179, 90, 0.08), var(--shadow);
  transform: translateY(-1px);
}

.tool-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.tool-box-body h3 {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  margin-bottom: 0.3rem;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.tool-box-body p {
  margin-bottom: 0.9rem;
  color: rgba(240, 231, 220, 0.74);
  font-size: 1rem;
  text-align: center;
}

.tool-box-body {
  max-width: 720px;
  margin: 0 auto;
  min-height: 0;
}

.tool-console {
  background: linear-gradient(180deg, rgba(57, 43, 33, 0.86), rgba(40, 31, 25, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 1.5rem 1.5rem 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -30px 80px rgba(0, 0, 0, 0.18);
  margin-bottom: 1.35rem;
}

.tool-console-head {
  margin-bottom: 0;
}

.upload-btn {
  background: linear-gradient(180deg, rgba(246, 179, 90, 1), rgba(217, 119, 6, 1));
  color: rgba(20, 12, 6, 0.92);
  border: 1px solid rgba(246, 179, 90, 0.45);
  padding: 0.95rem 2.45rem;
  font-size: 1.06rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  margin-top: 1rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  display: inline-block;
  text-align: center;
  min-width: 360px;
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
  margin-left: auto;
  margin-right: auto;
}

.upload-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.40);
  filter: brightness(1.02);
}

.selection-share-row {
  margin-top: 1rem;
}

.selection-share-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18) 28%, rgba(255, 255, 255, 0.06) 100%);
  margin-bottom: 1rem;
}

.selection-share-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.selection-share-btn {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  padding: 0;
  line-height: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(45, 31, 22, 0.96), rgba(24, 17, 12, 0.98));
  color: rgba(250, 236, 208, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 179, 90, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.06), 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.selection-share-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(246, 179, 90, 0.22), rgba(217, 119, 6, 0.20)), linear-gradient(180deg, rgba(45, 31, 22, 0.98), rgba(24, 17, 12, 1));
  color: rgba(255, 248, 234, 1);
  border-color: rgba(246, 179, 90, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.1), 0 14px 28px rgba(0, 0, 0, 0.32);
}

.selection-share-btn svg {
  width: 24px;
  height: 24px;
}

.hidden-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 237, 229, 0.78);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  justify-content: center;
}

/* --- Features Grid --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card p,
.text-center p,
.content-block p,
.content-block li,
.footer-col p,
.bottom-bar p,
.faq-answer {
  color: rgba(240, 231, 220, 0.72);
}

.feature-card h3,
.text-center h2,
.content-block h2,
.content-block h3,
.faq-question,
.footer-col h4 {
  color: rgba(255, 248, 238, 0.94);
}

.privacy-card {
  max-width: 920px;
  margin: 0 auto 2rem;
  padding: 1.5rem 1.6rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(55, 42, 31, 0.86), rgba(34, 28, 23, 0.96));
  border: 1px solid rgba(246, 179, 90, 0.18);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.privacy-card-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(246, 179, 90, 0.1);
  border: 1px solid rgba(246, 179, 90, 0.16);
  color: rgba(241, 194, 125, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.privacy-card h3 {
  margin-bottom: 0.6rem;
  color: rgba(255, 248, 238, 0.96);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.privacy-card p {
  margin: 0;
  color: rgba(240, 231, 220, 0.78);
  font-size: 1rem;
  line-height: 1.7;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(246, 179, 90, 0.22);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(246, 179, 90, 0.12);
  color: rgba(255, 255, 255, 0.90);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(246, 179, 90, 0.18);
}

/* --- Gallery Section --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  height: 350px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
  color: white;
  padding: 2rem 1rem 1rem;
  font-weight: 600;
}

/* --- Article / Content Styles (SEO Heavy) --- */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block h2 {
  font-size: 2.2rem;
  margin-top: 3rem;
  color: rgba(255, 248, 238, 0.94);
  border-bottom: 2px solid rgba(246, 179, 90, 0.22);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.content-block h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.88);
}

.content-block ul,
.content-block ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: rgba(240, 231, 220, 0.72);
}

.content-block li {
  margin-bottom: 0.8rem;
}

/* Highlight box for keywords */
.highlight-box {
  background: rgba(246, 179, 90, 0.10);
  border-left: 4px solid rgba(246, 179, 90, 0.55);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  color: rgba(255, 255, 255, 0.82);
}

.highlight-box strong {
  color: rgba(255, 255, 255, 0.92);
}

/* --- FAQ --- */
.faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.faq-question {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.2rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.88);
}

.faq-answer {
  padding: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.18);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question {
  background: rgba(246, 179, 90, 0.10);
  color: rgba(255, 255, 255, 0.92);
}

/* --- Footer --- */
footer {
  background: linear-gradient(180deg, rgba(8, 6, 5, 0.55), rgba(7, 6, 5, 0.85));
  color: rgba(255, 255, 255, 0.70);
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.68);
}

.footer-col a:hover {
  color: rgba(255, 255, 255, 0.92);
}

.bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .mobile-nav-panel {
    display: block;
    padding: 0 1.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(10, 8, 6, 0.74);
    backdrop-filter: blur(16px);
  }

  .mobile-nav-panel-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    gap: 10px;
  }

  .mobile-nav-panel a,
  .mobile-nav-panel button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
    font-size: 0.95rem;
  }

  .mobile-nav-panel button {
    cursor: pointer;
    font: inherit;
  }
}

@media (max-width: 820px) {
  .tool-box-body {
    max-width: none;
  }

  .tool-console {
    padding: 1.2rem 1rem 1rem;
  }

  .upload-btn {
    min-width: 0;
    width: 100%;
  }

  .selection-share-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .selection-share-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex-basis: 44px;
  }
}

/* --- Homepage UX patch: keep the tool visible above the fold --- */
.home-shell {
  --max-width: 1240px;
}

.nav-wrapper {
  height: 64px;
}

.hero {
  padding: 2.25rem 0 2.6rem;
}

.hero.hero-tool-focused {
  padding-top: 1.25rem;
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 0.55rem;
  color: rgba(255, 248, 238, 0.96);
}

.hero-copy {
  max-width: 940px;
  margin: 0 auto 0.9rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.72rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 179, 90, 0.18);
  background: rgba(246, 179, 90, 0.1);
  color: rgba(241, 194, 125, 0.95);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hero-sub {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.25rem auto 0.95rem;
}

.hero-primary-action,
.hero-secondary-action {
  min-height: 44px;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 760;
  line-height: 1;
}

.hero-primary-action {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(246, 179, 90, 0.54);
  background: linear-gradient(180deg, rgba(246, 179, 90, 1), rgba(217, 119, 6, 1));
  color: rgba(20, 12, 6, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font: inherit;
}

.hero-primary-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.hero-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 248, 238, 0.88) !important;
}

.hero-secondary-action:hover {
  border-color: rgba(246, 179, 90, 0.32);
  background: rgba(246, 179, 90, 0.08);
}

.hero-chips {
  margin: 0 auto 0.4rem;
}

.home-tool-mount {
  scroll-margin-top: 82px;
  margin-top: 0.75rem;
}

.hero-tool-focused .home-tool-mount {
  margin-top: 0;
}

.home-tool-mount .wizard-shell {
  width: min(1220px, calc(100vw - 32px));
  padding: 12px 0 0;
}

.home-tool-mount .stepper {
  padding: 14px 18px 10px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.home-tool-mount .step-circle {
  width: 34px;
  height: 34px;
  line-height: 32px;
  margin-bottom: 7px;
  font-size: 14px;
}

.home-tool-mount .step-indicator:not(:last-child)::after {
  top: 17px;
}

.home-tool-mount .step-label {
  font-size: 12px;
}

.home-tool-mount .wizard-container {
  padding: 18px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.tool-link-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  max-width: 980px;
  margin: 1rem auto 0;
  color: rgba(240, 231, 220, 0.72);
  font-size: 0.93rem;
}

.tool-link-row span {
  color: rgba(255, 248, 238, 0.9);
  font-weight: 700;
}

.tool-link-row a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 248, 238, 0.82);
}

.tool-link-row a:hover {
  border-color: rgba(246, 179, 90, 0.26);
  background: rgba(246, 179, 90, 0.08);
}

@media (max-width: 768px) {
  .nav-wrapper {
    height: 60px;
  }

  .logo {
    font-size: 1.28rem;
  }

  .hero {
    padding: 1.45rem 0 1.9rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.5rem);
    letter-spacing: -0.045em;
  }

  .hero-sub {
    font-size: 0.98rem;
    margin-bottom: 0.85rem;
  }

  .hero-actions {
    gap: 0.55rem;
    margin-bottom: 0.75rem;
  }

  .hero-primary-action,
  .hero-secondary-action {
    width: 100%;
    max-width: 360px;
  }

  .hero-chips {
    gap: 6px;
  }

  .chip {
    font-size: 0.78rem;
    padding: 6px 9px;
  }

  .home-tool-mount {
    margin-top: 0.5rem;
    scroll-margin-top: 64px;
  }

  .home-tool-mount .wizard-shell {
    width: min(100%, calc(100vw - 16px));
    padding-top: 8px;
  }

  .home-tool-mount .stepper {
    padding: 10px 8px 8px;
    overflow-x: auto;
    gap: 2px;
  }

  .home-tool-mount .step-circle {
    width: 30px;
    height: 30px;
    line-height: 28px;
    font-size: 12px;
    margin-bottom: 5px;
  }

  .home-tool-mount .step-indicator:not(:last-child)::after {
    top: 15px;
  }

  .home-tool-mount .step-label {
    font-size: 10px;
    white-space: nowrap;
  }

  .home-tool-mount .wizard-container {
    padding: 12px;
  }

  .tool-link-row {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 0.85rem;
    font-size: 0.9rem;
  }

  .tool-link-row span,
  .tool-link-row a {
    text-align: center;
  }
}

/* --- Mobile above-the-fold patch: show the Rasterbator tool sooner --- */
@media (max-width: 768px) {
  .home-shell header {
    position: sticky;
  }

  .nav-wrapper {
    height: 52px;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .logo {
    font-size: 1.08rem;
    gap: 0.42rem;
    letter-spacing: -0.03em;
  }

  .logo img {
    width: 24px;
    height: 24px;
  }

  .mobile-nav-toggle {
    height: 38px;
    min-width: 54px;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .hero {
    padding: 0.72rem 0 0.85rem;
  }

  .hero::before {
    inset: -120px -80px auto -80px;
    height: 340px;
    opacity: 0.55;
  }

  .hero::after {
    inset: 72px -80px auto -80px;
    height: 320px;
    opacity: 0.45;
  }

  .hero-copy {
    margin-bottom: 0.42rem;
  }

  .hero-eyebrow,
  .hero-actions,
  .hero-chips {
    display: none !important;
  }

  .hero h1 {
    font-size: clamp(1.62rem, 7.4vw, 2.05rem);
    line-height: 1.02;
    max-width: 350px;
    margin-bottom: 0.36rem;
    letter-spacing: -0.055em;
  }

  .hero-sub {
    max-width: 350px;
    font-size: 0.88rem;
    line-height: 1.36;
    margin-bottom: 0.15rem;
  }

  .home-tool-mount {
    margin-top: 0.35rem;
    scroll-margin-top: 54px;
  }

  .home-tool-mount .wizard-shell {
    width: min(100%, calc(100vw - 10px));
    padding-top: 4px;
  }

  .home-tool-mount .stepper {
    padding: 7px 6px 6px;
    border-radius: 14px 14px 0 0;
  }

  .home-tool-mount .step-circle {
    width: 28px;
    height: 28px;
    line-height: 26px;
    font-size: 12px;
    margin-bottom: 3px;
  }

  .home-tool-mount .step-indicator:not(:last-child)::after {
    top: 14px;
  }

  .home-tool-mount .step-label {
    font-size: 10px;
    line-height: 1.1;
  }

  .home-tool-mount .wizard-container {
    padding: 8px;
  }

  .tool-link-row {
    display: none !important;
  }
}

@media (max-width: 390px) {
  .logo span {
    display: none;
  }

  .hero h1 {
    font-size: clamp(1.48rem, 7.5vw, 1.86rem);
    max-width: 310px;
  }

  .hero-sub {
    font-size: 0.84rem;
    max-width: 315px;
  }
}

/* --- Desktop above-the-fold patch: make the upload tool visible sooner on laptops/desktops --- */
@media (min-width: 769px) {
  .nav-wrapper {
    height: 56px;
  }

  .logo {
    font-size: 1.32rem;
  }

  .logo img {
    width: 26px;
    height: 26px;
  }

  .nav-links {
    gap: 1.45rem;
  }

  .nav-links a {
    font-size: 0.88rem;
  }

  .btn-cta {
    min-height: 38px;
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
  }

  .lang-btn {
    min-height: 38px;
    padding: 0.42rem 0.7rem;
    font-size: 0.84rem;
  }

  .hero {
    padding: 1.05rem 0 1.15rem;
  }

  .hero::before {
    inset: -170px -80px auto -80px;
    height: 380px;
    opacity: 0.58;
  }

  .hero::after {
    inset: 74px -80px auto -80px;
    height: 360px;
    opacity: 0.46;
  }

  .hero-copy {
    margin-bottom: 0.45rem;
  }

  .hero-eyebrow,
  .hero-chips {
    display: none !important;
  }

  .hero h1 {
    font-size: clamp(2rem, 4vw, 3.05rem);
    line-height: 1.02;
    max-width: 960px;
    margin-bottom: 0.42rem;
    letter-spacing: -0.052em;
  }

  .hero-sub {
    max-width: 760px;
    margin-bottom: 0.12rem;
    font-size: clamp(0.98rem, 1.35vw, 1.08rem);
    line-height: 1.38;
  }

  .home-tool-mount {
    margin-top: 0.25rem;
    scroll-margin-top: 58px;
  }

  .home-tool-mount .wizard-shell {
    width: min(1240px, calc(100vw - 48px));
    padding-top: 6px;
  }

  .home-tool-mount .stepper {
    padding: 10px 16px 7px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  }

  .home-tool-mount .step-circle {
    width: 30px;
    height: 30px;
    line-height: 28px;
    margin-bottom: 4px;
    font-size: 13px;
  }

  .home-tool-mount .step-indicator:not(:last-child)::after {
    top: 15px;
  }

  .home-tool-mount .step-label {
    font-size: 11px;
  }

  .home-tool-mount .wizard-container {
    padding: 12px 16px 14px;
  }

  .tool-link-row {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-height: 820px) {
  .hero {
    padding-top: 0.65rem;
    padding-bottom: 0.75rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 3.4vw, 2.65rem);
    margin-bottom: 0.32rem;
  }

  .hero-sub {
    font-size: 0.96rem;
    line-height: 1.32;
  }

  .home-tool-mount .stepper {
    padding-top: 8px;
    padding-bottom: 6px;
  }
}

/* --- Homepage SEO/UX patch: tool cards and richer examples --- */
.tools-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tool-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.35rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  color: rgba(255, 248, 238, 0.9);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 179, 90, 0.26);
  background: linear-gradient(180deg, rgba(246, 179, 90, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow-soft);
}

.tool-card-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(246, 179, 90, 0.12);
  border: 1px solid rgba(246, 179, 90, 0.18);
  font-size: 1.35rem;
}

.tool-card h3 {
  margin: 0;
  font-size: 1.18rem;
  color: rgba(255, 248, 238, 0.96);
}

.tool-card p {
  margin: 0;
  color: rgba(240, 231, 220, 0.72);
  font-size: 0.96rem;
  line-height: 1.55;
}

.tool-card-link {
  margin-top: auto;
  color: rgba(246, 179, 90, 0.96);
  font-weight: 750;
  font-size: 0.92rem;
}

.gallery-caption {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.gallery-caption strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
}

.gallery-caption span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 520;
}

@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tools-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    padding: 1.15rem;
  }
}

/* --- Templates page patch: poster presets --- */
.templates-page-shell .nav-links a[href="/templates"] {
  color: rgba(246, 179, 90, 0.98);
}

.templates-page {
  overflow: hidden;
}

.templates-hero {
  position: relative;
  padding: 6.2rem 0 4.8rem;
  background:
    radial-gradient(circle at 18% 24%, rgba(246, 179, 90, 0.18), transparent 34%),
    radial-gradient(circle at 86% 16%, rgba(46, 120, 188, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(18, 14, 12, 0.95), rgba(28, 22, 18, 0.98));
}

.templates-hero-inner {
  max-width: 940px;
  text-align: center;
}

.templates-hero h1 {
  margin: 0 0 1rem;
  color: #fff8ee;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.templates-hero-lead {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(240, 231, 220, 0.82);
  font-size: clamp(1.06rem, 2.2vw, 1.28rem);
  line-height: 1.7;
}

.templates-hero-actions {
  justify-content: center;
  margin-top: 1.6rem;
}

.template-hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.template-hero-chips span {
  padding: 0.46rem 0.74rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 248, 238, 0.82);
  font-size: 0.84rem;
  font-weight: 700;
}

.templates-section {
  background: linear-gradient(180deg, rgba(32, 24, 20, 1), rgba(19, 15, 13, 1));
}

.templates-intro {
  max-width: 780px;
  margin: 0 auto 2.4rem;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.template-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.02);
  color: rgba(255, 248, 238, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
  scroll-margin-top: 96px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.template-card:hover {
  transform: translateY(-5px);
  border-color: rgba(246, 179, 90, 0.3);
  background:
    linear-gradient(180deg, rgba(246, 179, 90, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow-soft);
}

.template-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.template-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(246, 179, 90, 0.22);
  background: rgba(246, 179, 90, 0.12);
  color: rgba(255, 238, 212, 0.98);
  font-size: 1.65rem;
  line-height: 1;
}

.template-label {
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: rgba(46, 120, 188, 0.14);
  color: rgba(215, 232, 255, 0.9);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.template-card h3 {
  margin: 0 0 0.6rem;
  color: #fff8ee;
  font-size: 1.18rem;
  line-height: 1.22;
}

.template-card p {
  margin: 0 0 1rem;
  color: rgba(240, 231, 220, 0.72);
  font-size: 0.93rem;
  line-height: 1.58;
}

.template-specs {
  display: grid;
  gap: 0.58rem;
  margin: 0 0 1.1rem;
}

.template-specs div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 0.55rem;
  padding-bottom: 0.58rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.template-specs dt {
  color: rgba(246, 179, 90, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.template-specs dd {
  margin: 0;
  color: rgba(255, 248, 238, 0.84);
  font-size: 0.86rem;
  line-height: 1.35;
}

.template-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.78rem 1rem;
  border-radius: 14px;
  background: rgba(246, 179, 90, 0.14);
  border: 1px solid rgba(246, 179, 90, 0.26);
  color: rgba(255, 241, 221, 0.96);
  font-weight: 800;
  text-decoration: none;
}

.template-card-cta:hover {
  background: rgba(246, 179, 90, 0.22);
}

.template-how-section {
  padding-top: 4.4rem;
  padding-bottom: 5rem;
}

.template-content-card {
  max-width: 980px;
  margin: 0 auto;
}

.template-chooser-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.4rem;
}

.template-chooser-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.95rem;
}

.template-chooser-table th,
.template-chooser-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.template-chooser-table th {
  color: #fff8ee;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.template-chooser-table td {
  color: rgba(240, 231, 220, 0.78);
}

.template-faq-item .faq-answer {
  max-height: none;
  padding-bottom: 1rem;
}

@media (max-width: 1180px) {
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .templates-hero {
    padding: 4.4rem 0 3.4rem;
  }

  .template-grid {
    grid-template-columns: 1fr;
  }

  .template-card {
    padding: 1.15rem;
  }

  .template-specs div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* --- Templates page patch --- */
.templates-page-inner {
  width: min(1060px, calc(100vw - 24px));
}

.templates-hero-card .content-card__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 24px;
}

.hero-cta-primary,
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.hero-cta-primary {
  color: #1b1208;
  background: linear-gradient(135deg, var(--accent), #ffd28a);
  box-shadow: 0 14px 34px rgba(246, 179, 90, 0.22);
}

.hero-cta-primary:hover,
.hero-cta-secondary:hover {
  transform: translateY(-2px);
}

.hero-cta-secondary {
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

.hero-cta-secondary:hover {
  border-color: rgba(246, 179, 90, 0.34);
  background: rgba(246, 179, 90, 0.08);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 34px;
}

.template-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(480px 220px at 18% 0%, rgba(246, 179, 90, 0.11), transparent 68%),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.template-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.template-card-tag {
  align-self: flex-start;
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: rgba(255, 220, 174, 0.96);
  border: 1px solid rgba(246, 179, 90, 0.22);
  background: rgba(246, 179, 90, 0.09);
  font-size: 0.78rem;
  font-weight: 740;
  line-height: 1;
}

.template-card h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 1.34rem;
}

.template-card p {
  margin: 0;
}

.template-spec-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.template-spec-list div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.template-spec-list dt {
  color: rgba(246, 179, 90, 0.88);
  font-weight: 760;
  font-size: 0.86rem;
}

.template-spec-list dd {
  margin: 0;
  color: rgba(232, 216, 202, 0.78);
  line-height: 1.55;
}

.template-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #1b1208;
  background: linear-gradient(135deg, var(--accent), #ffd28a);
  font-weight: 780;
  text-decoration: none;
}

.template-chooser-table-wrap {
  overflow-x: auto;
  margin: 18px 0 28px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.template-chooser-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
  font-size: 0.95rem;
}

.template-chooser-table th,
.template-chooser-table td {
  padding: 13px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.template-chooser-table th {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 780;
}

.template-chooser-table td {
  color: rgba(232, 216, 202, 0.76);
}

.template-chooser-table tr:last-child td {
  border-bottom: 0;
}

.template-chooser-table strong {
  color: rgba(255, 248, 238, 0.95);
}

@media (max-width: 820px) {
  .template-grid {
    grid-template-columns: 1fr;
  }

  .template-spec-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .templates-hero-card {
    padding: 24px 18px;
  }
}

/* Shared content-page CTA buttons used by templates and guide-style pages */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 24px;
}

.hero-cta-primary,
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.hero-cta-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 28px rgba(46, 120, 188, 0.28);
}

.hero-cta-primary:hover,
.hero-cta-secondary:hover {
  transform: translateY(-2px);
}

.hero-cta-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e8d8ca;
}

.hero-cta-secondary:hover {
  border-color: rgba(246, 179, 90, 0.38);
  background: rgba(246, 179, 90, 0.1);
}
