/* "See your morning": pick a business type, watch an example Daily Brief build, tap Send.
   Lives on the Agents page (services/ai-agents). Driven by assets/js/brief-demo.js. The brief card is the light Daily Brief
   product look on purpose, sitting on the dark site like a screen. */

.try-it {
  background: var(--midnight-soft);
  padding: clamp(5rem, 9vw, 7.5rem) 0;
  border-top: 1px solid var(--line-soft);
  position: relative;
  overflow: clip;
}
.try-it::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 45% 50% at 78% 55%, rgba(78,203,160,0.07), transparent 70%);
  pointer-events: none;
}
.try-it .container, .try-it .wrap { position: relative; }

.bd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.bd-copy { min-width: 0; }
.try-it h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--off-white);
  margin: 0 0 18px;
  text-wrap: balance;
}
.try-it h2 em { font-style: normal; color: var(--spearmint); }
.bd-lede {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(232,244,240,0.72);
  max-width: 46ch;
  margin: 0 0 28px;
}

/* business picker */
.bd-pick-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232,244,240,0.5);
  margin: 0 0 12px;
}
.bd-picks { display: flex; flex-wrap: wrap; gap: 10px; }
.bd-pick {
  font: 600 14px 'Figtree', sans-serif;
  color: var(--off-white);
  background: transparent;
  border: 1px solid rgba(78,203,160,0.28);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.bd-pick:hover { border-color: var(--spearmint); transform: translateY(-1px); }
.bd-pick[aria-selected="true"] { background: var(--spearmint); border-color: var(--spearmint); color: var(--midnight); }
.bd-pick:focus-visible, .bd-send:focus-visible, .bd-cta:focus-visible { outline: 2px solid var(--spearmint); outline-offset: 3px; }

/* the rule that appears after the first Send */
.bd-rule {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(78,203,160,0.35);
  background: rgba(78,203,160,0.07);
  border-radius: 16px;
  padding: 16px 18px;
  max-width: 46ch;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.bd-rule.on { opacity: 1; transform: none; }
.bd-rule[hidden] { display: flex; visibility: hidden; } /* keeps its space so the copy doesn't jump when it appears */
.bd-rule-ic {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--spearmint); color: var(--midnight);
  display: grid; place-items: center; font-size: 14px; font-weight: 800;
}
.bd-rule b { display: block; color: var(--off-white); font-size: 15px; margin-bottom: 2px; }
.bd-rule span { font-size: 14px; line-height: 1.5; color: rgba(232,244,240,0.72); }
.bd-cta {
  display: inline-block; margin-top: 10px;
  font-size: 14px; font-weight: 600; color: var(--spearmint); text-decoration: none;
}
.bd-cta:hover { text-decoration: underline; }

/* the brief card (light, Daily Brief house style) */
.bd-card {
  --b-bg: #F2F6F4; --b-surface: #FFFFFF; --b-fg: #0D1117; --b-muted: #5B6B65; --b-line: #DCE5E1;
  --b-mint: #4ECBA0; --b-mint-ink: #1C8A63; --b-tint: #E4F2EC;
  --b-ok-bg: #E1F3EA; --b-warn: #A5541B; --b-warn-bg: #F8E9DD; --b-gold: #8A6A12; --b-gold-bg: #F6EED5;
  background: var(--b-bg);
  color: var(--b-fg);
  border-radius: 26px;
  padding: 14px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.5), 0 0 0 1px rgba(78,203,160,0.18);
  font-size: 14px;
  line-height: 1.45;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 560px;
}
.bd-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--b-fg); color: #F2F6F4; border-radius: 14px; padding: 11px 14px;
}
.bd-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.bd-brand svg { width: 20px; height: 20px; }
.bd-status { font-size: 12px; color: rgba(242,246,244,0.7); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.bd-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--b-mint); }
.bd-card.building .bd-status i { animation: bd-pulse 0.9s ease-in-out infinite; }
@keyframes bd-pulse { 50% { opacity: 0.25; } }

.bd-top { display: flex; flex-direction: column; gap: 4px; padding: 2px 4px 0; }
.bd-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--b-mint-ink); }
.bd-hello { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.bd-glance { font-size: 14px; color: var(--b-fg); margin: 0; }
.bd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bd-stats div { background: var(--b-surface); border: 1px solid var(--b-line); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.bd-stats b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bd-stats span { font-size: 11.5px; color: var(--b-muted); }

.bd-sec { background: var(--b-surface); border: 1px solid var(--b-line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; }
.bd-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.bd-sec-head b { font-size: 15px; font-weight: 700; }
.bd-sec-head span { font-size: 12px; color: var(--b-muted); font-variant-numeric: tabular-nums; }
.bd-ev { display: grid; grid-template-columns: 62px 1fr; gap: 0 10px; padding: 7px 0; border-top: 1px solid var(--b-line); }
.bd-ev:first-of-type { border-top: 0; }
.bd-ev .t { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.bd-ev .w small { display: block; font-size: 12px; color: var(--b-muted); }

.bd-row { padding: 10px 0; border-top: 1px solid var(--b-line); display: flex; flex-direction: column; gap: 6px; }
.bd-row:first-of-type { border-top: 0; }
.bd-row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bd-row-top b { font-weight: 600; }
.bd-pill { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.bd-pill.ok { color: var(--b-mint-ink); background: var(--b-ok-bg); }
.bd-pill.warn { color: var(--b-warn); background: var(--b-warn-bg); }
.bd-pill.gold { color: var(--b-gold); background: var(--b-gold-bg); }
.bd-why { font-size: 12.5px; color: var(--b-muted); }
.bd-bubble { background: var(--b-fg); color: #F2F6F4; padding: 9px 12px; border-radius: 16px 16px 6px 16px; font-size: 13.5px; }
.bd-act { display: flex; align-items: center; gap: 10px; }
.bd-send {
  font: 700 13px 'Figtree', sans-serif; color: #F2F6F4; background: var(--b-fg);
  border: 0; border-radius: 999px; padding: 7px 16px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.2s var(--ease);
}
.bd-send::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--b-mint); }
.bd-send:hover { transform: translateY(-1px); }
.bd-hint { font-size: 12px; color: var(--b-muted); }
.bd-sent { display: none; font-size: 13px; font-weight: 700; color: var(--b-mint-ink); }
.bd-row.sent .bd-act { display: none; }
.bd-row.sent .bd-sent { display: block; }
.bd-row.sent .bd-bubble { opacity: 0.55; }
/* first Send gets one soft ring so people know it's tappable */
.bd-card.ready .bd-row:first-of-type .bd-send { animation: bd-ring 1.6s var(--ease) 0.4s 2; }
@keyframes bd-ring { 0% { box-shadow: 0 0 0 0 rgba(78,203,160,0.6); } 100% { box-shadow: 0 0 0 12px rgba(78,203,160,0); } }

.bd-foot { margin-top: auto; text-align: center; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--b-muted); }

/* build-in: items start hidden only while .bd-pre is on them (added and removed by JS) */
.bd-item { transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.bd-item.bd-pre { opacity: 0; transform: translateY(14px) scale(0.985); transition: none; }
.bd-rest { color: transparent; }
.bd-typed:not(:empty)::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--b-mint); }
.bd-rest:empty { display: none; }
.bd-card.ready .bd-typed::after { display: none; }
.bd-card { transform-origin: 50% 100%; will-change: transform; }

@media (max-width: 900px) {
  .bd-grid { grid-template-columns: minmax(0, 1fr); }
  .bd-card { max-width: 460px; width: 100%; margin: 0 auto; min-height: 0; }
  .bd-rule, .bd-lede { max-width: none; }
  .bd-rule[hidden] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bd-item, .bd-rule, .bd-pick, .bd-send { transition: none; }
  .bd-card.building .bd-status i, .bd-card.ready .bd-row:first-of-type .bd-send { animation: none; }
}
