/* Put AI to Work seminar page. Builds on styles.css tokens; Geist only. */

/* The shared styles give some of these elements a display value; keep the hidden attribute winning. */
.sem-page [hidden] { display: none !important; }

/* Hero */
.sem-hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.sem-hero::before {
  content: ""; position: absolute; top: -360px; right: -240px; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, transparent), transparent 72%); pointer-events: none;
}
.sem-hero__grid { position: relative; display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .sem-hero { padding: 96px 0 104px; } .sem-hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 64px; } }
.sem-hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); letter-spacing: -0.045em; line-height: 0.98; margin: 0; }
.sem-hero__sub { display: block; font-size: clamp(1.15rem, 2.6vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.25; font-weight: 500; color: var(--muted); margin-top: 16px; }
.sem-hero__lede { font-size: 1.15rem; color: var(--text); max-width: 54ch; margin: 24px 0 0; }
.sem-facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sem-facts li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.sem-facts svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Next session card */
.sem-next {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg);
  display: grid; gap: 16px; position: relative;
}
.sem-next::after { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.sem-next__eyebrow { margin: 0; font-size: 13px; font-weight: 600; color: var(--accent); }
.sem-next__date { margin: 0; font-size: 1.6rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.sem-next__time { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.sem-next__note { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.sem-next__more { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.sem-host { display: flex; gap: 12px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.sem-host img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.sem-host__name { margin: 0; font-weight: 600; color: var(--ink); font-size: 15px; }
.sem-host__role { margin: 0; color: var(--muted); font-size: 14px; }

/* Agenda */
.sem-agenda h2, .sem-who h2, .sem-reg h2 { max-width: 20ch; }
.sem-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 860px) { .sem-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .sem-steps li:last-child { grid-column: 1 / -1; } }
.sem-steps li { display: grid; grid-template-columns: auto 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.sem-steps__n {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 600; font-size: 15px;
  background: var(--accent-soft); color: var(--accent);
}
.sem-steps h3 { margin: 6px 0 6px; font-size: 1.15rem; }
.sem-steps p { margin: 0; color: var(--muted); }

/* Who */
.sem-who__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .sem-who__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }
.sem-for { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sem-for li { position: relative; padding: 16px 18px 16px 50px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 500; }
.sem-for li::before {
  content: ""; position: absolute; left: 18px; top: 18px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft);
  -webkit-mask: none;
}
.sem-for li::after { content: ""; position: absolute; left: 24px; top: 23px; width: 8px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Register */
.sem-reg__grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .sem-reg__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; } .sem-reg__lead { position: sticky; top: 110px; } }
.sem-reg__small { color: var(--muted); font-size: 14px; margin: 18px 0 0; }
.sem-form .field select {
  width: 100%; font: 16px/1.5 var(--font); color: var(--ink); background-color: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 11px 38px 11px 13px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.sem-form .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.sem-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sem-form legend { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 8px; padding: 0; }
.sem-form legend em { font-style: normal; font-weight: 400; color: var(--muted); }
.sem-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sem-chips label { position: relative; cursor: pointer; }
.sem-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sem-chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg); font-size: 14.5px; font-weight: 500; color: var(--text); transition: background .15s, border-color .15s, color .15s;
}
.sem-chips span::before { content: "+"; margin-right: 6px; color: var(--muted); font-weight: 500; }
.sem-chips input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.sem-chips input:checked + span::before { content: "\2713"; color: var(--accent); }
.sem-chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.sem-dates__list { display: grid; gap: 8px; }
.sem-date { position: relative; cursor: pointer; display: block; }
.sem-date input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sem-date span { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); }
.sem-date b { color: var(--ink); font-weight: 600; }
.sem-date small { color: var(--muted); font-size: 14px; }
.sem-date input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.sem-date input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.sem-error { margin: 0; color: #b4332b; font-size: 14px; font-weight: 500; }
[data-theme="dark"] .sem-error { color: #ff8a80; }
.sem-submit { height: 52px; font-size: 16px; }
.sem-submit[disabled] { opacity: .6; cursor: progress; }

/* Success */
.sem-done { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow); display: grid; gap: 14px; outline: none; }
@media (min-width: 720px) { .sem-done { padding: 36px; } }
.sem-done__check { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; }
.sem-done__check svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sem-done h3 { font-size: 1.8rem; letter-spacing: -0.03em; margin: 0; }
.sem-done p { margin: 0; color: var(--muted); }
.sem-cal { display: flex; flex-wrap: wrap; gap: 8px; }
.sem-soft { margin-top: 8px; padding: 18px; border-radius: var(--radius); background: var(--bg-2, var(--bg)); border: 1px solid var(--line); display: grid; gap: 14px; justify-items: start; }
.sem-soft strong { color: var(--ink); }

/* FAQ */
.sem-faq { display: grid; gap: 24px; }
.sem-faq__list { border-top: 1px solid var(--line); max-width: 860px; }

/* Countdown and live seats */
.sem-urg { display: grid; gap: 10px; margin: 16px 0 18px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--brand-green) 8%, transparent); border: 1px solid color-mix(in srgb, var(--brand-green) 22%, transparent); }
.sem-cd { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sem-cd__label { font-size: 13px; color: var(--muted); margin-right: 2px; }
.sem-cd b { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.sem-cd b small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.sem-cd.is-live { color: var(--brand-green); font-weight: 600; }
.sem-seats { display: grid; gap: 8px; }
.sem-seats__txt { margin: 0; font-size: 14.5px; color: var(--ink); }
.sem-seats__txt b { color: #b4321f; }
:root[data-theme="dark"] .sem-seats__txt b { color: #ff8a73; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sem-seats__txt b { color: #ff8a73; } }
.sem-seats__bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.sem-seats__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-green), #d9661f); }

/* Short form: name and email first, the rest in an optional disclosure */
.sem-replay { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.sem-more { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.sem-more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; font-size: 15px; font-weight: 500; color: var(--ink); }
.sem-more > summary::-webkit-details-marker { display: none; }
.sem-more > summary em { font-style: normal; font-weight: 400; color: var(--muted); margin: 0 auto 0 -6px; }
.sem-more > summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 400; line-height: 1; transition: transform .2s; }
.sem-more[open] > summary::after { transform: rotate(45deg); }
.sem-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.sem-more__body { display: grid; gap: 16px; padding: 4px 16px 18px; }
/* Free student account offer on the confirmation (stage 2b) */
.sem-student { margin-top: 4px; padding: 18px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); display: grid; gap: 12px; justify-items: start; }
.sem-student[hidden] { display: none; }
.sem-student p { color: var(--muted); }
.sem-student strong { color: var(--ink); }
.sem-student__btn { background: var(--accent); color: #fff; min-height: 44px; height: auto; padding-top: 10px; padding-bottom: 10px; white-space: normal; text-align: left; }
[data-theme="dark"] .sem-student__btn { color: #07160e; }
.sem-student__btn[disabled] { opacity: .6; cursor: wait; }
.sem-student__msg { font-size: 14px; }
.sem-student__msg:empty { display: none; }
.sem-student p strong + strong, .sem-student__tap { color: var(--ink); }
