/* The interactive sketch and the unaltered Safari captures share a blue palette,
   but have distinct frames so visitors can tell the two experiences apart. */
.landing {
  --stage-blue: #536ff1;
  --night: #101d3b;
  --night-line: #384665;
  --night-quiet: #becae2;
}
.opening {
  display: grid;
  grid-template-columns: 0.87fr 1.13fr;
  grid-template-areas: "copy demo" "actions demo";
  align-items: center;
  column-gap: clamp(28px, 4.5vw, 76px);
  padding-block: clamp(42px, 6vw, 94px);
}
.opening-copy { grid-area: copy; min-width: 0; align-self: end; }
.opening-actions { grid-area: actions; align-self: start; }
:lang(zh) .opening h1 { word-break: keep-all; max-width: none; }
.opening h1 {
  max-width: 11ch;
  font-size: clamp(46px, 5.7vw, 84px);
  letter-spacing: -.055em;
  line-height: 1.01;
}
.opening .lead { max-width: 40ch; margin-top: 24px; font-size: clamp(16px, 1.3vw, 19px); }
.opening .text-link { margin-top: 8px; }
.opening .text-link svg { transform: rotate(90deg); }
.demo-stage {
  grid-area: demo;
  min-width: 0;
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  padding: clamp(28px, 4.8vw, 70px) clamp(24px, 4.5vw, 64px);
  min-height: clamp(365px, 33vw, 465px);
  background: radial-gradient(ellipse at 25% 10%, #859aff, transparent 70%), var(--stage-blue);
  color: #17243b;
  border-radius: 24px;
  overflow: hidden;
  color-scheme: light;
}
.demo-stage::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background: repeating-radial-gradient(circle at 60% 54%, transparent 0 38px, #ffffff59 39px, transparent 40px 65px);
}
.mini-browser {
  border: 1px solid #ffffffc0;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 42px #16266242;
  overflow: hidden;
}
.window-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 37px;
  padding-inline: 12px;
  background: #f2f4f9;
  color: #515d71;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #dce1e9;
}
.window-line i { width: 7px; height: 7px; border-radius: 50%; background: #fe796d; box-shadow: 11px 0 #f7bf50, 22px 0 #62c38b; }
[dir=rtl] .window-line i { justify-self: end; }
.orders { padding: clamp(16px, 2.2vw, 30px); }
.orders h2 { font-size: clamp(23px, 2.35vw, 34px); letter-spacing: -.04em; text-wrap: initial; }
.order-tools { display: flex; align-items: center; justify-content: space-between; margin-block: 8px 3px; }
.order-tools select, .refresh-orders {
  min-height: 36px;
  border: 1px solid #dbe1eb;
  border-radius: 8px;
  background: #f6f8fc;
  color: #273b65;
  font-size: 13px;
  cursor: pointer;
  padding-inline: 8px;
}
.refresh-orders { width: 38px; font: 24px/1 system-ui; }
.order-list { list-style: none; padding: 0; margin: 0; }
.order-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding-block: 10px;
  border-top: 1px solid #e5e9f0;
  font-size: 13px;
  line-height: 1.35;
}
.order-list bdi { font: 11px/1.4 ui-monospace, monospace; color: #5c6880; }
.order-list strong { font-weight: 600; }
.order-list li span { color: #32705b; font-size: 11px; }
.order-list li span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 5px; border-radius: 50%; background: #389577; }
.demo-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 12px;
  margin: -5px -14px 0;
  padding: 12px 16px;
  border: 1px solid #435577;
  border-radius: 12px;
  background: var(--night);
  color: #fff;
  box-shadow: 0 9px 24px #1e285040;
}
.demo-player strong, .demo-player bdi { display: block; font-size: 13px; }
.demo-player bdi { color: #b8c8e8; font-family: ui-monospace, monospace; }
.demo-player button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  background: #315ed9;
  color: white;
  border: 1px solid #90aaff;
  border-radius: 24px;
  font: 650 13px/1.3 var(--font-sans);
  cursor: pointer;
}
.demo-player button i { flex: none; width: 10px; height: 11px; background: white; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.running .demo-player button i { clip-path: none; border-radius: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .arrived { animation: arrive .55s ease-out; }
  @keyframes arrive { from { background: #d7e9ff; transform: translateY(-3px); } }
}
.showcase {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 78px);
  padding-block: clamp(48px, 6.5vw, 92px);
  color: white;
  background: var(--night);
  box-shadow: 0 0 0 100vmax var(--night);
  clip-path: inset(0 -100vmax);
}
.showcase-menu { align-self: start; }
.showcase-menu h2 { max-width: 15ch; }
.mode-list { display: grid; margin-top: 28px; border-top: 1px solid var(--night-line); }
.mode-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--night-line);
  color: var(--night-quiet);
  font-size: clamp(16px, 1.55vw, 23px);
  line-height: 1.3;
  font-weight: 620;
}
.mode-list a[aria-selected=true] { background: #243761; color: white; }
.mode-list a[aria-selected=true]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9ebaff; flex: none; }
.mode-panel + .mode-panel { margin-top: 24px; }
.mode-panel[role=tabpanel] { margin-top: 0; }
.mode-panel img { display: block; width: 100%; border-radius: 10px; }
.mode-panel figure a { display: block; }
.mode-panel figcaption { margin-block: 9px 22px; color: var(--night-quiet); font-size: 12px; }
.mode-panel h3 { font-size: 24px; }
.mode-panel p { margin-top: 6px; color: #d5dfef; line-height: 1.55; }
.showcase .text-link { color: #adcbff; }
.showcase :focus-visible, .demo-player :focus-visible { outline-color: #abc9ff; }
.landing .setup-section { padding: 0; background: none; }
.landing .setup-grid { gap: 0; margin-top: 32px; }
.landing .setup-grid li { position: relative; padding-inline-end: 24px; }
.landing .setup-grid li:not(:last-child)::before {
  content: "";
  position: absolute;
  inset: 17px 0 auto;
  height: 1px;
  background: var(--border);
}
.landing .step-number {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
}
.landing .privacy-section { padding-block: 40px; border-block: 1px solid var(--border); }
.landing .faq-section { border: 0; padding: 0; }
.landing .closing { background: var(--surface); padding: clamp(24px, 4vw, 54px); margin-bottom: 52px; border: 0; border-radius: 18px; }
[dir=rtl] .opening h1, [dir=rtl] .orders h2 { letter-spacing: normal; line-height: 1.25; }
@media (max-width: 800px) {
  .opening { grid-template-columns: 1fr; grid-template-areas: "copy" "demo" "actions"; gap: 20px; }
  .opening-actions .actions { margin-top: 0; gap: 8px; }
  .opening-actions .button { min-height: 46px; padding: 10px 14px; gap: 8px; font-size: 14px; }
  .opening-actions .hero-note { margin-top: 8px; }
  .opening h1 { max-width: 17ch; }
  .opening .lead { max-width: 56ch; }
  .demo-stage { min-height: auto; padding: 36px max(8%, 24px); }
  .showcase { grid-template-columns: 1fr; gap: 26px; }
  .showcase-menu h2 { max-width: 25ch; }
  .mode-list { margin-top: 18px; }
  .mode-list a { min-height: 44px; padding-block: 10px; }
}
@media (max-width: 720px) {
  .opening { padding-block: 32px; }
  .opening .lead { margin-top: 14px; }
  .landing .setup-grid { gap: 24px; }
  .landing .setup-grid li { padding-inline: 52px 0; }
  .landing .step-number { position: absolute; inset-inline-start: 0; }
  .landing .setup-grid li:not(:last-child)::before { inset: 18px auto -24px; inset-inline-start: 17px; width: 1px; height: auto; }
  .landing .setup-grid h3 { margin-top: 0; }
  .order-list li { gap: 6px; }
  .demo-player { padding: 10px; gap: 8px; }
  .demo-player button { padding-inline: 10px; }
}
@media (forced-colors: active) {
  .demo-player button i, .mode-list a[aria-selected=true]::after { background: ButtonText; }
}

.workflow-feature {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}
.workflow-feature p { margin-block: 18px; color: var(--muted); }
@media (max-width: 720px) {
  .workflow-feature { grid-template-columns: minmax(0, 1fr); }
}
