/* ==========================================================================
   Homepage (2026 redesign): soft pastel hero, pinned results, running AI-logo
   strip, the builder inside a Mac window, picture cards, "Same idea" windows.
   Loaded only by index.html; shared tokens live in style.css.
   ========================================================================== */

.home {
  --pastel: radial-gradient(45% 40% at 8% 10%, #E4D7FF 0%, rgba(228, 215, 255, 0) 100%),
    radial-gradient(40% 40% at 95% 20%, #C9F2E6 0%, rgba(201, 242, 230, 0) 100%),
    radial-gradient(50% 40% at 80% 90%, #FFD9C7 0%, rgba(255, 217, 199, 0) 100%),
    radial-gradient(45% 40% at 10% 85%, #D6E4FF 0%, rgba(214, 228, 255, 0) 100%),
    #FBF9F6;
  --wall: radial-gradient(60% 70% at 0% 0%, #D9C9FF 0%, rgba(217, 201, 255, 0) 100%),
    radial-gradient(60% 70% at 100% 20%, #BDEEDF 0%, rgba(189, 238, 223, 0) 100%),
    radial-gradient(70% 70% at 80% 100%, #FFCDB6 0%, rgba(255, 205, 182, 0) 100%),
    #F3EEFA;
  --fade: linear-gradient(90deg, #1F5EFF 0%, #7C3AED 50%, #DB2777 100%);
  --pin-shadow: 0 24px 40px -18px rgba(60, 40, 90, 0.45);
  --win-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 50px 90px -40px rgba(60, 40, 90, 0.55);
}
[data-theme="dark"] .home {
  --pastel: radial-gradient(45% 40% at 8% 10%, rgba(124, 58, 237, 0.28) 0%, rgba(124, 58, 237, 0) 100%),
    radial-gradient(40% 40% at 95% 20%, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0) 100%),
    radial-gradient(50% 40% at 80% 90%, rgba(249, 115, 22, 0.16) 0%, rgba(249, 115, 22, 0) 100%),
    radial-gradient(45% 40% at 10% 85%, rgba(31, 94, 255, 0.2) 0%, rgba(31, 94, 255, 0) 100%),
    #111113;
  --wall: radial-gradient(60% 70% at 0% 0%, rgba(124, 58, 237, 0.35) 0%, rgba(124, 58, 237, 0) 100%),
    radial-gradient(60% 70% at 100% 20%, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0) 100%),
    radial-gradient(70% 70% at 80% 100%, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0) 100%),
    #1A1A1E;
  --fade: linear-gradient(90deg, #6B93FF 0%, #A78BFA 50%, #F472B6 100%);
  --pin-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.8);
  --win-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 50px 90px -40px rgba(0, 0, 0, 0.9);
}

.home .wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.fade-text { background: var(--fade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.home-h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.035em; color: var(--ink-primary); }
.home-sub { margin: 0; max-width: 620px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-secondary); }
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }

/* ---------- header on the pastel hero ---------- */
.home .site-header { position: absolute; left: 0; right: 0; top: 0; z-index: 20; background: transparent; border-bottom: 0; backdrop-filter: none; padding: 16px 0; }
.home .header-inner { width: min(1312px, 100% - 32px); max-width: none; padding: 0; }
/* Shared header pieces (icon button, menu, ink button) live in style.css */

/* ---------- hero ---------- */
.hero-c { position: relative; overflow: hidden; background: var(--pastel); padding-top: 76px; padding-bottom: clamp(36px, 7vw, 96px); }
.hero-c-inner { position: relative; padding-top: clamp(20px, 5vw, 48px); display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 2vw, 24px); text-align: center; }
.hero-badge {
  margin: 0; min-height: 34px; padding: 4px 14px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.85); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-secondary);
}
[data-theme="dark"] .hero-badge { background: rgba(255, 255, 255, 0.08); }
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }
.hero-h1 { margin: 0; max-width: 980px; font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 7.4vw, 96px); line-height: 1; letter-spacing: -0.04em; color: var(--ink-primary); }
.hero-h1 .fade-text { display: inline-block; padding-bottom: 0.08em; }
.hero-lead { margin: 0; max-width: 600px; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; color: var(--ink-secondary); }

.idea-box {
  position: relative; width: min(680px, 100%); padding: 8px; display: flex; gap: 8px;
  background: var(--bg-card); border: 1.5px solid var(--ink-primary); border-radius: 20px;
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.08), 0 30px 60px -30px rgba(60, 40, 90, 0.4);
}
.idea-box input {
  flex-grow: 1; min-width: 0; height: 60px; padding: 0 18px; border: 0; background: transparent;
  font-size: 20px; color: var(--ink-primary); outline: none;
}
.idea-box:focus-within { box-shadow: 0 0 0 6px rgba(31, 94, 255, 0.22), 0 30px 60px -30px rgba(60, 40, 90, 0.4); }
.idea-box input::placeholder { color: var(--ink-muted); }
.btn-go {
  height: 60px; padding: 0 26px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex-shrink: 0;
  border: 0; border-radius: 14px; background: #1F5EFF; color: #FFFFFF; font-size: 17px; font-weight: 700; cursor: pointer;
}
.btn-go:hover { background: #1A4FE0; }
.btn-go:disabled { opacity: 0.7; cursor: progress; }
.hero-hint { margin: -6px 0 0; min-height: 22px; font-size: 14.5px; color: var(--ink-muted); }

.type-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.type-chip {
  height: 44px; padding: 0 16px 0 7px; display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 999px;
  font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; background: var(--chip-bg); color: var(--chip-c);
  transition: transform 0.15s ease;
}
.type-chip:hover { transform: translateY(-2px); }
.type-chip-ico { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--chip-c); color: #FFFFFF; }
[data-theme="dark"] .type-chip-ico { color: #111113; }
.t-photo { --chip-c: var(--cat-photo-accent); --chip-bg: var(--cat-photo); }
.t-image { --chip-c: var(--cat-image-accent); --chip-bg: var(--cat-image); }
.t-video { --chip-c: var(--cat-video-accent); --chip-bg: var(--cat-video); }
.t-text { --chip-c: var(--cat-text-accent); --chip-bg: var(--cat-text); }

/* Result pictures pinned around the headline (wide screens only) */
.pin {
  position: absolute; z-index: 0; width: 210px; margin: 0; padding: 8px; background: #FFFFFF; border-radius: 18px;
  box-shadow: var(--pin-shadow); transform: rotate(var(--rot)); animation: pin-float 7s ease-in-out infinite alternate;
}
.pin img { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; display: block; }
.pin figcaption { padding: 8px 4px 2px; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: #17171B; white-space: nowrap; }
.pin figcaption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.pin-a { left: max(24px, calc(50% - 650px)); top: 190px; --rot: -7deg; --dot: #1F5EFF; }
.pin-b { right: max(24px, calc(50% - 650px)); top: 170px; --rot: 6deg; --dot: #047857; animation-delay: -2s; }
.pin-c { left: max(64px, calc(50% - 610px)); top: 470px; --rot: 4deg; --dot: #1F5EFF; animation-delay: -4s; }
.pin-d {
  right: max(40px, calc(50% - 624px)); top: 450px; --rot: -4deg; --dot: #9D174D; width: 220px; padding: 14px; animation-delay: -1s;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: #4A4950; text-align: left;
}
.pin-d strong { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-family: var(--font-body); font-size: 13.5px; color: #17171B; }
.pin-d strong::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.pin-d mark { background: #FFE7A3; color: #3D2E00; border-radius: 5px; padding: 1px 4px; font-weight: 600; }
@keyframes pin-float { from { translate: 0 0; } to { translate: 0 -10px; } }
.pins-row { display: none; }
@media (max-width: 1199px) {
  .pin { display: none; }
  .pins-row { position: relative; display: block; width: 100%; max-width: 360px; height: 136px; margin-top: 4px; }
  .pins-row .pin { display: block; width: 100px; padding: 5px; border-radius: 12px; animation: none; }
  .pins-row .pin img { height: 76px; border-radius: 8px; }
  .pins-row .pin figcaption { padding: 5px 2px 1px; font-size: 11px; }
  .pins-row .pin:nth-child(1) { left: 2px; top: 14px; }
  .pins-row .pin:nth-child(2) { left: 50%; top: 0; margin-left: -50px; --rot: 3deg; }
  .pins-row .pin:nth-child(3) { right: 2px; left: auto; top: 18px; --rot: 7deg; }
}

/* Running strip of the AI models, real logos (LobeHub icons, MIT) */
.model-strip { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 18px; }
.model-strip p { margin: 0; font-size: 17px; color: var(--ink-muted); }
.marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { width: max-content; display: flex; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { list-style: none; margin: 0; padding: 0 8px; display: flex; gap: 16px; flex-shrink: 0; }
.model {
  flex-shrink: 0; height: 62px; padding: 0 24px 0 10px; display: flex; align-items: center; gap: 12px;
  background: var(--m-bg); border: 1px solid rgba(23, 23, 27, 0.06); border-radius: 999px;
}
.model-logo { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: #FFFFFF; border-radius: 50%; box-shadow: 0 1px 2px rgba(23, 23, 27, 0.08); }
.model-logo img { width: 24px; height: 24px; }
.model span { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; white-space: nowrap; color: var(--m-ink); }
[data-theme="dark"] .model { --m-bg: rgba(255, 255, 255, 0.06) !important; --m-ink: #ECECEF !important; border-color: rgba(255, 255, 255, 0.08); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 719px) {
  .model { height: 50px; padding: 0 18px 0 8px; gap: 10px; }
  .model-logo { width: 34px; height: 34px; }
  .model-logo img { width: 20px; height: 20px; }
  .model span { font-size: 17px; }
  .model-strip p { font-size: 15px; }
}

@media (max-width: 719px) {
  .idea-box { flex-direction: column; }
  .idea-box input { height: 52px; font-size: 17px; padding: 0 14px; }
  .btn-go { height: 52px; }
  .type-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .type-chip { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .pin { animation: none; }
}

/* ---------- Mac window (builder and "Same idea") ---------- */
.mac-wall { margin-top: clamp(28px, 4vw, 56px); }
.mac-win {
  max-width: 1180px; margin: 0 auto; background: #1E1E20; border-radius: 18px; overflow: hidden; box-shadow: var(--win-shadow);
  color: #ECECEF; text-align: left;
}
.mac-bar { height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 12px; background: #2C2C2F; border-bottom: 1px solid #000; }
.mac-lights { display: flex; gap: 8px; flex-shrink: 0; }
.mac-lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.mac-lights i:nth-child(2) { background: #FEBC2E; }
.mac-lights i:nth-child(3) { background: #28C840; }
.mac-title { flex-grow: 1; text-align: center; font-size: 13px; font-weight: 600; color: #A1A1A8; padding-right: 52px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 719px) {
  .mac-win { border-radius: 14px; }
  .mac-bar { height: 36px; padding: 0 12px; }
  .mac-lights i { width: 11px; height: 11px; }
  .mac-title { font-size: 12px; padding-right: 46px; }
}

/* The builder inside the window: every builder colour token is switched to the dark terminal set */
.builder-win {
  --bg-paper: #1E1E20;
  --bg-band: #19191B;
  --bg-card: #232327;
  --bg-card-subtle: #2A2A2F;
  --ink-primary: #ECECEF;
  --ink-secondary: #C9C8CF;
  --ink-muted: #A1A1A8;
  --border-line: #34343A;
  --border-dark: #ECECEF;
  --outline: #3A3A40;
  --outline-strong: #6B6A72;
  --accent: #1F5EFF;
  --accent-hover: #3A72FF;
  --accent-light: #1C2744;
  --accent-ink: #8FB4FF;
  --highlighter: #FFD76A;
  --highlighter-bg: rgba(255, 215, 106, 0.16);
  --highlighter-border: rgba(255, 215, 106, 0.55);
  --success: #7EE08A;
  --success-bg: #13301D;
  --cat-photo: #3A2217; --cat-photo-accent: #FB9A64;
  --cat-image: #1C2744; --cat-image-accent: #8FB4FF;
  --cat-video: #14322A; --cat-video-accent: #5FD3A2;
  --cat-text: #3A1A29; --cat-text-accent: #F58AB8;
  --term-bg: #161618;
  --term-surface: #1E1E22;
  --term-border: #2E2E33;
  --shadow-hard: none; --shadow-hard-lg: none; --shadow-hard-sm: none; --shadow-soft: none;
  color: var(--ink-primary);
}
.builder-win .mac-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.builder-section { padding: 0; }
.home .builder-section .container { width: auto; max-width: none; padding: 0; }

/* Type tabs (the category buttons app.js switches between) */
.type-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.type-row-label { font-family: var(--font-mono); font-size: 13px; color: #8A8A92; margin-right: 4px; }
.builder-win .category-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; grid-template-columns: none; }
.builder-win .cat-card {
  width: auto; min-height: 40px; height: 40px; padding: 0 14px; display: inline-flex; flex-direction: row; align-items: center; gap: 8px;
  background: #26262A; border: 1px solid #3A3A3E; border-radius: 10px; color: #D4D4DA; box-shadow: none; transform: none;
}
.builder-win .cat-card:hover { border-color: #6B6A72; transform: none; box-shadow: none; }
.builder-win .cat-card .cat-icon-wrap { width: auto; height: auto; background: none; border: 0; color: inherit; box-shadow: none; }
.builder-win .cat-card .cat-icon-wrap svg { width: 15px; height: 15px; }
.builder-win .cat-card .cat-info { display: block; }
.builder-win .cat-card .cat-title { font-size: 14px; font-weight: 600; color: inherit; }
.builder-win .cat-card .cat-desc, .builder-win .cat-card .cat-radio-indicator { display: none; }
.builder-win .cat-card.active { color: #FFFFFF; }
.builder-win .cat-card.active[data-category="photo"] { background: #C2410C; border-color: #C2410C; }
.builder-win .cat-card.active[data-category="image"] { background: #1F5EFF; border-color: #1F5EFF; }
.builder-win .cat-card.active[data-category="video"] { background: #047857; border-color: #047857; }
.builder-win .cat-card.active[data-category="text"] { background: #9D174D; border-color: #9D174D; }
.type-row-note { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 13px; color: #7EE08A; }

.builder-win .builder-studio-grid { gap: 16px; margin: 0; }
.builder-win .studio-card { background: #19191B; border: 1px solid #2E2E33; border-radius: 14px; box-shadow: none; padding: 20px; }
.builder-win .step-card { margin: 0; }
.builder-win .step-num-badge { display: none; }
.builder-win .step-title { font-size: 16px; color: #ECECEF; }
.builder-win .intent-textarea { background: #141416; border-color: #3A3A3E; color: #FFFFFF; font-family: var(--font-mono); font-size: 15px; }
.builder-win .intent-textarea::placeholder { color: #8A8A92; }
.builder-win .chip-btn { background: #26262A; border-color: #3A3A3E; color: #D4D4DA; box-shadow: none; }
.builder-win .chip-btn:hover { border-color: #8A8A92; transform: none; }
.builder-win .chip-btn.active { background: #ECECEF; border-color: #ECECEF; color: #17171B; }
.builder-win .pro-terminal-card { background: #161618; border: 1px solid #2E2E33; border-radius: 14px; box-shadow: none; }
.builder-win .terminal-header { background: transparent; }
.builder-win .prompt-code-view { color: #ECECEF; }
.builder-win .btn-copy { background: #FFFFFF; color: #17171B; border-color: #FFFFFF; }
.builder-win .btn-primary { background: #1F5EFF; border-color: #1F5EFF; color: #FFFFFF; }
@media (max-width: 719px) {
  .builder-win .mac-body { padding: 14px 12px; gap: 12px; }
  .builder-win .category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .builder-win .cat-card { height: 44px; justify-content: flex-start; }
  .type-row-label, .type-row-note { display: none; }
  .builder-win .studio-card { padding: 14px; }
}

/* ---------- picture cards, one per prompt type ---------- */
.types-sec { padding: clamp(56px, 8vw, 110px) 0; }
.types-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.types-head > div { display: flex; flex-direction: column; gap: 10px; }
.types-head a { font-size: 17px; font-weight: 600; color: var(--accent-ink); }
.type-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.type-card {
  position: relative; height: 400px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  border-radius: 28px; color: #FFFFFF; background: #17171B; isolation: isolate;
}
.type-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.5s ease; }
.type-card:hover > img { transform: scale(1.05); }
.type-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, var(--tint) 100%); }
.type-card.c-photo { --tint: rgba(194, 65, 12, 0.94); }
.type-card.c-image { --tint: rgba(31, 94, 255, 0.94); }
.type-card.c-video { --tint: rgba(4, 120, 87, 0.94); }
.type-card.c-text { --tint: rgba(157, 23, 77, 0.94); background: linear-gradient(160deg, #E0558F, #9D174D); }
.type-card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.type-card-count {
  align-self: flex-start; height: 30px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, 0.25); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.38);
}
.type-card-title { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.05; letter-spacing: -0.03em; }
.type-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, 0.92); }
.type-card-go { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #FFFFFF; color: var(--go); border-radius: 50%; }
.c-photo { --go: #C2410C; } .c-image { --go: #1F5EFF; } .c-video { --go: #047857; } .c-text { --go: #9D174D; }
.type-note {
  position: absolute; left: 22px; right: 22px; top: 22px; padding: 16px; background: #FFFFFF; color: #4A4950; border-radius: 16px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; transform: rotate(-2deg); box-shadow: 0 20px 30px -16px rgba(60, 0, 30, 0.6);
}
.type-note mark { background: #FFE7A3; color: #3D2E00; border-radius: 5px; padding: 1px 4px; font-weight: 600; }
@media (max-width: 979px) {
  .type-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .type-card { height: 230px; border-radius: 20px; }
  .type-card-body { padding: 14px; gap: 4px; }
  .type-card-count { height: 26px; padding: 0 9px; font-size: 11.5px; }
  .type-card-title { font-size: 21px; }
  .type-card-foot { display: none; }
  .type-note { left: 12px; right: 12px; top: 12px; padding: 10px; font-size: 10px; border-radius: 12px; }
  .types-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 18px; }
  .types-head a { font-size: 15px; }
}

/* ---------- festival season studio tools ---------- */
.sp-promo { padding: 0 0 clamp(40px, 6vw, 80px); }
.sp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 24px; margin-bottom: 24px; }
.sp-head > div { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sp-head .home-h2 { font-size: clamp(28px, 3.8vw, 46px); }
.sp-head > a { font-weight: 600; color: var(--ink-primary); }
.sp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sp-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; border: 1px solid var(--border-line); background: var(--bg-card); color: var(--ink-primary); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.sp-card:hover { transform: translateY(-3px); border-color: var(--sp-c); }
.sp-card img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 336; object-fit: cover; }
.sp-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; border-top: 4px solid var(--sp-c); flex: 1; }
.sp-body b { font: 700 18px/1.25 var(--font-display); }
.sp-body > span { font-size: 14.5px; line-height: 1.45; color: var(--ink-secondary); }
.sp-body .sp-go { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--ink-primary); }
@media (max-width: 960px) { .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sp-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sp-card { transition: none; } }

/* ---------- free resume builder promo ---------- */
.rb-promo { padding: 0 0 clamp(56px, 8vw, 110px); }
.rb-card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(22px, 4.5vw, 56px); border-radius: clamp(24px, 3vw, 36px); border: 1px solid var(--border-line);
  background: radial-gradient(50% 70% at 100% 0%, rgba(124, 58, 237, 0.16) 0%, rgba(124, 58, 237, 0) 100%),
    radial-gradient(45% 60% at 0% 100%, rgba(249, 115, 22, 0.16) 0%, rgba(249, 115, 22, 0) 100%), var(--bg-card);
}
.rb-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.rb-badge {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--ink-primary); background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.4);
}
.rb-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }
.rb-copy .home-h2 { font-size: clamp(28px, 3.8vw, 46px); }
.rb-ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; font-size: 16px; font-weight: 600; color: var(--ink-primary); }
.rb-ticks li { display: flex; align-items: center; gap: 9px; }
.rb-ticks li::before {
  content: "\2713"; width: 22px; height: 22px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  font-size: 13px; font-weight: 800; color: #FFFFFF; background: #047857;
}
.rb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 6px; }
.rb-actions .btn.btn-ink { min-height: 50px; padding: 0 24px; font-size: 16px; }
.rb-link { font-size: 16px; font-weight: 600; color: var(--accent-ink); }
.rb-link:hover { text-decoration: underline; }
.rb-demo { min-width: 0; }
.rb-demo .mac-win { max-width: 460px; }
.rb-stage {
  position: relative; padding: 26px 22px 30px; display: flex; justify-content: center;
  background: radial-gradient(70% 60% at 20% 0%, rgba(124, 58, 237, 0.4) 0%, rgba(124, 58, 237, 0) 100%),
    radial-gradient(70% 60% at 100% 100%, rgba(249, 115, 22, 0.3) 0%, rgba(249, 115, 22, 0) 100%), #26262B;
}
/* sample resume: type sizes are in cqw so the whole page scales with the paper width */
.rb-paper {
  container-type: inline-size; width: min(300px, 78%); aspect-ratio: 210 / 262; padding: 7% 8% 13%; overflow: hidden; user-select: none;
  background: #FFFFFF; border-radius: 6px; box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.7); color: #3F3F48; text-align: left;
}
.rb-paper p, .rb-paper ul { margin: 0; }
.rp-name { font-size: 7.2cqw; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: #17171B; }
.rp-role { margin-top: 0.8cqw !important; font-size: 3.2cqw; font-weight: 600; line-height: 1.3; color: #1F5EFF; }
.rp-contact { margin-top: 1cqw !important; font-size: 2.4cqw; line-height: 1.4; color: #6B6B76; }
.rp-h { margin-top: 3.4cqw !important; padding-bottom: 0.7cqw; border-bottom: 1px solid #DDE6FF; font-size: 2.5cqw; font-weight: 800; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: #1F5EFF; }
.rp-t, .rp-ul li { font-size: 2.7cqw; line-height: 1.45; }
.rp-t { margin-top: 1.2cqw !important; }
.rp-row { margin-top: 1.4cqw !important; display: flex; justify-content: space-between; gap: 2cqw; font-size: 2.8cqw; line-height: 1.4; }
.rp-row b { font-weight: 700; color: #17171B; }
.rp-row span { flex-shrink: 0; font-size: 2.5cqw; color: #6B6B76; }
.rp-ul { padding: 0 0 0 3.2cqw; list-style: disc; }
.rp-ul li { margin-top: 0.4cqw; }
.rp-chips { margin-top: 1.4cqw !important; display: flex; gap: 1.6cqw; }
.rp-chips i { padding: 0.6cqw 2.6cqw; border-radius: 999px; font-style: normal; font-size: 2.5cqw; font-weight: 600; line-height: 1.4; color: #1B3FA8; background: #DDE6FF; }
.rb-chip {
  position: absolute; height: 30px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap; background: #FFFFFF; color: #17171B; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.6);
}
.rb-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }
.rb-chip-ats { right: 14px; top: 20px; }
.rb-chip-job { left: 14px; bottom: 22px; }
.rb-chip-job::before { background: #F59E0B; }
@media (max-width: 979px) {
  .rb-card { grid-template-columns: minmax(0, 1fr); }
  .rb-demo .mac-win { margin: 0 auto; }
}
@media (max-width: 479px) {
  .rb-ticks { grid-template-columns: minmax(0, 1fr); }
  .rb-chip { font-size: 11.5px; height: 28px; padding: 0 10px; }
  .rb-chip-ats { right: 8px; }
  .rb-chip-job { left: 8px; }
}

/* ---------- "Same idea. A far better answer." ---------- */
.versus {
  margin: 0 clamp(8px, 1.7vw, 24px); padding: clamp(56px, 8vw, 96px) 0; border-radius: clamp(28px, 3vw, 44px); color: #FFFFFF;
  background: radial-gradient(40% 50% at 85% 10%, rgba(79, 70, 229, 0.45) 0%, rgba(79, 70, 229, 0) 100%),
    radial-gradient(35% 40% at 5% 95%, rgba(219, 39, 119, 0.25) 0%, rgba(219, 39, 119, 0) 100%), #17171B;
}
.versus .kicker { color: #A9A8B0; }
.versus .home-h2 { color: #FFFFFF; }
.versus .home-sub { color: #BDBCC3; }
.versus-fade { background: linear-gradient(90deg, #8FB4FF, #F9A8D4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.versus-grid { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 460fr) minmax(0, 748fr); gap: 24px; align-items: stretch; }
.versus .mac-win { width: 100%; display: flex; flex-direction: column; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 40px 70px -30px rgba(0, 0, 0, 0.8); border-radius: 16px; }
.versus .mac-bar { height: 40px; padding: 0 14px; }
.versus .mac-lights i { width: 11px; height: 11px; }
.versus .mac-title { font-size: 12.5px; padding-right: 46px; }
.win-dim { background: #2A2A2E; }
.win-dim .mac-bar { background: #343438; }
.vs-left { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.vs-cmd { margin: 0 0 4px; font-family: var(--font-mono); font-size: 20px; color: #FFFFFF; }
.cmd-host { color: #7EE08A; }
.cmd-dim { color: #8A8A92; }
.vs-note { margin: 0; font-size: 14.5px; color: #A1A1A8; }
.vs-guess {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px;
  background: #26262A; border: 1px dashed #4A4A50; border-radius: 12px; font-size: 15.5px; color: #ECECEF;
}
.vs-guess span { font-family: var(--font-mono); font-size: 13px; color: #FF8A80; white-space: nowrap; }
.vs-issues { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 15px; color: #C9C8CF; }
.vs-issues li { display: flex; gap: 9px; align-items: center; }
.vs-issues svg { color: #FF5F57; flex-shrink: 0; }
.vs-right { padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; flex-grow: 1; }
.vs-parts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.vs-parts div { display: flex; gap: 12px; align-items: baseline; }
.vs-parts dt { flex-shrink: 0; width: 72px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--c); }
.vs-parts dd { margin: 0; font-size: 15.5px; line-height: 1.5; color: #ECECEF; }
.blank-dark { background: rgba(255, 231, 163, 0.16); color: #FFD76A; border: 1px dashed rgba(255, 215, 106, 0.55); border-radius: 5px; padding: 0 4px; font-weight: 600; }
.vs-result { position: relative; margin: 0; aspect-ratio: 16 / 9; }
.vs-result img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.result-tag {
  position: absolute; left: 10px; top: 10px; height: 26px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(23, 23, 27, 0.72); color: #FFFFFF; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.result-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #28C840; }
@media (max-width: 979px) {
  .versus-grid { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
}
@media (max-width: 719px) {
  .vs-left, .vs-right { padding: 16px; }
  .vs-parts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .vs-cmd { font-size: 16px; }
  .vs-guess { padding: 11px 12px; font-size: 14px; }
  .vs-parts dt { width: 62px; font-size: 11.5px; }
  .vs-parts dd { font-size: 14px; }
}

/* ---------- prompt library (cards rendered by app.js) ---------- */
.home .library-section { padding: clamp(56px, 8vw, 96px) 0; background: transparent; }
.home .library-header-area { justify-content: center; text-align: center; }
.home .library-header-area > div { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.home .library-header-area .section-badge { background: none; border: 0; padding: 0; box-shadow: none; font-size: 12.5px; letter-spacing: 0.08em; color: var(--ink-muted); }
.home .library-header-area .section-heading { font-size: clamp(30px, 4vw, 50px); font-weight: 800; letter-spacing: -0.03em; }
.home .library-toolbar { flex-direction: column; align-items: center; gap: 18px; }
.home .search-input-wrap { width: min(560px, 100%); }
.home .library-search-input { height: 54px; border-radius: 14px; border: 1.5px solid var(--outline); background: var(--bg-card); font-size: 16px; }
.home .filter-tabs { justify-content: center; }
.home .filter-tab { min-height: 44px; border-radius: 999px; font-weight: 600; }
.home .lib-card { border-radius: 20px; padding: 8px 8px 16px; border: 1px solid var(--border-line); box-shadow: none; background: var(--bg-card); }
.home .lib-card:hover { box-shadow: 0 24px 40px -24px rgba(23, 23, 27, 0.35); transform: translateY(-2px); }
.home .lib-card-visual { border-radius: 14px; border: 0; }
.home .lib-card-top, .home .lib-card-title, .home .lib-tools-compat, .home .lib-prompt-snippet, .home .lib-tip-note, .home .lib-card-actions { margin-left: 8px; margin-right: 8px; }
.home .lib-tip-note { display: none; }
.home .lib-prompt-snippet { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home .lib-category-tag { border-radius: 7px; font-weight: 600; }

/* ---------- prompt library wall (tiles and columns built by libraryTileHtml() in app.js) ----------
   Same idea as the Higgsfield-style hub walls: big pictures in masonry columns, no boxes around them. Every tile still shows its title,
   and it is still a card: a picture tile is the picture with the words laid over it (buttons slide up on hover), a text tile is a
   coloured card, a graphic tile is the picture with the words underneath. A picture tile's height comes from --r, in rows of 1/40 of its width. */
.home .library-grid.is-wall { display: flex; align-items: flex-start; gap: 14px; container-type: inline-size; }
.home .lib-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.home .lib-tile { position: relative; display: block; padding: 0; overflow: hidden; isolation: isolate; border: 0; border-radius: 18px; background: #101013; color: #fff; box-shadow: 0 14px 28px -20px rgba(0, 0, 0, 0.55); cursor: pointer; transform: none; }
.home .lib-tile:hover { transform: none; box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.7); }
.home .lib-tile .lib-card-visual { position: absolute; inset: 0; height: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.home .lib-tile .lib-card-visual:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.home .lib-tile .lib-card-img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.home .lib-tile.is-pic { aspect-ratio: 40 / var(--r, 30); }
/* the "after" halves carry a white AFTER label in their bottom-right corner (bottom 3-8% of the picture): draw the picture a little
   taller, pinned to the top, so the label falls below the tile instead of showing through the caption */
.home .lib-tile .lib-card-visual.is-after-only .lib-card-img { inset: 0 0 auto auto; height: 110%; }

/* the words: title always, the rest on hover */
.home .lib-tile-info { position: relative; z-index: 2; pointer-events: none; }
.home .lib-tile.is-pic .lib-tile-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 64px 14px 13px; background: linear-gradient(to top, rgba(8, 8, 10, 0.93), rgba(8, 8, 10, 0.68) 52%, rgba(8, 8, 10, 0)); }
.home .lib-tile .lib-card-title { margin: 0; color: #fff; font-size: 15.5px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home .lib-tile .lib-card-title mark { background: var(--highlighter); color: #1D1D1F; border-radius: 3px; }
.home .lib-tile .lib-card-top { margin: 5px 0 0; justify-content: flex-start; flex-wrap: wrap; gap: 2px 10px; }
.home .lib-tile .lib-card-tags { gap: 8px; }
.home .lib-tile .lib-category-tag, .home .lib-tile .lib-trend-tag, .home .lib-tile .lib-blanks-tag { padding: 0; border: 0; border-radius: 0; background: none; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.78); }
.home .lib-tile .lib-trend-tag { display: inline-flex; align-items: center; gap: 3px; color: #FFB27A; }
.home .lib-tile .lib-blanks-tag.has-blanks { color: #F2C45A; }
.home .lib-tile .lib-blanks-tag.ready { color: #6EE7A8; }
.home .lib-tile .lib-tools-compat { margin: 0; font-size: 12px; color: rgba(255, 255, 255, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home .lib-tile .lib-card-actions { gap: 6px; margin: 0; }
.home .lib-tile .lib-copy-btn, .home .lib-tile .lib-customize-btn { pointer-events: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px; box-shadow: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.home .lib-tile .lib-copy-btn { flex: 1 1 auto; border: 0; background: var(--accent); color: var(--on-accent); }
.home .lib-tile .lib-copy-btn.is-copied { background: var(--success); color: #fff; }
.home .lib-tile .lib-customize-btn { flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.14); color: #fff; backdrop-filter: blur(8px); }
.home .lib-tile .lib-customize-btn:hover { background: rgba(255, 255, 255, 0.26); }
.home .lib-tile.is-pic .lib-prompt-snippet { display: none; }
.home .lib-tile-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.28s ease, opacity 0.2s ease; }
.home .lib-tile-more-in { min-height: 0; overflow: hidden; }
.home .lib-tile-more .lib-tools-compat { margin-top: 9px; }
.home .lib-tile-more .lib-card-actions { margin-top: 8px; }

/* the AI-generated note: on hover with a mouse, always on touch screens, where there is no hover */
.home .lib-tile .lib-ai-tag { top: 10px; left: 10px; z-index: 3; padding: 3px 9px; border: 0; border-radius: 999px; background: rgba(12, 12, 14, 0.6); backdrop-filter: blur(6px); font-size: 10.5px; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; }

/* a text tile: no picture, so a coloured card with the prompt's opening words */
.home .lib-tile.is-text, .home .lib-tile.is-graphic { display: flex; flex-direction: column; }
.home .lib-tile.is-text { min-height: 190px; }
.home .lib-tile.is-text .lib-card-visual { background: var(--tile-bg); }
.home .lib-tile.theme-photo { --tile-bg: radial-gradient(110% 80% at 100% 0%, rgba(255, 145, 85, 0.34), transparent 62%), linear-gradient(155deg, #4A2412, #1E120B); }
.home .lib-tile.theme-image { --tile-bg: radial-gradient(110% 80% at 100% 0%, rgba(120, 140, 255, 0.36), transparent 62%), linear-gradient(155deg, #26398A, #0F172E); }
.home .lib-tile.theme-video { --tile-bg: radial-gradient(110% 80% at 100% 0%, rgba(70, 220, 160, 0.3), transparent 62%), linear-gradient(155deg, #135640, #0C1A14); }
.home .lib-tile.theme-text { --tile-bg: radial-gradient(110% 80% at 100% 0%, rgba(190, 150, 255, 0.28), transparent 62%), linear-gradient(155deg, #34344A, #111116); }
.home .lib-tile-glyph { position: absolute; top: -18px; right: -14px; color: rgba(255, 255, 255, 0.09); pointer-events: none; }
.home .lib-tile-glyph svg { width: 140px; height: 140px; stroke-width: 1.1; }
.home .lib-tile.is-text .lib-tile-info, .home .lib-tile.is-graphic .lib-tile-info { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.home .lib-tile.is-text .lib-card-top, .home .lib-tile.is-graphic .lib-card-top { margin: 0; }
.home .lib-tile.is-text .lib-card-title, .home .lib-tile.is-graphic .lib-card-title { font-size: 18px; -webkit-line-clamp: 3; }
/* the padding is a transparent border: line-clamp clips at the padding edge, so real padding would show the top of the line after the last one */
.home .lib-tile.is-text .lib-prompt-snippet, .home .lib-tile.is-graphic .lib-prompt-snippet { flex: 0 1 auto; margin: 0; padding: 0; border: solid transparent; border-width: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); color: rgba(255, 255, 255, 0.82); font-size: 12.5px; -webkit-line-clamp: 4; }
.home .lib-tile.is-text .lib-card-actions, .home .lib-tile.is-graphic .lib-card-actions { margin-top: 4px; flex-wrap: wrap; }
.home .lib-tile.is-graphic { background: #121216; }
.home .lib-tile.is-graphic .lib-card-visual { position: relative; inset: auto; aspect-ratio: 16 / 9; }
.home .lib-tile.is-graphic .lib-card-img { position: absolute; inset: 0; }

/* mouse: the caption's second half and the buttons slide up on hover or keyboard focus */
@media (hover: hover) {
  .home .lib-tile:hover .lib-card-img, .home .lib-tile:focus-within .lib-card-img { transform: scale(1.04); }
  .home .lib-tile:hover .lib-tile-more, .home .lib-tile:focus-within .lib-tile-more { grid-template-rows: 1fr; opacity: 1; }
  .home .lib-tile:hover .lib-ai-tag, .home .lib-tile:focus-within .lib-ai-tag { opacity: 1; }
}
/* touch: no hover, so no buttons on picture tiles (tap opens the preview, which has Copy and the builder link) and the note stays */
@media (hover: none) {
  .home .lib-tile .lib-ai-tag { opacity: 1; }
  .home .lib-tile.is-pic .lib-tile-more { display: none; }
}
/* narrower than 4 columns: the tile is short, so the hover row keeps only Copy */
@container (max-width: 959px) {
  .home .lib-tile-more .lib-tools-compat, .home .lib-tile-more .lib-customize-btn { display: none; }
}
/* phones: two columns, just the title */
@container (max-width: 599px) {
  .home .lib-tile.is-pic .lib-card-top, .home .lib-tile.is-pic .lib-tile-more { display: none; }
  .home .lib-tile.is-pic .lib-tile-info { padding: 40px 10px 10px; background: linear-gradient(to top, rgba(8, 8, 10, 0.8), rgba(8, 8, 10, 0)); }
  .home .lib-tile .lib-card-title { font-size: 13.5px; }
  .home .lib-tile.is-text .lib-card-title, .home .lib-tile.is-graphic .lib-card-title { font-size: 15px; }
  .home .lib-tile.is-text .lib-tile-info, .home .lib-tile.is-graphic .lib-tile-info { padding: 12px; }
  .home .lib-tile.is-text .lib-prompt-snippet, .home .lib-tile.is-graphic .lib-prompt-snippet { -webkit-line-clamp: 3; font-size: 11.5px; }
  .home .lib-tile.is-text .lib-customize-btn, .home .lib-tile.is-graphic .lib-customize-btn { display: none; }
  .home .lib-tile.is-text .lib-tools-compat, .home .lib-tile.is-graphic .lib-tools-compat { display: none; }
}
@media (max-width: 640px) {
  .home .library-grid.is-wall, .home .lib-col { gap: 8px; }
  .home .lib-tile { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .home .lib-tile .lib-card-img, .home .lib-tile-more, .home .lib-tile .lib-ai-tag { transition: none; }
  .home .lib-tile:hover .lib-card-img { transform: none; }
}

/* ---------- how it works ---------- */
.how-sec { padding: clamp(56px, 8vw, 96px) 0; background: var(--bg-band); }
.how-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.how-steps li { padding: 28px; display: flex; flex-direction: column; gap: 14px; background: var(--bg-card); border: 1px solid var(--border-line); border-radius: 22px; }
.how-num { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--ink-primary); color: var(--bg-paper); border-radius: 999px; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.how-steps h3 { margin: 0; font-size: 23px; }
.how-steps p { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--ink-secondary); }
.how-eg { margin-top: auto; padding: 12px 14px; background: var(--bg-card-subtle); border-radius: 12px; font-family: var(--font-mono); font-size: 13.5px; color: var(--ink-secondary); }
@media (max-width: 859px) { .how-steps { grid-template-columns: minmax(0, 1fr); } .how-steps li { padding: 22px; } }

/* ---------- FAQ and explore (markup injected by scripts/build-pages.mjs) ---------- */
.home .seo-faq { padding: clamp(56px, 8vw, 96px) 0; }
.home .seo-faq .container { display: grid; grid-template-columns: minmax(0, 380fr) minmax(0, 752fr); gap: 48px; }
.faq-intro { display: flex; flex-direction: column; gap: 14px; }
.faq-intro p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-secondary); }
.faq-intro a { color: var(--accent-ink); text-decoration: underline; }
.home .seo-faq .faq { display: flex; flex-direction: column; gap: 10px; }
.home .seo-faq details { background: var(--bg-card); border: 1px solid var(--border-line); border-radius: 16px; }
.home .seo-faq summary {
  min-height: 64px; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  list-style: none; cursor: pointer; font-size: 18px; font-weight: 600; color: var(--ink-primary);
}
.home .seo-faq summary::-webkit-details-marker { display: none; }
.home .seo-faq summary::after {
  content: "+"; flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; font-size: 20px; background: var(--bg-card-subtle); color: var(--ink-primary); transition: transform 0.2s ease;
}
.home .seo-faq details[open] summary::after { background: var(--ink-primary); color: var(--bg-paper); transform: rotate(45deg); }
.home .seo-faq details p { margin: 0; padding: 0 22px 22px; font-size: 16px; line-height: 1.6; color: var(--ink-secondary); }
@media (max-width: 859px) {
  .home .seo-faq .container { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home .seo-faq summary { font-size: 16.5px; padding: 12px 16px; min-height: 60px; }
  .home .seo-faq details p { padding: 0 16px 18px; }
}

/* ---------- closing call to action ---------- */
.cta-c {
  margin: 0 clamp(8px, 1.7vw, 24px) clamp(32px, 5vw, 72px); padding: clamp(48px, 6vw, 88px) 16px;
  background: var(--pastel); border: 1px solid var(--border-line); border-radius: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
}
.cta-c h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.04em; }
.cta-c .cta-note { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-secondary); }


/* ---------- fixes over the older builder styles ---------- */
.home .builder-section { background: transparent; border: 0; padding: 0; }
.builder-win .step-header { padding-left: 0; margin-bottom: 14px; }
.home .library-header-area .section-badge { text-transform: uppercase; }
.model-strip { width: 100vw; }
.type-card.c-photo > img { object-position: 70% 30%; }

/* ---------- Studio: the homepage builder for every type, laid out like an AI app (studio.js) ---------- */
.ps { --ps-lime: #D6FF3D; --ps-muted: #9A99A3; display: flex; flex-direction: column; gap: 12px; color: #F4F3EF; }
.ps[hidden], .ps [hidden], .ps-wrap[hidden], .builder-win .builder-studio-grid.is-off { display: none !important; }
.ps button, .ps textarea { font-family: var(--font-body); }
.ps-top { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.ps-top > span { flex-grow: 1; }
.ps.has-thread .ps-scroll { max-height: min(620px, 68vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #3A3A42 transparent; }

.ps-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 0 4px; }
.ps-eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ps-lime); }
.ps-title { margin: 10px 0 0; font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: #FFFFFF; }
.ps-lead { margin: 12px 0 0; max-width: 560px; font-size: 16px; line-height: 1.5; color: #B3B2BB; }
.ps-grid { margin-top: 28px; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ps-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 820px; }
.ps-card { display: block; width: 100%; padding: 7px 7px 10px; border: 1.5px solid #26262D; border-radius: 16px; background: #131317; color: inherit; text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.ps-card:hover { transform: translateY(-3px); border-color: #45454F; }
.ps-card:focus-visible, .ps-btn:focus-visible, .ps-row:focus-visible, .ps-sugg:focus-visible, .ps-create:focus-visible, .ps-copy:focus-visible, .ps-open:focus-visible { outline: 2px solid var(--ps-lime); outline-offset: 2px; }
.ps-card.is-on { border-color: var(--ps-lime); background: #17181A; }
.ps-pic { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 11px; overflow: hidden; background: #222228; }
.ps-pic > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-pic > .ps-docimg { object-position: center top; }
/* Text & chat cards: a colour tile with a big icon and one sample line */
.ps-tile { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 14px; background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.22), transparent 55%), linear-gradient(135deg, var(--ta), var(--tb)); color: #FFFFFF; }
.ps-tile-ic { width: 40px; height: 40px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25)); }
.ps-tile-msg { max-width: 100%; padding: 7px 11px; border-radius: 10px 10px 10px 3px; background: rgba(255, 255, 255, 0.94); color: #17171C; font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.ps-tile-msg s { color: #B4232C; font-weight: 500; }
.ps-tile-mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; font-weight: 500; }
@media (max-width: 560px) { .ps-tile { padding: 10px; } .ps-tile-ic { width: 30px; height: 30px; } .ps-tile-msg { font-size: 11px; padding: 5px 8px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .ps-tile-mono { font-size: 10px; } }
.ps-pic .ps-halfimg { position: absolute; top: 0; height: 100%; width: 200%; max-width: none; object-fit: cover; }
.ps-halfimg-left { left: 0; }
.ps-halfimg-right { left: -100%; }
.ps-before { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 50% 0 0); }
.ps-fx-dark img { filter: brightness(0.38) saturate(0.8); }
.ps-fx-bw img { filter: grayscale(1) contrast(1.05); }
.ps-fx-grain img { filter: contrast(0.85) saturate(0.7); }
.ps-fx-grain::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(20, 20, 20, 0.6) 0.8px, transparent 1.4px), radial-gradient(rgba(255, 255, 255, 0.35) 0.8px, transparent 1.4px); background-size: 4px 4px, 5px 5px; background-position: 0 0, 2px 3px; }
.ps-split { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, 0.9); }
.ps-tag { position: absolute; bottom: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(12, 12, 14, 0.78); color: #FFFFFF; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.ps-tag-l { left: 6px; }
.ps-tag-r { right: 6px; }
.ps-tick { position: absolute; top: 7px; right: 7px; width: 26px; height: 26px; border-radius: 50%; background: var(--ps-lime); color: #0B0B0E; display: none; align-items: center; justify-content: center; }
.ps-tick svg { width: 15px; height: 15px; }
.ps-card.is-on .ps-tick { display: flex; }
.ps-card-t { display: block; padding: 10px 4px 0; font-size: 15px; font-weight: 600; color: #FFFFFF; }
.ps-card-s { display: block; padding: 2px 4px 0; font-size: 13px; color: var(--ps-muted); }
.ps-suggs { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.ps-suggs > span { font-size: 14px; color: #85848E; margin-right: 2px; }
.ps-sugg { min-height: 38px; padding: 0 14px; border: 1px solid #2C2C34; border-radius: 999px; background: transparent; color: #C4C3CC; font-size: 14px; cursor: pointer; }
.ps-sugg:hover { border-color: #4A4A55; color: #FFFFFF; }

.ps-thread { max-width: 780px; margin: 0 auto; padding: 8px 4px 12px; display: flex; flex-direction: column; gap: 26px; }
.ps-turn { display: flex; flex-direction: column; gap: 16px; }
.ps-ask { align-self: flex-end; max-width: 80%; padding: 11px 14px; border-radius: 18px 18px 4px 18px; background: #26262E; display: flex; flex-direction: column; gap: 8px; }
.ps-ask p { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.ps-ask .ps-clip { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.ps-more { align-self: flex-start; min-height: 32px; padding: 0 10px; margin: -2px 0 0 -10px; border: 0; border-radius: 8px; background: transparent; color: var(--ps-lime); font-size: 13px; font-weight: 600; cursor: pointer; }
.ps-more:hover { background: #30303A; }
.ps-more:focus-visible { outline: 2px solid var(--ps-lime); outline-offset: 2px; }
.ps-ask-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ps-ask-chips img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.ps-ask-chips span { padding: 4px 10px; border-radius: 999px; background: #34343E; font-size: 13px; font-weight: 500; }
.ps-reply { display: flex; gap: 12px; align-items: flex-start; }
.ps-avatar { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: var(--ps-lime); color: #0B0B0E; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.ps-reply-body { flex-grow: 1; min-width: 0; }
.ps-writing { display: flex; align-items: center; gap: 8px; padding-top: 5px; margin-bottom: 12px; font-size: 15px; color: #C4C3CC; }
.ps-writing svg { color: var(--ps-lime); }
@keyframes ps-spin { to { transform: rotate(360deg); } }
.ps-spin { animation: ps-spin 1s linear infinite; }
@keyframes ps-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.ps-skel { height: 12px; margin-top: 10px; border-radius: 6px; background: linear-gradient(90deg, #1E1E24 0%, #2E2E37 50%, #1E1E24 100%); background-size: 800px 100%; animation: ps-shimmer 1.2s linear infinite; }
@media (prefers-reduced-motion: reduce) { .ps-spin, .ps-skel { animation: none; } .ps-card { transition: none; } .ps-card:hover { transform: none; } }
.ps-ready { margin: 5px 0 0; font-size: 16px; font-weight: 600; }
.ps-out { margin-top: 12px; border: 1px solid #2A2A31; border-radius: 16px; background: #111115; overflow: hidden; }
.ps-out-h { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid #202027; font-size: 13px; color: var(--ps-muted); }
.ps-prompt { margin: 0; padding: 14px 16px 16px; max-height: 320px; overflow-y: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.65; color: #E9E8E3; white-space: pre-wrap; overflow-wrap: anywhere; }
.ps-var { background: rgba(214, 255, 61, 0.14); color: #E8FF9A; border-radius: 4px; padding: 0 2px; }
.ps-acts { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.ps-copy, .ps-open { min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ps-copy { border: 0; background: var(--ps-lime); color: #0B0B0E; }
.ps-copy:hover { background: #E4FF7A; }
.is-copied .ps-copy { background: #8BE39B; }
.ps-open { border: 1px solid #34343C; background: transparent; color: #F4F3EF; }
.ps-open:hover { background: #1D1D23; }
.ps-steps { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: ps; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ps-muted); }
.ps-steps li { counter-increment: ps; display: flex; align-items: center; gap: 6px; }
.ps-steps li::before { content: counter(ps); width: 20px; height: 20px; border-radius: 50%; background: #24242B; color: var(--ps-lime); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.ps-tip { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #8E8D97; }
.ps-tip strong { color: #C4C3CC; }
.ps-related { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: #8E8D97; }
.ps-related span { margin-right: 2px; }
.ps-related a { padding: 4px 10px; border: 1px solid #2E2E36; border-radius: 999px; color: #C4C3CC; text-decoration: none; }
.ps-related a:hover { border-color: #4A4A55; color: #FFFFFF; }
.ps-related a:focus-visible { outline: 2px solid var(--ps-lime); outline-offset: 2px; }

.ps-dock { position: relative; width: 100%; max-width: 820px; margin: 0 auto; }
.ps-comp { border: 1px solid #2C2C34; border-radius: 20px; background: #141419; padding: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); transition: border-color .15s ease; }
.ps-comp:focus-within { border-color: #4A4A55; }
.ps-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 8px; }
.ps-chip { height: 36px; padding: 0 2px 0 12px; border-radius: 10px; background: #1F1F26; border: 1px solid #34343D; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.ps-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ps-lime); }
.ps-chip-photo { padding-left: 3px; }
.ps-chip-photo img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; }
.ps-photo-icon { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 7px; background: rgba(214,255,61,.14); color: #D6FF3D; }
.ps-ask-chips .ps-photo-icon { width: 40px; height: 40px; border-radius: 8px; }
.ps-chip button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ps-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ps-chip button:hover { color: #FFFFFF; background: #2A2A32; }
.ps-text { display: block; width: 100%; box-sizing: border-box; resize: none; border: 0; background: transparent; color: #F4F3EF; font-size: 16px; line-height: 1.5; padding: 6px 8px; }
.ps-text::placeholder { color: #7A7984; }
.ps-text:focus { outline: none; }
.ps-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ps-grow { flex-grow: 1; }
.ps-btn { position: relative; min-height: 40px; padding: 0 12px; border: 1px solid #2E2E36; border-radius: 12px; background: #1B1B21; color: #F4F3EF; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; transition: background .15s ease; }
.ps-btn:hover { background: #26262D; }
.ps-sq { width: 40px; padding: 0; justify-content: center; }
.ps-btn.is-on > svg { color: var(--ps-lime); }
label.ps-btn:focus-within { outline: 2px solid var(--ps-lime); outline-offset: 2px; }
.ps-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ps-logo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; background: #FFFFFF; }
.ps-logo-any { background: #2A2A32; color: var(--ps-lime); }
.ps-logo-any svg { width: 60%; height: 60%; }
.ps-create { min-height: 40px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--ps-lime); color: #0B0B0E; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ps-create:hover { background: #E4FF7A; }
.ps-create:disabled { background: #25252C; color: #7A7984; cursor: not-allowed; }
.ps-foot { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: #8F8E99; }
.ps-pop { position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 20; width: 340px; max-width: 100%; max-height: min(460px, 60vh); overflow-y: auto; padding: 8px; border: 1px solid #2E2E36; border-radius: 16px; background: #17171C; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55); }
.ps-pop-r { left: auto; right: 0; width: 300px; }
.ps-pop-h { margin: 6px 10px 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #85848E; }
.ps-row { width: 100%; min-height: 50px; padding: 6px 10px; border: 0; border-radius: 10px; background: transparent; color: #F4F3EF; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; }
.ps-row:hover { background: #222229; }
.ps-row-txt { flex-grow: 1; display: flex; flex-direction: column; }
.ps-row-txt span:first-child { font-size: 14px; font-weight: 600; }
.ps-row-txt span:last-child { font-size: 12px; color: var(--ps-muted); }
.ps-row-tick { color: var(--ps-lime); visibility: hidden; display: flex; }
.ps-row.is-on .ps-row-tick { visibility: visible; }

@media (max-width: 979px) { .ps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) {
  .ps.has-thread .ps-scroll { max-height: none; overflow: visible; }
  .ps-turn { scroll-margin-top: 12px; }
  .ps-hero { padding-top: 6px; }
  .ps-lead { font-size: 15px; }
  .ps-grid { gap: 8px; margin-top: 20px; }
  .ps-card { padding: 5px 5px 8px; border-radius: 13px; }
  .ps-card-t { font-size: 14px; padding-top: 8px; }
  .ps-card-s { font-size: 12px; }
  .ps-hide-sm { display: none; }
  .ps-ask { max-width: 92%; }
  .ps-reply { gap: 8px; }
  .ps-avatar { width: 28px; height: 28px; font-size: 14px; }
  .ps-create { flex-grow: 1; justify-content: center; }
  .ps-pop, .ps-pop-r { width: 100%; }
}

/* Save (heart) on library tiles and in the picture preview. The list itself is saved.js (this browser only). */
.home .lib-tile .lib-heart { position: absolute; top: 10px; right: 10px; z-index: 4; width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #17171B; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.5); cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; }
.home .lib-tile .lib-heart:hover { transform: scale(1.08); background: #FFFFFF; }
.home .lib-tile .lib-heart:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.home .lib-tile .lib-heart[aria-pressed="true"] { background: #9D174D; color: #FFFFFF; }
.home .lib-heart[aria-pressed="true"] svg path, .home .modal-save-btn[aria-pressed="true"] svg path { fill: currentColor; }
.home .filter-tab-saved .tab-icon { color: var(--cat-text-accent); }
@media (prefers-reduced-motion: reduce) { .home .lib-tile .lib-heart { transition: none; } }
.home .modal-save-btn[hidden] { display: none; }
.home .modal-save-btn { display: inline-flex; align-items: center; gap: 8px; }
.home .modal-save-btn[aria-pressed="true"] { border-color: var(--cat-text-accent); background: var(--cat-text); color: var(--cat-text-accent); }
@media (max-width: 600px) {
  .home .modal-footer { flex-wrap: wrap; }
  .home .modal-footer .btn { flex: 1 1 auto; justify-content: center; }
}

/* ==========================================================================
   Homepage sections in the growth-plan order (2026-10-10): topic links under
   the type cards, most copied, before/after, tools list, prompts by AI app,
   recently added and guides. Markup for 3, 4, 6, 7, 8 comes from
   scripts/home-sections.mjs. On phones the card rows scroll sideways.
   ========================================================================== */
.hs { padding: clamp(40px, 6vw, 80px) 0 0; }
/* seo.css has a `.c-text` rule for prompt text that also caught the "Write anything" type card (grey title) */
.home .type-card.c-text { margin: 0; font-size: inherit; line-height: inherit; color: #FFFFFF; white-space: normal; overflow-wrap: normal; }
.hs-tools { padding-top: clamp(40px, 6vw, 80px); }
.hs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.hs-head > div { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.hs-head > a { font-size: 16px; font-weight: 600; color: var(--accent-ink); }
.hs-h2 { font-size: clamp(28px, 3.8vw, 46px); }
.hs-sub { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-secondary); }

.hs-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hs-topics a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-line); background: var(--bg-card); color: var(--ink-primary); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.hs-topics a:hover { border-color: var(--outline); box-shadow: var(--shadow-hard); }

.hs-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hs-ba-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hs-ba-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border-line); background: var(--bg-card); color: var(--ink-primary); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.hs-ba-card:hover, .hs-new:hover, .hs-post:hover, .hs-guide-lead:hover, .hs-app:hover { transform: translateY(-3px); box-shadow: var(--shadow-hard); }
.hs-ba-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg-band); }
.hs-ba-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hs-ai { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: rgba(23, 23, 27, 0.82); color: #FFFFFF; font-size: 12px; font-weight: 700; white-space: nowrap; }
.hs-ba-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 14px 18px 16px; }
.hs-ba-title { font: 700 17px/1.3 var(--font-display); }
.hs-ba-go { font-size: 14.5px; font-weight: 700; color: var(--accent-ink); }

.hs-tools .sp-grid { margin-bottom: 16px; }
.hs-tool-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hs-tool-list a { display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--border-line); background: var(--bg-card); color: var(--ink-primary); text-decoration: none; }
.hs-tool-list a:hover { border-color: var(--outline); box-shadow: var(--shadow-hard); }
.hs-tool-list b { font: 700 16.5px/1.25 var(--font-display); }
.hs-tool-list span { font-size: 14px; line-height: 1.45; color: var(--ink-secondary); }
.hs-note { margin: 16px 0 0; font-size: 14px; color: var(--ink-muted); }

.hs-apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.hs-app { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%; box-sizing: border-box; padding: 16px; border-radius: 16px; border: 1px solid var(--border-line); background: var(--bg-card); color: var(--ink-primary); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.hs-app-logo { width: 44px; height: 44px; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(23, 23, 27, 0.08); overflow: hidden; }
.hs-app-logo img { width: 28px; height: 28px; }
.hs-app-logo img[src$=".webp"] { width: 44px; height: 44px; }
.hs-app-name { font: 700 16px/1.25 var(--font-display); }
.hs-app-name small { display: block; font: 500 12px var(--font-body); color: var(--ink-muted); }
.hs-app-n { font-size: 14px; font-weight: 700; color: var(--accent-ink); }
.hs-app-kinds { font-size: 12.5px; color: var(--ink-muted); }

.hs-new { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--ink-primary); text-decoration: none; transition: transform .2s ease; }
.hs-new-img { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: var(--bg-band); }
.hs-new-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hs-new-title { font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.hs-new-date { font-size: 13px; color: var(--ink-muted); }

.hs-guides { padding-bottom: clamp(40px, 6vw, 80px); }
.hs-guide-grid { display: grid; grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)); gap: 18px; }
.hs-guide-lead { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius-lg); background: var(--cat-image); color: var(--ink-primary); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.hs-guide-lead-title { font: 800 26px/1.1 var(--font-display); letter-spacing: -0.02em; }
.hs-guide-lead-text { font-size: 15px; line-height: 1.5; color: var(--ink-secondary); }
.hs-guide-lead .hs-ba-go { margin-top: auto; }
.hs-post { display: flex; flex-direction: column; gap: 6px; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border-line); background: var(--bg-card); color: var(--ink-primary); text-decoration: none; padding-bottom: 16px; transition: transform .2s ease, box-shadow .2s ease; }
.hs-post-img { display: block; aspect-ratio: 1200 / 630; background: var(--bg-band); margin-bottom: 6px; }
.hs-post-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hs-post-date { padding: 0 16px; font-size: 12.5px; color: var(--ink-muted); }
.hs-post-title { padding: 0 16px; font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.hs-model-guides { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 20px; font-size: 14px; }
.hs-model-guides > span { font-weight: 700; color: var(--ink-secondary); }
.hs-model-guides a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--bg-band); color: var(--ink-primary); font-weight: 600; text-decoration: none; }
.hs-model-guides small { font-size: 12px; font-weight: 500; color: var(--ink-muted); }

@media (max-width: 1099px) {
  .hs-apps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hs-tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  /* card rows scroll sideways instead of stacking into a very long page */
  .hs-row, .hs-ba-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .hs-ba-grid { grid-auto-columns: 88%; }
  .hs-row > *, .hs-ba-grid > * { scroll-snap-align: start; }
  .hs-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hs-app { padding: 14px; }
  .hs-tool-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hs-guide-grid { grid-template-columns: minmax(0, 1fr); }
  .hs-guide-lead-title { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-ba-card, .hs-new, .hs-post, .hs-guide-lead, .hs-app { transition: none; }
}

/* Touch screens: 44px targets */
@media (pointer: coarse) {
  .hs-topics a, .hs-model-guides a, .ps-btn, .ps-create, .ps-sugg { min-height: 44px; }
  .ps-btn, .ps-sq { min-width: 44px; }
  .rb-link { display: inline-flex; align-items: center; min-height: 44px; }
  .types-head a, .sp-head > a, .hs-head > a { display: inline-flex; align-items: center; min-height: 44px; }
}
