/* Free tools (tools, saint-quiz, name-day, faith-check, confirmation-name).
   Builds on styles.css tokens and the h- homepage layer; adds only t- classes. */

.t-hero { padding: 48px 0 88px; }
.t-hero .h-hero-grid { align-items: start; grid-template-columns: 1fr 1fr; }
.t-hero h1 { font-size: clamp(46px, 6.4vw, 84px); }
.t-copy { position: relative; z-index: 1; padding-top: 32px; }
.t-copy .h-lede { font-size: 19px; line-height: 1.55; color: rgba(26,20,16,0.72); max-width: 470px; }
.t-meta { margin-top: 22px; font-size: 14px; color: rgba(26,20,16,0.62); }
.t-glowy { width: 150px; margin-top: 28px; animation: h-bob 6s ease-in-out infinite; }

.t-navy { background: radial-gradient(50% 50% at 80% 30%, rgba(212,169,76,0.22), transparent 70%), linear-gradient(180deg, #1E2E48 0%, #141F33 100%); color: #F6EDDD; }
.t-navy .h-hero-sky { display: none; }
.t-navy .h-eyebrow { color: #D4A94C; }
.t-navy h1 em { color: #D4A94C; }
.t-navy .t-copy .h-lede, .t-navy .t-meta { color: rgba(246,237,221,0.78); }
.t-sage { background: radial-gradient(55% 55% at 78% 40%, rgba(255,255,255,0.55), transparent 70%), radial-gradient(45% 45% at 5% 95%, rgba(212,169,76,0.25), transparent 70%), linear-gradient(180deg, #E6EEDD 0%, #DCE6D3 100%); }
.t-sage .h-hero-sky { display: none; }
.t-sage .h-eyebrow { color: #3F6B4A; }
.t-sage h1 em { color: #3F6B4A; }

/* ---------- Tool card ---------- */
.t-card {
  position: relative; z-index: 1; background: #FFF8EE; color: var(--h-ink);
  border-radius: 30px; padding: 28px; min-height: 420px;
  box-shadow: 0 30px 60px -24px rgba(200,90,20,0.45);
}
.t-navy .t-card { background: #FCF7EE; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
.t-sage .t-card { box-shadow: 0 30px 60px -28px rgba(30,60,40,0.55); }
.t-step { display: flex; flex-direction: column; gap: 16px; animation: t-in 320ms var(--ease-out); }
@keyframes t-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.t-step:focus { outline: none; }
.t-kicker { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--h-terracotta-text); }
.t-bar { height: 8px; border-radius: 4px; background: #F3E6D6; overflow: hidden; }
.t-bar > i { display: block; height: 100%; border-radius: 4px; background: var(--h-flame); transition: width 320ms var(--ease-out); }
.t-q { font-family: var(--h-display); font-weight: 600; font-size: 25px; line-height: 1.22; margin: 0; }
.t-opts { display: grid; gap: 10px; }
.t-opt {
  min-height: 52px; padding: 12px 16px; border-radius: 14px; text-align: left;
  border: 2px solid transparent; background: #F6EDDD; color: var(--h-ink);
  font: inherit; font-size: 16px; cursor: pointer; transition: transform 120ms var(--ease-out), border-color 120ms;
}
.t-opt:hover { transform: translateY(-1px); border-color: rgba(198,107,60,0.4); }
.t-opt:focus-visible { outline: 3px solid var(--h-gold); outline-offset: 2px; }
.t-opt[aria-pressed="true"] { border-color: var(--h-terracotta); background: var(--h-peach); font-weight: 600; }
.t-opt.is-right { border-color: var(--h-green); background: #E3EEDF; font-weight: 600; }
.t-opt.is-wrong { border-color: #B4472A; background: #F7DED6; }
.t-opt[disabled] { cursor: default; transform: none; }
.t-feedback { margin: 0; font-size: 15px; line-height: 1.5; padding: 12px 14px; border-radius: 14px; background: #F6EDDD; }
.t-feedback strong { color: var(--h-green); }
.t-feedback.is-wrong strong { color: #B4472A; }

.t-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0; background: var(--h-ink); color: #F6EDDD; font: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer; text-decoration: none; box-shadow: 0 12px 30px -12px rgba(26,20,16,0.5);
}
.t-btn:focus-visible { outline: 3px solid var(--h-gold); outline-offset: 3px; }
.t-btn.terracotta { background: var(--h-terracotta); color: #FFF8EE; }
.t-btn.ghost { background: transparent; color: var(--h-ink); box-shadow: none; border: 1.5px solid rgba(26,20,16,0.16); }
.t-btn[disabled] { opacity: 0.45; cursor: default; }
.t-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Name input */
.t-field { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 20px; border-radius: 999px; background: #FFFFFF; border: 1.5px solid rgba(26,20,16,0.12); }
.t-field:focus-within { border-color: var(--h-terracotta); }
.t-field input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; font-family: var(--h-display); font-weight: 600; font-size: 22px; color: var(--h-ink); outline: none; }
.t-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.t-chip { padding: 9px 14px; border-radius: 999px; border: 0; background: #F6EDDD; font: inherit; font-size: 14px; font-weight: 600; color: var(--h-ink); cursor: pointer; }
.t-chip:hover { background: var(--h-peach); }

/* Result */
.t-portrait { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; display: block; }
.t-mono { width: 100%; aspect-ratio: 4 / 3; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: radial-gradient(60% 60% at 50% 40%, rgba(240,138,44,0.35), transparent 70%), #1E2E48; color: var(--h-gold); font-family: var(--h-display); font-style: italic; font-size: 96px; }
.t-name { font-family: var(--h-display); font-weight: 700; font-size: 34px; line-height: 1.05; margin: 0; }
.t-date { font-size: 15px; color: rgba(26,20,16,0.64); }
.t-text { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(26,20,16,0.82); }
.t-big { display: flex; align-items: baseline; gap: 10px; font-family: var(--h-display); }
.t-big strong { font-size: 56px; line-height: 1; color: #C2570F; }
.t-big span { font-size: 22px; font-weight: 600; }

.t-score { display: flex; align-items: center; gap: 18px; }
.t-ring { width: 104px; height: 104px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.t-ring > span { width: 82px; height: 82px; border-radius: 50%; background: #FFF8EE; display: flex; align-items: center; justify-content: center; font-family: var(--h-display); font-weight: 700; font-size: 28px; color: #C2570F; }
.t-cats { display: grid; gap: 12px; font-size: 15px; }
.t-cat > div:first-child { display: flex; justify-content: space-between; margin-bottom: 6px; }
.t-cat .t-bar > i { background: var(--h-green); }
.t-cat.is-low .t-bar > i { background: var(--h-terracotta); }
.t-course { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: #1E2E48; color: #F6EDDD; }
.t-course img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; flex: none; }
.t-course small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--h-gold); }
.t-course strong { font-family: var(--h-display); font-size: 20px; }

.t-three { display: grid; gap: 12px; }
.t-pick { display: flex; gap: 14px; align-items: center; }
.t-pick img, .t-pick .t-mini { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; flex: none; }
.t-pick .t-mini { display: flex; align-items: center; justify-content: center; background: #1E2E48; color: var(--h-gold); font-family: var(--h-display); font-style: italic; font-size: 32px; }
.t-pick strong { display: block; font-family: var(--h-display); font-size: 20px; line-height: 1.15; }
.t-pick small { display: block; font-size: 13px; font-weight: 600; color: var(--h-terracotta-text); margin: 2px 0 4px; }
.t-pick p { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(26,20,16,0.75); }

.t-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Hub ---------- */
.t-hub { padding: 64px 0 96px; position: relative; overflow: hidden; }
.t-hub .h-head { text-align: center; position: relative; z-index: 1; }
.t-hub .h-head h1 { font-family: var(--h-display); font-weight: 700; font-size: clamp(44px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 18px; }
.t-hub .h-head p { margin: 0 auto; }
.t-tiles { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.t-tile { display: flex; flex-direction: column; background: #FFF8EE; border-radius: 24px; padding: 8px 8px 20px; color: var(--h-ink); box-shadow: 0 20px 40px -18px rgba(90,40,20,0.45); transition: transform .3s var(--ease-out); }
.t-tile:hover { transform: translateY(-4px); }
.t-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; }
.t-tile .t-tile-art { aspect-ratio: 1 / 1; border-radius: 18px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.t-tile .t-tile-art img { width: 46%; height: auto; aspect-ratio: auto; border-radius: 0; margin-bottom: -6px; }
.t-tile span { display: block; padding: 16px 10px 0; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--h-terracotta-text); }
.t-tile strong { display: block; padding: 6px 10px 0; font-family: var(--h-display); font-size: 22px; line-height: 1.15; }
.t-tile p { margin: 0; padding: 8px 10px 0; font-size: 15px; line-height: 1.45; color: rgba(26,20,16,0.72); }
.t-tile.navy { background: #1E2E48; color: #F6EDDD; }
.t-tile.navy span { color: var(--h-gold); }
.t-tile.navy p { color: rgba(246,237,221,0.78); }

.t-home { padding: 96px 0; background: linear-gradient(180deg, #F6EDDD 0%, #FBEFD9 100%); }
.t-home .t-tiles { margin-top: 40px; }

/* ---------- Name day calendar ---------- */
.t-namelist { padding: 88px 0; }
.t-months { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.t-month { background: #FFF8EE; border-radius: 22px; padding: 22px 24px; box-shadow: 0 14px 30px -20px rgba(90,40,20,0.4); }
.t-month h3 { font-family: var(--h-display); font-weight: 700; font-size: 24px; margin: 0 0 10px; color: var(--h-terracotta-text); }
.t-month ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.t-month li { font-size: 14px; line-height: 1.45; color: rgba(26,20,16,0.82); }
.t-month li b { display: inline-block; min-width: 24px; font-family: var(--h-display); color: var(--h-ink); }
.t-month small { color: rgba(26,20,16,0.6); }

/* ---------- Explainer ---------- */
.t-explain { padding: 88px 0; background: #FCF7EE; }
.t-explain .h-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.t-explain h2 { font-family: var(--h-display); font-weight: 700; font-size: clamp(32px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
.t-explain h2 em { font-style: italic; font-weight: 400; color: var(--h-terracotta); display: block; }
.t-explain .t-prose p { margin: 0 0 16px; font-size: 17px; line-height: 1.65; color: rgba(26,20,16,0.8); }
.t-explain .t-prose a { color: var(--h-terracotta-text); text-decoration: underline; }
.t-more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.t-more a { padding: 10px 16px; border-radius: 999px; background: #FFFFFF; font-size: 14px; font-weight: 600; box-shadow: 0 6px 16px -8px rgba(26,20,16,0.3); }

.fn-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }

@media (max-width: 960px) {
  .t-hero .h-hero-grid, .t-explain .h-wrap { grid-template-columns: 1fr; gap: 28px; }
  .t-copy { padding-top: 8px; }
  .t-glowy { display: none; }
  .t-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .t-card { padding: 20px; border-radius: 24px; }
  .t-tiles { grid-template-columns: 1fr; }
  .t-months { grid-template-columns: 1fr; }
  .t-q { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .t-step, .t-glowy { animation: none; }
}
@media print {
  .sf-nav, .t-copy, .t-explain, .h-final, .sf-footer, .t-noprint, .campaign-consent, .h-hero-sky { display: none !important; }
  .t-hero, .t-sage { background: none !important; padding: 0; }
  .t-hero .h-hero-grid { grid-template-columns: 1fr; }
  .t-card { box-shadow: none; padding: 0; background: none; }
}
