/* One card system for Egg Agent and the five following product features. */
.feature-card{
  --card-height:min(640px,calc(100svh - 144px));
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
  align-items:center;
  gap:clamp(36px,5vw,72px);
  height:var(--card-height);
  padding:clamp(28px,3.5vw,48px);
  margin-block:72px;
  border:1px solid #e9e6df;
  border-radius:40px;
  background:linear-gradient(120deg,#f4f4f0 0%,#fbfaf7 62%,#f7f3e9 100%);
  scroll-margin-top:0;
}
.feature-card-copy{min-width:0}
.feature-card-copy h2{margin-bottom:24px;letter-spacing:-.035em}
.feature-card-copy p{max-width:430px;line-height:1.8}
.feature-card-copy p span{display:block;margin-top:8px}
.feature-showcase{min-width:0;min-height:0;width:100%;height:100%;max-width:480px;justify-self:end;margin:0;display:grid;grid-template-rows:minmax(0,1fr)}
.feature-showcase.has-caption{grid-template-rows:minmax(0,1fr) 20px;gap:14px}
.feature-showcase figcaption{font-size:14px;line-height:20px;text-align:center;color:var(--muted)}
.feature-scroll{width:100%;min-width:0;min-height:0;overflow:auto;padding:16px;border:1px solid #e5e3de;border-radius:26px;background:#f8f8f8;scrollbar-width:thin;scrollbar-color:#b7b5ae transparent;touch-action:pan-y;scroll-behavior:auto;-webkit-overflow-scrolling:touch}
.feature-scroll:focus-visible{outline:2px solid #77756e;outline-offset:3px}
.feature-scroll>svg{display:block;width:100%;height:auto;overflow:hidden}
.feature-showcase.record-showcase{height:auto;align-self:center}
.record-entry-preview{display:flex;align-items:center;width:100%;min-width:0;min-height:0;overflow:hidden;border:1px solid #e5e3de;border-radius:26px;background:#616161}
.record-entry-preview>svg{display:block;flex:0 0 100%;width:100%;height:auto}
.feature-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:0;border:1px dashed #d7d3c9;border-radius:26px;background:#fcfbf8;color:var(--muted)}
.feature-placeholder span{font-size:20px;font-weight:500}
.feature-placeholder p{font-size:14px}
.egg-showcase{min-width:0;min-height:0;width:100%;height:100%;max-width:480px;justify-self:end;display:grid;grid-template-rows:44px minmax(0,1fr) 20px;gap:14px}
.egg-scenarios{display:flex;justify-content:center;align-items:stretch;gap:28px}
.egg-scenarios button{position:relative;background:none;padding:6px 2px 10px;color:var(--muted);font-size:16px;line-height:1.4;font-weight:500;white-space:nowrap}
.egg-scenarios button::after{content:"";position:absolute;bottom:0;left:2px;right:2px;height:2px;border-radius:2px;background:transparent}
.egg-scenarios button[aria-selected="true"]{color:var(--ink)}
.egg-scenarios button[aria-selected="true"]::after{background:var(--ink)}
.egg-scenarios button:hover{color:var(--ink)}
.egg-scenarios button:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:3px}
.egg-app-preview{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #e5e3de;border-radius:26px;background:#f8f8f8;box-shadow:0 12px 30px #3a322006}
.egg-app-header{flex-shrink:0;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;min-height:72px;padding:14px 18px;color:#202020;user-select:none}
.egg-app-header svg{width:22px;height:22px}
.egg-app-header strong{font-size:22px;line-height:1.2;font-weight:600;text-align:center}
.egg-app-header span{justify-self:end;font-size:13px;white-space:nowrap}
.egg-chat-panel{min-height:0;flex:1;overflow-y:auto;padding:12px 18px 24px;scrollbar-width:thin;scrollbar-color:#b7b5ae transparent;touch-action:pan-y;scroll-behavior:auto;-webkit-overflow-scrolling:touch}
.egg-chat-panel[hidden]{display:none}
.egg-chat-panel:focus-visible{outline:2px solid #77756e;outline-offset:-3px}
.egg-message{width:fit-content;max-width:93%;padding:15px 17px;border-radius:24px;color:#202020;font-size:16px;line-height:1.7;overflow-wrap:anywhere}
.egg-message-user{margin-left:auto;background:#fbf5e5}
.egg-message-reply{margin-top:16px;background:#fff}
.egg-demo-caption{text-align:center;font-size:14px;line-height:20px;color:var(--muted)}
@media(max-width:700px){
  .feature-card{height:auto;display:flex;flex-direction:column;align-items:stretch;gap:28px;padding:28px 20px 24px;margin-block:48px;border-radius:28px}
  .feature-card-copy h2{margin-bottom:16px}
  .feature-card-copy p{line-height:1.8}
  .feature-card-copy p span{margin-top:6px}
  .feature-showcase{height:min(480px,calc(100svh - 190px));max-width:none}
  .feature-scroll{padding:12px;border-radius:22px}
  .record-entry-preview{border-radius:22px}
  .feature-placeholder{border-radius:22px}
  .egg-showcase{max-width:none;height:auto;grid-template-rows:44px min(480px,calc(100svh - 190px)) 20px;gap:12px}
  .egg-app-preview{border-radius:22px}
  .egg-app-header{min-height:66px;padding-inline:14px}
  .egg-chat-panel{padding:10px 12px 20px}
  .egg-message{max-width:94%;padding:14px;border-radius:21px}
}
