/* ToolMagic homepage (workflow storefront). Builds on tokens in style.css. */

/* ============ NAV ============ */
.tm-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.tm-nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 24px;
}
.tm-logo {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700; font-size: 20px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.tm-logo:hover { text-decoration: none; }
.tm-logo-mark { color: var(--gold); font-size: 18px; }
.tm-nav-links { display: flex; gap: 22px; margin-left: auto; }
.tm-nav-links a { color: var(--ink-2); font-size: 14px; font-weight: 500; }

/* ============ BUTTONS ============ */
.tm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 16px;
  padding: 14px 24px; border-radius: 10px;
  border: 1px solid var(--accent);
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 8px 20px -10px rgba(20, 83, 60, 0.6);
}
.tm-btn:hover { background: var(--accent-2); text-decoration: none; transform: translateY(-1px); }
.tm-btn-sm { padding: 9px 16px; font-size: 14px; box-shadow: none; }
.tm-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.tm-btn-ghost:hover { background: var(--paper-2); }
.tm-btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: none; }
.tm-btn-light:hover { background: var(--highlight); }
.tm-link { font-weight: 600; font-size: 15px; color: var(--accent); }

/* ============ HERO ============ */
.tm-hero { padding: 80px 0 56px; text-align: center; }
.tm-hero-title {
  font-size: clamp(36px, 5.6vw, 62px);
  line-height: 1.05; font-weight: 700;
  max-width: 880px; margin: 0 auto 20px;
}
.tm-hero-title em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 60%, var(--highlight) 60%);
  padding: 0 6px;
}
.tm-hero-sub {
  font-size: 19px; color: var(--ink-2);
  max-width: 680px; margin: 0 auto 32px;
}
.tm-hero-sub b { color: var(--ink); }
.tm-hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.tm-pillars {
  list-style: none; padding: 0; margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 960px; text-align: left;
}
.tm-pillars li {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.tm-pillar-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--highlight); color: var(--gold);
  font-size: 20px; font-weight: 700;
}
.tm-pillars b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.tm-pillars span:not(.tm-pillar-icon) { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ============ SECTIONS ============ */
.tm-section { padding: 72px 0; }
.tm-section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ============ BADGES ============ */
.tm-card-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tm-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: var(--paper-2); color: var(--muted); border: 1px solid var(--line);
}
.tm-badge-live { background: #E3F1EA; color: var(--accent); border-color: #C3E0D1; }
.tm-badge-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.tm-badge-ghost { background: transparent; border-style: dashed; }
.tm-card-kicker { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ============ FEATURED WORKFLOW ============ */
.tm-feature {
  margin-top: 36px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 40px; box-shadow: var(--shadow);
}
.tm-feature-title { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.05; margin-bottom: 6px; }
.tm-feature-tag { font-family: 'Source Serif 4', serif; font-style: italic; font-size: 20px; color: var(--ink-2); margin: 0 0 14px; }
.tm-feature-desc { color: var(--ink-2); margin: 0 0 18px; }
.tm-checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.tm-checks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-2); }
.tm-checks li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.tm-checks b { color: var(--ink); }
.tm-price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 20px;
}
.tm-price { display: flex; align-items: center; gap: 14px; }
.tm-price-amt { font-family: 'Source Serif 4', serif; font-size: 44px; font-weight: 700; line-height: 1; color: var(--ink); }
.tm-price-note { font-size: 13px; color: var(--muted); line-height: 1.4; max-width: 230px; }
.tm-feature-ctas { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tm-fineprint { font-size: 13px; color: var(--muted); margin: 16px 0 0; }

/* App mock */
.tm-feature-visual { display: flex; justify-content: center; }
.tm-mock {
  width: 100%; max-width: 420px;
  background: var(--ink); color: #EDE7D9;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.45);
  transform: rotate(1.2deg);
}
.tm-mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #2A2823; }
.tm-mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: #4A463D; }
.tm-mock-bar em { font-style: normal; font-size: 12px; color: #948E80; margin-left: 8px; }
.tm-mock-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 18px 10px; }
.tm-mock-head small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #948E80; }
.tm-mock-head b { font-family: 'Source Serif 4', serif; font-size: 17px; line-height: 1.25; color: #fff; }
.tm-mock-score {
  flex-shrink: 0; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  border: 3px solid #4FB286; color: #fff; font-weight: 700; font-size: 20px; line-height: 1;
}
.tm-mock-score small { font-size: 9px; font-weight: 500; color: #948E80; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.tm-mock-steps { display: flex; gap: 6px; padding: 6px 18px 0; flex-wrap: wrap; }
.tm-mock-steps span { font-size: 11px; padding: 4px 9px; border-radius: 999px; background: #2F2C26; color: #948E80; }
.tm-mock-steps .done { color: #9ED3B9; }
.tm-mock-steps .active { background: #4FB286; color: var(--ink); font-weight: 600; }
.tm-mock-wave { padding: 14px 18px 4px; color: var(--gold); }
.tm-mock-wave svg { width: 100%; height: 56px; display: block; }
.tm-mock-wave small { font-size: 11px; color: #948E80; }
.tm-mock-list { list-style: none; margin: 0; padding: 10px 18px 20px; display: grid; gap: 7px; font-size: 13px; }
.tm-mock-list span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 700; margin-right: 6px; }
.tm-mock-list .ok { background: #224A3A; color: #9ED3B9; }
.tm-mock-list .warn { background: #4D3A16; color: #F0C36B; }

/* ============ COMING SOON GRID ============ */
.tm-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tm-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column;
}
.tm-card-soon { background: rgba(255,255,255,.65); }
.tm-card-next { background: transparent; border-style: dashed; }
.tm-card-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: var(--paper-2); color: var(--ink-2);
}
.tm-card-icon svg { width: 30px; height: 30px; }
.tm-card-title { font-size: 22px; line-height: 1.15; margin-bottom: 8px; }
.tm-card-desc { font-size: 15px; color: var(--ink-2); margin: 0 0 16px; flex: 1; }
.tm-card-foot { font-size: 13px; color: var(--muted); margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }

/* ============ BYOK ============ */
.tm-byok { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tm-byok-p { color: var(--ink-2); font-size: 17px; margin: 0 0 14px; }
.tm-byok-p b { color: var(--ink); }
.tm-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tm-compare-col { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.tm-compare-col h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.tm-compare-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.tm-compare-col li { padding-left: 22px; position: relative; }
.tm-compare-them { background: var(--paper); color: var(--muted); }
.tm-compare-them h4 { color: var(--muted); }
.tm-compare-them li::before { content: '✕'; position: absolute; left: 0; color: #B0573F; font-weight: 700; }
.tm-compare-us { background: var(--ink); color: #EDE7D9; border-color: var(--ink); }
.tm-compare-us h4 { color: #9ED3B9; }
.tm-compare-us li::before { content: '✓'; position: absolute; left: 0; color: #4FB286; font-weight: 700; }

.tm-steps {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.tm-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.tm-steps li > span {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
}
.tm-steps b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }

/* ============ FAQ ============ */
.tm-faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.tm-faq:first-of-type { margin-top: 24px; border-top: 1px solid var(--line); }
.tm-faq summary {
  cursor: pointer; list-style: none;
  padding: 16px 32px 16px 0; position: relative;
  font-weight: 600; font-size: 17px; color: var(--ink);
}
.tm-faq summary::-webkit-details-marker { display: none; }
.tm-faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 12px;
  font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s;
}
.tm-faq[open] summary::after { transform: rotate(45deg); }
.tm-faq p { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; }

/* ============ FOOTER ============ */
.tm-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .tm-feature { grid-template-columns: 1fr; padding: 28px; }
  .tm-feature-visual { order: -1; }
  .tm-mock { transform: none; }
  .tm-grid { grid-template-columns: 1fr 1fr; }
  .tm-byok { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  .tm-nav-links { display: none; }
  .tm-nav-inner { justify-content: space-between; padding: 10px 16px; }
  .container { padding: 0 16px; }
  .tm-hero { padding: 48px 0 40px; }
  .tm-hero-sub { font-size: 17px; }
  .tm-pillars, .tm-grid, .tm-steps, .tm-compare { grid-template-columns: 1fr; }
  .tm-section { padding: 52px 0; }
  .tm-feature { padding: 22px 18px; border-radius: 16px; }
  .tm-price-row { flex-direction: column; align-items: flex-start; }
  .tm-feature-ctas { width: 100%; }
  .tm-feature-ctas .tm-btn { width: 100%; }
  .tm-foot { justify-content: center; text-align: center; }
}
