:root {
  --background: #fbf6ec;
  --paper: #fffdf8;
  --paper-strong: #ffffff;
  --text: #26231f;
  --muted: #6f675d;
  --border: #e7dccb;
  --ink: #15130f;
  --accent-yellow: #fff0bd;
  --accent-blue: #dff0fb;
  --accent-pink: #ffe4e4;
  --accent-green: #e3f5e8;
  --shadow: 0 18px 45px rgba(38, 35, 31, 0.08);
  --shadow-soft: 0 10px 26px rgba(38, 35, 31, 0.06);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 999px;
  --container: 1380px;
  --hero-container: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 240, 189, 0.36), transparent 22%),
    linear-gradient(180deg, #fffaf1 0%, #fbf6ec 48%, #fbf6ec 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: radial-gradient(rgba(38, 35, 31, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.16), transparent 54%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  min-height: 84px;
  padding: 18px clamp(42px, 4vw, 52px);
  background: rgba(255, 253, 248, 0.96);
  border: 0;
  border-bottom: 1px solid rgba(231, 220, 203, 0.9);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 28px rgba(38, 35, 31, 0.08);
  backdrop-filter: blur(14px);
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 0;
}

.logo small,
.footer-logo small {
  font-size: 0.5em;
  font-weight: 900;
}

.logo {
  position: relative;
  width: auto;
  height: auto;
  color: var(--ink);
  background: transparent;
  border-radius: 0;
  font-size: clamp(22px, 2.15vw, 31px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.logo::after {
  content: none;
}

.global-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(20px, 2.3vw, 34px);
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
}

.global-nav a,
.site-footer nav a {
  padding: 4px 0;
}

.global-nav a:hover,
.site-footer nav a:hover {
  color: var(--text);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta,
.button-primary {
  color: var(--paper);
  background: var(--ink);
  box-shadow: none;
}

.button-secondary {
  color: var(--text);
  background: var(--paper);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.section {
  width: min(calc(100% - 96px), var(--container));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  position: relative;
  display: block;
  width: min(calc(100% - 96px), var(--hero-container));
  min-height: max(690px, calc(100svh - 150px));
  padding-top: 74px;
  padding-bottom: 14px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(44vw, 590px);
  max-width: 590px;
  padding-top: 4px;
}

.hero-pill,
.section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--paper);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.hero-pill {
  gap: 14px;
  padding: 10px 28px 10px 20px;
  margin-bottom: 34px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.52);
  border: 1.5px solid var(--ink);
  font-size: 17px;
  font-weight: 850;
}

.hero-pill span {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
}

.hero-pill span::before,
.hero-pill span::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 20px;
  height: 2px;
  content: "";
  background: var(--ink);
  border-radius: 99px;
  transform: translate(-50%, -50%);
}

.hero-pill span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.section-label {
  padding: 6px 12px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: none;
  color: #151515;
  font-size: clamp(62px, 5.4vw, 86px);
  font-weight: 900;
  line-height: 1.18;
}

.hero h1 span {
  display: block;
  width: fit-content;
  white-space: nowrap;
}

.hero h1 .highlight {
  padding-inline: 4px 0;
  background: linear-gradient(transparent 68%, #ffe88f 68%, #ffe88f 84%, transparent 84%);
}

.hero-copy p:not(.hero-pill) {
  max-width: 610px;
  margin-top: 24px;
  color: #28241f;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-actions .button {
  position: relative;
  min-width: 194px;
  min-height: 66px;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px 17px 22px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(38, 35, 31, 0.2);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(38, 35, 31, 0.14);
  font-size: 16px;
}

.hero-button > span {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

.hero-button-search > span {
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.hero-button-search > span::after {
  position: absolute;
  right: -8px;
  bottom: -5px;
  width: 12px;
  height: 3px;
  content: "";
  background: var(--ink);
  border-radius: 99px;
  transform: rotate(45deg);
}

.hero-button-target > span {
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.hero-button-target > span::before,
.hero-button-target > span::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.hero-button-target > span::before {
  inset: 6px;
  border: 2px solid var(--ink);
}

.hero-button-target > span::after {
  inset: 11px;
  background: var(--ink);
}

.hero-button-card > span::before,
.hero-button-card > span::after {
  position: absolute;
  width: 18px;
  height: 22px;
  content: "";
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 3px;
}

.hero-button-card > span::before {
  top: 3px;
  left: 2px;
}

.hero-button-card > span::after {
  right: 2px;
  bottom: 1px;
}

.hero-actions .button::after {
  margin-left: 16px;
  font-size: 22px;
  line-height: 1;
  content: "→";
}

.hero-visual {
  position: absolute;
  z-index: 2;
  right: clamp(-128px, -6.6vw, -60px);
  bottom: 96px;
  padding: 0;
  width: min(63.5vw, 950px);
  pointer-events: none;
}

.hero-visual img,
.issue-image img {
  mix-blend-mode: multiply;
  filter: contrast(1.03) saturate(0.92);
}

.hero-visual img {
  width: 100%;
  margin-inline: auto 0;
}

.about-card,
.cta-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  padding: clamp(28px, 5vw, 54px);
}

.about-card::after {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 76px;
  height: 76px;
  content: "";
  border: 2px solid rgba(38, 35, 31, 0.22);
  border-radius: 24px;
  transform: rotate(8deg);
}

.cta-card::after {
  content: none;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.32;
}

h3 {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.45;
}

.rich-text {
  display: grid;
  gap: 18px;
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading > p {
  margin-top: 14px;
  color: var(--muted);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  max-width: none;
  align-items: end;
}

.issue-grid,
.purpose-grid,
.sample-grid,
.recommend-grid,
.download-grid {
  display: grid;
  gap: 18px;
}

.issue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.issue-card,
.purpose-card,
.sample-card,
.recommend-card,
.download-card {
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.issue-card {
  padding: 14px 14px 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.issue-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.issue-image {
  display: grid;
  place-items: center;
  min-height: 184px;
  margin-bottom: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.2), rgba(251, 246, 236, 0.92));
  border: 1px solid rgba(231, 220, 203, 0.72);
  border-radius: 18px;
}

.issue-image img {
  width: min(78%, 210px);
}

.issue-card h3,
.issue-card p {
  padding-inline: 8px;
}

.issue-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.purpose-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.purpose-card {
  position: relative;
  min-height: 340px;
  padding: 28px;
}

.purpose-card::before {
  position: absolute;
  inset: 14px;
  z-index: 0;
  content: "";
  border: 1px dashed rgba(38, 35, 31, 0.16);
  border-radius: 16px;
  pointer-events: none;
}

.purpose-card > * {
  position: relative;
  z-index: 1;
}

.purpose-blue .purpose-mark,
.tag-blue {
  background: var(--accent-blue);
}

.purpose-pink .purpose-mark,
.tag-pink {
  background: var(--accent-pink);
}

.purpose-green .purpose-mark,
.tag-green {
  background: var(--accent-green);
}

.tag-yellow {
  background: var(--accent-yellow);
}

.purpose-mark {
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: inset 0 0 0 10px rgba(255, 253, 248, 0.52);
}

.purpose-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.example-list,
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.example-list span,
.mini-tags span {
  padding: 5px 9px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.card-preview-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 46px;
  align-items: center;
}

.card-preview-copy p {
  margin-top: 14px;
  color: var(--muted);
}

.note-list {
  display: grid;
  gap: 8px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.note-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 14px;
}

.note-list li::before {
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--accent-yellow);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.sample-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sample-card {
  min-height: 260px;
  padding: 22px;
}

.sample-card-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-no {
  font-size: 13px;
  font-weight: 900;
}

.detail-label {
  padding: 4px 9px;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
}

.purpose-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  border: 1px solid rgba(38, 35, 31, 0.16);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 900;
}

.sample-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.recommend-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.recommend-card {
  position: relative;
  min-height: 256px;
  padding: 24px 18px 22px;
}

.recommend-card::after {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 32px;
  height: 32px;
  content: "";
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--accent-yellow);
}

.recommend-no {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.recommend-card h3 {
  font-size: 18px;
}

.recommend-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.download-section {
  width: min(calc(100% - 32px), 1180px);
  padding: 0;
  color: var(--paper);
  background: transparent;
}

.download-panel {
  padding: clamp(30px, 5vw, 56px);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 34px;
}

.download-copy {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.download-copy p {
  margin: 14px auto 0;
  color: rgba(255, 253, 248, 0.74);
}

.download-section .section-label {
  background: rgba(255, 253, 248, 0.12);
  border-color: rgba(255, 253, 248, 0.24);
  color: var(--paper);
}

.download-section .button-primary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

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

.download-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  color: var(--text);
  background: var(--paper);
  border: 1px solid rgba(255, 253, 248, 0.24);
  border-radius: 26px;
}

.download-feature-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.download-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.download-kicker {
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 11px;
  color: var(--ink);
  background: var(--accent-yellow);
  border: 1px solid rgba(38, 35, 31, 0.14);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.download-feature-copy h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.45;
}

.download-feature-copy > p:not(.download-kicker) {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.8;
}

.download-feature-list {
  display: grid;
  gap: 9px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.download-feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.download-feature-list li::before {
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--ink);
  border-radius: 50%;
}

.download-section .download-feature .button-primary {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.download-card {
  display: flex;
  min-height: 0;
  padding: 16px;
  color: var(--text);
  flex-direction: column;
}

.download-thumb {
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.download-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-card h3 {
  font-size: 16px;
  line-height: 1.55;
}

.download-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.download-card .button {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  padding: 10px 12px;
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  font-size: 12px;
}

.cta-section {
  padding-top: 96px;
}

.cta-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 66px);
  text-align: center;
}

.cta-card .section-label {
  margin-inline: auto;
}

.cta-card p {
  max-width: 730px;
  margin: 16px auto 0;
  color: var(--muted);
}

.cta-card .button {
  margin-top: 30px;
}

.cta-card .cta-button-large {
  min-height: 72px;
  padding: 20px 36px;
  font-size: 18px;
  border-radius: 999px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
  justify-items: center;
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 42px 0 36px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-logo {
  margin-bottom: 8px;
  font-size: 26px;
}

.site-footer p,
.site-footer small {
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  justify-content: center;
}

.site-footer small {
  grid-column: auto;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr;
    min-height: auto;
    padding: 14px 22px;
  }

  .global-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .header-cta {
    justify-self: end;
  }

  .hero,
  .about-card,
  .split-heading,
  .card-preview-section,
  .download-section,
  .download-feature {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    width: min(calc(100% - 32px), var(--container));
    padding-top: 58px;
    overflow: visible;
  }

  .hero-copy {
    width: min(100%, 680px);
  }

  .hero-visual {
    position: relative;
    right: auto;
    bottom: auto;
    order: 2;
    width: min(100%, 900px);
    margin-right: 0;
    margin-top: 24px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero h1 span {
    white-space: normal;
  }

  .issue-grid,
  .purpose-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 8px;
    width: min(calc(100% - 20px), var(--container));
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(231, 220, 203, 0.9);
    border-radius: 28px;
  }

  .logo {
    font-size: 26px;
  }

  .logo::after {
    content: none;
  }

  .global-nav {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .section {
    width: min(calc(100% - 24px), var(--container));
    padding: 58px 0;
  }

  .finder-section {
    width: min(calc(100% - 24px), var(--container));
    padding-top: 28px;
    padding-bottom: 28px;
  }

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

  .hero {
    width: min(calc(100% - 24px), var(--container));
    padding-top: 42px;
    gap: 20px;
    overflow: visible;
  }

  .hero h1 {
    max-width: 9em;
    font-size: clamp(40px, 13vw, 56px);
    line-height: 1.18;
  }

  .hero h1 span {
    width: auto;
  }

  .hero-pill {
    padding: 9px 16px;
    margin-bottom: 24px;
    font-size: 13px;
  }

  .hero-copy p:not(.hero-pill) {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.8;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
    margin-top: 26px;
  }

  .hero-actions .button {
    min-height: 56px;
    font-size: 15px;
  }

  .hero-visual {
    position: relative;
    width: 112%;
    padding: 8px 0 0;
    margin-right: -6%;
    margin-top: 18px;
  }

  .about-card,
  .purpose-card,
  .sample-card,
  .download-card,
  .cta-card {
    border-radius: 20px;
  }

  .about-card {
    gap: 24px;
    padding: 26px 22px;
  }

  .issue-grid,
  .purpose-grid,
  .sample-grid,
  .recommend-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-feature {
    padding: 14px;
    border-radius: 20px;
  }

  .download-feature-copy {
    padding: 4px 2px 2px;
  }

  .issue-image {
    min-height: 164px;
  }

  .purpose-card,
  .recommend-card,
  .download-card {
    min-height: auto;
  }

  .download-section {
    width: min(calc(100% - 24px), var(--container));
    padding: 0;
    border-radius: 24px;
  }

  .download-panel {
    padding: 30px 18px;
    border-radius: 24px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    width: min(calc(100% - 24px), var(--container));
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

.finder-section {
  width: min(calc(100% - 96px), var(--container));
  padding-top: 8px;
  padding-bottom: 36px;
}

.sort-panel {
  padding: clamp(18px, 2.4vw, 28px);
  background: rgba(214, 207, 195, 0.82);
  border: 1px solid rgba(199, 189, 173, 0.95);
  border-radius: 24px;
}

.compact-heading,
.cards-head {
  display: block;
  max-width: 980px;
  margin-bottom: 22px;
}

.compact-heading h2,
.cards-head h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  white-space: nowrap;
}

.compact-heading p,
.cards-head p {
  max-width: 980px;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.75;
}

.finder-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(38, 35, 31, 0.12);
}

.reset-filter {
  min-height: 42px;
  padding: 9px 16px;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.reset-filter.is-active,
.axis-button.is-active,
.set-button.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

#result-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.axis-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.axis-group {
  padding: 0;
}

.axis-group h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.axis-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.purpose-axis-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.purpose-axis-list .axis-button:nth-child(1) {
  grid-column: 1;
}

.purpose-axis-list .axis-button:nth-child(2) {
  grid-column: 2;
}

.purpose-axis-list .axis-button:nth-child(3) {
  grid-column: 3;
}

.set-axis-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.axis-button,
.set-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--text);
  text-align: center;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.axis-button:hover,
.set-button:hover {
  transform: translateY(-2px);
  border-color: rgba(38, 35, 31, 0.34);
}

.axis-button-blue {
  background: var(--accent-blue);
}

.axis-button-pink {
  background: var(--accent-pink);
}

.axis-button-green {
  background: var(--accent-green);
}

.axis-button strong,
.set-button strong {
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.axis-button span,
.set-button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.axis-button.is-active span,
.set-button.is-active small {
  color: rgba(255, 253, 248, 0.72);
}

.cards-section {
  padding-top: 28px;
}

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

.action-card {
  min-height: 372px;
  padding: 0 0 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.action-card:hover,
.action-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(38, 35, 31, 0.32);
  box-shadow: var(--shadow);
  outline: none;
}

.action-illustration {
  position: relative;
  display: grid;
  place-items: center;
  height: 172px;
  margin-bottom: 16px;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 0;
}

.action-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
}

.visual-no {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 34px;
  padding-inline: 8px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 0 0 9px 0;
  font-size: 13px;
  font-weight: 900;
}

.action-card .sample-card-head,
.action-card .purpose-tag,
.action-card h3,
.action-card p,
.action-card .mini-tags {
  margin-inline: 18px;
}

.action-card .sample-card-head {
  margin-bottom: 8px;
  justify-content: flex-start;
}

.action-card .purpose-tag {
  margin-inline: 0;
}

.action-card h3 {
  min-height: 52px;
  margin-top: 6px;
  font-size: 19px;
}

.action-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
}

.action-card .mini-tags {
  margin-top: 12px;
}

.action-card .mini-tags span {
  padding: 4px 8px;
  color: #5f5a52;
  background: #f2f2f0;
  border: 1px solid #dedbd5;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
}

.set-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.set-button {
  grid-column: span 2;
  min-height: 46px;
  padding: 10px 14px;
}

.set-button:nth-child(4) {
  grid-column: 2 / span 2;
}

.set-button:nth-child(5) {
  grid-column: 4 / span 2;
}

.card-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.card-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 19, 15, 0.42);
  border: 0;
  cursor: pointer;
}

.modal-panel {
  position: relative;
  width: min(100%, 860px);
  max-height: min(820px, calc(100svh - 44px));
  overflow: auto;
  padding: 0 0 clamp(26px, 5vw, 44px);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(21, 19, 15, 0.24);
  transform: translateY(14px) scale(0.98);
  transition: transform 180ms ease;
}

.card-modal.is-open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-visual {
  display: grid;
  place-items: center;
  height: clamp(300px, 44vw, 430px);
  margin-bottom: clamp(24px, 4vw, 34px);
  overflow: hidden;
  background: #fff;
}

.modal-visual img {
  width: min(100%, 760px);
  height: 100%;
  max-height: 410px;
  object-fit: contain;
  mix-blend-mode: normal;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-inline: clamp(26px, 5vw, 44px);
  margin-bottom: 18px;
}

.modal-meta span {
  padding: 5px 10px;
  background: var(--accent-yellow);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 900;
}

.modal-meta #modal-no {
  color: var(--paper);
  background: var(--ink);
}

.modal-meta #modal-purpose {
  color: var(--text);
  border: 1px solid rgba(38, 35, 31, 0.16);
}

.modal-meta #modal-purpose.tag-blue {
  background: var(--accent-blue);
}

.modal-meta #modal-purpose.tag-pink {
  background: var(--accent-pink);
}

.modal-meta #modal-purpose.tag-green {
  background: var(--accent-green);
}

.modal-meta #modal-purpose.tag-yellow {
  background: var(--accent-yellow);
}

.modal-panel h2 {
  margin-inline: clamp(26px, 5vw, 44px);
  padding-right: 30px;
  font-size: clamp(28px, 4vw, 42px);
}

.modal-panel > p {
  margin-inline: clamp(26px, 5vw, 44px);
  margin-top: 14px;
  color: var(--muted);
  font-weight: 650;
}

.modal-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px clamp(26px, 5vw, 44px);
}

.modal-details div {
  padding: 14px;
  background: #fffaf1;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.modal-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.modal-details dd {
  margin: 4px 0 0;
  font-weight: 850;
  line-height: 1.5;
}

.modal-point {
  margin-inline: clamp(26px, 5vw, 44px);
  padding: 18px;
  background: var(--accent-green);
  border-radius: 18px;
}

.modal-point h3 {
  font-size: 17px;
}

.modal-point p {
  margin-top: 8px;
  color: var(--text);
  font-weight: 650;
}

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

  .axis-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .set-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .set-button,
  .set-button:nth-child(4),
  .set-button:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .compact-heading,
  .cards-head {
    max-width: none;
  }

  .compact-heading h2,
  .cards-head h2 {
    white-space: normal;
  }

  .axis-list,
  .purpose-axis-list,
  .set-axis-list,
  .action-grid,
  .set-list,
  .modal-details {
    grid-template-columns: 1fr;
  }

  .purpose-axis-list .axis-button:nth-child(1),
  .purpose-axis-list .axis-button:nth-child(2),
  .purpose-axis-list .axis-button:nth-child(3) {
    grid-column: auto;
  }

  .finder-section {
    padding-top: 20px;
  }

  .sort-panel {
    padding: 16px;
  }

  .action-card {
    min-height: auto;
  }

  .action-illustration {
    height: 150px;
  }
}
