/* Premium Templates page (/premium-templates/) and the shared template section on the
   Pages and Campaigns product pages. The galleries themselves are styled by
   premium-websites.css and premium-funnels.css (copied from Campaigns). */

.pt-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 128px) 0 clamp(56px, 7vw, 92px);
  background:
    radial-gradient(circle at 12% 0%, rgba(197, 176, 244, 0.55), transparent 42%),
    radial-gradient(circle at 92% 18%, rgba(243, 201, 182, 0.6), transparent 40%),
    var(--soft);
  text-align: center;
}

.pt-hero h1 {
  max-width: 16ch;
  margin: 18px auto 22px;
  font-size: clamp(44px, 6.6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.pt-hero h1 span { color: var(--coral-dark); }

.pt-hero > .site-wrap > p {
  max-width: 64ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

.pt-hero .button-row { justify-content: center; margin-top: 30px; }

.pt-proof {
  display: grid;
  max-width: 860px;
  margin: clamp(40px, 5vw, 60px) auto 0;
  padding: 0;
  list-style: none;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pt-proof li {
  display: grid;
  gap: 2px;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
}

.pt-proof strong { font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.04em; }
.pt-proof span { color: var(--muted); font-size: 14px; }

.pt-kinds { padding: clamp(48px, 6vw, 84px) 0 0; }

.pt-kind-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pt-kind {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--lilac);
  color: var(--ink);
  text-decoration: none;
}

.pt-kind:nth-child(2) { background: var(--peach); }
.pt-kind:nth-child(3) { background: var(--mint); }
.pt-kind small { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.pt-kind h3 { margin: 0; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.08; letter-spacing: -0.03em; }
.pt-kind p { margin: 0; color: rgba(5, 5, 5, 0.7); font-size: 16px; line-height: 1.5; }
.pt-kind > span { margin-top: auto; padding-top: 8px; font-weight: 800; }
.pt-kind > span i { display: inline-block; font-style: normal; transition: transform var(--motion-ui) var(--ease-out); }

@media (hover: hover) {
  .pt-kind { transition: transform var(--motion-ui) var(--ease-out); }
  .pt-kind:hover { transform: translateY(-4px); }
  .pt-kind:hover > span i { transform: translateX(4px); }
}

.pt-kinds-note { margin: 18px 0 0; color: var(--muted); font-size: 15px; text-align: center; }

/* The library band. */
.template-showcase.pt-library { margin-top: clamp(48px, 6vw, 84px); }
.template-showcase .eyebrow { justify-content: center; }
.template-showcase-cta .button { min-width: 240px; }

.pt-section-head {
  display: grid;
  align-items: start;
  gap: var(--editorial-gap);
  margin-bottom: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
}

.pt-section-head h2 { max-width: 15ch; margin-bottom: 0; font-size: clamp(38px, 5vw, 68px); }
.pt-section-head p { max-width: 55ch; margin-bottom: 0; color: var(--muted); font-size: 18px; }

.pt-use-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pt-use-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.pt-use-grid span { color: var(--coral-dark); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.pt-use-grid h3 { margin: 10px 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.pt-use-grid p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

.pt-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pt-steps li { padding: 28px; border-radius: var(--radius-lg); background: var(--soft); }
.pt-steps li > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
}
.pt-steps h3 { margin: 18px 0 8px; font-size: 24px; letter-spacing: -0.02em; }
.pt-steps p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

.pt-final {
  padding: clamp(76px, 10vw, 142px) 0;
  background: var(--coral);
  text-align: center;
}
.pt-final h2 { max-width: 14ch; margin: 0 auto 22px; font-size: clamp(48px, 6.6vw, 88px); }
.pt-final p { max-width: 62ch; margin: 0 auto; color: rgba(5, 5, 5, 0.7); font-size: 19px; }
.pt-final .button-row { justify-content: center; margin-top: 28px; }
.pt-final .eyebrow { justify-content: center; }

/* Shared section on the product pages. */
.pt-band { padding: clamp(64px, 8vw, 110px) 0; background: linear-gradient(180deg, #f8f6ff 0%, #f3f1fb 100%); }
.pt-band .pt-section-head { margin-bottom: 28px; }
.pt-band .pf-tabs { margin-bottom: 22px; }
.pt-band-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; margin-top: 30px; }
.pt-band-foot a:not(.button) { color: var(--ink); font-weight: 800; }

/* For your agent: templates handed to coding agents. The motion graphic reuses the
   Outreach Agent demo (css/oa-hero-demo.css); js/pt-agent-demo.js adds the preview pane. */
.pt-agent {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 128px) 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(197, 176, 244, 0.24), transparent 36%),
    radial-gradient(circle at 96% 96%, rgba(255, 111, 97, 0.2), transparent 40%),
    var(--ink);
  color: var(--paper);
}
.pt-agent .eyebrow { justify-content: center; color: var(--lilac); }
.pt-agent-head { max-width: 980px; margin: 0 auto; text-align: center; }
.pt-agent h2 { max-width: 16ch; margin: 0 auto 22px; color: var(--paper); font-size: clamp(42px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.045em; }
.pt-agent h2 span { color: var(--coral); }
.pt-agent-head > p { max-width: 62ch; margin: 0 auto; color: rgba(255, 255, 255, 0.72); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; }
.pt-agent-head > p strong { color: var(--paper); }

/* The demo stage. .oa-demo-section is only here for the shared demo styles. */
.pt-agent .oa-demo-section.pt-agent-stage { margin-top: clamp(40px, 5vw, 64px); padding: 0; border: 0; overflow: visible; }
.pt-agent .oad-tabs { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); }
.pt-agent .oad-tabs button { color: rgba(255, 255, 255, 0.7); }
.pt-agent .oad-tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.pt-agent .oad-tabs .oad-mark { background: rgba(255, 255, 255, 0.1); color: var(--paper); }
.pt-agent .oad-tabs button[aria-selected="true"] .oad-mark { background: var(--oad-accent); color: #fff; }
.pt-agent .oad-stage { color: rgba(255, 255, 255, 0.5); }
.pt-agent .oad-stage::before { background: rgba(255, 255, 255, 0.14); }
.pt-agent .oad-stage.is-active, .pt-agent .oad-stage.is-done { color: var(--paper); }
.pt-agent .oad-stages { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pt-agent-stage .oa-demo .oad-note { color: rgba(255, 255, 255, 0.6); }
.pt-agent .oad-pause { border-color: rgba(255, 255, 255, 0.2); background: transparent; color: var(--paper); }
.pt-agent .oad-frame { height: 660px; grid-template-columns: 210px minmax(0, 1fr) minmax(0, 1.08fr); border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.7); }
.pt-agent .oad-frame:not([data-skin]) { grid-template-columns: minmax(0, 1fr); }
.pt-agent .oad-frame { color: var(--ink); }
.pt-agent .oad-frame[data-skin="grok"] .oad-pv, .pt-agent .pad-pv { min-width: 0; }

/* Lines in the conversation. */
.pt-agent .oad-note.oad-beat { margin: 0; }
.pt-agent .oad-beat.oad-note { align-self: center; text-align: center; }
.pt-agent-stage .oa-demo .oad-beat.oad-note p { padding: 6px 12px; border: 1px dashed var(--line); border-radius: 999px; color: var(--muted); font-size: 12.5px; }
.pt-agent-stage .oa-demo .oad-ask .oad-bubble { max-width: 92%; font-size: 13px; overflow-wrap: anywhere; }
.pad-who { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 700; color: var(--oad-accent); }
.pad-pages { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pad-pages li { padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, #2fb36f 16%, transparent); color: #2fb36f; font-size: 12px; font-weight: 600; }
.pad-pages li::before { content: "✓ "; }

/* Claude Code desktop: warm, light sessions window. */
.oad-frame[data-skin="claudedesk"] { --paper: #faf9f5; --soft: #f0eee6; --ink: #1f1e1b; --muted: #77746b; --line: #e3e0d6; background: #faf9f5; color: var(--ink); }
.oad-frame[data-skin="claudedesk"] .oad-side { background: #f0eee6; }
.oad-frame[data-skin="claudedesk"] .oad-side > .oad-lights { display: flex; margin: 0 4px 14px; }
.oad-frame[data-skin="claudedesk"] .oad-side li { color: var(--ink); }
.oad-frame[data-skin="claudedesk"] .oad-side li.is-on { background: #e5e2d8; box-shadow: none; }
.pt-agent-stage .oa-demo .pad-new { margin: 0 0 6px; padding: 8px 10px; border-radius: 8px; background: var(--paper); font-weight: 600; font-size: 13px; }
.pt-agent-stage .oa-demo .pad-repo { margin: 18px 4px 0; color: var(--muted); font: 500 11.5px/1.3 "Geist Mono", monospace; }
.pad-claude { color: #d9673f; }
.oad-frame[data-skin="claudedesk"] .oad-bar { font-size: 14px; }
.pt-agent-stage .oa-demo .oad-frame[data-skin="claudedesk"] .oad-bubble { background: #ece9df; color: var(--ink); border-radius: 14px; }
.oad-frame[data-skin="claudedesk"] .oad-step { border-radius: 8px; background: #f3f1ea; }
.oad-frame[data-skin="claudedesk"] .oad-step b { font: 500 12.5px/1.3 "Geist Mono", monospace; }
.oad-frame[data-skin="claudedesk"] .oad-input { border-radius: 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.oad-frame[data-skin="claudedesk"] .oad-send { background: #d9673f; border-radius: 8px; }
.oad-frame[data-skin="codex"] .oad-step b, .oad-frame[data-skin="grok"] .oad-step b { font: 500 12.5px/1.3 "Geist Mono", monospace; }

/* The template preview pane, on the right of every window. */
.pad-pv { position: relative; display: grid; grid-template-rows: auto 1fr; min-height: 0; border-left: 1px solid var(--line); background: #e9e7ef; color: #121212; font-size: 12px; }
.oad-frame[data-skin="grok"] .pad-pv { background: #1b1b21; }
.pad-pv-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.pad-pv-dots { display: inline-flex; gap: 5px; }
.pad-pv-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(127, 127, 127, 0.35); }
.pad-pv-url { flex: 1; padding: 5px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); font: 500 11.5px/1 "Geist Mono", monospace; }
.pad-pv-body { position: relative; min-height: 0; overflow: hidden; padding: 14px; }
.pad-live { position: absolute; right: 14px; bottom: 14px; padding: 5px 10px; border-radius: 999px; background: #2fb36f; color: #fff; font-size: 11.5px; font-weight: 700; opacity: 0; transform: translateY(6px); transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out); }
.pad-pv.is-done .pad-live { opacity: 1; transform: none; }
.pad-lib, .pad-blank, .pad-site { display: none; }
.pad-pv[data-pv="library"] .pad-lib, .pad-pv[data-pv="copied"] .pad-lib { display: grid; }
.pad-pv[data-pv="blank"] .pad-blank { display: flex; }
.pad-pv[data-pv="site"] .pad-site { display: block; }

.pad-lib { position: relative; align-content: start; gap: 10px; height: 100%; padding: 16px; border-radius: 12px; background: #fff; color: #121212; }
.pt-agent-stage .oa-demo .pad-lib-crumb { font: 600 10.5px/1 "Geist Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #6f4bd8; }
.pad-lib-card { display: grid; gap: 2px; }
.pad-lib-thumb { height: 120px; margin-bottom: 8px; border-radius: 10px; background: linear-gradient(140deg, #1f1d3d 0 55%, #f3c9b6 55% 100%); }
.pad-lib-card b { font-size: 14px; }
.pad-lib-card small { color: #64645f; }
.pad-lib-btn { justify-self: start; padding: 8px 14px; border-radius: 999px; background: #050505; color: #fff; font-weight: 700; }
.pad-lib-menu { display: grid; gap: 2px; margin: 0; padding: 6px; border: 1px solid #e7e7e2; border-radius: 10px; list-style: none; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12); }
.pad-lib-menu li { padding: 8px 10px; border-radius: 7px; color: #121212; }
.pad-lib-menu li.is-hot { background: #f1ecfd; font-weight: 700; transition: transform var(--motion-fast) var(--ease-out), background var(--motion-ui) var(--ease-out); }
.pad-pv.is-copied .pad-lib-menu li.is-hot { background: #6f4bd8; color: #fff; transform: scale(0.98); }
.pad-lib-toast { position: absolute; left: 50%; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: #050505; color: #fff; font-weight: 700; opacity: 0; transform: translate(-50%, 8px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.pad-pv.is-copied .pad-lib-toast { opacity: 1; transform: translate(-50%, 0); }

.pad-blank { height: 100%; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; background: #fff; color: #64645f; }
.pad-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #e7e7e2; border-top-color: var(--oad-accent); animation: oad-spin 800ms linear infinite; }

.pad-site { height: 100%; overflow: hidden; border-radius: 12px; background: #fbf7f2; color: #1f1d3d; }
.pad-steps { display: flex; gap: 4px; margin: 0; padding: 8px 10px; list-style: none; background: #1f1d3d; }
.pad-steps li { padding: 3px 8px; border-radius: 999px; color: rgba(255, 255, 255, 0.4); font-size: 10.5px; font-weight: 600; transition: color 300ms, background 300ms; }
.pad-steps li.is-on { background: rgba(255, 255, 255, 0.12); color: #fff; }
.pad-s { opacity: 0; transform: translateY(10px); transition: opacity 460ms var(--ease-out), transform 460ms var(--ease-out); }
.pad-s.is-on { opacity: 1; transform: none; }
.pad-nav { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(31, 29, 61, 0.1); font-size: 11px; }
.pad-nav b { margin-right: auto; font-size: 12.5px; }
.pad-nav em { padding: 4px 10px; border-radius: 999px; background: #e46b4f; color: #fff; font-style: normal; font-weight: 700; }
.pad-hero { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 12px; padding: 18px 14px; }
.pt-agent-stage .oa-demo .pad-hero small { display: block; margin-bottom: 6px; color: #e46b4f; font: 700 10px/1 "Geist Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.pad-hero h4 { margin: 0 0 6px; font-size: 20px; line-height: 1.05; letter-spacing: -0.03em; color: #1f1d3d; }
.pt-agent-stage .oa-demo .pad-hero p { margin: 0 0 10px; color: #5b5873; font-size: 11.5px; line-height: 1.4; }
.pad-hero em { display: inline-block; padding: 7px 12px; border-radius: 999px; background: #e46b4f; color: #fff; font-style: normal; font-weight: 700; font-size: 11px; }
.pad-moon { aspect-ratio: 1; border-radius: 16px; background: radial-gradient(circle at 62% 38%, #fff6d8 0 18%, transparent 19%), radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.5) 0 2%, transparent 3%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.5) 0 2%, transparent 3%), linear-gradient(160deg, #2b2858, #1f1d3d 60%, #4a3a6a); }
.pad-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 14px 12px; }
.pad-feats span { display: grid; gap: 2px; padding: 10px; border-radius: 10px; background: #fff; font-size: 11px; color: #5b5873; }
.pad-feats b { color: #1f1d3d; font-size: 11.5px; }
.pad-quote { margin: 0 14px 12px; padding: 12px; border-radius: 10px; background: #f3c9b6; }
.pt-agent-stage .oa-demo .pad-quote p { font-weight: 700; color: #1f1d3d; }
.pt-agent-stage .oa-demo .pad-quote small { color: #5b5873; }
.pad-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 14px; padding: 12px 14px; border-radius: 10px; background: #1f1d3d; color: #fff; }
.pad-cta em { padding: 6px 12px; border-radius: 999px; background: #e46b4f; font-style: normal; font-weight: 700; font-size: 11px; }

@media (max-width: 1100px) {
  .pt-agent .oad-frame, .pt-agent .oad-frame[data-skin="grok"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pt-agent .oad-frame .oad-side { display: none; }
}
@media (max-width: 760px) {
  .pt-agent .oad-frame, .pt-agent .oad-frame[data-skin="grok"], .pt-agent .oad-frame[data-skin="codex"] { height: 900px; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 360px; }
  .pad-pv { border-left: 0; border-top: 1px solid var(--line); }
  .pt-agent .oad-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-agent .oad-tabs button { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .pad-s, .pad-live, .pad-lib-toast { transition: none; }
  .pad-spin { animation: none; }
}

.pt-fab {
  display: grid;
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding: 0;
  list-style: none;
  gap: 14px;
  counter-reset: fab;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pt-fab li {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  counter-increment: fab;
}
.pt-fab li:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -13px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lilac);
  content: "→";
  font-size: 13px;
  transform: translateY(-50%);
}
.pt-fab small {
  color: var(--lilac);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pt-fab small::before { content: "0" counter(fab) " · "; opacity: 0.6; }
.pt-fab h3 { margin: 14px 0 10px; color: var(--paper); font-size: 22px; letter-spacing: -0.02em; }
.pt-fab p { margin: 0; color: rgba(255, 255, 255, 0.68); font-size: 15.5px; line-height: 1.55; }
.pt-fab li.is-promise { border-color: transparent; background: var(--coral); }
.pt-fab li.is-promise small { color: var(--ink); }
.pt-fab li.is-promise h3 { color: var(--ink); font-size: 25px; }
.pt-fab li.is-promise p { color: rgba(5, 5, 5, 0.75); }

.pt-agent-libs { margin-top: clamp(48px, 6vw, 80px); padding-top: 36px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.pt-agent-libs h3 { margin: 0 0 20px; color: var(--paper); font-size: clamp(22px, 2vw, 28px); }
.pt-agent-libs ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pt-agent-libs li { display: grid; align-content: start; gap: 6px; padding: 18px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.06); }
.pt-agent-libs li b { font-size: 15px; }
.pt-agent-libs li span { color: rgba(255, 255, 255, 0.64); font-size: 14px; line-height: 1.45; }
.pt-agent-fine { margin: 22px 0 0; color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.pt-agent-soon {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 10px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 1100px) {
  .pt-fab { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-fab li:nth-child(2):not(:last-child)::after { display: none; }
  .pt-agent-libs ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pt-agent-libs ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pt-fab, .pt-agent-libs ul { grid-template-columns: 1fr; }
  .pt-fab li:not(:last-child)::after { display: none; }
  .pt-agent-soon { margin: 8px 0 0; }
}

@media (max-width: 900px) {
  .pt-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-kind-grid,
  .pt-use-grid,
  .pt-steps { grid-template-columns: 1fr; }
  .pt-section-head { grid-template-columns: 1fr; gap: 16px; }
}
