@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&family=JetBrains+Mono:wght@400&display=swap");

:root {
    --bg: #F7F5F1;
    --bg-warm: #F0EDE7;
    --card: #FFFFFF;
    --text: #1A1A2E;
    --text-body: #3A3A4A;
    --text-light: #7A7A8A;
    --accent: #63C7CB;
    --accent-dark: #43B5BA;
    --accent-soft: #9EDFE2;
    --teal: #2A9D8F;
    --orange: #E8643B;
    --blue: #3A7BD4;
    --green: #5A8E5A;
    --purple: #9B6DB7;
    --border: #E0DCD7;
    --border-light: #EBE8E3;
  }

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

  body {
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--bg);
    color: var(--text-body);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
  }


.bottom-cta {
  margin: 72px 0 40px;
}

.bottom-cta__inner {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 360px;
  border: 1px solid rgba(116, 102, 255, 0.10);
  background:
    linear-gradient(180deg, rgba(248, 249, 252, 0.94) 0%, rgba(248, 249, 252, 0.82) 32%, rgba(248, 249, 252, 0.45) 62%, rgba(248, 249, 252, 0.22) 100%),
    url("assets/images/community-cta.png") center / cover no-repeat;
  box-shadow: 0 16px 40px rgba(26, 22, 66, 0.08);
}

.bottom-cta__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 52px 44px;
}

.bottom-cta__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f76b8;
}

.bottom-cta h2 {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  color: #23253f;
}

.bottom-cta__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #5d6387;
  max-width: 520px;
}

.bottom-cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.bottom-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.bottom-cta__button.primary {
  background: linear-gradient(135deg, #6fc7c5, #7e73ff);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(111, 199, 197, 0.22);
}

.bottom-cta__button.primary:hover {
  transform: translateY(-1px);
}

.bottom-cta__button.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: #2a2d47;
  border: 1px solid rgba(116, 102, 255, 0.12);
  backdrop-filter: blur(8px);
}

.bottom-cta__button.secondary:hover {
  background: rgba(255, 255, 255, 0.88);
}

@media (max-width: 900px) {
  .bottom-cta__inner {
    min-height: 320px;
    background:
      linear-gradient(180deg, rgba(248, 249, 252, 0.92) 0%, rgba(248, 249, 252, 0.82) 42%, rgba(248, 249, 252, 0.24) 100%),
      url("assets/images/community-cta.png") center right / cover no-repeat;
  }

  .bottom-cta__content {
    max-width: 100%;
    padding: 34px 24px;
  }

  .bottom-cta h2 {
    font-size: 26px;
  }

  .bottom-cta__text {
    font-size: 14px;
    line-height: 1.7;
  }
}

@media (max-width: 640px) {
  .bottom-cta {
    margin: 56px 0 28px;
  }

  .bottom-cta__inner {
    min-height: 280px;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(248, 249, 252, 0.94) 0%, rgba(248, 249, 252, 0.86) 48%, rgba(248, 249, 252, 0.30) 100%),
      url("assets/images/community-cta.png") 72% center / cover no-repeat;
  }

  .bottom-cta__content {
    padding: 24px 18px;
  }

  .bottom-cta h2 {
    font-size: 22px;
    line-height: 1.28;
  }

  .bottom-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bottom-cta__button {
    width: 100%;
  }
}

   /* ========== tools pending ========== */
 .sample-tools-inline a {
  color: #5a88a8;
  text-decoration: none;
  border-bottom: 1px solid rgba(90, 136, 168, 0.35);
  padding-bottom: 1px;
}

.sample-tools-inline a:hover {
  color: #3f6f92;
}








 
  /* ========== NAV ========== */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(247,245,241,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.3s;
  }
  nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
  .nav-inner {
    max-width: 900px; margin: 0 auto;
    padding: 14px 24px;
    display: flex; justify-content: space-between; align-items: center;
  }

  .nav-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
  }
  .nav-brand svg { display: block; }
  .nav-lockup {
    width: clamp(138px, 18vw, 160px);
    height: auto;
  }
  .brand-lockup-text {
    letter-spacing: 0.5px;
  }
  .brand-lockup-sub {
    letter-spacing: 2.6px;
  }
  .hero-logo {
    width: min(210px, 48vw);
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.45s;
  }
  .hero-logo svg {
    display: block;
    width: 100%;
    height: auto;
  }
  .hero-logo-wrap {
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(144, 144, 216, 0.14);
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .footer-brand-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
  }
  .footer-lockup {
    width: min(240px, 72vw);
    height: auto;
  }

  .nav-links { display: flex; gap: 24px; }
  .nav-links a {
    font-size: 13px; color: var(--text-light); text-decoration: none;
    font-weight: 400; transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--accent); }

  .lang-toggle {
    border: 1px solid rgba(112, 112, 196, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    cursor: pointer;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    min-width: 52px;
    padding: 9px 12px;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  }

  .lang-toggle:hover {
    background: #ffffff;
    border-color: rgba(112, 112, 196, 0.45);
    color: var(--accent);
    transform: translateY(-1px);
  }


  /* ========== MOTION HERO ========== */
  .hero {
    position: relative;
    min-height: 360px;
    padding-top: 72px;
    overflow: hidden;
    background: #0B0B1A;
  }
  .hero-motion {
    position: relative;
    min-height: 288px;
    overflow: hidden;
  }
  .hero-bg-gradient {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse at 30% 50%, #1a1040 0%, #0B0B1A 60%),
      radial-gradient(ellipse at 70% 60%, #15103a 0%, transparent 50%);
  }
  .hero-grid-overlay {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(100,100,255,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(100,100,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: heroGridSlide 20s linear infinite;
  }
  @keyframes heroGridSlide {
    from { transform: translate(0, 0); }
    to { transform: translate(60px, 60px); }
  }
  .hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    animation: heroOrbFloat 12s ease-in-out infinite;
  }
  .hero-orb-1 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, #6C63FF 0%, transparent 70%);
    top: 16%; left: 8%;
    animation-delay: 0s;
  }
  .hero-orb-2 {
    width: 240px; height: 240px;
    background: radial-gradient(circle, #A855F7 0%, transparent 70%);
    top: 48%; right: 4%;
    animation-delay: 2s;
  }
  .hero-orb-3 {
    width: 220px; height: 220px;
    background: radial-gradient(circle, #3B82F6 0%, transparent 70%);
    bottom: 8%; left: 28%;
    animation-delay: 4s;
  }
  .hero-orb-4 {
    width: 160px; height: 160px;
    background: radial-gradient(circle, #C084FC 0%, transparent 70%);
    top: 10%; right: 24%;
    animation-delay: 1s;
  }
  @keyframes heroOrbFloat {
    0% { opacity: 0; transform: translate(0, 0) scale(0.8); }
    15% { opacity: 0.45; }
    50% { opacity: 0.7; transform: translate(30px, -20px) scale(1.1); }
    85% { opacity: 0.45; }
    100% { opacity: 0; transform: translate(-10px, 10px) scale(0.8); }
  }
  .hero-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.15), transparent);
    transform-origin: left center;
    opacity: 0;
    animation: heroConnectionFade 6s ease-in-out infinite;
  }
  .hero-conn-1 {
    width: 300px; top: 35%; left: 20%;
    transform: rotate(15deg);
    animation-delay: 1s;
  }
  .hero-conn-2 {
    width: 250px; top: 55%; left: 40%;
    transform: rotate(-10deg);
    animation-delay: 3s;
  }
  .hero-conn-3 {
    width: 200px; top: 25%; left: 55%;
    transform: rotate(25deg);
    animation-delay: 5s;
  }
  @keyframes heroConnectionFade {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
  }
  .hero-scanline {
    position: absolute;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent 10%, rgba(108, 99, 255, 0.08) 50%, transparent 90%);
    animation: heroScanMove 8s linear infinite;
    opacity: 0.5;
  }
  @keyframes heroScanMove {
    from { top: -10%; }
    to { top: 110%; }
  }
  .hero-particles {
    position: absolute; inset: 0;
  }
  .hero-particle {
    position: absolute;
    width: 2px; height: 2px;
    border-radius: 50%;
    animation: heroParticleFade 4s ease-in-out infinite;
  }
  @keyframes heroParticleFade {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-20px); }
  }
  .hero-content {
    position: relative;
    z-index: 3;
    min-height: 288px;
    max-width: 980px;
    margin: 0 auto;
    padding: 48px 24px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
  }
  .hero-eyebrow {
    font-size: 11px; letter-spacing: 5px; text-transform: uppercase;
    color: #A78BFA; font-weight: 500;
    padding: 6px 24px; border-radius: 30px;
    border: 1px solid rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.08);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
  }
  .hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 6px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1.4s;
  }
  .hero-title em {
    font-style: normal;
    background: linear-gradient(120deg, #C4B5FD 0%, #60A5FA 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.68);
    letter-spacing: 4px;
    margin: 0 auto 8px;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 2s;
  }
  .hero-note {
    font-size: 13px;
    font-weight: 300;
    color: rgba(167, 139, 250, 0.78);
    font-style: italic;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 2.5s;
  }
  .hero-divider {
    width: 0; height: 1px;
    background: linear-gradient(90deg, transparent, #6C63FF, #A855F7, transparent);
    margin-bottom: 10px;
    animation: heroLineGrow 1s ease forwards 3s;
  }
  @keyframes heroLineGrow {
    to { width: 160px; }
  }
  .hero-topic-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 0;
    row-gap: 4px;
    margin-top: 12px;
    max-width: 980px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 2.9s;
  }
  .hero-topic-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 0;
    min-width: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: center;
    white-space: nowrap;
    line-height: 1.35;
  }
  .hero-topic-pill strong {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.94);
    letter-spacing: 0.05px;
  }
  .hero-topic-pill small {
    display: inline;
    margin-top: 0;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.58);
    letter-spacing: 0;
  }
  .hero-topic-pill::after {
    content: "|";
    margin: 0 10px;
    color: rgba(167, 139, 250, 0.38);
    font-size: 11px;
    font-weight: 300;
  }
  .hero-topic-pill:last-child::after {
    display: none;
  }
  .hero-tags {
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
    opacity: 0; animation: fadeUp 0.8s ease forwards 3.5s;
  }
  .hero-tag {
    font-size: 11px; font-weight: 500;
    padding: 6px 14px; border-radius: 20px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    color: rgba(255,255,255,0.66); background: rgba(167, 139, 250, 0.05);
    backdrop-filter: blur(4px);
  }

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


  .digest-topics {
    position: relative;
    margin-top: -6px;
    padding: 0 0 24px;
    z-index: 3;
  }
  .digest-topics-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
  }
  .digest-topics-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .digest-topic-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 78px;
    padding: 14px 12px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(99,199,203,0.18);
    color: var(--text);
    text-align: center;
    box-shadow: 0 4px 14px rgba(24, 20, 48, 0.03);
  }
  .digest-topic-pill strong {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1px;
  }
  .digest-topic-pill small {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 0.3px;
  }


  /* ========== ABOUT ========== */
  .about {
    max-width: 1100px; margin: 0 auto;
    padding: 0 24px 60px;
  }
  .about-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
  }
  .about-card {
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 20px 16px 18px;
    min-height: 170px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .about-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; margin: 0 auto 12px;
  }
  .about-icon.i1 { background: #FDF0EB; }
  .about-icon.i2 { background: #EBF2FD; }
  .about-icon.i3 { background: #EFF5EC; }
  .about-icon.i4 { background: #F5EFF8; }
  .about-icon.i5 { background: #E8F6F3; }
  .about-card h3 {
    font-size: 14px; font-weight: 700; color: var(--text);
    margin-bottom: 6px;
    line-height: 1.45;
  }
  .about-card .about-en {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.5;
    letter-spacing: 0.2px;
  }

  /* ========== DIVIDER ========== */
  .divider {
    max-width: 900px; margin: 0 auto;
    padding: 0 24px;
  }
  .divider-line {
    height: 1px; background: var(--border);
    margin-bottom: 48px;
  }

  /* ========== LATEST ISSUE ========== */
  .latest {
    max-width: 900px; margin: 0 auto;
    padding: 0 24px 60px;
  }
  .latest-header {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 20px;
  }
  .latest-label {
    font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent); font-weight: 600;
  }
  .latest-date { font-size: 12px; color: var(--text-light); }

  .latest-card {
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    text-decoration: none; color: inherit; display: block;
  }
  .latest-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
  .latest-banner {
    background: linear-gradient(135deg, var(--text) 0%, #2A2A4E 100%);
    padding: 36px 32px;
    color: white;
  }
  .latest-banner h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px; font-weight: 700; margin-bottom: 6px;
  }
  .latest-banner p {
    font-size: 13px; color: rgba(255,255,255,0.65); font-weight: 300;
  }
  .latest-body { padding: 24px 32px; }
  .latest-items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
  .latest-item {
    font-size: 13px; color: var(--text-body); padding: 6px 0;
    display: flex; align-items: baseline; gap: 8px;
  }
  .latest-item .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; color: var(--text-light); min-width: 18px;
  }
  .latest-item .tag-dot {
    width: 8px; height: 8px; border-radius: 50%;
    display: inline-block; flex-shrink: 0;
    position: relative; top: -1px;
  }
  .tag-dot.tool { background: var(--orange); }
  .tag-dot.trend { background: var(--blue); }
  .tag-dot.scene { background: var(--green); }
  .tag-dot.tip { background: var(--purple); }
  .tag-dot.life { background: var(--accent); }
  .tag-dot.daily { background: var(--accent); }

  .latest-cta {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 20px; padding: 10px 20px;
    background: var(--accent); color: white;
    border-radius: 6px; font-size: 13px; font-weight: 500;
    text-decoration: none; transition: background 0.2s;
  }
  .latest-cta:hover { background: var(--accent-dark); }

  /* ========== ARCHIVE ========== */
  .archive {
    max-width: 900px; margin: 0 auto;
    padding: 0 24px 60px;
  }
  .archive-header {
    font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--text-light); font-weight: 600; margin-bottom: 20px;
  }
  .archive-list { list-style: none; }
  .archive-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none; color: inherit;
    transition: padding-left 0.2s;
  }
  .archive-item:hover { padding-left: 8px; }
  .archive-item:first-child { border-top: 1px solid var(--border-light); }
  .archive-title {
    font-size: 15px; font-weight: 500; color: var(--text);
  }
  .archive-meta {
    font-size: 12px; color: var(--text-light);
    display: flex; align-items: center; gap: 8px;
  }
  .archive-count {
    background: var(--bg-warm); padding: 2px 8px; border-radius: 10px;
    font-size: 11px;
  }
  .archive-empty {
    text-align: center; padding: 40px;
    color: var(--text-light); font-size: 14px;
    background: var(--card); border-radius: 10px;
    border: 1px dashed var(--border);
  }


  /* ========== SECTION HUBS ========== */
  .section-shell {
    max-width: 900px; margin: 0 auto; padding: 0 24px 60px;
  }
  .section-header-row {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 20px;
  }
  .issues-grid, .tutorial-grid {
    display: grid; gap: 18px;
  }
  .issues-grid { grid-template-columns: 1fr 1fr; }
  .issue-tile, .tutorial-card {
    display: block; text-decoration: none; color: inherit;
    background: var(--card); border: 1px solid var(--border-light);
    border-radius: 14px; padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  }
  .issue-tile:hover, .tutorial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.06);
    border-color: rgba(99,199,203,0.28);
  }
  .issue-live {
    background: linear-gradient(135deg, rgba(112,112,196,0.06), rgba(99,199,203,0.05) 60%, #fff 100%);
  }
  .issue-ready {
    background: linear-gradient(135deg, rgba(99,199,203,0.08), rgba(255,255,255,1) 70%);
  }
  .issue-kicker, .tutorial-tag {
    display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.4px;
    background: rgba(99,199,203,0.12); color: var(--accent-dark);
  }
  .issue-tile h3, .tutorial-card h3 {
    font-size: 22px; color: var(--text); margin-bottom: 8px;
    font-family: 'Cormorant Garamond', serif;
  }
  .issue-tile p, .tutorial-card p, .tutorial-lead p {
    font-size: 13px; color: var(--text-light); line-height: 1.8;
  }
  .issue-tile span, .tutorial-card span {
    display: inline-block; margin-top: 14px; font-size: 12px; color: var(--accent-dark); font-weight: 600;
  }
  .tutorial-lead { margin-bottom: 18px; }
  .tutorial-lead h2 {
    font-family: 'Cormorant Garamond', serif; font-size: 28px; color: var(--text); margin-bottom: 8px;
  }
  .tutorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }


/* =======mini tools=========== */ 
 .mini-tools-strip {
  max-width: 900px;
  margin: 28px auto 48px;
  padding: 0 24px;
}

.mini-tools-strip-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 20px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(145, 168, 201, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mini-tools-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
  max-width: 280px;
}

.mini-tools-kicker {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e7db0;
  white-space: nowrap;
}

.mini-tools-text {
  font-size: 14px;
  line-height: 1.6;
  color: #6a7188;
}

.mini-tools-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  flex: 1;
}

.mini-tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  color: #355f79;
  background: rgba(123, 196, 201, 0.1);
  border: 1px solid rgba(123, 196, 201, 0.22);
  transition: all 0.2s ease;
}

.mini-tool-link:hover {
  background: rgba(123, 196, 201, 0.16);
  border-color: rgba(123, 196, 201, 0.36);
  transform: translateY(-1px);
}

.mini-tool-link.main-entry,
.mini-tool-link.featured {
  color: #383f86;
  background: rgba(112, 112, 196, 0.10);
  border-color: rgba(112, 112, 196, 0.22);
}

.mini-tool-link.utility {
  color: #607086;
  background: rgba(241, 244, 249, 0.84);
  border-color: rgba(145, 168, 201, 0.20);
}

@media (max-width: 768px) {
  .mini-tools-strip {
    margin: 22px auto 6px;
    padding: 0 18px;
  }

  .mini-tools-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .mini-tools-copy {
    max-width: none;
  }

  .mini-tools-links {
    justify-content: flex-start;
  }

  .mini-tools-text {
    font-size: 13px;
  }

  .mini-tool-link {
    font-size: 12px;
    padding: 7px 12px;
  }
}




 
  /* ========== WHO ========== */
  .who {
    background: var(--bg-warm);
    padding: 60px 24px;
  }
  .who-inner {
    max-width: 900px; margin: 0 auto;
  }
  .who-label {
    font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent); font-weight: 600; margin-bottom: 16px;
  }
  .who h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px; font-weight: 700; color: var(--text);
    margin-bottom: 16px; line-height: 1.4;
  }
  .who p {
    font-size: 14px; color: var(--text-light);
    max-width: 600px; line-height: 1.9; margin-bottom: 10px;
  }
  .who-tags {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px;
  }
  .who-tag {
    font-size: 12px; padding: 6px 14px;
    border-radius: 16px; background: var(--card);
    color: var(--text-light); border: 1px solid var(--border);
  }
  .who-en {
    font-size: 13px; color: var(--text-light);
    font-style: italic; line-height: 1.9;
    max-width: 600px; margin-bottom: 24px;
    padding-top: 12px; border-top: 1px solid var(--border);
  }
  .who-product {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    margin: 24px 0 8px;
  }
  .who-product-item {
    display: flex; align-items: flex-start; gap: 12px;
    background: var(--card); border: 1px solid var(--border-light);
    border-radius: 8px; padding: 14px 16px;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .who-product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  }
  .who-product-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
  .who-product-item strong {
    display: block; font-size: 13px; color: var(--text);
    margin-bottom: 2px;
  }
  .who-product-desc {
    font-size: 12px; color: var(--text-light); line-height: 1.6;
  }

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

  /* ========== DMV VOICE ========== */
  .dmv-voice {
    background: linear-gradient(180deg, var(--bg) 0%, #E8E4DF 100%);
    padding: 60px 24px 48px;
  }
  .dmv-voice-inner {
    max-width: 900px; margin: 0 auto;
    text-align: center;
  }
  .voice-badge {
    display: inline-block;
    font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
    color: white; font-weight: 600;
    padding: 6px 20px; border-radius: 20px;
    background: var(--accent);
    margin-bottom: 20px;
  }
  .voice-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px; font-weight: 700; color: var(--text);
    margin-bottom: 16px; line-height: 1.3;
    letter-spacing: 1px;
  }
  .voice-by {
    font-weight: 400; font-style: italic;
    color: var(--text-light); font-size: 22px;
  }
  .voice-philosophy {
    max-width: 580px; margin: 0 auto 28px;
    text-align: center;
  }
  .voice-divider-v { display: none; }
  .voice-col {}
  .voice-zh {
    font-size: 13.5px; color: var(--text-body);
    line-height: 2; margin-bottom: 12px;
  }
  .voice-en {
    font-size: 14px; color: var(--text-light);
    line-height: 2; margin-bottom: 14px;
    font-style: italic;
  }
  .voice-values {
    display: flex; justify-content: center; align-items: center;
    gap: 8px; flex-wrap: wrap;
    font-size: 12px; color: var(--text-light);
    margin-top: 8px;
  }
  .voice-value { font-weight: 500; color: var(--text-body); }
  .voice-value-dot { color: var(--border); }

  @media (max-width: 640px) {
    .voice-philosophy {
      max-width: 100%;
    }
  }

  /* ========== FOOTER ========== */
  footer {
    max-width: 900px; margin: 0 auto;
    padding: 40px 24px;
    text-align: center;
  }
  footer .brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px; font-weight: 700; color: var(--text);
    letter-spacing: 1px; margin-bottom: 8px;
  }
  footer p {
    font-size: 12px; color: var(--text-light); line-height: 1.7;
  }
  footer a { color: var(--accent); text-decoration: none; }

  /* ========== RESPONSIVE ========== */
  @media (max-width: 900px) {
    .about-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-content { padding: 20px 24px 28px; }
    .digest-topics-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @media (max-width: 640px) {
    .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-card { min-height: 150px; padding: 18px 14px 16px; }
    .latest-items { grid-template-columns: 1fr; }
    .latest-banner { padding: 28px 20px; }
    .latest-body { padding: 20px; }
    .nav-links { gap: 16px; }
    .nav-links { display: none; }
    .lang-toggle { margin-left: auto; }
    .hero { min-height: 48vh; padding-top: 64px; }
    .hero-motion, .hero-content { min-height: calc(48vh - 64px); }
    .hero-sub { font-size: 15px; letter-spacing: 2px; }
    .hero-note { font-size: 12px; margin-bottom: 8px; }
    .hero-topic-pills {
      margin-top: 10px;
      max-width: 92vw;
      row-gap: 3px;
      line-height: 1.55;
    }
    .hero-topic-pill {
      padding: 0;
      min-width: auto;
      gap: 4px;
    }
    .hero-topic-pill strong { font-size: 10.5px; }
    .hero-topic-pill small { font-size: 9.5px; }
    .hero-topic-pill::after {
      margin: 0 7px;
      font-size: 9px;
    }
    .issues-grid, .tutorial-grid { grid-template-columns: 1fr; }
    .section-shell { padding: 0 16px 44px; }
  }

  @media (max-width: 640px) {
    .nav-lockup { width: 154px; }
    .hero-logo { width: min(190px, 68vw); margin-bottom: 6px; }
    .hero-logo-wrap { padding: 7px 10px; border-radius: 12px; }
    .footer-lockup { width: min(210px, 78vw); }
  }


  @media (max-width: 860px) {
    .digest-topics { margin-top: -4px; padding-bottom: 22px; }
    .digest-topics-row {
      padding: 0;
      justify-content: center;
    }
  }
  @media (max-width: 640px) {
    .hero { min-height: 280px; padding-top: 64px; }
    .hero-motion, .hero-content { min-height: 216px; }
    .digest-topics-shell { padding: 0 16px; }
    .digest-topics-row {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      padding: 0;
      background: transparent;
    }
    .digest-topic-pill {
      min-height: 74px;
      padding: 12px 10px;
    }
    .digest-topic-pill strong { font-size: 14px; }
    .digest-topic-pill small { font-size: 10px; }
  }
/* =========================================================
   GLOBAL ADD-ONS: shared buttons, product entry cards,
   tools/tutorials index pages, and subpage layout
   Use this with one root-level /styles.css file.
   Root index.html:        <link rel="stylesheet" href="styles.css">
   /tools/index.html:      <link rel="stylesheet" href="../styles.css">
   /tutorials/index.html:  <link rel="stylesheet" href="../styles.css">
   ========================================================= */

/* ---------- Shared Links / Buttons ---------- */
a {
  color: inherit;
}

.btn,
.bottom-cta__button,
.page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn.primary,
.page-button.primary {
  background: linear-gradient(135deg, #6fc7c5, #7e73ff);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(111, 199, 197, 0.22);
}

.btn.secondary,
.page-button.secondary {
  background: rgba(255, 255, 255, 0.76);
  color: #2a2d47;
  border: 1px solid rgba(116, 102, 255, 0.14);
  box-shadow: 0 8px 20px rgba(26, 22, 66, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn.subtle,
.page-button.subtle {
  background: transparent;
  color: #526081;
  border: 1px solid rgba(145, 168, 201, 0.22);
}

.btn:hover,
.bottom-cta__button:hover,
.page-button:hover {
  transform: translateY(-1px);
}

/* ---------- Product Entry Layer on homepage / CTA ---------- */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 880px;
  margin: 28px 0 0;
}

.entry-card {
  position: relative;
  display: block;
  padding: 24px 28px;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;

  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.42);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: 0 10px 28px rgba(36, 39, 79, 0.05);
  transition: all 0.2s ease;
}

.entry-card::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: 18px;
  color: rgba(111, 118, 184, 0.58);
  transform: translateX(-2px);
  transition: transform 0.2s ease, color 0.2s ease;
}

.entry-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(154, 145, 220, 0.30);
  box-shadow: 0 14px 36px rgba(36, 39, 79, 0.08);
}

.entry-card:hover::after {
  transform: translateX(2px);
  color: #6f76b8;
}

.entry-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f76b8;
}

.entry-card h3 {
  margin: 0 0 8px;
  color: #23253f;
  font-size: 18px;
  line-height: 1.35;
}

.entry-card p {
  margin: 0;
  max-width: 92%;
  color: #666d8a;
  font-size: 13px;
  line-height: 1.65;
}

.entry-badge,
.badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(112, 112, 196, 0.10);
  color: #7070c4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Let the bottom CTA become a wider product-entry panel if entry cards are placed inside. */
.bottom-cta--product .bottom-cta__content,
.bottom-cta:has(.entry-grid) .bottom-cta__content {
  max-width: 900px;
}

.bottom-cta .entry-grid {
  margin-top: 26px;
}

/* (Removed: overrode the base .entry-card transparency with 0.76 +
   blur(10px), which clashed with the unified 0.82 + blur(8px) base.
   Base rule applies uniformly now.) */

.bottom-cta__actions .btn {
  min-height: 46px;
}

/* ---------- Shared subpage frame ---------- */
.page-shell,
.tools-page,
.tutorials-page {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding: 96px 0 72px;
}

.page-hero,
.tools-hero,
.tutorials-hero {
  position: relative;
  margin-bottom: 34px;
  padding: 34px 34px 32px;
  border-radius: 28px;
  border: 1px solid rgba(116, 102, 255, 0.10);
  background:
    radial-gradient(circle at 0% 0%, rgba(99, 199, 203, 0.16), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(112, 112, 196, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.70);
  box-shadow: 0 16px 40px rgba(26, 22, 66, 0.055);
  overflow: hidden;
}

.page-kicker,
.tools-kicker,
.tutorials-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #6f76b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-hero h1,
.tools-hero h1,
.tutorials-hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  color: #1f213b;
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.page-hero p,
.tools-hero p,
.tutorials-hero p {
  max-width: 760px;
  margin: 0;
  color: #5d6387;
  font-size: 17px;
  line-height: 1.9;
}

.page-toplink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: #6f76b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.page-toplink:hover {
  color: var(--accent-dark);
}

/* ---------- Tools / Tutorials index card grids ---------- */
.tools-grid,
.tutorials-grid,
.index-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tools-section {
  margin-top: 34px;
}

.tools-section + .tools-section {
  margin-top: 44px;
}

.tools-section-head {
  max-width: 760px;
  margin: 0 0 18px;
}

.tools-section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #6874ad;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tools-section-head h2 {
  margin: 0 0 8px;
  color: #20223d;
  font-size: 24px;
  line-height: 1.25;
}

.tools-section-head p {
  margin: 0;
  color: #68708d;
  font-size: 14px;
  line-height: 1.75;
}

.tools-grid-featured {
  align-items: stretch;
}

.tool-card,
.index-card {
  position: relative;
  display: block;
  min-height: 168px;
  padding: 24px 24px 22px;
  border-radius: 22px;
  border: 1px solid var(--border-light);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(247,248,255,0.86) 100%);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(26, 22, 66, 0.045);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.tool-card-featured {
  min-height: 196px;
  border-color: rgba(112, 112, 196, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(242,249,250,0.88) 100%);
}

.tool-card-featured::before {
  background: linear-gradient(180deg, #6fc7c5, #7070c4);
  opacity: 0.88;
}

.tool-card::before,
.index-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #6fc7c5, #7e73ff);
  opacity: 0.75;
}

.tool-card::after,
.index-card::after {
  content: "Open →";
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: #6f76b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.72;
}

.tool-card:hover,
.index-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99,199,203,0.34);
  box-shadow: 0 18px 40px rgba(26, 22, 66, 0.075);
}

.tool-card h3,
.index-card h3 {
  margin: 0 0 8px;
  padding-right: 70px;
  color: #20223d;
  font-size: 22px;
  line-height: 1.35;
}

.tool-card p,
.index-card p {
  margin: 0;
  max-width: 640px;
  color: #68708d;
  font-size: 14px;
  line-height: 1.75;
}

.card-meta,
.tool-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #6f76b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* Works even if a simple old index used plain links inside the page. */
.tools-page > a,
.qr-page > a,
.tutorials-page > a,
.page-shell > a {
  color: #4f5fb5;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- QR generator ---------- */
.qr-page {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 96px 0 72px;
}

.qr-hero h1 {
  letter-spacing: 0;
}

.qr-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.qr-panel {
  border: 1px solid rgba(112, 112, 196, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(247,250,252,0.90) 100%);
  box-shadow: 0 14px 34px rgba(26, 22, 66, 0.055);
  padding: 24px;
}

.qr-panel-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.qr-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(99, 199, 203, 0.18), rgba(112, 112, 196, 0.16));
  color: #375c8b;
  font-size: 13px;
  font-weight: 800;
}

.qr-panel h2,
.qr-section-block h3 {
  margin: 0;
  color: #20223d;
  line-height: 1.25;
}

.qr-panel h2 {
  font-size: 22px;
}

.qr-panel-head p {
  margin: 6px 0 0;
  color: #68708d;
  font-size: 14px;
  line-height: 1.65;
}

.qr-field {
  display: grid;
  gap: 8px;
}

.qr-field > span {
  color: #424968;
  font-size: 13px;
  font-weight: 800;
}

.qr-input,
.qr-field select,
.qr-field input[type="color"] {
  width: 100%;
  border: 1px solid rgba(112, 112, 196, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #20223d;
  font: inherit;
}

.qr-input {
  min-height: 176px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.65;
}

.qr-field select {
  min-height: 44px;
  padding: 0 12px;
  cursor: pointer;
}

.qr-field input[type="color"] {
  height: 44px;
  padding: 5px;
  cursor: pointer;
}

.qr-input:focus,
.qr-field select:focus,
.qr-field input[type="color"]:focus {
  outline: 3px solid rgba(99, 199, 203, 0.20);
  border-color: rgba(15, 143, 140, 0.45);
}

.qr-input-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: #7a8098;
  font-size: 12px;
}

.qr-text-button {
  border: 0;
  background: transparent;
  color: #4f5fb5;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.qr-text-button:hover {
  color: #0f8f8c;
}

.qr-section-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(112, 112, 196, 0.12);
}

.qr-section-block h3 {
  margin-bottom: 14px;
  font-size: 16px;
}

.qr-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.qr-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.qr-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid rgba(112, 112, 196, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #424968;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.qr-swatch::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(32, 34, 61, 0.10);
  background: linear-gradient(135deg, var(--swatch-a) 0 50%, var(--swatch-b) 50% 100%);
}

.qr-swatch.is-active {
  border-color: rgba(15, 143, 140, 0.42);
  box-shadow: 0 0 0 3px rgba(99, 199, 203, 0.14);
}

.qr-mini-notes {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(99, 199, 203, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(99, 199, 203, 0.09), rgba(112, 112, 196, 0.06)),
    rgba(255, 255, 255, 0.70);
}

.qr-mini-notes h3 {
  margin: 0 0 8px;
  color: #20223d;
  font-size: 14px;
}

.qr-mini-notes ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #5d6387;
  font-size: 13px;
  line-height: 1.65;
}

.qr-output-panel {
  display: grid;
}

.qr-preview-frame {
  display: grid;
  place-items: center;
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin: 0 auto 16px;
  padding: 18px;
  border: 1px solid rgba(112, 112, 196, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(99, 199, 203, 0.06), rgba(112, 112, 196, 0.06)),
    #ffffff;
}

.qr-preview-frame canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  border-radius: 8px;
}

.qr-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.qr-actions .page-button {
  justify-content: center;
  width: 100%;
  min-height: 44px;
}

.qr-actions .page-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.qr-result-summary {
  display: grid;
  gap: 5px;
  width: min(100%, 420px);
  margin: 0 auto 12px;
  text-align: left;
}

.qr-result-summary span {
  color: #7a8098;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.qr-result-summary code {
  display: block;
  overflow: hidden;
  padding: 9px 11px;
  border: 1px solid rgba(112, 112, 196, 0.12);
  border-radius: 8px;
  background: rgba(247, 250, 252, 0.82);
  color: #424968;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-status {
  min-height: 22px;
  margin: 0;
  color: #68708d;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.qr-status[data-tone="good"] {
  color: #0f766e;
}

.qr-status[data-tone="warning"] {
  color: #69538c;
}

.qr-privacy {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 3px solid #6fc7c5;
  border-radius: 8px;
  background: rgba(99, 199, 203, 0.08);
  color: #52616b;
  font-size: 13px;
  line-height: 1.7;
}

.qr-explain {
  max-width: 760px;
  margin: 38px 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(112, 112, 196, 0.14);
}

.qr-explain-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #6874ad;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.qr-explain h2 {
  margin: 0 0 12px;
  color: #20223d;
  font-size: 24px;
  line-height: 1.25;
}

.qr-explain p {
  margin: 0 0 12px;
  color: #5d6387;
  font-size: 15px;
  line-height: 1.85;
}

.qr-explain-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid #0f8f8c;
  border-radius: 0 10px 10px 0;
  background: rgba(99, 199, 203, 0.08);
}

.qr-explain-tip span {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: #0f8f8c;
}

.qr-explain-tip p {
  margin: 0;
  color: #424968;
  font-size: 13px;
  line-height: 1.75;
}

/* ---------- Simple article / tutorial content pages ---------- */
.article-page,
.tutorial-page,
.issue-page {
  width: min(100% - 40px, 860px);
  margin: 0 auto;
  padding: 96px 0 72px;
}

.article-header,
.tutorial-header,
.issue-header {
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-light);
}

.article-header h1,
.tutorial-header h1,
.issue-header h1 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.article-meta,
.tutorial-meta,
.issue-meta {
  color: var(--text-light);
  font-size: 13px;
}

.article-content,
.tutorial-content,
.issue-content {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.95;
}

.article-content h2,
.tutorial-content h2,
.issue-content h2 {
  margin: 34px 0 12px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.35;
}

.article-content h3,
.tutorial-content h3,
.issue-content h3 {
  margin: 26px 0 10px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.4;
}

.article-content p,
.tutorial-content p,
.issue-content p,
.article-content ul,
.tutorial-content ul,
.issue-content ul,
.article-content ol,
.tutorial-content ol,
.issue-content ol {
  margin-bottom: 16px;
}

.article-content ul,
.tutorial-content ul,
.issue-content ul,
.article-content ol,
.tutorial-content ol,
.issue-content ol {
  padding-left: 1.3em;
}

.article-content a,
.tutorial-content a,
.issue-content a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content code,
.tutorial-content code,
.issue-content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(112,112,196,0.09);
  color: #3f4270;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92em;
}

.article-content pre,
.tutorial-content pre,
.issue-content pre {
  overflow-x: auto;
  margin: 18px 0;
  padding: 18px;
  border-radius: 14px;
  background: #151527;
  color: #f7f5f1;
  line-height: 1.7;
}

.article-content pre code,
.tutorial-content pre code,
.issue-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

/* ---------- Responsive add-ons ---------- */
@media (max-width: 860px) {
  .entry-grid,
  .tools-grid,
  .tutorials-grid,
  .index-card-grid {
    grid-template-columns: 1fr;
  }

  .page-shell,
  .tools-page,
  .qr-page,
  .tutorials-page,
  .article-page,
  .tutorial-page,
  .issue-page {
    width: min(100% - 32px, 980px);
    padding-top: 82px;
  }

  .page-hero,
  .tools-hero,
  .qr-hero,
  .tutorials-hero {
    padding: 26px 22px;
    border-radius: 22px;
  }

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

@media (max-width: 640px) {
  .entry-card,
  .tool-card,
  .index-card {
    min-height: auto;
    padding: 20px 18px 42px;
    border-radius: 18px;
  }

  .entry-card h3,
  .tool-card h3,
  .index-card h3 {
    font-size: 18px;
  }

  .entry-card p,
  .tool-card p,
  .index-card p {
    font-size: 13px;
  }

  .page-hero h1,
  .tools-hero h1,
  .tutorials-hero h1,
  .article-header h1,
  .tutorial-header h1,
  .issue-header h1 {
    font-size: 34px;
  }

  .page-hero p,
  .tools-hero p,
  .tutorials-hero p {
    font-size: 15px;
    line-height: 1.75;
  }

  .qr-panel {
    padding: 20px 18px;
    border-radius: 16px;
  }

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

  .qr-preview-frame {
    padding: 12px;
    border-radius: 14px;
  }
}

/* ---------- Placement override: product entry sits after Latest Issue ---------- */
.bottom-cta {
  max-width: 1120px;
  margin: 24px auto 72px;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .bottom-cta {
    margin: 20px auto 56px;
    padding: 0;
  }
}
