@charset "UTF-8";

.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] { color: #e67700; background: rgba(230, 119, 0, .07); }

.tools-main {
  width: min(100% - 2rem, 1200px);
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  margin: 0 auto;
  color: #5c4444;
}

.tools-hero { max-width: 760px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); text-align: center; }
.tools-hero__eyebrow { margin: 0 0 .5rem; color: #e67700; font-size: .8rem; font-weight: 900; letter-spacing: .18em; }
.tools-hero h1 { margin: 0 0 1rem; color: #966464; font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.25; }
.tools-hero p { margin: 0; line-height: 1.9; }

.tools-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.5rem); align-items: stretch; }
.tool-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid rgba(150, 100, 100, .18); border-radius: 20px; box-shadow: 0 16px 36px rgba(70, 47, 44, .09); }
.tool-card__preview { display: grid; min-height: 250px; padding: 1rem; place-items: center; background-color: #f4ece8; background-image: linear-gradient(45deg, rgba(150, 100, 100, .08) 25%, transparent 25%), linear-gradient(-45deg, rgba(150, 100, 100, .08) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(150, 100, 100, .08) 75%), linear-gradient(-45deg, transparent 75%, rgba(150, 100, 100, .08) 75%); background-position: 0 0, 0 12px, 12px -12px, -12px 0; background-size: 24px 24px; }
.tool-card__preview video { width: 100%; max-height: 360px; pointer-events: none; background: #fff; border-radius: 12px; object-fit: contain; box-shadow: 0 8px 22px rgba(70, 47, 44, .12); user-select: none; -webkit-user-drag: none; }
.tool-card__preview--placeholder { display: flex; flex-direction: column; gap: 1rem; color: #966464; background-color: #fff7ef; }
.tool-card__preview-note { font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.roulette-placeholder { position: relative; display: block; width: 132px; aspect-ratio: 1; background: conic-gradient(#fad18f 0 60deg, #fff 60deg 120deg, #f2b782 120deg 180deg, #fff 180deg 240deg, #ff9d6d 240deg 300deg, #fff 300deg); border: 8px solid #fff; border-radius: 50%; box-shadow: 0 8px 22px rgba(70, 47, 44, .14), 0 0 0 2px rgba(150, 100, 100, .16); }
.roulette-placeholder::before { position: absolute; top: -17px; left: 50%; width: 0; height: 0; border: 12px solid transparent; border-top: 0; border-bottom-color: #966464; content: ""; transform: translateX(-50%); }
.roulette-placeholder span { position: absolute; inset: 50% auto auto 50%; width: 34px; aspect-ratio: 1; background: #fff; border: 3px solid #f2b782; border-radius: 50%; transform: translate(-50%, -50%); }
.tool-card__body { display: flex; flex: 1; flex-direction: column; padding: clamp(1.25rem, 3vw, 1.75rem); }
.tool-card__labels { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.tool-card__labels span { padding: .3rem .6rem; color: #966464; font-size: .72rem; font-weight: 800; background: #fff7ef; border: 1px solid rgba(230, 119, 0, .2); border-radius: 999px; }
.tool-card h2 { margin: 0 0 1rem; color: #7f5555; font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.45; }
.tool-card p { margin: 0 0 1rem; line-height: 1.8; }
.tool-card__button { display: flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: .85rem 1rem; margin-top: auto; color: #fff; font-weight: 900; text-align: center; text-decoration: none; background: #e67700; border-radius: 12px; box-shadow: 0 5px 12px rgba(180, 93, 0, .2); transition: background-color .2s ease, transform .2s ease; }
.tool-card__button:hover { background: #ff901a; transform: translateY(-2px); }
.tool-card__button:focus-visible { outline: 3px solid rgba(230, 119, 0, .42); outline-offset: 3px; }
.tool-card__button--disabled { color: #7d6b67; cursor: default; background: #eee7e3; box-shadow: none; }

@media (min-width: 901px) {
  .tools-main { padding: clamp(.875rem, 2vh, 1.5rem) 0; }
  .tools-hero { margin-bottom: clamp(.75rem, 1.6vh, 1.125rem); }
  .tools-hero__eyebrow { margin-bottom: .2rem; font-size: .72rem; }
  .tools-hero h1 { margin-bottom: .4rem; font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.15; }
  .tools-hero p { font-size: .9rem; line-height: 1.55; }
  .tools-list { gap: 1rem; }
  .tool-card__preview { min-height: 0; padding: .6rem; }
  .tool-card__preview video { width: 100%; height: clamp(125px, 18vh, 170px); max-height: none; }
  .tool-card__preview--placeholder { gap: .5rem; height: calc(clamp(125px, 18vh, 170px) + 1.2rem); }
  .roulette-placeholder { width: clamp(84px, 12vh, 112px); border-width: 6px; }
  .roulette-placeholder::before { top: -14px; border-width: 10px; border-top-width: 0; }
  .roulette-placeholder span { width: 28px; }
  .tool-card__preview-note { font-size: .6rem; }
  .tool-card__body { padding: .8rem 1rem .9rem; }
  .tool-card__labels { gap: .3rem; margin-bottom: .45rem; }
  .tool-card__labels span { padding: .2rem .5rem; font-size: .66rem; }
  .tool-card h2 { margin-bottom: .4rem; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.3; }
  .tool-card p { margin-bottom: .65rem; font-size: .84rem; line-height: 1.55; }
  .tool-card__button { min-height: 2.65rem; padding: .55rem .75rem; }
  .tools-page .p-footer { padding: .4rem 0; }
  .tools-page .p-footer__text { padding: .1rem 0; line-height: 1.35; }
}

@media (max-width: 900px) {
  .tools-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card--coming-soon { grid-column: 1 / -1; width: min(100%, 560px); justify-self: center; }
}

@media (max-width: 600px) {
  .tools-main { width: min(100% - 1.25rem, 1200px); padding-top: 2rem; }
  .tools-list { grid-template-columns: 1fr; }
  .tool-card--coming-soon { grid-column: auto; width: auto; }
  .tool-card__preview { min-height: 0; padding: .75rem; }
  .tool-card__preview video { max-height: none; }
  .tools-hero br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card__button { transition: none; }
}
